-
Notifications
You must be signed in to change notification settings - Fork 274
Crash in enforcing loop invariant contract due to imprecise alias analysis #6021
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
aws
Bugs or features of importance to AWS CBMC users
aws-high
bug
Code Contracts
Function and loop contracts
Comments
SaswatPadhi
added a commit
to padhi-forks/cbmc
that referenced
this issue
Apr 13, 2021
These regression tests currently fail due to imprecision in alias analysis (see: diffblue#6021). In future, we could either improve the alias analysis, or add manual assigns clause annotations on these loops and make sure that the arrays are correctly havoced.
SaswatPadhi
added a commit
to padhi-forks/cbmc
that referenced
this issue
Apr 13, 2021
These regression tests currently fail due to imprecision in alias analysis (see: diffblue#6021). In future, we could either improve the alias analysis, or add manual assigns clause annotations on these loops and make sure that the arrays are correctly havoced.
Based on discussions with @tautschnig and @mww-aws:
|
SaswatPadhi
added a commit
to padhi-forks/cbmc
that referenced
this issue
Apr 14, 2021
These regression tests currently fail due to imprecision in alias analysis (see: diffblue#6021). In future, we could either improve the alias analysis, or add manual assigns clause annotations on these loops and make sure that the arrays are correctly havoced.
Removed the The commit that referred to this issue added some |
jezhiggins
pushed a commit
to jezhiggins/cbmc
that referenced
this issue
Apr 23, 2021
These regression tests currently fail due to imprecision in alias analysis (see: diffblue#6021). In future, we could either improve the alias analysis, or add manual assigns clause annotations on these loops and make sure that the arrays are correctly havoced.
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
aws
Bugs or features of importance to AWS CBMC users
aws-high
bug
Code Contracts
Function and loop contracts
CBMC version: 99f1a2e
Operating system: 10.15.7
Test case:
Exact command line resulting in the issue:
What behaviour did you expect:
goto-instrument
would decompose the invariant contract to appropriate assertions and assumptions.What happened instead:
goto-instrument
crashes with a precondition violation:Additional Information:
In this case
local_may_alias.get
is imprecise and returns anunknown
expression for the pointer being modified (b->data[i]
).We should avoid the crash and show a warning / error regarding the imprecision of the alias analysis.
The text was updated successfully, but these errors were encountered: