src/HOL/Tools/Predicate_Compile/predicate_compile.ML
changeset 46614 165886a4fe64
parent 42361 23f352990944
child 46949 94aa7b81bcf6
equal deleted inserted replaced
46613:74331911375d 46614:165886a4fe64
   130 fun preprocess options t thy =
   130 fun preprocess options t thy =
   131   let
   131   let
   132     val _ = print_step options "Fetching definitions from theory..."
   132     val _ = print_step options "Fetching definitions from theory..."
   133     val gr = cond_timeit (Config.get_global thy Quickcheck.timing) "preprocess-obtain graph"
   133     val gr = cond_timeit (Config.get_global thy Quickcheck.timing) "preprocess-obtain graph"
   134           (fn () => Predicate_Compile_Data.obtain_specification_graph options thy t
   134           (fn () => Predicate_Compile_Data.obtain_specification_graph options thy t
   135           |> (fn gr => Term_Graph.subgraph (member (op =) (Term_Graph.all_succs gr [t])) gr))
   135           |> (fn gr => Term_Graph.restrict (member (op =) (Term_Graph.all_succs gr [t])) gr))
   136     val _ = if !present_graph then Predicate_Compile_Data.present_graph gr else ()
   136     val _ = if !present_graph then Predicate_Compile_Data.present_graph gr else ()
   137   in
   137   in
   138     cond_timeit (Config.get_global thy Quickcheck.timing) "preprocess-process"
   138     cond_timeit (Config.get_global thy Quickcheck.timing) "preprocess-process"
   139       (fn () => (fold_rev (preprocess_strong_conn_constnames options gr)
   139       (fn () => (fold_rev (preprocess_strong_conn_constnames options gr)
   140         (Term_Graph.strong_conn gr) thy))
   140         (Term_Graph.strong_conn gr) thy))