File tree 2 files changed +7
-12
lines changed
regression/cbmc/multiple-goto-traces 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ activate-multi-line-match
5
5
^EXIT=10$
6
6
^SIGNAL=0$
7
7
VERIFICATION FAILED
8
- Trace for main\.assertion\.1:(\n.*){16 } assertion 4 \!= argc(\n.*){5}Trace for main\.assertion\.3:(\n.*){30 } assertion argc != 4(\n.*){5}Trace for main\.assertion\.4:(\n.*){44 } assertion argc \+ 1 != 5
8
+ Trace for main\.assertion\.1:(\n.*){22 } assertion 4 \!= argc(\n.*){5}Trace for main\.assertion\.3:(\n.*){36 } assertion argc != 4(\n.*){5}Trace for main\.assertion\.4:(\n.*){50 } assertion argc \+ 1 != 5
9
9
\*\* 3 of 4 failed
10
10
--
11
11
^warning: ignoring
Original file line number Diff line number Diff line change @@ -522,21 +522,16 @@ void show_full_goto_trace(
522
522
break ;
523
523
524
524
case goto_trace_stept::typet::ASSUME:
525
- if (! step.cond_value )
525
+ if (step.cond_value && step. pc -> is_assume () )
526
526
{
527
- out << ' \n ' ;
528
- out << " Violated assumption:" << ' \n ' ;
527
+ out << " \n " ;
528
+ out << " Assumption:\n " ;
529
+
529
530
if (!step.pc ->source_location .is_nil ())
530
531
out << " " << step.pc ->source_location << ' \n ' ;
531
532
532
- if (step.pc ->is_assume ())
533
- {
534
- out << " "
535
- << from_expr (ns, step.function_id , step.pc ->get_condition ())
536
- << ' \n ' ;
537
- }
538
-
539
- out << ' \n ' ;
533
+ out << " " << from_expr (ns, step.function_id , step.pc ->get_condition ())
534
+ << ' \n ' ;
540
535
}
541
536
break ;
542
537
You can’t perform that action at this time.
0 commit comments