X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fbasic_ag%2FbagOutput.ml;fp=helm%2Fsoftware%2Flambda-delta%2Fbasic_ag%2FbagOutput.ml;h=17bfe06596472933fb8a1522009d97fff2624a79;hb=75d417a2bb12a56052dd520c513c789fd9256252;hp=3eb96a2d56e877c16c94af49c5d7602d90961dbc;hpb=7f29d7713208180a1b09b3f903c1b5fd8ec4c896;p=helm.git diff --git a/helm/software/lambda-delta/basic_ag/bagOutput.ml b/helm/software/lambda-delta/basic_ag/bagOutput.ml index 3eb96a2d5..17bfe0659 100644 --- a/helm/software/lambda-delta/basic_ag/bagOutput.ml +++ b/helm/software/lambda-delta/basic_ag/bagOutput.ml @@ -12,9 +12,9 @@ module P = Printf module F = Format module U = NUri -module C = Cps module L = Log module H = Hierarchy +module O = Output module B = Bag type counters = { @@ -100,10 +100,8 @@ let print_counters f c = L.warn (P.sprintf " Total binder locations: %7u" locations); f () -let indexes = ref false - let res l id = - if !indexes then P.sprintf "#%u" l else id + if !O.indexes then P.sprintf "#%u" l else id let rec pp_term c frm = function | B.Sort h -> @@ -117,7 +115,7 @@ let rec pp_term c frm = function | Some (id, _) -> F.fprintf frm "@[%s@]" id | None -> F.fprintf frm "@[#%u@]" i in - if !indexes then f None else B.get f c i + if !O.indexes then f None else B.get f c i | B.GRef s -> F.fprintf frm "@[$%s@]" (U.string_of_uri s) | B.Cast (u, t) -> F.fprintf frm "@[{%a}.%a@]" (pp_term c) u (pp_term c) t