+ 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 (Sys.command ("/usr/bin/dot -Tpng -o" ^ ps ^ " " ^ filename));
+ ignore (Sys.command ("/usr/bin/display " ^ ps));
+ Sys.remove ps;
+ Sys.remove filename);
+