blob: f1447d7f9b97c7526cfb7d6cd3b31b154a6c4c11 [file] [log] [blame] [edit]
#include <metal_stdlib>
using namespace metal;
int f() {
int i = 0;
int j = 0;
{
uint2 tint_loop_idx = 0u;
while(true) {
if (all((tint_loop_idx == uint2(4294967295u)))) {
break;
}
i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
if ((i > 4)) {
return 1;
}
{
uint2 tint_loop_idx_1 = 0u;
while(true) {
if (all((tint_loop_idx_1 == uint2(4294967295u)))) {
break;
}
j = as_type<int>((as_type<uint>(j) + as_type<uint>(1)));
if ((j > 4)) {
return 2;
}
{
uint const tint_low_inc_1 = (tint_loop_idx_1.x + 1u);
tint_loop_idx_1.x = tint_low_inc_1;
uint const tint_carry_1 = uint((tint_low_inc_1 == 0u));
tint_loop_idx_1.y = (tint_loop_idx_1.y + tint_carry_1);
}
continue;
}
}
/* unreachable */
return 0;
}
}
/* unreachable */
return 0;
}