X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Facic_procedural%2FproceduralTypes.ml;h=b7f3e31b9f87b2cf9fc6ded31f63c350152331b9;hb=dc1902ae1e458e5120af63d880dbd08255bef238;hp=3b6afc4c31ac0d54f18d58613c583311801e199d;hpb=5b45f78ed4293ebbe8cc73ad925bca11a300d021;p=helm.git diff --git a/helm/software/components/acic_procedural/proceduralTypes.ml b/helm/software/components/acic_procedural/proceduralTypes.ml index 3b6afc4c3..b7f3e31b9 100644 --- a/helm/software/components/acic_procedural/proceduralTypes.ml +++ b/helm/software/components/acic_procedural/proceduralTypes.ml @@ -280,6 +280,8 @@ let rec count_step a = function and count_steps a = List.fold_left count_step a +let count = I.count_nodes ~meta:false + let rec count_node a = function | Note _ | Inductive _ @@ -291,13 +293,11 @@ let rec count_node a = function | ClearBody _ -> a | Cut (_, t, _) | LetIn (_, t, _) - | Apply (t, _) -> I.count_nodes a (H.cic t) + | Apply (t, _) -> count a (H.cic t) | Rewrite (_, t, _, p, _) | Elim (t, _, p, _) | Cases (t, p, _) - | Change (t, _, _, p, _) -> - let a = I.count_nodes a (H.cic t) in - I.count_nodes a (H.cic p) + | Change (t, _, _, p, _) -> let a = count a (H.cic t) in count a (H.cic p) | Branch (ss, _) -> List.fold_left count_nodes a ss and count_nodes a = List.fold_left count_node a