37 vec4 color = BaseColor;
\r
41 if (color.x < 0.33) {
\r
42 color += vec4(0.33);
\r
45 if (color.x < 0.66) {
\r
46 color += vec4(0.66);
\r
50 color += vec4(0.33);
\r
55 while (color.x < d) {
\r
60 while (color.z < d) {
\r
61 color += bigColor1_1;
\r
65 color += bigColor1_1;
\r
69 while (color.x < 42.0) {
\r
73 // While (complicated-conditional)
\r
74 while (color.w < d2 && color.y < d3) {
\r
75 color += bigColor1_2;
\r
78 // While (multi-exit)
\r
79 while (color.z < d3) {
\r
80 color += bigColor1_3;
\r
83 color += bigColor1_3;
\r
87 for (int i = 0; i < Count; ++i) {
\r
94 } while (color.x < d2);
\r
97 for (int i = 0; i < 42; ++i) {
\r
101 // For (static) flow-control
\r
102 for (int i = 0; i < 100; ++i) {
\r
103 if (color.z < 20.0)
\r
107 if (color.w < 20.0)
\r
108 if (color.z > color.y)
\r
112 // For (static) flow-control with latch merge
\r
113 for (int i = 0; i < 120; ++i) {
\r
114 if (color.z < 20.0)
\r
120 // For (static) latchy
\r
121 for (int i = 0; i < 42; ++i) {
\r
128 // For (static) multi-exit
\r
129 for (int i = 0; i < 42; ++i) {
\r
138 color += bigColor4;
\r
145 } while (color.z < d4);
\r
147 // Do while flow control
\r
149 color += bigColor5;
\r
152 } while (color.x < d5);
\r
155 if (color.x < d6) {
\r
156 while (color.y < d6)
\r
157 color += bigColor6;
\r
159 while (color.z < d6)
\r
160 color.z += bigColor6.z;
\r
163 // If then multi-exit
\r
164 if (color.x < d6) {
\r
165 while (color.y < d6) {
\r
166 color += bigColor6;
\r
172 while (color.z < d6)
\r
173 color.z += bigColor6.z;
\r
182 color += bigColor7;
\r
189 color += BaseColor;
\r
196 // invariant conditional break at the top of the loop. This could be a
\r
197 // situation where unswitching the loop has no real increases in code
\r
202 color += bigColor7;
\r
214 color += BaseColor;
\r
216 } while (color.z < d8);
\r
219 while (color.w < d9) {
\r
221 if (color.x <= d7) {
\r
222 if (color.z == 5.0)
\r
231 // No end loop-back.
\r
232 while (color.z < d10) {
\r
234 if (color.y < d11) {
\r
248 while (color.x < 10.0) {
\r
249 color += bigColor8;
\r
255 color.y += bigColor8.x;
\r
259 gl_FragColor = color;
\r
262 while (color.x < d14) {
\r
263 if (color.y < d15) {
\r
272 while (color.w < d16) {
\r
277 // While (complicated-conditional)
\r
278 while (color.w < d2 && color.y < d3) {
\r
279 color += bigColor1_2;
\r
289 } while (color.x < d17);
\r
292 while (color.y < d16) {
\r
293 if (color.w < d16) {
\r
301 gl_FragColor = color;
\r