-
Notifications
You must be signed in to change notification settings - Fork 273
Make dirtyt traverse operands of OTHER instructions #7106
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
Codecov Report
@@ Coverage Diff @@
## develop #7106 +/- ##
===========================================
- Coverage 77.87% 77.87% -0.01%
===========================================
Files 1576 1576
Lines 181588 181587 -1
===========================================
- Hits 141413 141412 -1
Misses 40175 40175
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
8eb5e4a
to
e6fc280
Compare
|
||
void dirtyt::search_other(const goto_programt::instructiont &instruction) | ||
{ | ||
INVARIANT(instruction.is_other(), "instruction type must be OTHER"); |
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.
Pedantry but I would PRECONDITION
this because it is the caller's responsibility rather than a property of the algorithm.
} | ||
|
||
void dirtyt::find_dirty(const exprt &expr) | ||
{ | ||
if(expr.id()==ID_address_of) | ||
if(expr.id() == ID_address_of) |
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.
Don't change it on this PR but in general it is good to have refactoring in a separate commit to make reviewing and bisecting for regressions easier.
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.
Thank you for fixing dirtyt
for everyone. (And I'm with @martin-cs in that whitespace changes shouldn't be folded into the same commit.)
Addresses #7072