blob: 4179e9d0a2c822c03cec9f9b165a60d83cab3077 [file]
#version 310 es
int a = 0;
float b = 0.0f;
float tint_float_modulo(float x, float y) {
return (x - (y * trunc((x / y))));
}
int tint_mod_i32(int lhs, int rhs) {
uint v = uint((lhs == (-2147483647 - 1)));
bool v_1 = bool((v & uint((rhs == -1))));
uint v_2 = uint((rhs == 0));
int v_3 = mix(rhs, 1, bool((v_2 | uint(v_1))));
uint v_4 = uint((lhs / v_3));
int v_5 = int((v_4 * uint(v_3)));
uint v_6 = uint(lhs);
return int((v_6 - uint(v_5)));
}
int tint_div_i32(int lhs, int rhs) {
uint v_7 = uint((lhs == (-2147483647 - 1)));
bool v_8 = bool((v_7 & uint((rhs == -1))));
uint v_9 = uint((rhs == 0));
return (lhs / mix(rhs, 1, bool((v_9 | uint(v_8)))));
}
void foo(int maybe_zero) {
a = tint_div_i32(a, maybe_zero);
a = tint_mod_i32(a, maybe_zero);
b = (b / 0.0f);
b = tint_float_modulo(b, 0.0f);
float v_10 = b;
b = (v_10 / float(maybe_zero));
float v_11 = b;
b = tint_float_modulo(v_11, float(maybe_zero));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
foo(0);
}