]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/helena/src/basic_ag/bagType.ml
- the disambiguation of unified binders continues
[helm.git] / helm / software / helena / src / basic_ag / bagType.ml
index 4a3d37eccdbcf32e111b3cc9d826a15a40b0d19f..e8e40452ff8f0283cc351e2ff19fa15386fc1924 100644 (file)
@@ -26,9 +26,9 @@ module ZR = BagReduction
 
 let level = 3
 
-let log1 s c t =
-   let sc, st = s ^ " in the envireonment", "the term" in
-   L.log ZO.specs level (L.et_items1 sc c st t)
+let log1 st s c t =
+   let s1, s2 = s ^ " in the envireonment", "the term" in
+   L.log st ZO.specs level (L.et_items1 s1 c s2 t)
 
 let error1 err st c t =
    let sc = "In the envireonment" in
@@ -46,7 +46,7 @@ let mk_gref u l =
 
 let rec b_type_of err f st c x = 
 (*   L.warn "Entering T.b_type_of"; *)
-   if !G.trace >= level then log1 "Now checking" c x;
+   if !G.trace >= level then log1 st.S.lenv "Now checking" c x;
    match x with
    | Z.Sort h                    ->
       let h = H.apply h in f x (Z.Sort h) 
@@ -94,7 +94,7 @@ 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.trace > level then L.log ZO.specs (succ level) (L.t_items1 "Just scanned" c w);
+           if !G.trace > level then L.log st.S.lenv ZO.specs (succ level) (L.t_items1 "Just scanned" c w);
            let f a =                
 (*            L.warn (Printf.sprintf "Convertible: %b" a); *)
               if a then f (W.sh2 v xv t xt x Z.appl) (Z.appl xv tt)