1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5uniform float unknownInput; 6bool inside_while_loop_b() { 7 while (unknownInput == 123.0) { 8 return false; 9 } 10 return true; 11} 12bool inside_infinite_do_loop_b() { 13 do { 14 return true; 15 } while (true); 16} 17bool inside_infinite_while_loop_b() { 18 while (true) { 19 return true; 20 } 21} 22bool after_do_loop_b() { 23 do { 24 break; 25 } while (true); 26 return true; 27} 28bool after_while_loop_b() { 29 while (true) { 30 break; 31 } 32 return true; 33} 34bool switch_with_all_returns_b() { 35 switch (int(unknownInput)) { 36 case 1: 37 return true; 38 case 2: 39 return false; 40 default: 41 return false; 42 } 43} 44bool switch_fallthrough_b() { 45 switch (int(unknownInput)) { 46 case 1: 47 return true; 48 case 2: 49 default: 50 return false; 51 } 52} 53bool switch_fallthrough_twice_b() { 54 switch (int(unknownInput)) { 55 case 1: 56 case 2: 57 default: 58 return true; 59 } 60} 61bool switch_with_break_in_loop_b() { 62 switch (int(unknownInput)) { 63 case 1: 64 for (int x = 0;x <= 10; ++x) { 65 break; 66 } 67 default: 68 return true; 69 } 70} 71bool switch_with_continue_in_loop_b() { 72 switch (int(unknownInput)) { 73 case 1: 74 for (int x = 0;x <= 10; ++x) { 75 continue; 76 } 77 default: 78 return true; 79 } 80} 81bool switch_with_if_that_returns_b() { 82 switch (int(unknownInput)) { 83 case 1: 84 if (unknownInput == 123.0) return false; else return true; 85 default: 86 return true; 87 } 88} 89bool switch_with_one_sided_if_then_fallthrough_b() { 90 switch (int(unknownInput)) { 91 case 1: 92 if (unknownInput == 123.0) return false; 93 default: 94 return true; 95 } 96} 97vec4 main() { 98 return ((((((((((inside_while_loop_b() && inside_infinite_do_loop_b()) && inside_infinite_while_loop_b()) && after_do_loop_b()) && after_while_loop_b()) && switch_with_all_returns_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; 99} 100