Skip to content

Commit c6e5a24

Browse files
committed
don't default to mhr
1 parent 0a4f725 commit c6e5a24

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/ecCoreFol.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,7 @@ let rec form_of_expr e =
10101010
f_op op tys e.e_ty
10111011

10121012
| Eapp (ef, es) ->
1013-
let f_app' f = f_app (List.hd f) (List.tl f) e.e_ty in
1014-
f_app' ((form_of_expr ef)::(List.map form_of_expr es))
1013+
f_app (form_of_expr ef) (List.map form_of_expr es) e.e_ty
10151014

10161015
| Elet (lpt, e1, e2) ->
10171016
f_let lpt (form_of_expr e1) (form_of_expr e2)

src/ecTyping.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,13 +1593,14 @@ let form_of_opselect
15931593
((args @ List.map (curry f_local) xs, []), xs) in
15941594

15951595
let flam = List.map (snd_map gtty) flam in
1596-
let me = odfl mhr (EcEnv.Memory.get_active env) in
1597-
let body = ss_inv_of_expr me body in
1596+
let body = match (EcEnv.Memory.get_active env) with
1597+
| None -> form_of_expr body
1598+
| Some me -> (ss_inv_of_expr me body).inv in
15981599
let lcmap = List.map2 (fun (x, _) y -> (x, y)) bds tosub in
15991600
let subst = Fsubst.f_subst_init ~freshen:true () in
16001601
let subst =
16011602
List.fold_left (fun s -> curry (Fsubst.f_bind_local s)) subst lcmap
1602-
in (f_lambda flam (Fsubst.f_subst subst body.inv), args)
1603+
in (f_lambda flam (Fsubst.f_subst subst body), args)
16031604

16041605
| (`Op _ | `Lc _ | `Pv _) as sel -> let op = match sel with
16051606
| `Op (p, tys) -> f_op p tys ty
@@ -1609,7 +1610,8 @@ let form_of_opselect
16091610

16101611
in (op, args)
16111612

1612-
in f_app op args codom
1613+
in
1614+
f_app op args codom
16131615

16141616
(* -------------------------------------------------------------------- *)
16151617

0 commit comments

Comments
 (0)