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 bounds of singed integers for overflow checking #795

Merged
merged 3 commits into from
Nov 16, 2024

Conversation

jcp19
Copy link
Contributor

@jcp19 jcp19 commented Nov 15, 2024

The current bounds specified for singed integer types are off. This PR fixes that.

The added test is rejected in the current state of Gobra, even though the program should definitely pass.

Reported by @gottschali

@jcp19 jcp19 requested a review from Dspil November 15, 2024 16:29
@Dspil Dspil enabled auto-merge (squash) November 15, 2024 16:43
@jcp19 jcp19 disabled auto-merge November 16, 2024 08:57
@jcp19 jcp19 merged commit 97f0988 into master Nov 16, 2024
2 of 3 checks passed
@jcp19 jcp19 deleted the fix-bounds-singed-ints branch November 16, 2024 09:51
gottschali added a commit to viperproject/gobra-book that referenced this pull request Nov 18, 2024
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.

2 participants