module ZE = BagEnvironment
module ZS = BagSubstitution
+IFDEF TYPE THEN
+
type machine = {
i: int;
c: Z.lenv;
whd aux c m x
let ho_whd f st c t =
- if !G.ct >= level then log1 st "Now scanning" c t;
+IFDEF TRACE THEN
+ if !G.ct >= level then log1 st "Now scanning" c t
+ELSE () END;
ho_whd f c empty_machine t
let rec are_convertible f st a c m1 t1 m2 t2 =
(* L.warn "entering R.are_convertible"; *)
let rec aux m1 r1 m2 r2 =
(* L.warn "entering R.are_convertible_aux"; *)
+IFDEF TRACE THEN
let u, t = term_of_whdr r1, term_of_whdr r2 in
- if !G.ct >= level then log2 st "Now really converting" c u c t;
+ if !G.ct >= level then log2 st "Now really converting" c u c t
+ELSE () END;
match r1, r2 with
| Sort_ k1, Sort_ k2 ->
if k1 = k2 then f a else f false
else
C.list_fold_left2 f map a m1.s m2.s
-let are_convertible f st c u t =
- if !G.ct >= level then log2 st "Now converting" c u c t;
+let are_convertible f st c u t =
+IFDEF TRACE THEN
+ if !G.ct >= level then log2 st "Now converting" c u c t
+ELSE () END;
are_convertible f st true c empty_machine u empty_machine t
+
+END