Skip to content

Support for overflow_result-+ #2

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

Closed
rafaelsamenezes opened this issue Nov 19, 2024 · 1 comment · Fixed by esbmc/esbmc#2408
Closed

Support for overflow_result-+ #2

rafaelsamenezes opened this issue Nov 19, 2024 · 1 comment · Fixed by esbmc/esbmc#2408
Labels
esbmc Issues that might require touching ESBMC

Comments

@rafaelsamenezes
Copy link
Owner

rafaelsamenezes commented Nov 19, 2024

Apparently CBMC has a custom handler and structures to deal with overflows.

foo = checked_add(a, b) => foo = overflow_result-+(a,b)

overflow_result: {
  result: int,
  overflow: bool
}

Current solution for ESBMC: esbmc/esbmc@7867f5e

@rafaelsamenezes rafaelsamenezes added contract esbmc Issues that might require touching ESBMC and removed contract labels Nov 19, 2024
@rafaelsamenezes rafaelsamenezes added this to the First Contract milestone Nov 19, 2024
@tautschnig
Copy link

In case this helps: diffblue/cbmc#6903 is the PR where we introduced this feature in CBMC (includes a link to the issue explaining why we wanted this in the first place).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esbmc Issues that might require touching ESBMC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants