diff options
| author | Arnaud Spiwack | 2014-10-30 14:50:59 +0100 |
|---|---|---|
| committer | Arnaud Spiwack | 2014-11-01 22:43:57 +0100 |
| commit | bfa71dfcf722dfc0e1f1cd616945cc3e1da9d5ba (patch) | |
| tree | 9f0e2d59404a8cf63f44b7dc7d31eb2a10286003 /proofs/proofview.ml | |
| parent | d47c178be6e5dc52fedbb312fc51673623608994 (diff) | |
Info: do not record info trace unless needed.
Diffstat (limited to 'proofs/proofview.ml')
| -rw-r--r-- | proofs/proofview.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml index ba61bf7a5f..0a03965f1d 100644 --- a/proofs/proofview.ml +++ b/proofs/proofview.ml @@ -210,7 +210,7 @@ type +'a tactic = 'a Proof.t (** Applies a tactic to the current proofview. *) let apply env t sp = let (next_r,(next_state,_),status,info) = - Logic_monad.NonLogical.run (Proof.run t () (sp,env)) + Logic_monad.NonLogical.run (Proof.run t false (sp,env)) in next_r,next_state,status,Trace.to_tree info @@ -713,11 +713,12 @@ let tclTIMEOUT n t = already been computed. *) let t = Proof.lift (Logic_monad.NonLogical.return ()) >> t in Proof.get >>= fun initial -> + Proof.current >>= fun envvar -> Proof.lift begin Logic_monad.NonLogical.catch begin let open Logic_monad.NonLogical in - timeout n (Proof.run t () initial) >>= fun r -> + timeout n (Proof.run t envvar initial) >>= fun r -> return (Util.Inl r) end begin let open Logic_monad.NonLogical in function @@ -990,6 +991,8 @@ end module Trace = struct + let record_info_trace = InfoL.record_trace + let log m = InfoL.leaf (Info.Msg m) let name_tactic m t = InfoL.tag (Info.Tactic m) t |
