-
Notifications
You must be signed in to change notification settings - Fork 273
Pointers to struct members #235
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
Comments
Problem is that in the double-deref ( |
Candidate fix in https://github.com/smowton/cbmc/tree/symex_deref_clean_struct_member, which in the case of a constant pointer offset returns an arbitrarily nested series of member-of and index-of expressions if possible, rather than resorting to byte-extract right away. That fixes the testcase posted: Before, using the debug printing at
After:
And with slight extension of the test program it can also generate expressions like:
It doesn't however fix the general case where a real reinterpret case has happened, so byte-extract is perhaps the only reasonable way to express what has happened, and then further pointers are followed. At present One other possible worrry: this of course introduces |
May I have a pull request for this, please? |
Submitted #283 |
Merged. |
…th_j2 Introducing '-j2' option to Travis builds.
…-interval-unit-tests Fix broken interval unit tests
Added test regression/cbmc/struct9 with 47170bd.
The text was updated successfully, but these errors were encountered: