Skip to content

Commit a78d1cf

Browse files
oskgostrub
authored andcommitted
fix outline error printing
1 parent 3ee0c81 commit a78d1cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ecPrinting.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,10 +2085,10 @@ and pp_form ppe fmt f =
20852085
pp_form_r ppe (min_op_prec, `NonAssoc) fmt f
20862086

20872087
and pp_expr ppe fmt e =
2088-
let f = match (EcEnv.Memory.get_active_ss ppe.PPEnv.ppe_env) with
2089-
| None -> form_of_expr e
2090-
| Some m -> (ss_inv_of_expr m e).inv in
2091-
pp_form ppe fmt f
2088+
let m = match (EcEnv.Memory.get_active_ss ppe.PPEnv.ppe_env) with
2089+
| None -> EcIdent.create "&hr"
2090+
| Some m -> m in
2091+
pp_form ppe fmt (ss_inv_of_expr m e).inv
20922092

20932093
and pp_tuple_expr ppe fmt e =
20942094
match e.e_node with

src/phl/ecPhlOutline.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ let process_outline info tc =
9090
| UnificationError UE_InvalidRetInstr ->
9191
tc_error !!tc "Outline: return instruction must be an assign. Perhaps consider using the alias variant using `~`."
9292
| UnificationError (UE_DifferentProgramLengths (s1, s2)) ->
93-
tc_error !!tc "Outline: body's are different lengths\n%a ~ %a." (EcPrinting.pp_stmt ppe) s1 (EcPrinting.pp_stmt ppe) s2
93+
tc_error !!tc "Outline: bodies are different lengths\n%a ~ %a." (EcPrinting.pp_stmt ppe) s1 (EcPrinting.pp_stmt ppe) s2
9494
| UnificationError (UE_InstrNotInLockstep (i1, i2))->
9595
tc_error !!tc "outline: instructions not in sync\n%a ~ %a." (EcPrinting.pp_instr ppe) i1 (EcPrinting.pp_instr ppe) i2
9696
| UnificationError (UE_LvNotInLockstep (_lv1, _lv2))->

0 commit comments

Comments
 (0)