1 #include "check_debug.h"
3 #define min_t(type, x, y) ({ \
6 __min1 < __min2 ? __min1: __min2; })
10 static int options_write(void)
17 a
= min_t(int, b
+ c
, d
);
18 __smatch_compare(a
, d
);
19 __smatch_compare(a
, b
+ c
);
21 __smatch_compare(a
, b
+ c
);
22 a
++; /* argh... really one increment should mean a <= b + c */
24 __smatch_compare(a
, b
+ c
);
29 * check-name: smatch compare #12
30 * check-command: smatch -I.. sm_compare12.c
33 sm_compare12.c:18 options_write() a <= d
34 sm_compare12.c:19 options_write() a <= b + c
35 sm_compare12.c:21 options_write() a < b + c
36 sm_compare12.c:24 options_write() a <none> b + c