@@ -227,7 +227,6 @@ renamedt<exprt, L2> try_evaluate_pointer_comparisons(
227
227
return condition;
228
228
}
229
229
230
-
231
230
void goto_symext::symex_goto (statet &state)
232
231
{
233
232
PRECONDITION (state.reachable );
@@ -648,15 +647,18 @@ void goto_symext::symex_goto_retrace(statet &state)
648
647
649
648
// goto or next depends on input trace from user
650
649
bool choose_goto;
650
+ bool default_choice;
651
651
static int retrace_index = 0 ;
652
652
if (retrace_index < static_cast <int >(symex_config.retrace_input .size ()))
653
653
{
654
654
choose_goto = symex_config.retrace_input [retrace_index] == ' 1' ;
655
+ default_choice = false ;
655
656
retrace_index++;
656
657
}
657
658
else
658
659
{
659
- choose_goto = false ; // default
660
+ choose_goto = false ;
661
+ default_choice = true ;
660
662
}
661
663
662
664
// print goto choice
@@ -685,12 +687,13 @@ void goto_symext::symex_goto_retrace(statet &state)
685
687
auto nt_line = nt_dest.get_line ();
686
688
if (nt_line.empty ()) nt_line = " ?" ;
687
689
690
+ std::string mode = default_choice ? " Retrace* " : " Retrace " ;
688
691
std::string desc = choose_goto ? " 1/GOTO" : " 0/NEXT" ;
689
692
690
693
std::string padding_1 = std::string (abs (3 -cur_line.size ()), ' ' );
691
694
std::string padding_2 = std::string (abs (3 -t_line.size ()), ' ' );
692
695
693
- log.status () << " Retrace " << desc
696
+ log.status () << mode << desc
694
697
<< " at " << cur_file << " :" << cur_line << padding_1
695
698
<< " to " << t_file << " :" << t_line << padding_2
696
699
<< " (not " << nt_file << " :" << nt_line << " )"
@@ -782,7 +785,6 @@ void goto_symext::symex_goto_retrace(statet &state)
782
785
return ;
783
786
}
784
787
785
-
786
788
bool goto_symext::check_break (const irep_idt &loop_id, unsigned unwind)
787
789
{
788
790
// dummy implementation
0 commit comments