module G = Options
module J = Marks
module E = Entity
-module S = Status
module Z = Bag
module ZO = BagOutput
module ZE = BagEnvironment
whd aux c m x
let ho_whd f st c t =
- if !G.trace >= level then log1 st.S.lenv "Now scanning" c t;
+ if !G.trace >= level then log1 st "Now scanning" c t;
ho_whd f c empty_machine t
let rec are_convertible f st a c m1 t1 m2 t2 =
let rec aux m1 r1 m2 r2 =
(* L.warn "entering R.are_convertible_aux"; *)
let u, t = term_of_whdr r1, term_of_whdr r2 in
- if !G.trace >= level then log2 st.S.lenv "Now really converting" c u c t;
+ if !G.trace >= level then log2 st "Now really converting" c u c t;
match r1, r2 with
| Sort_ h1, Sort_ h2 ->
if h1 = h2 then f a else f false
let f r = if r then push "!" h c m1 a1 l w1 else f false in
are_convertible f st a c m1 w1 m2 w2
(* we detect the AUT-QE reduction rule for type/prop inclusion *)
- | Sort_ _, Bind_ (a2, l2, w2, t2) when st.S.si ->
+ | Sort_ _, Bind_ (a2, l2, w2, t2) when !G.si ->
let m1, m2 = inc m1, inc m2 in
let f c = are_convertible f st a c m1 (term_of_whdr r1) m2 t2 in
push "nsi" f c m2 a2 l2 w2
C.list_fold_left2 f map a m1.s m2.s
let are_convertible f st c u t =
- if !G.trace >= level then log2 st.S.lenv "Now converting" c u c t;
+ if !G.trace >= level then log2 st "Now converting" c u c t;
are_convertible f st true c empty_machine u empty_machine t