-
Notifications
You must be signed in to change notification settings - Fork 273
introduce 'called_function' into goto traces [blocks: #3126] #3276
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
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.
Looks ok to me except clang-format will have it's complaints.
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.
A few nitpicks
src/goto-programs/goto_trace.cpp
Outdated
@@ -483,7 +485,7 @@ void show_full_goto_trace( | |||
function_depth--; | |||
if(options.show_function_calls) | |||
{ | |||
out << "\n#### Function return: " << step.function_identifier | |||
out << "\n#### Function return" |
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.
Why not step.function
?
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.
ok
src/goto-programs/goto_trace.h
Outdated
@@ -86,6 +86,8 @@ class goto_trace_stept | |||
enum class assignment_typet { STATE, ACTUAL_PARAMETER }; | |||
assignment_typet assignment_type; | |||
|
|||
// the instruction that created this step |
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.
Clarify that calls are outside a function and returns inside it?
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.
ok
src/goto-programs/xml_goto_trace.cpp
Outdated
"display_name", id2string(symbol.display_name())); | ||
xml_function.set_attribute( | ||
"identifier", id2string(symbol.name)); | ||
xml_function.new_element()=xml(symbol.location); |
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.
style (here and below)
src/goto-programs/xml_goto_trace.cpp
Outdated
xmlt &xml_function=xml_call_return.new_element("function"); | ||
xml_function.set_attribute( | ||
"display_name", id2string(symbol.display_name())); | ||
xml_function.set_attribute( | ||
"identifier", id2string(step.function_identifier)); | ||
"identifier", id2string(symbol.name)); |
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.
step.function
a little 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.
ok
94624ae
to
cac61bb
Compare
The previous 'function_identifier' is now 'called_function', which is a better name as it denotes the identifier of the function that is called.
cac61bb
to
05eb134
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.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: 05eb134).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90559178
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
This will support removing the function identifier from goto instructions.