Skip to content

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

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

remi-delmas-3000
Copy link
Collaborator

Addresses #7072

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Merging #7106 (e6fc280) into develop (c2f99d4) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             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              
Impacted Files Coverage Δ
src/goto-instrument/contracts/cfg_info.h 84.21% <ø> (-3.47%) ⬇️
src/analyses/dirty.cpp 84.61% <100.00%> (+5.66%) ⬆️
src/analyses/dirty.h 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@remi-delmas-3000 remi-delmas-3000 changed the title Make dirtyt traverses operands of OTHER instructions Make dirtyt traverse operands of OTHER instructions Sep 7, 2022

void dirtyt::search_other(const goto_programt::instructiont &instruction)
{
INVARIANT(instruction.is_other(), "instruction type must be OTHER");
Copy link
Collaborator

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)
Copy link
Collaborator

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.

Copy link
Collaborator

@tautschnig tautschnig left a 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.)

@tautschnig tautschnig merged commit 2181146 into diffblue:develop Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants