File tree 2 files changed +8
-1
lines changed
regression/goto-instrument/unwind-assert1
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
CORE
2
2
main.c
3
3
--unwind 10 --unwinding-assertions
4
+ ^\[main.unwind.1\] line 5 unwinding assertion loop 0: SUCCESS$
4
5
^EXIT=0$
5
6
^SIGNAL=0$
6
7
^VERIFICATION SUCCESSFUL$
7
8
--
8
9
^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(
153
153
unwind_strategy == unwind_strategyt::ASSERT_ASSUME ||
154
154
unwind_strategy == unwind_strategyt::ASSERT_PARTIAL)
155
155
{
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);
156
161
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 ));
158
163
unwind_log.insert (assertion, loop_head->location_number );
159
164
}
160
165
You can’t perform that action at this time.
0 commit comments