John Stiles | cb40008 | 2021-09-23 11:07:32 -0400 | [diff] [blame^] | 1 | uniform half4 colorGreen; |
| 2 | uniform half4 colorRed; |
| 3 | bool switch_with_continue_in_loop_0(int x) |
| 4 | { |
| 5 | int val = 0; |
| 6 | switch (x) |
| 7 | { |
| 8 | case 1:for (int i = 0;i < 10; ++i) |
| 9 | { |
| 10 | ++val; |
| 11 | continue; |
| 12 | ++val; |
| 13 | } |
| 14 | default:++val; |
| 15 | } |
| 16 | return val == 11; |
| 17 | } |
| 18 | bool loop_with_break_in_switch_0(int x) |
| 19 | { |
| 20 | int val = 0; |
| 21 | for (int i = 0;i < 10; ++i) |
| 22 | { |
| 23 | switch (x) |
| 24 | { |
| 25 | case 1:++val; |
| 26 | break; |
| 27 | default:return false; |
| 28 | } |
| 29 | ++val; |
| 30 | } |
| 31 | return val == 20; |
| 32 | } |
| 33 | half4 main(float2 coords) |
| 34 | { |
| 35 | int x = int(colorGreen.y); |
| 36 | int _0_val = 0; |
| 37 | switch (x) |
| 38 | { |
| 39 | case 1:for (int _1_i = 0;_1_i < 10; ++_1_i) |
| 40 | { |
| 41 | ++_0_val; |
| 42 | break; |
| 43 | ++_0_val; |
| 44 | } |
| 45 | default:++_0_val; |
| 46 | } |
| 47 | return half4((_0_val == 2 && switch_with_continue_in_loop_0(x)) && loop_with_break_in_switch_0(x) ? colorGreen : colorRed); |
| 48 | } |