File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
regression/goto-instrument/unwind-assert1 Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11CORE
22main.c
33--unwind 10 --unwinding-assertions
4+ ^\[main.unwind.1\] line 5 unwinding assertion loop 0: SUCCESS$
45^EXIT=0$
56^SIGNAL=0$
67^VERIFICATION SUCCESSFUL$
78--
89^warning: ignoring
10+ ^\[main.\d+\] line 5 assertion: SUCCESS$
Original file line number Diff line number Diff line change @@ -153,8 +153,13 @@ void goto_unwindt::unwind(
153153 unwind_strategy == unwind_strategyt::ASSERT_ASSUME ||
154154 unwind_strategy == unwind_strategyt::ASSERT_PARTIAL)
155155 {
156+ const std::string loop_number = std::to_string (t->loop_number );
157+ source_locationt source_location_annotated = loop_head->source_location ();
158+ source_location_annotated.set_property_class (" unwind" );
159+ source_location_annotated.set_comment (
160+ " unwinding assertion loop " + loop_number);
156161 goto_programt::targett assertion = rest_program.add (
157- goto_programt::make_assertion (exit_cond, loop_head-> source_location () ));
162+ goto_programt::make_assertion (exit_cond, source_location_annotated ));
158163 unwind_log.insert (assertion, loop_head->location_number );
159164 }
160165
You can’t perform that action at this time.
0 commit comments