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

Fix encoding of side-effects inside if and ternary in BMC #14216

Merged
merged 1 commit into from
May 15, 2023

Conversation

leonardoalt
Copy link
Member

Fixes #14211

uint x;
uint y = (++x < 3) ? ++x : --x;

assert(y == x); // should hold;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert(y == x); // should hold;
assert(y == x); // should hold

@ekpyron ekpyron merged commit 9804085 into develop May 15, 2023
@ekpyron ekpyron deleted the fix_bmc_side_effects_in_statement branch May 15, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

SMTChecker does not handle increment expression in if statement condition correctly
3 participants