1 uniform half4 colorGreen, colorRed;
2 uniform half unknownInput; // = 1
8 bool return_on_both_sides() {
9 if (unknownInput == 1) return true; else return true;
12 bool for_inside_body() {
13 for (int x=0; x<=10; ++x) { return true; }
16 bool after_for_body() {
17 for (int x=0; x<=10; ++x) { simple(); }
21 bool for_with_double_sided_conditional_return() {
22 for (int x=0; x<=10; ++x) {
23 if (unknownInput == 1) return true; else return true;
27 bool if_else_chain() {
28 if (unknownInput == 1)
30 else if (unknownInput == 2)
32 else if (unknownInput == 3)
34 else if (unknownInput == 4)
40 half4 main(float2 coords) {
42 return_on_both_sides() &&
45 for_with_double_sided_conditional_return() &&
46 if_else_chain() ? colorGreen : colorRed;