X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fmatita.ml;h=2cbb9a9a1350cd2303712637c3705d42c22e21e3;hb=54b20096e701de9f3fb8e10fe2106ab2f6e0d2bf;hp=07f7f900ae9c1f727b97b797b3eab362445ed165;hpb=55b82bd235d82ff7f0a40d980effe1efde1f5073;p=helm.git diff --git a/helm/software/matita/matita.ml b/helm/software/matita/matita.ml index 07f7f900a..2cbb9a9a1 100644 --- a/helm/software/matita/matita.ml +++ b/helm/software/matita/matita.ml @@ -141,6 +141,17 @@ let _ = (UriManager.name_of_uri u ^ ":" ^ CoercDb.name_of_carr s ^ " -> " ^ CoercDb.name_of_carr t)) (CoercDb.to_list ())); + addDebugItem "show coercions graph" (fun _ -> + let str = CoercGraph.generate_dot_file () in + let filename, oc = Filename.open_temp_file "xx" ".dot" in + output_string oc str; + close_out oc; + let ps = Filename.temp_file "yy" ".png" in + ignore (Unix.system ("/usr/bin/dot -Tpng -o" ^ ps ^ " " ^ filename)); + ignore (Unix.system ("/usr/bin/display " ^ ps)); + Sys.remove ps; + Sys.remove filename); + addDebugItem "print top-level grammar entries" CicNotationParser.print_l2_pattern; addDebugItem "dump moo to stderr" (fun _ ->