Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return priority #33

Merged
merged 2 commits into from
Sep 13, 2024
Merged

Return priority #33

merged 2 commits into from
Sep 13, 2024

Conversation

mariaKt
Copy link
Contributor

@mariaKt mariaKt commented Sep 13, 2024

There was non determinism between the following two rules for the return statement,

  rule <k> return lv(I:Int, .List, T) ; => return v(L, T) ; ...</k>
       <store>... I |-> L ...</store>

  rule <k> return V:TypedVal ; ~> _ => V ~> K </k>
       <env> _ => E </env>
       <call-stack>... ListItem(frame(K, E)) => .List </call-stack>

where a TypedVal lv(Int, .List, Type) would match both. This PR adds the appropriate priority, and updates the reference outputs accordingly.

@mariaKt mariaKt requested a review from dwightguth September 13, 2024 18:19
@dwightguth dwightguth merged commit 584d93a into main Sep 13, 2024
1 check passed
@dwightguth dwightguth deleted the return-priority branch September 13, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants