-
Notifications
You must be signed in to change notification settings - Fork 284
Avoid shadowing in custom bitvector analysis [blocks: #2310] #3354
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
allredj
left a comment
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: 59318d8).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90958232
| for(const auto &pointer : pointer_set) | ||
| if(pointer.type().id()==ID_pointer) | ||
| result.insert(dereference_exprt(pointer)); | ||
| for(const auto &p : pointer_set) |
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'd have preferred not using undescriptive, one-letter variable names.
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.
Thanks for forcing me not to be lazy :-) - I've gone for "alias", and also renamed "pointer_set" to "alias_set."
Remove uninformative temporaries and rename locals.
59318d8 to
df10896
Compare
allredj
left a comment
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: df10896).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90981869
Remove uninformative temporaries and rename locals.