1uniform half4 colorGreen, colorRed;
2uniform half unknownInput; // = 1
3
4bool simple() {
5    return true;
6}
7
8bool return_on_both_sides() {
9    if (unknownInput == 1) return true; else return true;
10}
11
12bool for_inside_body() {
13    for (int x=0; x<=10; ++x) { return true; }
14}
15
16bool after_for_body() {
17    for (int x=0; x<=10; ++x) { simple(); }
18    return true;
19}
20
21bool for_with_double_sided_conditional_return() {
22    for (int x=0; x<=10; ++x) {
23        if (unknownInput == 1) return true; else return true;
24    }
25}
26
27bool if_else_chain() {
28    if (unknownInput == 1)
29        return true;
30    else if (unknownInput == 2)
31        return false;
32    else if (unknownInput == 3)
33        return true;
34    else if (unknownInput == 4)
35        return false;
36    else
37        return true;
38}
39
40bool conditional_inside_while_loop() {
41    while (unknownInput == 123) {
42        return true;
43    }
44}
45
46bool inside_do_loop() {
47    do {
48        return true;
49    } while (true);
50}
51
52bool inside_while_loop() {
53    while (true) {
54        return true;
55    }
56}
57
58bool after_do_loop() {
59    do {
60        break;
61    } while (true);
62    return true;
63}
64
65bool after_while_loop() {
66    while (true) {
67        break;
68    }
69    return true;
70}
71
72bool switch_with_all_returns() {
73    switch (int(unknownInput)) {
74        case 1:  return true;
75        case 2:  return true;
76        default: return true;
77    }
78}
79
80bool switch_only_default() {
81    switch (int(unknownInput)) {
82        default: return true;
83    }
84}
85
86bool switch_fallthrough() {
87    switch (int(unknownInput)) {
88        case 1:  return true;
89        case 2:
90        default: return true;
91    }
92}
93
94bool switch_fallthrough_twice() {
95    switch (int(unknownInput)) {
96        case 1:
97        case 2:
98        default: return true;
99    }
100}
101
102bool switch_with_break_in_loop() {
103    switch (int(unknownInput)) {
104        case 1:  for (int x=0; x<=10; ++x) { break; }
105        default: return true;
106    }
107}
108
109bool switch_with_continue_in_loop() {
110    switch (int(unknownInput)) {
111        case 1:  for (int x=0; x<=10; ++x) { continue; }
112        default: return true;
113    }
114}
115
116bool switch_with_if_that_returns() {
117    switch (int(unknownInput)) {
118        case 1:  if (unknownInput == 123) return true; else return true;
119        default: return true;
120    }
121}
122
123bool switch_with_one_sided_if_then_fallthrough() {
124    switch (int(unknownInput)) {
125        case 1:  if (unknownInput == 123) return true;
126        default: return true;
127    }
128}
129
130half4 main(float2 coords) {
131    return  simple() &&
132            return_on_both_sides() &&
133            for_inside_body() &&
134            after_for_body() &&
135            for_with_double_sided_conditional_return() &&
136            if_else_chain() &&
137            conditional_inside_while_loop() &&
138            inside_do_loop() &&
139            inside_while_loop() &&
140            after_do_loop() &&
141            after_while_loop() &&
142            switch_with_all_returns() &&
143            switch_only_default() &&
144            switch_fallthrough() &&
145            switch_fallthrough_twice() &&
146            switch_with_break_in_loop() &&
147            switch_with_continue_in_loop() &&
148            switch_with_if_that_returns() &&
149            switch_with_one_sided_if_then_fallthrough() ? colorGreen : colorRed;
150}
151