Skip to content

Disable CPROVER_memory references for Java #261

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
wants to merge 2 commits into from
Closed

Disable CPROVER_memory references for Java #261

wants to merge 2 commits into from

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Oct 20, 2016

#197 and https://github.com/diffblue/verification-engine-utils/issues/173 showed that in some circumstances, goto-symex's value-set analysis can reach the conclusion that an integer may be cast to a pointer, and so generate a reference to the __CPROVER_memory symbol. This is invalid in Java however, since the symbol is not defined and of course Java cannot express dereferencing a non-pointer type.

The attached patch disables generation of __CPROVER_memory references when a Java-typed entry point is found. I couldn't provide a test case against master at this time however because the examples in both of the above bugs now succeed against master, presumably because value-set analysis has been improved and is harder to confuse into introducing a pointer-to-int cast.

@smowton
Copy link
Contributor Author

smowton commented Dec 5, 2016

Closing due to orphaned branch -- replaced by #335

@smowton smowton closed this Dec 5, 2016
chrisr-diffblue added a commit to chrisr-diffblue/cbmc that referenced this pull request Aug 24, 2018
…unction-body-instructions-on-calls-vs

Control dependencies of function body instructions to function calls for variable sensitivity dependence graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants