equal
deleted
inserted
replaced
67 |> Symtab.map_entry c (fn specs => |
67 |> Symtab.map_entry c (fn specs => |
68 (check_specified c spec specs; Inttab.update spec specs)); |
68 (check_specified c spec specs; Inttab.update spec specs)); |
69 in (consts', specified') end); |
69 in (consts', specified') end); |
70 |
70 |
71 fun specifications_of (Defs {specified, ...}) c = |
71 fun specifications_of (Defs {specified, ...}) c = |
72 (List.mapPartial |
72 (map_filter |
73 (fn (_, (false, _, _, _)) => NONE |
73 (fn (_, (false, _, _, _)) => NONE |
74 | (_, (true, specname, thyname, ty)) => SOME (ty, (specname, thyname))) o Inttab.dest |
74 | (_, (true, specname, thyname, ty)) => SOME (ty, (specname, thyname))) o Inttab.dest |
75 o the_default Inttab.empty o Symtab.lookup specified) c; |
75 o the_default Inttab.empty o Symtab.lookup specified) c; |
76 |
76 |
77 |
77 |