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 overflow- encoding #1560

Merged
merged 1 commit into from
Dec 24, 2023
Merged

Fix overflow- encoding #1560

merged 1 commit into from
Dec 24, 2023

Conversation

mikhailramalho
Copy link
Member

The overflow checks for a - b is now (a - b) <= a

Fixed #1559

The overflow checks for a - b is now (a - b) <= a

Signed-off-by: Mikhail R. Gadelha <mikhail@igalia.com>
@mikhailramalho
Copy link
Member Author

Also, overflow_25_unsigned/main.c already checks for a failure results, so no need to add another test case for that.

Copy link
Contributor

@lucasccordeiro lucasccordeiro left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this PR, @mikhailramalho.

Shall we run it over the SV-COMP benchmarks?

@mikhailramalho
Copy link
Member Author

mikhailramalho commented Dec 24, 2023 via email

@lucasccordeiro lucasccordeiro merged commit e0587ec into master Dec 24, 2023
10 checks passed
@lucasccordeiro lucasccordeiro deleted the fix-overflow-sub branch December 24, 2023 19:40
@lucasccordeiro
Copy link
Contributor

Thanks, @mikhailramalho.

@lucasccordeiro
Copy link
Contributor

@mikhailramalho: Can I ask you whether you have run this PR over the SV-COMP benchmarks?

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.

Wrong results when checking sub unsigned underflow
2 participants