1 #define SMAX __INT_MAX__ 2 #define SMIN (-__INT_MAX__-1) 3 le_smax(int a)4int le_smax(int a) { return (a <= (SMAX - 1)) == (a != SMAX); } gt_smax(int a)5int gt_smax(int a) { return (a > (SMAX - 1)) == (a == SMAX); } 6 lt_smin(int a)7int lt_smin(int a) { return (a < (SMIN + 1)) == (a == SMIN); } ge_smin(int a)8int ge_smin(int a) { return (a >= (SMIN + 1)) == (a != SMIN); } 9 10 /* 11 * check-name: canonical-cmpe-minmax 12 * check-command: test-linearize -Wno-decl $file 13 * 14 * check-output-ignore 15 * check-output-returns: 1 16 */ 17