-
Notifications
You must be signed in to change notification settings - Fork 274
Difference in output of --enum-range-check
in goto-instrument
and cbmc
#6451
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
Labels
Comments
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jan 19, 2022
We already disabled these checks for assignment left-hand sides, but need to do the same for function calls. Else we'd be asserting validity before the value has been assigned. Fixes: diffblue#6586, diffblue#6451 Co-authored-by: Ilia Levin <[email protected]>
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jan 27, 2022
We already disabled these checks for assignment left-hand sides, but need to do the same for function calls. Else we'd be asserting validity before the value has been assigned. Fixes: diffblue#6586, diffblue#6451 Co-authored-by: Ilia Levin <[email protected]>
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jan 28, 2022
We already disabled these checks for assignment left-hand sides, but need to do the same for function calls. Else we'd be asserting validity before the value has been assigned. Fixes: diffblue#6586, diffblue#6451 Co-authored-by: Ilia Levin <[email protected]>
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 1, 2022
We already disabled these checks for assignment left-hand sides, but need to do the same for function calls. Else we'd be asserting validity before the value has been assigned. Fixes: diffblue#6586, diffblue#6451 Co-authored-by: Ilia Levin <[email protected]>
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 1, 2022
We already disabled these checks for assignment left-hand sides, but need to do the same for function calls. Else we'd be asserting validity before the value has been assigned. Fixes: diffblue#6586, diffblue#6451 Co-authored-by: Ilia Levin <[email protected]>
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 6, 2022
We already disabled these checks for assignment left-hand sides, but need to do the same for function calls. Else we'd be asserting validity before the value has been assigned. Fixes: diffblue#6586, diffblue#6451 Co-authored-by: Ilia Levin <[email protected]>
Closing as #6594 has been merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
CBMC version: 5.43.0
Operating system: Debian
Exact command line resulting in the issue:
~/cbmc/build/bin/cbmc out.gb --function bar
What behaviour did you expect: No violations
What happened instead: One violation
From other issues I've filed on here, I'm finding that while
goto-instrument
andcbmc
share many options, the behavior between them sometimes differs. Can we document these differences on the website?In this particular case, this is the problematic code:
The following works as expected, and all checks pass:
However, if I add the check with
goto-instrument
, I see a violation reported:Any thoughts on why this is happening? Is there a general recommendation about where I should add any check? Should I always add them in the
cbmc
call or are there times where it's beneficial to add them to thegoto-instrument
call?The text was updated successfully, but these errors were encountered: