-
Notifications
You must be signed in to change notification settings - Fork 274
Make __CPROVER_allocated_memory work with non-POD type objects #3595
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
Conversation
c9d0774
to
cc9e551
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: cc9e551).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/95163014
src/analyses/goto_check.cpp
Outdated
@@ -1017,14 +1017,14 @@ goto_checkt::address_check(const exprt &address, const exprt &size) | |||
if(flags.is_unknown() || flags.is_dynamic_heap()) | |||
{ | |||
conditions.push_back(conditiont( | |||
not_exprt(deallocated(address, ns)), | |||
or_exprt(allocs, not_exprt(deallocated(address, ns))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allocs
seems like it should be a list of allocations, not a boolean, how about renaming it in_bounds_of_some_alloc
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a second commit doing the suggested renaming, thanks!
The precision of local_bitvector_analysist is not sufficient to rule out several cases introduced in 732ce2a.
This is a Boolean expressions, and the name should convey this.
cc9e551
to
8eac552
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 8eac552).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/95246160
The precision of local_bitvector_analysist is not sufficient to rule out several
cases introduced in 732ce2a.