-
Notifications
You must be signed in to change notification settings - Fork 273
Add goto_trace_constant_pointer_exprt #5034
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
Add goto_trace_constant_pointer_exprt #5034
Conversation
These are derivatives of constant_exprt which give a pointer's numerical address in the usual constant value slot, but which also have an operand giving its symbolic value (e.g. "0xabcd0004" vs. "&some_object + 4"
cfef69c
to
58f8101
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5034 +/- ##
========================================
Coverage 69.48% 69.48%
========================================
Files 1310 1310
Lines 108813 108813
========================================
Hits 75609 75609
Misses 33204 33204
Continue to review full report at Codecov.
|
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 58f8101).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/123697861
@@ -292,4 +292,28 @@ void show_goto_trace( | |||
if(cmdline.isset("stack-trace")) \ | |||
options.set_option("stack-trace", true); | |||
|
|||
/// Variety of constant expression only used in the context of a GOTO trace, to | |||
/// give both the numeric value and the symbolic value of a pointer. | |||
class goto_trace_constant_pointer_exprt : public constant_exprt |
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.
I think this clarifies some things. But could you add what you put in the PR description as a documentation here to make it even clearer.
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 are derivatives of constant_exprt which give a pointer's numerical address in the usual
constant value slot, but which also have an operand giving its symbolic value (e.g. "0xabcd0004"
vs. "&some_object + 4"