github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/tests/code_quality/if.c (about) 1 void if_1() 2 { 3 int a = 5; 4 int b = 2; 5 int c = 4; 6 if (a > b) { 7 return; 8 } else if (c <= a) { 9 a = 0; 10 } 11 (void)(a); 12 (void)(b); 13 (void)(c); 14 15 int w = 2 > 1 ? -1 : 5; 16 int r; 17 r = 2 > 1 ? -1 : 5; 18 r = (2 > 1) ? -1 : 5; 19 r = (w > 1) ? -1 : 5; 20 r = w > 1 ? -1 : 5; 21 r = (w > 1) + (r == 4) ? -1 : 5; 22 if (w > 0) { 23 r = 3; 24 } 25 }