Skip to content

Commit

Permalink
fix ite in argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lfrenot committed Feb 18, 2025
1 parent d384388 commit d8421c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sail_lean_backend/pretty_print_lean.ml
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ and doc_exp (as_monadic : bool) ctx (E_aux (e, (l, annot)) as full_exp) =
let env = env_of_tannot annot in
let d_of_arg arg =
let arg_monadic = effectful (effect_of arg) in
let wrap = match arg with E_aux (E_let _, _) | E_aux (E_internal_plet _, _) -> parens | _ -> fun x -> x in
let wrap = match arg with E_aux (E_let _, _) | E_aux (E_internal_plet _, _) | E_aux ( E_if _, _) -> parens | _ -> fun x -> x in
wrap_with_left_arrow arg_monadic (wrap (doc_exp arg_monadic ctx arg))
in
let d_of_field (FE_aux (FE_fexp (field, e), _) as fexp) =
Expand Down

0 comments on commit d8421c6

Please sign in to comment.