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

Merge Expr into RValue #959

Merged
merged 3 commits into from
Mar 11, 2024
Merged

Merge Expr into RValue #959

merged 3 commits into from
Mar 11, 2024

Conversation

xldenis
Copy link
Collaborator

@xldenis xldenis commented Mar 1, 2024

This finally removes the Expr type by combining it with RValue.

There is one remaining minor issue with the translation in program.rs: RValues translate to a single why3 Exp while borrows must be translated to several mlcfg statements. Either the type of RValue::to_why should be changed or maybe Borrow should be made a full statement instead?

@xldenis
Copy link
Collaborator Author

xldenis commented Mar 11, 2024

This also removes some duplicate spans around each assignment.

@xldenis xldenis marked this pull request as ready for review March 11, 2024 11:07
@xldenis xldenis enabled auto-merge March 11, 2024 11:07
@xldenis xldenis merged commit 0e2690c into master Mar 11, 2024
4 checks passed
@xldenis xldenis deleted the merge-expr-rval branch March 11, 2024 11:12
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.

1 participant