src/Tools/code/code_funcgr.ML
changeset 27609 b23c9ad0fe7d
parent 27103 d8549f4d900b
child 28054 2b84d34c5d02
equal deleted inserted replaced
27608:8fd5662ccd97 27609:b23c9ad0fe7d
   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