equal
deleted
inserted
replaced
259 |
259 |
260 structure Funcgr = CodeDataFun |
260 structure Funcgr = CodeDataFun |
261 ( |
261 ( |
262 type T = T; |
262 type T = T; |
263 val empty = Graph.empty; |
263 val empty = Graph.empty; |
264 fun merge _ _ = Graph.empty; |
264 fun purge _ cs funcgr = |
265 fun purge _ NONE _ = Graph.empty |
265 Graph.del_nodes ((Graph.all_preds funcgr |
266 | purge _ (SOME cs) funcgr = |
266 o filter (can (Graph.get_node funcgr))) cs) funcgr; |
267 Graph.del_nodes ((Graph.all_preds funcgr |
|
268 o filter (can (Graph.get_node funcgr))) cs) funcgr; |
|
269 ); |
267 ); |
270 |
268 |
271 fun make thy = |
269 fun make thy = |
272 Funcgr.change thy o ensure_consts thy (Code.coregular_algebra thy); |
270 Funcgr.change thy o ensure_consts thy (Code.coregular_algebra thy); |
273 |
271 |