1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5uniform float unknownInput; 6bool return_on_both_sides_b() { 7 if (unknownInput == 1.0) return true; else return true; 8} 9bool for_inside_body_b() { 10 for (int x = 0;x <= 10; ++x) { 11 return true; 12 } 13} 14bool after_for_body_b() { 15 for (int x = 0;x <= 10; ++x) { 16 true; 17 } 18 return true; 19} 20bool for_with_double_sided_conditional_return_b() { 21 for (int x = 0;x <= 10; ++x) { 22 if (unknownInput == 1.0) return true; else return true; 23 } 24} 25bool if_else_chain_b() { 26 if (unknownInput == 1.0) return true; else if (unknownInput == 2.0) return false; else if (unknownInput == 3.0) return true; else if (unknownInput == 4.0) return false; else return true; 27} 28bool conditional_inside_while_loop_b() { 29 while (unknownInput == 123.0) { 30 return true; 31 } 32} 33bool inside_do_loop_b() { 34 do { 35 return true; 36 } while (true); 37} 38bool inside_while_loop_b() { 39 while (true) { 40 return true; 41 } 42} 43bool after_do_loop_b() { 44 do { 45 break; 46 } while (true); 47 return true; 48} 49bool after_while_loop_b() { 50 while (true) { 51 break; 52 } 53 return true; 54} 55bool switch_with_all_returns_b() { 56 switch (int(unknownInput)) { 57 case 1: 58 return true; 59 case 2: 60 return true; 61 default: 62 return true; 63 } 64} 65bool switch_only_default_b() { 66 switch (int(unknownInput)) { 67 default: 68 return true; 69 } 70} 71bool switch_fallthrough_b() { 72 switch (int(unknownInput)) { 73 case 1: 74 return true; 75 case 2: 76 default: 77 return true; 78 } 79} 80bool switch_fallthrough_twice_b() { 81 switch (int(unknownInput)) { 82 case 1: 83 case 2: 84 default: 85 return true; 86 } 87} 88bool switch_with_break_in_loop_b() { 89 switch (int(unknownInput)) { 90 case 1: 91 for (int x = 0;x <= 10; ++x) { 92 break; 93 } 94 default: 95 return true; 96 } 97} 98bool switch_with_continue_in_loop_b() { 99 switch (int(unknownInput)) { 100 case 1: 101 for (int x = 0;x <= 10; ++x) { 102 continue; 103 } 104 default: 105 return true; 106 } 107} 108bool switch_with_if_that_returns_b() { 109 switch (int(unknownInput)) { 110 case 1: 111 if (unknownInput == 123.0) return true; else return true; 112 default: 113 return true; 114 } 115} 116bool switch_with_one_sided_if_then_fallthrough_b() { 117 switch (int(unknownInput)) { 118 case 1: 119 if (unknownInput == 123.0) return true; 120 default: 121 return true; 122 } 123} 124vec4 main() { 125 return (((((((((((((((((true && return_on_both_sides_b()) && for_inside_body_b()) && after_for_body_b()) && for_with_double_sided_conditional_return_b()) && if_else_chain_b()) && conditional_inside_while_loop_b()) && inside_do_loop_b()) && inside_while_loop_b()) && after_do_loop_b()) && after_while_loop_b()) && switch_with_all_returns_b()) && switch_only_default_b()) && switch_fallthrough_b()) && switch_fallthrough_twice_b()) && switch_with_break_in_loop_b()) && switch_with_continue_in_loop_b()) && switch_with_if_that_returns_b()) && switch_with_one_sided_if_then_fallthrough_b() ? colorGreen : colorRed; 126} 127