-
Notifications
You must be signed in to change notification settings - Fork 274
CONTRACTS: Moving check_frame_conditions
to instrument_assigns_clauset
.
#6643
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
CONTRACTS: Moving check_frame_conditions
to instrument_assigns_clauset
.
#6643
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #6643 +/- ##
===========================================
+ Coverage 76.79% 76.82% +0.02%
===========================================
Files 1582 1582
Lines 182600 182767 +167
===========================================
+ Hits 140231 140403 +172
+ Misses 42369 42364 -5
Continue to review full report at Codecov.
|
cc69ce1
to
550317b
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.
Only a few clarifications before approval.
@remi-delmas-3000 I'd create one commit for each one of these two main bullet points. |
5277182
to
75ea974
Compare
The `check_frame_conditions` method and related methods have been moved from `contracts.cpp` and `utils.cpp` to `instrument_assigns_clause.cpp`. No functionality or performance impact expected.
75ea974
to
222d266
Compare
I addressed all comments, removed dead code, and removed the changes to local static detection. I think it is stable now. |
To further encapsulate the the assigns clause checking algorithm in
instrument_assigns_clause.cpp
check_frame_conditions
method and related functions have been moved fromcontracts.cpp
andutils.cpp
toinstrument_assigns_clause.cpp
.track_static_locals
method is now available in two different versions:track_static_locals(dest)
which tracks all local static variables touched directly or indirectly by the whole instrumented function (for function contracts)track_static_locals_from_calls(begin, end, dest)
which tracks all local static variables declared by functions that are called between the begin and end instructions (for loop contracts).No functionality or performance impact expected.