2 uniform vec4 bigColor;
\r
3 uniform vec4 bigColor1_1;
\r
4 uniform vec4 bigColor1_2;
\r
5 uniform vec4 bigColor1_3;
\r
6 uniform vec4 bigColor2;
\r
7 uniform vec4 bigColor3;
\r
8 uniform vec4 bigColor4;
\r
9 uniform vec4 bigColor5;
\r
10 uniform vec4 bigColor6;
\r
11 uniform vec4 bigColor7;
\r
12 uniform vec4 bigColor8;
\r
14 varying vec4 BaseColor;
\r
55 vec4 color = BaseColor;
\r
59 if (color.x < 0.33) {
\r
60 color += vec4(0.33);
\r
63 if (color.x < 0.66) {
\r
64 color += vec4(0.66);
\r
68 color += vec4(0.33);
\r
73 while (color.x < d) {
\r
78 while (color.z < d) {
\r
79 color += bigColor1_1;
\r
83 color += bigColor1_1;
\r
87 while (color.x < 42.0) {
\r
91 // While (complicated-conditional)
\r
92 while (color.w < d2 && color.y < d3) {
\r
93 color += bigColor1_2;
\r
96 // While (multi-exit)
\r
97 while (color.z < d3) {
\r
98 color += bigColor1_3;
\r
101 color += bigColor1_3;
\r
105 for (int i = 0; i < Count; ++i) {
\r
106 color += bigColor2;
\r
111 color += bigColor3;
\r
112 } while (color.x < d2);
\r
115 for (int i = 0; i < 42; ++i) {
\r
119 // For (static) flow-control
\r
120 for (int i = 0; i < 100; ++i) {
\r
121 if (color.z < 20.0)
\r
125 if (color.w < 20.0)
\r
126 if (color.z > color.y)
\r
130 // For (static) flow-control with latch merge
\r
131 for (int i = 0; i < 120; ++i) {
\r
132 if (color.z < 20.0)
\r
138 // For (static) latchy
\r
139 for (int i = 0; i < 42; ++i) {
\r
146 // For (static) multi-exit
\r
147 for (int i = 0; i < 42; ++i) {
\r
156 color += bigColor4;
\r
163 } while (color.z < d4);
\r
165 // Do while flow control
\r
167 color += bigColor5;
\r
170 } while (color.x < d5);
\r
173 if (color.x < d6) {
\r
174 while (color.y < d6)
\r
175 color += bigColor6;
\r
177 while (color.z < d6)
\r
178 color.z += bigColor6.z;
\r
181 // If then multi-exit
\r
182 if (color.x < d6) {
\r
183 while (color.y < d6) {
\r
184 color += bigColor6;
\r
190 while (color.z < d6)
\r
191 color.z += bigColor6.z;
\r
200 color += bigColor7;
\r
207 color += BaseColor;
\r
214 // invariant conditional break at the top of the loop. This could be a
\r
215 // situation where unswitching the loop has no real increases in code
\r
220 color += bigColor7;
\r
232 color += BaseColor;
\r
234 } while (color.z < d8);
\r
237 while (color.w < d9) {
\r
239 if (color.x <= d7) {
\r
240 if (color.z == 5.0)
\r
249 // No end loop-back.
\r
250 while (color.z < d10) {
\r
252 if (color.y < d11) {
\r
266 while (color.x < 10.0) {
\r
267 color += bigColor8;
\r
273 color.y += bigColor8.x;
\r
277 gl_FragColor = color;
\r
280 while (color.x < d14) {
\r
281 if (color.y < d15) {
\r
290 while (color.w < d16) {
\r
295 // While (complicated-conditional)
\r
296 while (color.w < d2 && color.y < d3) {
\r
297 color += bigColor1_2;
\r
307 } while (color.x < d17);
\r
310 while (color.y < d16) {
\r
311 if (color.w < d16) {
\r
319 gl_FragColor = color;
\r