X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fmatita%2Fmatita.ml;h=3f08dd1c8f85f2410bda535ee3767e75eaa62c18;hb=72d451f039c8118ab76e17546bc41426477757b9;hp=69295bd7e0793af4c3792092db418e239a60353b;hpb=3b5b254f2faa600a14a837e95f94f953dc9959c7;p=helm.git diff --git a/helm/matita/matita.ml b/helm/matita/matita.ml index 69295bd7e..3f08dd1c8 100644 --- a/helm/matita/matita.ml +++ b/helm/matita/matita.ml @@ -78,7 +78,12 @@ let _ = | Incomplete_proof ((proof, goal) as status) -> sequents_viewer#load_sequents status; sequents_viewer#goto_sequent goal - | _ -> () + | Proof proof -> + prerr_endline "sequents_viewer#load_logo_with_qed (no proof)"; () + | No_proof -> + prerr_endline "sequents_viewer#load_logo (no proof)"; () + | Intermediate _ -> + assert false (* only the engine may be in this state *) in script#addObserver sequents_observer; script#addObserver browser_observer @@ -97,6 +102,15 @@ let _ = let oc = open_out "env.dump" in CicEnvironment.dump_to_channel oc; close_out oc); + addDebugItem "load environment from \"env.dump\"" (fun _ -> + let ic = open_in "env.dump" in + CicEnvironment.restore_from_channel ic; + close_in ic); + addDebugItem "dump universes" (fun _ -> + List.iter (fun (u,_,g) -> + prerr_endline (UriManager.string_of_uri u); + CicUniv.print_ugraph g) (CicEnvironment.list_obj ()) + ); addDebugItem "print selected terms" (fun () -> let i = ref 0 in List.iter