X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcic_unification%2FcoercGraph.ml;h=9f953ccf8f07b370cce20ab074a5f255c93fd8a9;hb=53b957fd45c47b20d698503c9bb67e2ef3ab98e1;hp=9dfd6613d458016f25f0b520bd488f461acfe4e7;hpb=dcdbb979433a61e2ef2842d96604098728824416;p=helm.git diff --git a/helm/software/components/cic_unification/coercGraph.ml b/helm/software/components/cic_unification/coercGraph.ml index 9dfd6613d..9f953ccf8 100644 --- a/helm/software/components/cic_unification/coercGraph.ml +++ b/helm/software/components/cic_unification/coercGraph.ml @@ -135,13 +135,9 @@ let source_of t = | Some _ -> assert false (* t must be a coercion not to funclass *) ;; -let generate_dot_file () = +let generate_dot_file fmt = let l = CoercDb.to_list (CoercDb.dump ()) in let module Pp = GraphvizPp.Dot in - let buf = Buffer.create 10240 in - let fmt = Format.formatter_of_buffer buf in - Pp.header ~node_attrs:["fontsize", "9"; "width", ".4"; "height", ".4"] - ~edge_attrs:["fontsize", "10"] fmt; if List.exists (fun (_,t,_) -> CoercDb.string_of_carr t = "Type") l then Format.fprintf fmt "subgraph cluster_rest { style=\"filled\"; color=\"white\"; label=<%s>; labelloc=\"b\"; %s; }\n" @@ -227,8 +223,6 @@ let generate_dot_file () = fmt) ul) l; - Pp.trailer fmt; - Buffer.contents buf ;; let coerced_arg l =