X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita.ml;h=3c5bf8441555a33c98bd54d273616c4b018be067;hb=6be735c3c84ada4e190f05b059ca49a0656b50c9;hp=5d22f85d579f8aa9f15b2e1e27a7ab061f1e8f5c;hpb=d3f5be46ea4f2cee636e2e64c36a82f0dd5f51a9;p=helm.git diff --git a/matita/matita.ml b/matita/matita.ml index 5d22f85d5..3c5bf8441 100644 --- a/matita/matita.ml +++ b/matita/matita.ml @@ -149,6 +149,17 @@ let _ = (MatitaScript.current ())#proofMetasenv)); prerr_endline ("stack: " ^ Continuationals.Stack.pp (GrafiteTypes.get_stack (MatitaScript.current ())#grafite_status))); + addDebugItem "Print current proof term" + (fun _ -> + HLog.debug + (CicPp.ppterm + (match + (MatitaScript.current ())#grafite_status.GrafiteTypes.proof_status + with + | GrafiteTypes.No_proof -> (Cic.Implicit None) + | Incomplete_proof i -> let _,_,p,_ = i.GrafiteTypes.proof in p + | Proof p -> let _,_,p,_ = p in p + | Intermediate _ -> assert false))); (* addDebugItem "ask record choice" (fun _ -> HLog.debug (string_of_int @@ -170,6 +181,11 @@ let _ = CicNotation.set_active_notations (List.map fst (CicNotation.get_all_notations ()))); addDebugSeparator (); + addDebugItem "enable multiple disambiguation passes (default)" + (fun _ -> GrafiteDisambiguator.only_one_pass := false); + addDebugItem "enable only one disambiguation pass" + (fun _ -> GrafiteDisambiguator.only_one_pass := true); + addDebugSeparator (); addDebugItem "enable coercions hiding" (fun _ -> TermAcicContent.hide_coercions := true); addDebugItem "disable coercions hiding"