@@ -400,10 +400,23 @@ void symex_target_equationt::convert(
400
400
void symex_target_equationt::convert_assignments (
401
401
decision_proceduret &decision_procedure) const
402
402
{
403
+ const unsigned verbosity =
404
+ decision_procedure.get_message_handler ().get_verbosity ();
405
+ const bool debug_output = verbosity >= messaget::M_DEBUG;
406
+
403
407
for (const auto &step : SSA_steps)
404
408
{
405
409
if (step.is_assignment () && !step.ignore )
410
+ {
411
+ if (debug_output)
412
+ {
413
+ std::ostringstream oss;
414
+ step.output (oss);
415
+ decision_procedure.debug () << oss.str () << messaget::eom;
416
+ }
417
+
406
418
decision_procedure.set_to_true (step.cond_expr );
419
+ }
407
420
}
408
421
}
409
422
@@ -437,12 +450,22 @@ void symex_target_equationt::convert_decls(
437
450
void symex_target_equationt::convert_guards (
438
451
prop_convt &prop_conv)
439
452
{
453
+ const unsigned verbosity = prop_conv.get_message_handler ().get_verbosity ();
454
+ const bool debug_output = verbosity >= messaget::M_DEBUG;
455
+
440
456
for (auto &step : SSA_steps)
441
457
{
442
458
if (step.ignore )
443
459
step.guard_literal =const_literal (false );
444
460
else
445
461
{
462
+ if (debug_output)
463
+ {
464
+ std::ostringstream oss;
465
+ step.output (oss);
466
+ prop_conv.debug () << oss.str () << messaget::eom;
467
+ }
468
+
446
469
try
447
470
{
448
471
step.guard_literal = prop_conv.convert (step.guard );
@@ -462,6 +485,9 @@ void symex_target_equationt::convert_guards(
462
485
void symex_target_equationt::convert_assumptions (
463
486
prop_convt &prop_conv)
464
487
{
488
+ const unsigned verbosity = prop_conv.get_message_handler ().get_verbosity ();
489
+ const bool debug_output = verbosity >= messaget::M_DEBUG;
490
+
465
491
for (auto &step : SSA_steps)
466
492
{
467
493
if (step.is_assume ())
@@ -470,6 +496,13 @@ void symex_target_equationt::convert_assumptions(
470
496
step.cond_literal =const_literal (true );
471
497
else
472
498
{
499
+ if (debug_output)
500
+ {
501
+ std::ostringstream oss;
502
+ step.output (oss);
503
+ prop_conv.debug () << oss.str () << messaget::eom;
504
+ }
505
+
473
506
try
474
507
{
475
508
step.cond_literal = prop_conv.convert (step.cond_expr );
@@ -490,6 +523,9 @@ void symex_target_equationt::convert_assumptions(
490
523
void symex_target_equationt::convert_goto_instructions (
491
524
prop_convt &prop_conv)
492
525
{
526
+ const unsigned verbosity = prop_conv.get_message_handler ().get_verbosity ();
527
+ const bool debug_output = verbosity >= messaget::M_DEBUG;
528
+
493
529
for (auto &step : SSA_steps)
494
530
{
495
531
if (step.is_goto ())
@@ -498,6 +534,13 @@ void symex_target_equationt::convert_goto_instructions(
498
534
step.cond_literal =const_literal (true );
499
535
else
500
536
{
537
+ if (debug_output)
538
+ {
539
+ std::ostringstream oss;
540
+ step.output (oss);
541
+ prop_conv.debug () << oss.str () << messaget::eom;
542
+ }
543
+
501
544
try
502
545
{
503
546
step.cond_literal = prop_conv.convert (step.cond_expr );
@@ -519,12 +562,23 @@ void symex_target_equationt::convert_goto_instructions(
519
562
void symex_target_equationt::convert_constraints (
520
563
decision_proceduret &decision_procedure) const
521
564
{
565
+ const unsigned verbosity =
566
+ decision_procedure.get_message_handler ().get_verbosity ();
567
+ const bool debug_output = verbosity >= messaget::M_DEBUG;
568
+
522
569
for (const auto &step : SSA_steps)
523
570
{
524
571
if (step.is_constraint ())
525
572
{
526
573
if (!step.ignore )
527
574
{
575
+ if (debug_output)
576
+ {
577
+ std::ostringstream oss;
578
+ step.output (oss);
579
+ decision_procedure.debug () << oss.str () << messaget::eom;
580
+ }
581
+
528
582
try
529
583
{
530
584
decision_procedure.set_to_true (step.cond_expr );
0 commit comments