File tree 5 files changed +44
-0
lines changed
regression/goto-instrument
5 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ int x ;
3
+ int y ;
4
+
5
+ int main ()
6
+ {
7
+ if (x ) {
8
+ y = 1 ;
9
+ }
10
+
11
+ return 0 ;
12
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ --slice-global-inits
4
+ x = 0;$
5
+ y = 0;$
6
+ ^EXIT=0$
7
+ ^SIGNAL=0$
8
+ --
9
+ ^warning: ignoring
Original file line number Diff line number Diff line change
1
+
2
+ int x ;
3
+ int y ;
4
+
5
+ void func (int a , int b ) {}
6
+
7
+ int main ()
8
+ {
9
+ func (x , y );
10
+
11
+ return 0 ;
12
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ --slice-global-inits
4
+ x = 0;$
5
+ y = 0;$
6
+ ^EXIT=0$
7
+ ^SIGNAL=0$
8
+ --
9
+ ^warning: ignoring
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ void slice_global_inits(goto_modelt &goto_model)
77
77
{
78
78
const codet &code=i_it->code ;
79
79
code.visit (visitor);
80
+ const exprt &expr=i_it->guard ;
81
+ expr.visit (visitor);
80
82
}
81
83
}
82
84
You can’t perform that action at this time.
0 commit comments