Skip to content

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
jcp19 pushed a commit to viperproject/gobra-book that referenced this pull request Dec 13, 2024
* chore: add overflow section

* chore: fixed abs overflow

viperproject/gobra#795
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.

3 participants