• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define SMAX __INT_MAX__
2 #define SMIN (-__INT_MAX__-1)
3 
le_smax(int a)4 int le_smax(int a) { return (a <= (SMAX - 1)) == (a != SMAX); }
gt_smax(int a)5 int gt_smax(int a) { return (a >  (SMAX - 1)) == (a == SMAX); }
6 
lt_smin(int a)7 int lt_smin(int a) { return (a <  (SMIN + 1)) == (a == SMIN); }
ge_smin(int a)8 int 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