Skip to content

goto-symex: Print (at debug level) the current assertion being converted #2728

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
merged 2 commits into from
Sep 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/goto-symex/symex_target_equation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,14 @@ void symex_target_equationt::convert_assertions(
{
if(step.is_assert())
{
prop_conv.conditional_output(
prop_conv.debug(),
[&step](messaget::mstreamt &mstream) {
std::ostringstream oss;
step.output(oss);

Choose a reason for hiding this comment

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

Why not just step.output(mstream)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed! I have added a second commit cleaning this up across all similar bits of code in this file.

mstream << oss.str() << messaget::eom;
});

implies_exprt implication(
assumption,
step.cond_expr);
Expand Down