1 #include <stdio.h> 2 3 tight_loop_locals_only(int iterations)4int tight_loop_locals_only(int iterations) 5 { 6 unsigned int a = 1, b = 0, c = 0; 7 for (unsigned int i = 0; i < iterations; ++i) 8 { 9 a *= 20; 10 b += 1; 11 c += 5; 12 a += b * c; 13 if (a % 2 == 0) 14 { 15 b *= 3; 16 b -= 1; 17 c *= 4; 18 c ^= 0xe5a; 19 } 20 else 21 { 22 b *= 5; 23 b ^= 0xff7; 24 c *= 3; 25 c ^= 0x1f5; 26 } 27 } 28 return a; 29 } 30 main()31int main() 32 { 33 printf("%d\n", tight_loop_locals_only(2000)); 34 } 35