File tree 2 files changed +9
-9
lines changed
regression/cbmc/destructors
src/ansi-c/goto-conversion
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
main.c
3
3
--unwind 10 --show-goto-functions
4
4
activate-multi-line-match
5
- (?P<comment_block>\/\/ [0-9]+ file main\.c line [0-9]+ function main)[\s]*6: .*newAlloc4 : struct tag-test[\s]*(?P>comment_block)[\s]*.*newAlloc4 := \{ 4 \}[\s]*(?P>comment_block)[\s]*.*newAlloc6 : struct tag-test[\s]*(?P>comment_block)[\s]*.*newAlloc6 := \{ 6 \}[\s]*(?P>comment_block)[\s]*.*newAlloc7 : struct tag-test[\s]*(?P>comment_block)[\s]*.*newAlloc7 := \{ 7 \}[\s]*(?P>comment_block)[\s]*.*DEAD main::1::2::2::newAlloc7[\s]*(?P>comment_block)[\s]*.*DEAD main::1::2::2::newAlloc6[\s]*(?P>comment_block)[\s]*.*DEAD main::1::2::2::newAlloc4[\s]*(?P>comment_block)[\s]*.*ASSIGN going_to ::nested_if := true[\s]*(?P>comment_block)[\s]*.*GOTO 3
5
+ (?P<comment_block>\/\/ [0-9]+ file main\.c line [0-9]+ function main)[\s]*6: .*newAlloc4 : struct tag-test[\s]*(?P>comment_block)[\s]*.*newAlloc4 := \{ 4 \}[\s]*(?P>comment_block)[\s]*.*newAlloc6 : struct tag-test[\s]*(?P>comment_block)[\s]*.*newAlloc6 := \{ 6 \}[\s]*(?P>comment_block)[\s]*.*newAlloc7 : struct tag-test[\s]*(?P>comment_block)[\s]*.*newAlloc7 := \{ 7 \}[\s]*(?P>comment_block)[\s]*.*DEAD main::1::2::2::newAlloc7[\s]*(?P>comment_block)[\s]*.*DEAD main::1::2::2::newAlloc6[\s]*(?P>comment_block)[\s]*.*DEAD main::1::2::2::newAlloc4[\s]*(?P>comment_block)[\s]*.*ASSIGN __CPROVER_going_to ::nested_if := true[\s]*(?P>comment_block)[\s]*.*GOTO 3
6
6
^EXIT=0$
7
7
^SIGNAL=0$
8
8
--
@@ -28,7 +28,7 @@ Checks for:
28
28
// 49 file main.c line 39 function main
29
29
DEAD main::1::2::2::newAlloc4
30
30
// 50 file main.c line 39 function main
31
- ASSIGN going_to ::nested_if := true
31
+ ASSIGN __CPROVER_going_to ::nested_if := true
32
32
// 51 file main.c line 39 function main
33
33
GOTO 3
34
34
Original file line number Diff line number Diff line change @@ -127,27 +127,27 @@ void goto_convertt::build_declaration_hops(
127
127
// }
128
128
// to code which looks like -
129
129
// {
130
- // __CPROVER_bool going_to ::user_label;
131
- // going_to ::user_label = false;
130
+ // __CPROVER_bool __CPROVER_going_to ::user_label;
131
+ // __CPROVER_going_to ::user_label = false;
132
132
// statement_block_a();
133
133
// if(...)
134
134
// {
135
- // going_to ::user_label = true;
135
+ // __CPROVER_going_to ::user_label = true;
136
136
// goto scope_x_label;
137
137
// }
138
138
// statement_block_b();
139
139
// scope_x_label:
140
140
// int x;
141
- // if going_to ::user_label goto scope_y_label:
141
+ // if __CPROVER_going_to ::user_label goto scope_y_label:
142
142
// x = 0;
143
143
// statement_block_c();
144
144
// scope_y_label:
145
145
// int y;
146
- // if going_to ::user_label goto user_label:
146
+ // if __CPROVER_going_to ::user_label goto user_label:
147
147
// y = 0;
148
148
// statement_block_d();
149
149
// user_label:
150
- // going_to ::user_label = false;
150
+ // __CPROVER_going_to ::user_label = false;
151
151
// statement_block_e();
152
152
// }
153
153
@@ -162,7 +162,7 @@ void goto_convertt::build_declaration_hops(
162
162
label_location.set_hide ();
163
163
const symbolt &new_flag = get_fresh_aux_symbol (
164
164
bool_typet{},
165
- " going_to" ,
165
+ CPROVER_PREFIX " going_to" ,
166
166
id2string (inputs.label ),
167
167
label_location,
168
168
inputs.mode ,
You can’t perform that action at this time.
0 commit comments