equal
deleted
inserted
replaced
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) |