Skip to content

Commit 6f51513

Browse files
committed
Print (at debug level) the current SSA step being converted
1 parent b0fce60 commit 6f51513

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

src/goto-symex/symex_target_equation.cpp

+42
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,17 @@ void symex_target_equationt::convert_assignments(
403403
for(const auto &step : SSA_steps)
404404
{
405405
if(step.is_assignment() && !step.ignore)
406+
{
407+
decision_procedure.conditional_output(
408+
decision_procedure.debug(),
409+
[&step](messaget::mstreamt &mstream) {
410+
std::ostringstream oss;
411+
step.output(oss);
412+
mstream << oss.str() << messaget::eom;
413+
});
414+
406415
decision_procedure.set_to_true(step.cond_expr);
416+
}
407417
}
408418
}
409419

@@ -443,6 +453,14 @@ void symex_target_equationt::convert_guards(
443453
step.guard_literal=const_literal(false);
444454
else
445455
{
456+
prop_conv.conditional_output(
457+
prop_conv.debug(),
458+
[&step](messaget::mstreamt &mstream) {
459+
std::ostringstream oss;
460+
step.output(oss);
461+
mstream << oss.str() << messaget::eom;
462+
});
463+
446464
try
447465
{
448466
step.guard_literal = prop_conv.convert(step.guard);
@@ -470,6 +488,14 @@ void symex_target_equationt::convert_assumptions(
470488
step.cond_literal=const_literal(true);
471489
else
472490
{
491+
prop_conv.conditional_output(
492+
prop_conv.debug(),
493+
[&step](messaget::mstreamt &mstream) {
494+
std::ostringstream oss;
495+
step.output(oss);
496+
mstream << oss.str() << messaget::eom;
497+
});
498+
473499
try
474500
{
475501
step.cond_literal = prop_conv.convert(step.cond_expr);
@@ -498,6 +524,14 @@ void symex_target_equationt::convert_goto_instructions(
498524
step.cond_literal=const_literal(true);
499525
else
500526
{
527+
prop_conv.conditional_output(
528+
prop_conv.debug(),
529+
[&step](messaget::mstreamt &mstream) {
530+
std::ostringstream oss;
531+
step.output(oss);
532+
mstream << oss.str() << messaget::eom;
533+
});
534+
501535
try
502536
{
503537
step.cond_literal = prop_conv.convert(step.cond_expr);
@@ -525,6 +559,14 @@ void symex_target_equationt::convert_constraints(
525559
{
526560
if(!step.ignore)
527561
{
562+
decision_procedure.conditional_output(
563+
decision_procedure.debug(),
564+
[&step](messaget::mstreamt &mstream) {
565+
std::ostringstream oss;
566+
step.output(oss);
567+
mstream << oss.str() << messaget::eom;
568+
});
569+
528570
try
529571
{
530572
decision_procedure.set_to_true(step.cond_expr);

0 commit comments

Comments
 (0)