-
Notifications
You must be signed in to change notification settings - Fork 274
Handle functions with mangled names in contract replacement #6363
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
Handle functions with mangled names in contract replacement #6363
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #6363 +/- ##
========================================
Coverage 75.90% 75.90%
========================================
Files 1515 1515
Lines 164004 164005 +1
========================================
+ Hits 124483 124484 +1
Misses 39521 39521
Continue to review full report at Codecov.
|
ffe52c3
to
ffb0fc8
Compare
ffb0fc8
to
b043c7e
Compare
b043c7e
to
790ad51
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.
LGTM. Thanks! :D
790ad51
to
2d5166c
Compare
Signed-off-by: Felipe R. Monteiro <[email protected]>
2d5166c
to
ec9ac5f
Compare
Signed-off-by: Felipe R. Monteiro [email protected]
In some cases, we use
source_location
to retrieve information (e.g., function name). However, if we are consuming agoto_programt
, but also care about the name of that function, then it must be passed separately. We should not try to infer it via some means, such as the source location. In this case,apply_function_contract
must also consume afunction_id
, so we can properly retrieve the symbol for the caller function.