Skip to content

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

Merged
gauravpartha merged 2 commits into
masterfrom
if_stmt_readable_output
Nov 21, 2023
Merged

change translation of if-statement to not rely on optimizer for readable output#478
gauravpartha merged 2 commits into
masterfrom
if_stmt_readable_output

Conversation

@gauravpartha

Copy link
Copy Markdown
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
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