| uniform half4 colorRed; |
| uniform half4 colorGreen; |
| int return_loop_0() |
| { |
| for (int i = 0;i < 10; ++i) |
| { |
| if (i == 5) |
| { |
| return i; |
| } |
| } |
| return 0; |
| } |
| int continue_loop_0() |
| { |
| int sum = 0; |
| for (int i = 0;i < 10; ++i) |
| { |
| if (i < 5) |
| { |
| continue; |
| } |
| sum += i; |
| } |
| return sum; |
| } |
| int break_loop_0() |
| { |
| int sum = 0; |
| for (int i = 0;i < 10; ++i) |
| { |
| if (i > 5) |
| { |
| break; |
| } |
| sum += i; |
| } |
| return sum; |
| } |
| bool loop_operator_le_0() |
| { |
| for (int i = 3;i <= 1; ++i) |
| { |
| return false; |
| } |
| for (int i = 3;i <= 1; --i) |
| { |
| return false; |
| } |
| int4 result = int4(9); |
| for (int i = 1;i <= 3; ++i) |
| { |
| result = int4(result.yzw, i); |
| } |
| return result == int4(9, 1, 2, 3); |
| } |
| bool loop_operator_lt_0() |
| { |
| for (int i = 4;i < 1; ++i) |
| { |
| return false; |
| } |
| for (int i = 4;i < 1; --i) |
| { |
| return false; |
| } |
| int4 result = int4(9); |
| for (int i = 1;i < 4; ++i) |
| { |
| result = int4(result.yzw, i); |
| } |
| return result == int4(9, 1, 2, 3); |
| } |
| bool loop_operator_ge_0() |
| { |
| for (int i = 1;i >= 3; ++i) |
| { |
| return false; |
| } |
| for (int i = 1;i >= 3; --i) |
| { |
| return false; |
| } |
| int4 result = int4(9); |
| for (int i = 3;i >= 1; --i) |
| { |
| result = int4(result.yzw, i); |
| } |
| return result == int4(9, 3, 2, 1); |
| } |
| bool loop_operator_gt_0() |
| { |
| for (int i = 0;i > 3; ++i) |
| { |
| return false; |
| } |
| for (int i = 0;i > 3; --i) |
| { |
| return false; |
| } |
| int4 result = int4(9); |
| for (int i = 3;i > 0; --i) |
| { |
| result = int4(result.yzw, i); |
| } |
| return result == int4(9, 3, 2, 1); |
| } |
| bool loop_operator_ne_0() |
| { |
| for (int i = 1;i != 1; ++i) |
| { |
| return false; |
| } |
| int4 result = int4(9); |
| for (int i = 1;i != 4; ++i) |
| { |
| result = int4(result.yzw, i); |
| } |
| return result == int4(9, 1, 2, 3); |
| } |
| bool loop_operator_eq_0() |
| { |
| for (int i = 1;i == 2; ++i) |
| { |
| return false; |
| } |
| int4 result = int4(9); |
| for (int i = 1;i == 1; ++i) |
| { |
| result = int4(result.yzw, i); |
| } |
| return result == int4(9, 9, 9, 1); |
| } |
| half4 main(float2 xy) |
| { |
| return half4((((((((return_loop_0() == 5 && continue_loop_0() == 35) && break_loop_0() == 15) && loop_operator_le_0()) && loop_operator_lt_0()) && loop_operator_ge_0()) && loop_operator_gt_0()) && loop_operator_eq_0()) && loop_operator_ne_0() ? colorGreen : colorRed); |
| } |