Skip to content

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

Merged

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Dec 4, 2018

Another debugging widget for symex

Copy link
Contributor

@allredj allredj left a 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)
Copy link
Member

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.

@smowton smowton force-pushed the smowton/feature/symex-propagation-output branch from d179716 to f85c8b1 Compare December 9, 2018 12:01
Copy link
Contributor

@allredj allredj left a 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

@romainbrenguier
Copy link
Contributor

I only have some minor comments

@smowton
Copy link
Contributor Author

smowton commented Dec 10, 2018

@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 &);
Copy link
Contributor

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).

Copy link
Contributor Author

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 &);
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@smowton smowton merged commit 3f6675c into diffblue:develop Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants