X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fhelena%2Fsrc%2Fcomplete_rg%2FcrgOutput.ml;h=7275dd462c604618e6d4242fb6b182134d0a44a7;hb=9935a5bf5bdc98ad01a2b0234cf4e612a62c939f;hp=6ccf47af0bc9e0a240a2494a89b59374ba0b6d44;hpb=87e51ef39b7dc9eaeff2cf319038c8aaca1aeb91;p=helm.git diff --git a/helm/software/helena/src/complete_rg/crgOutput.ml b/helm/software/helena/src/complete_rg/crgOutput.ml index 6ccf47af0..7275dd462 100644 --- a/helm/software/helena/src/complete_rg/crgOutput.ml +++ b/helm/software/helena/src/complete_rg/crgOutput.ml @@ -9,12 +9,12 @@ \ / This software is distributed as is, NO WARRANTY. V_______________________________________________________________ *) -module P = Printf +module KP = Printf module U = NUri module C = Cps module L = Log -module J = Marks +module P = Marks module N = Layer module E = Entity module D = Crg @@ -109,35 +109,35 @@ let print_counters f c = in let items = c.eabsts + c.eabbrs in let nodes = c.nodes + c.xnodes in - let marks = J.marks () in - L.warn level (P.sprintf "Intermediate representation summary (complete_rg)"); - L.warn level (P.sprintf " Total entry items: %7u" items); - L.warn level (P.sprintf " Declaration items: %7u" c.eabsts); - L.warn level (P.sprintf " Definition items: %7u" c.eabbrs); - L.warn level (P.sprintf " Total term items: %7u" terms); - L.warn level (P.sprintf " Sort items: %7u" c.tsorts); - L.warn level (P.sprintf " Local reference items: %7u" c.tlrefs); - L.warn level (P.sprintf " Global reference items: %7u" c.tgrefs); - L.warn level (P.sprintf " Explicit Cast items: %7u" c.tcasts); - L.warn level (P.sprintf " Application items: %7u" c.tappls); - L.warn level (P.sprintf " Abstraction items: %7u" c.tabsts); - L.warn level (P.sprintf " Abbreviation items: %7u" c.tabbrs); - L.warn level (P.sprintf " Ambiguous abstractions: %7u" marks); - L.warn level (P.sprintf " Global Int. Complexity: %7u" c.nodes); - L.warn level (P.sprintf " + Abbreviation nodes: %7u" nodes); + let marks = P.marks () in + L.warn level (KP.sprintf "Intermediate representation summary (complete_rg)"); + L.warn level (KP.sprintf " Total entry items: %7u" items); + L.warn level (KP.sprintf " Declaration items: %7u" c.eabsts); + L.warn level (KP.sprintf " Definition items: %7u" c.eabbrs); + L.warn level (KP.sprintf " Total term items: %7u" terms); + L.warn level (KP.sprintf " Sort items: %7u" c.tsorts); + L.warn level (KP.sprintf " Local reference items: %7u" c.tlrefs); + L.warn level (KP.sprintf " Global reference items: %7u" c.tgrefs); + L.warn level (KP.sprintf " Explicit Cast items: %7u" c.tcasts); + L.warn level (KP.sprintf " Application items: %7u" c.tappls); + L.warn level (KP.sprintf " Abstraction items: %7u" c.tabsts); + L.warn level (KP.sprintf " Abbreviation items: %7u" c.tabbrs); + L.warn level (KP.sprintf " Ambiguous abstractions: %7u" marks); + L.warn level (KP.sprintf " Global Int. Complexity: %7u" c.nodes); + L.warn level (KP.sprintf " + Abbreviation nodes: %7u" nodes); f () (* term/environment pretty printer ******************************************) let pp_attrs out a = - let f s b = if b then out (P.sprintf "%s;" s) else out (P.sprintf "~%s;" s) in + let f s b = if b then out (KP.sprintf "%s;" s) else out (KP.sprintf "~%s;" s) in E.name ignore f a; - out (P.sprintf "+%i;" a.E.n_apix) + out (KP.sprintf "+%i;" a.E.n_apix) let rec pp_term out st = function - | D.TSort (a, l) -> pp_attrs out a; out (P.sprintf "*%u" l) - | D.TLRef (a, i ) -> pp_attrs out a; out (P.sprintf "#%u" i) - | D.TGRef (a, u) -> pp_attrs out a; out (P.sprintf "$") + | D.TSort (a, l) -> pp_attrs out a; out (KP.sprintf "*%u" l) + | D.TLRef (a, i ) -> pp_attrs out a; out (KP.sprintf "#%u" i) + | D.TGRef (a, u) -> pp_attrs out a; out (KP.sprintf "$") | D.TCast (a, x, y) -> pp_attrs out a; out "<"; pp_term out st x; out ">."; pp_term out st y | D.TAppl (a, x, y) -> pp_attrs out a; out "("; pp_term out st x; out ")."; pp_term out st y | D.TBind (a, x, y) -> pp_attrs out a; pp_bind out st x; out "."; pp_term out st y