// {"0:0":[150,70,43,68,72,93,63,3,183,151,92,60,76,35,220,145,218,41,20,253,167,52,142,101,213,48,121,26,214,81,179,223,193,2,227,92,253,187,11,222,231,31,209,196,41,242,17,90]}
// Seed: 10285354754591200512
struct Struct_1 {
a: vec3,
}
struct UniformBuffer {
a: i32,
b: i32,
c: vec4,
d: vec2,
}
struct StorageBuffer {
a: vec4,
b: vec4,
}
@group(0)
@binding(0)
var u_input: UniformBuffer;
@group(0)
@binding(1)
var s_output: StorageBuffer;
fn _wgslsmith_div_i32(a: i32, b: i32) -> i32 {
return select(a / b, a / i32(2i), ((a == i32(-2147483648)) && (b == -1i)) || (b == 0i));
}
fn _wgslsmith_dot_vec4_i32(a: vec4, b: vec4) -> i32 {
return dot(clamp(a, vec4(-23170i), vec4(23170i)), clamp(b, vec4(-23170i), vec4(23170i)));
}
fn _wgslsmith_mod_i32(a: i32, b: i32) -> i32 {
return select(a % b, a, (a < 0i) || (b <= 0i));
}
fn _wgslsmith_div_vec4_i32(a: vec4, b: vec4) -> vec4 {
return select(a / b, a / vec4(2i), (((((a[0i] == i32(-2147483648)) && (b[0i] == -1i)) || (b[0i] == 0i)) || (((a[1i] == i32(-2147483648)) && (b[1i] == -1i)) || (b[1i] == 0i))) || (((a[2i] == i32(-2147483648)) && (b[2i] == -1i)) || (b[2i] == 0i))) || (((a[3i] == i32(-2147483648)) && (b[3i] == -1i)) || (b[3i] == 0i)));
}
fn func_1(arg_0: Struct_1, arg_1: i32, arg_2: vec4) -> vec4 {
let var_0 = select(firstLeadingBit(firstLeadingBit((u_input.c.ywy << (u_input.c.zzy % vec3(32u))) ^ ~u_input.c.xyz)), u_input.c.zxx, !select(select(select(vec3(true, true, false), vec3(false, true, false), vec3(false, true, false)), vec3(true, true, true), vec3(true, true, true)), vec3(true, true, true), vec3(true, true, true)));
return (vec4(-8847i, -_wgslsmith_div_i32(arg_2.x, arg_1), _wgslsmith_mod_i32(firstTrailingBit(u_input.b), i32(-1i) * -57779i), _wgslsmith_mod_i32(arg_1, i32(-2147483648)) | ~(-78922i)) ^ arg_2) & ~arg_2;
}
@compute
@workgroup_size(1)
fn main() {
let x = u_input.a;
s_output = StorageBuffer(-_wgslsmith_div_vec4_i32(max(vec4(-34848i, -57433i, 0i, u_input.b), max(vec4(1i, -39134i, i32(-2147483648), u_input.d.x), vec4(16067i, i32(-2147483648), i32(-2147483648), 12367i))), vec4(u_input.b, u_input.a | -24380i, _wgslsmith_dot_vec4_i32(vec4(70746i, 0i, u_input.a, 30258i), vec4(-1i, u_input.b, -42868i, -26635i)), u_input.d.x)), func_1(Struct_1(u_input.c.xxz), 2147483647i, -select(vec4(2147483647i, 41525i, 1i, 2147483647i), vec4(7632i, i32(-2147483648), 2147483647i, u_input.d.x), vec4(true, true, true, true))));
}