Skip to content

Commit

Permalink
IL.TheE translation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
702fbtngus committed Jul 31, 2024
1 parent 993d5c4 commit 95922e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spectec/src/il2al/translate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,11 @@ and translate_exp exp =
)
| Il.ProjE (e, 0) -> translate_exp e
| Il.OptE inner_exp -> optE (Option.map translate_exp inner_exp) ~at:at ~note:note
| Il.TheE e -> chooseE (translate_exp e) ~at:at ~note:note
| Il.TheE e -> (
match note.it with
| Il.IterT (typ, _) -> chooseE (translate_exp e) ~at:at ~note:typ
| _ -> error_exp exp "TheE"
)
(* Yet *)
| _ -> yetE (Il.Print.string_of_exp exp) ~at:at ~note:note

Expand Down

0 comments on commit 95922e0

Please sign in to comment.