-
Notifications
You must be signed in to change notification settings - Fork 277
Remove {f,F}orall_goto_functions #5615
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 #5615 +/- ##
===========================================
- Coverage 69.71% 69.71% -0.01%
===========================================
Files 1242 1242
Lines 100889 100889
===========================================
- Hits 70338 70334 -4
- Misses 30551 30555 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Yes please. Though I think it’d probably be a bit too ambitious to do them all in one PR |
a98d64a
to
7ba3cca
Compare
90bd35a
to
4cb985c
Compare
4cb985c
to
11d2947
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.
Thanks for these patches; sorry I missed this one.
@@ -173,7 +173,7 @@ class flow_insensitive_analysis_baset | |||
const goto_functionst &goto_functions); | |||
|
|||
bool fixedpoint( | |||
goto_functionst::function_mapt::const_iterator it, | |||
const goto_functionst::function_mapt::value_type &gf_entry, |
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.
This feels like it might be better as a goto_programt
?
} | ||
|
||
bool flow_insensitive_analysis_baset::fixedpoint( | ||
const goto_functionst::function_mapt::const_iterator it, | ||
const goto_functionst::function_mapt::value_type &gf_entry, |
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.
goto_programt
?
src/goto-checker/symex_coverage.cpp
Outdated
@@ -52,7 +52,7 @@ class goto_program_coverage_recordt : public coverage_recordt | |||
public: | |||
goto_program_coverage_recordt( | |||
const namespacet &ns, | |||
goto_functionst::function_mapt::const_iterator gf_it, | |||
const goto_functionst::function_mapt::value_type &gf_entry, |
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.
Feels a little cumbersome. Isn't this a goto_functiont
?
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.
These also require the name of the goto_functiont
. What could be done is passing that information as two arguments? That would probably make for are clearer interface. Let me fix this.
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.
Now done.
This was useful in the past, but with C++-11 we can use a ranged-for to avoid the iterator altogether (in all but the cases in goto-diff, where we now make the iterator explicit).
11d2947
to
e8e0193
Compare
This was useful in the past, but with C++-11 we can use a ranged-for to
avoid the iterator altogether (in all but the cases in goto-diff, where
we now make the iterator explicit).