2020-09-14 21:30:13 +00:00
|
|
|
|
2021-01-27 00:58:22 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-01-26 21:28:12 +00:00
|
|
|
uniform vec4 colorRed;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform float unknownInput;
|
2021-03-15 22:08:38 +00:00
|
|
|
vec4 main() {
|
|
|
|
bool _0_expr = unknownInput > 0.0;
|
|
|
|
int _1_ok = 0;
|
|
|
|
int _2_bad = 0;
|
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
|
|
|
{
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (true ^^ _0_expr) {
|
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
|
|
|
{
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (false == _0_expr) {
|
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (true != _0_expr) {
|
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
|
|
|
{
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr ^^ true) {
|
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
|
|
|
{
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr == false) {
|
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr != true) {
|
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_0_expr) {
|
|
|
|
++_1_ok;
|
2021-01-20 17:05:03 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 17:05:03 +00:00
|
|
|
}
|
2021-05-24 14:52:23 +00:00
|
|
|
float _3_a = unknownInput + 2.0;
|
|
|
|
float _4_b = unknownInput * 2.0;
|
2021-03-15 22:08:38 +00:00
|
|
|
if (_3_a == _4_b) {
|
|
|
|
++_2_bad;
|
2021-01-20 19:32:33 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_1_ok;
|
2021-01-20 19:32:33 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
bool(_3_a = _4_b) || true;
|
|
|
|
if (_3_a == _4_b) {
|
|
|
|
++_1_ok;
|
2021-01-20 19:32:33 +00:00
|
|
|
} else {
|
2021-03-15 22:08:38 +00:00
|
|
|
++_2_bad;
|
2021-01-20 19:32:33 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
return _1_ok == 22 && _2_bad == 0 ? colorGreen : colorRed;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|