]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/helena/src/basic_ag/bagType.ml
- conditional compilation continues ...
[helm.git] / helm / software / helena / src / basic_ag / bagType.ml
index 1f47b60ddc4a005fac7ebeaff5f5362abaa74c3a..f92919ec791956ca4fa1e51f538994ef2ff8c4e4 100644 (file)
@@ -21,6 +21,8 @@ module ZO = BagOutput
 module ZE = BagEnvironment
 module ZR = BagReduction
 
+IFDEF TYPE THEN
+
 (* Internal functions *******************************************************)
 
 let level = 4
@@ -45,7 +47,9 @@ let mk_gref u l =
 
 let rec b_type_of err f st c x = 
 (*   L.warn "Entering T.b_type_of"; *)
-   if !G.ct >= level then log1 st "Now checking" c x;
+IFDEF TRACE THEN
+   if !G.ct >= level then log1 st "Now checking" c x
+ELSE () END;
    match x with
    | Z.Sort h                   ->
       let h = H.apply h in f x (Z.Sort h) 
@@ -93,7 +97,9 @@ let rec b_type_of err f st c x =
    | Z.Appl (v, t)              ->
       let f xv vv xt tt = function
         | ZR.Abst w -> 
-           if !G.ct > level then L.log st ZO.specs level (L.t_items1 "Just scanned" c w);
+IFDEF TRACE THEN
+           if !G.ct > level then L.log st ZO.specs level (L.t_items1 "Just scanned" c w)
+ELSE () END;
            let f a =                
 (*            L.warn (Printf.sprintf "Convertible: %b" a); *)
               if a then f (S.sh2 v xv t xt x Z.appl) (Z.appl xv tt)
@@ -118,3 +124,5 @@ let rec b_type_of err f st c x =
 (* Interface functions ******************************************************)
 
 and type_of err f st c x = b_type_of err f st c x
+
+END