1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5int scratchVar = 0; 6bool test_flat_b() { 7 return true; 8} 9bool test_if_b() { 10 if (colorGreen.y > 0.0) { 11 return true; 12 } else { 13 ++scratchVar; 14 } 15 ++scratchVar; 16 return false; 17} 18bool test_else_b() { 19 if (colorGreen.y == 0.0) { 20 return false; 21 } else { 22 return true; 23 } 24} 25bool test_loop_if_b() { 26 for (int x = 0;x <= 1; ++x) { 27 if (colorGreen.y == 0.0) { 28 return false; 29 } else { 30 return true; 31 } 32 } 33 ++scratchVar; 34 return true; 35} 36vec4 main() { 37 return ((test_flat_b() && test_if_b()) && test_else_b()) && test_loop_if_b() ? colorGreen : colorRed; 38} 39