let optimize_obj = function
| C.Constant (name, Some bo, ty, pars, attrs) ->
+ let count_nodes = I.count_nodes ~implicit:false 0 in
let st, c = {info = ""; dummy = ()}, [] in
let bo, ty = H.cic_bc c bo, H.cic_bc c ty in
let g st bo =
Ut.pp_term prerr_string [] c bo; prerr_newline ()
end;
(* let _ = H.get_type "opt" [] (C.Cast (bo, ty)) in *)
- let nodes = Printf.sprintf "Optimized nodes: %u" (I.count_nodes 0 bo) in
+ let nodes = Printf.sprintf "Optimized nodes: %u" (count_nodes bo) in
let st = info st nodes in
L.time_stamp ("PO: DONE " ^ name);
C.Constant (name, Some bo, ty, pars, attrs), st.info
in
L.time_stamp ("PO: OPTIMIZING " ^ name);
if !debug then Printf.eprintf "BEGIN: %s\n" name;
- let nodes = Printf.sprintf "Initial nodes: %u" (I.count_nodes 0 bo) in
+ let nodes = Printf.sprintf "Initial nodes: %u" (count_nodes bo) in
wrap g (info st nodes) c bo
| obj -> obj, ""