]> matita.cs.unibo.it Git - helm.git/blobdiff - components/acic_procedural/proceduralOptimizer.ml
CicInspect: a function for counting the nodes of a term has been activated
[helm.git] / components / acic_procedural / proceduralOptimizer.ml
index ab15d70872aeccf94f99493eabc8511a577dbfb1..93cb165452d1996d5d375c9d274f1679e4b6e956 100644 (file)
@@ -261,7 +261,8 @@ and opt2_term g c t =
 let optimize_obj = function
    | C.Constant (name, Some bo, ty, pars, attrs) ->
       let g bo = 
-         Printf.eprintf "Optimized: %s\n" (Pp.ppterm bo);
+         Printf.eprintf "Optimized: %s\nNodes    : %u" 
+           (Pp.ppterm bo) (I.count_nodes 0 bo);
         let _ = H.get_type [] (C.Cast (bo, ty)) in
         C.Constant (name, Some bo, ty, pars, attrs)
       in