X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fbasic_ag%2FbagOutput.ml;h=763f61af41f62acd3de5fad75584834437490eae;hb=cf01ca6479346febcdf120e483ca9ce89d53e301;hp=eb3bf05d90bea375409a45151bebe76c936b11c7;hpb=79684e8bd0f54b5c88fff981366bd8c78dd0fbe9;p=helm.git diff --git a/helm/software/lambda-delta/basic_ag/bagOutput.ml b/helm/software/lambda-delta/basic_ag/bagOutput.ml index eb3bf05d9..763f61af4 100644 --- a/helm/software/lambda-delta/basic_ag/bagOutput.ml +++ b/helm/software/lambda-delta/basic_ag/bagOutput.ml @@ -13,6 +13,7 @@ module P = Printf module F = Format module U = NUri module L = Log +module Y = Entity module H = Hierarchy module O = Output module B = Bag @@ -62,21 +63,14 @@ and count_term f c = function let f c = count_term_binder f c b in count_term f c t -let count_entry_binder f c = function - | B.Abst w -> +let count_entity f c = function + | _, _, Y.Abst w -> let c = {c with eabsts = succ c.eabsts} in count_term f c w - | B.Abbr v -> + | _, _, Y.Abbr v -> let c = {c with eabbrs = succ c.eabbrs} in count_term f c v - | B.Void -> f c - -let count_entry f c (_, _, b) = - count_entry_binder f c b - -let count_unit f c = function - | Some entry -> count_entry f c entry - | None -> f c + | _, _, Y.Void -> assert false let print_counters f c = let terms =