]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/acic_procedural/proceduralTypes.ml
cicInspect: now we can choose not to count the Cic.Implicit constructors
[helm.git] / helm / software / components / acic_procedural / proceduralTypes.ml
index 3b6afc4c31ac0d54f18d58613c583311801e199d..9bb2e576c41d71f0c4e3fae06b11f64a8108af09 100644 (file)
@@ -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 ~implicit: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