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

change translation of if-statement to not rely on optimizer for readable output #478

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

gauravpartha
Copy link
Contributor

Previously, the translated condition in the if-statement translation was computed by the Scala expression allStateAssms ==> transalteExpInWand(cond). In the standard case, allStateAssms is set to true and Carbon's Boogie optimizer gets rid of the implication's left hand side.

Now, the translated condition is computed such that if allStateAssms is true, then the left hand side is removed direcly without requiring the optimizer. This produces more readable output when doing experiments where the optimizer is switched off.

@gauravpartha gauravpartha changed the title change translation of if-statement to not rely on optimizer change translation of if-statement to not rely on optimizer for readable output Nov 21, 2023
@gauravpartha gauravpartha merged commit feede75 into master Nov 21, 2023
1 check passed
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.

None yet

1 participant