Skip to content

Commit 9771f52

Browse files
committed
no user defined rule in op comparison
1 parent 7529e5b commit 9771f52

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ecTheoryReplay.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ let ty_compatible env ue (rtyvars, rty) (ntyvars, nty) =
6666
(* -------------------------------------------------------------------- *)
6767
let error_body exn b = if not b then raise exn
6868

69+
(* -------------------------------------------------------------------- *)
70+
let ri_compatible =
71+
{ EcReduction.full_red with delta_p = (fun _-> `Force); user = false }
72+
6973
(* -------------------------------------------------------------------- *)
7074
let constr_compatible exn env cs1 cs2 =
7175
error_body exn (List.length cs1 = List.length cs2);
@@ -122,8 +126,7 @@ let tydecl_compatible env tyd1 tyd2 =
122126
let expr_compatible exn env s e1 e2 =
123127
let f1 = EcFol.form_of_expr EcFol.mhr e1 in
124128
let f2 = EcSubst.subst_form s (EcFol.form_of_expr EcFol.mhr e2) in
125-
let ri = { EcReduction.full_red with delta_p = fun _-> `Force; } in
126-
error_body exn (EcReduction.is_conv ~ri:ri (EcEnv.LDecl.init env []) f1 f2)
129+
error_body exn (EcReduction.is_conv ~ri:ri_compatible (EcEnv.LDecl.init env []) f1 f2)
127130

128131
let get_open_oper exn env p tys =
129132
let oper = EcEnv.Op.by_path p env in
@@ -135,8 +138,7 @@ let get_open_oper exn env p tys =
135138
let rec oper_compatible exn env ob1 ob2 =
136139
match ob1, ob2 with
137140
| OP_Plain f1, OP_Plain f2 ->
138-
let ri = { EcReduction.full_red with delta_p = fun _-> `Force; } in
139-
error_body exn (EcReduction.is_conv ~ri:ri (EcEnv.LDecl.init env []) f1 f2)
141+
error_body exn (EcReduction.is_conv ~ri:ri_compatible (EcEnv.LDecl.init env []) f1 f2)
140142
| OP_Plain {f_node = Fop(p,tys)}, _ ->
141143
let ob1 = get_open_oper exn env p tys in
142144
oper_compatible exn env ob1 ob2

0 commit comments

Comments
 (0)