Skip to content

Commit 84170df

Browse files
authored
Merge pull request #2728 from tautschnig/symex-assertions-debug
goto-symex: Print (at debug level) the current assertion being converted
2 parents 156faa1 + cf4c317 commit 84170df

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/goto-symex/symex_target_equation.cpp

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,8 @@ void symex_target_equationt::convert_assignments(
410410
decision_procedure.conditional_output(
411411
decision_procedure.debug(),
412412
[&step](messaget::mstreamt &mstream) {
413-
std::ostringstream oss;
414-
step.output(oss);
415-
mstream << oss.str() << messaget::eom;
413+
step.output(mstream);
414+
mstream << messaget::eom;
416415
});
417416

418417
decision_procedure.set_to_true(step.cond_expr);
@@ -459,9 +458,8 @@ void symex_target_equationt::convert_guards(
459458
prop_conv.conditional_output(
460459
prop_conv.debug(),
461460
[&step](messaget::mstreamt &mstream) {
462-
std::ostringstream oss;
463-
step.output(oss);
464-
mstream << oss.str() << messaget::eom;
461+
step.output(mstream);
462+
mstream << messaget::eom;
465463
});
466464

467465
try
@@ -494,9 +492,8 @@ void symex_target_equationt::convert_assumptions(
494492
prop_conv.conditional_output(
495493
prop_conv.debug(),
496494
[&step](messaget::mstreamt &mstream) {
497-
std::ostringstream oss;
498-
step.output(oss);
499-
mstream << oss.str() << messaget::eom;
495+
step.output(mstream);
496+
mstream << messaget::eom;
500497
});
501498

502499
try
@@ -530,9 +527,8 @@ void symex_target_equationt::convert_goto_instructions(
530527
prop_conv.conditional_output(
531528
prop_conv.debug(),
532529
[&step](messaget::mstreamt &mstream) {
533-
std::ostringstream oss;
534-
step.output(oss);
535-
mstream << oss.str() << messaget::eom;
530+
step.output(mstream);
531+
mstream << messaget::eom;
536532
});
537533

538534
try
@@ -565,9 +561,8 @@ void symex_target_equationt::convert_constraints(
565561
decision_procedure.conditional_output(
566562
decision_procedure.debug(),
567563
[&step](messaget::mstreamt &mstream) {
568-
std::ostringstream oss;
569-
step.output(oss);
570-
mstream << oss.str() << messaget::eom;
564+
step.output(mstream);
565+
mstream << messaget::eom;
571566
});
572567

573568
try
@@ -626,6 +621,13 @@ void symex_target_equationt::convert_assertions(
626621
{
627622
if(step.is_assert())
628623
{
624+
prop_conv.conditional_output(
625+
prop_conv.debug(),
626+
[&step](messaget::mstreamt &mstream) {
627+
step.output(mstream);
628+
mstream << messaget::eom;
629+
});
630+
629631
implies_exprt implication(
630632
assumption,
631633
step.cond_expr);

0 commit comments

Comments
 (0)