src/HOL/Tools/Predicate_Compile/predicate_compile_quickcheck.ML
changeset 42012 2c3fe3cbebae
parent 41472 f6ab14e61604
child 42014 75417ef605ba
equal deleted inserted replaced
42011:dee23d63d466 42012:2c3fe3cbebae
   209   Predicate_Compile_Aux.mk_bind New_Pos_DSequence_CompFuns.depth_unlimited_compfuns
   209   Predicate_Compile_Aux.mk_bind New_Pos_DSequence_CompFuns.depth_unlimited_compfuns
   210   
   210   
   211 
   211 
   212 val mk_split_lambda = HOLogic.tupled_lambda o HOLogic.mk_tuple
   212 val mk_split_lambda = HOLogic.tupled_lambda o HOLogic.mk_tuple
   213 
   213 
   214 fun cpu_time description f =
   214 fun cpu_time description f =  (* FIXME !? *)
   215   let
   215   let
   216     val start = start_timing ()
   216     val start = Timing.start ()
   217     val result = Exn.capture f ()
   217     val result = Exn.capture f ()
   218     val time = Time.toMilliseconds (#cpu (end_timing start))
   218     val time = Time.toMilliseconds (#cpu (Timing.result start))
   219   in (Exn.release result, (description, time)) end
   219   in (Exn.release result, (description, time)) end
   220 
   220 
   221 fun compile_term compilation options ctxt t =
   221 fun compile_term compilation options ctxt t =
   222   let
   222   let
   223     val thy = Theory.copy (ProofContext.theory_of ctxt)
   223     val thy = Theory.copy (ProofContext.theory_of ctxt)