-
Notifications
You must be signed in to change notification settings - Fork 273
Symex propagation: add output function #3527
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
Symex propagation: add output function #3527
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: d179716).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/93545942
@@ -780,3 +782,11 @@ void goto_symex_statet::print_backtrace(std::ostream &out) const | |||
} | |||
} | |||
} | |||
|
|||
void goto_symex_statet::output_propagation_map(std::ostream &out) |
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.
Documentation appreciated, otherwise there's a risk that this will be removed as unused in the next clean up.
d179716
to
f85c8b1
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: f85c8b1).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/94113136
I only have some minor comments |
@romainbrenguier what are they? :) |
@@ -67,6 +67,7 @@ class goto_symex_statet final | |||
|
|||
// Map L1 names to (L2) constants | |||
std::map<irep_idt, exprt> propagation; | |||
void output_propagation_map(std::ostream &); |
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 doesn't access any private field so it should be a static function (ideally taking a map as input).
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.
The field really ought to be private though (it's only used by goto_symext
functions, and could/should be hidden), so I'm inclined to leave this as-is
@@ -67,6 +67,7 @@ class goto_symex_statet final | |||
|
|||
// Map L1 names to (L2) constants | |||
std::map<irep_idt, exprt> propagation; | |||
void output_propagation_map(std::ostream &); |
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.
Add documentation saying this is used for debugging
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.
Added
Another debugging widget for symex