ctl_while.c (342B)
1 /* A while loop with a top-of-loop condition test. volatile bound forces the 2 * compare + conditional branch and the unconditional back-edge to be emitted 3 * so both round-trip through `as`. Counts 0..42 stepping by 6 => 42. */ 4 int test_main(void) { 5 volatile int limit = 42; 6 int v = 0; 7 while (v < limit) { 8 v += 6; 9 } 10 return v; 11 }