File tree 3 files changed +21
-2
lines changed
regression/cbmc/set-property-inline1
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change
1
+ static inline short inc (short x )
2
+ {
3
+ return x + 1 ;
4
+ }
5
+
6
+ void main ()
7
+ {
8
+ short z ;
9
+ inc (z );
10
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ --property inc.overflow.1 --property inc.overflow.2 --slice-formula --signed-overflow-check --conversion-check
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ VERIFICATION FAILED
7
+ \[inc\.overflow\.2\] line 3 arithmetic overflow on signed type conversion in \(signed short int\)\(\(signed int\)x \+ 1\): FAILURE
8
+ \[inc\.overflow\.1\] line 3 arithmetic overflow on signed \+ in \(signed int\)x \+ 1: SUCCESS
9
+ --
10
+ ^warning: ignoring
Original file line number Diff line number Diff line change @@ -109,8 +109,7 @@ void set_properties(
109
109
property_set.insert (properties.begin (), properties.end ());
110
110
111
111
Forall_goto_functions (it, goto_functions)
112
- if (!it->second .is_inlined ())
113
- set_properties (it->second .body , property_set);
112
+ set_properties (it->second .body , property_set);
114
113
115
114
if (!property_set.empty ())
116
115
throw invalid_command_line_argument_exceptiont (
You can’t perform that action at this time.
0 commit comments