Restore "MSL writer: make signed int overflow defined behaviour"

This reverts commit e33b0baa08.

Added tests/expressions/literals/intmin.wgsl test.

Bug: tint:124
Change-Id: I3d46f939ff20fa377ddb5fcb52f9afe728b8e430
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60441
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Antonio Maiorano
2021-07-30 18:59:06 +00:00
committed by Tint LUCI CQ
parent 9bdf2dcc6b
commit d388bc9b36
686 changed files with 4111 additions and 3079 deletions

View File

@@ -56,7 +56,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_6) {
} else {
break;
}
int const x_22 = (x_21 - 1);
int const x_22 = as_type<int>((as_type<uint>(x_21) - as_type<uint>(1)));
x_19 = x_22;
int const x_23 = x_24.arr[x_22];
if ((x_23 == 1)) {
@@ -139,7 +139,7 @@ int binarySearch_struct_tmp_struct_i1_1_1_(thread tmp_struct* const obj) {
} else {
break;
}
int const x_13 = (x_15 - 1);
int const x_13 = as_type<int>((as_type<uint>(x_15) - as_type<uint>(1)));
zero = x_13;
int const x_14 = (*(obj)).nmb.arr[x_13];
if ((x_14 == 1)) {

View File

@@ -56,7 +56,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_6) {
} else {
break;
}
int const x_22 = (x_21 - 1);
int const x_22 = as_type<int>((as_type<uint>(x_21) - as_type<uint>(1)));
x_19 = x_22;
int const x_23 = x_24.arr[x_22];
if ((x_23 == 1)) {
@@ -139,7 +139,7 @@ int binarySearch_struct_tmp_struct_i1_1_1_(thread tmp_struct* const obj) {
} else {
break;
}
int const x_13 = (x_15 - 1);
int const x_13 = as_type<int>((as_type<uint>(x_15) - as_type<uint>(1)));
zero = x_13;
int const x_14 = (*(obj)).nmb.arr[x_13];
if ((x_14 == 1)) {

View File

@@ -44,13 +44,13 @@ int performPartition_i1_i1_(thread int* const l, thread int* const h, thread Qui
int const x_106 = (*(tint_symbol_5)).numbers.arr[x_104];
pivot = x_106;
int const x_107 = *(l);
i_1 = (x_107 - 1);
i_1 = as_type<int>((as_type<uint>(x_107) - as_type<uint>(1)));
int const x_109 = *(l);
j_1 = x_109;
while (true) {
int const x_114 = j_1;
int const x_115 = *(h);
if ((x_114 <= (x_115 - 1))) {
if ((x_114 <= as_type<int>((as_type<uint>(x_115) - as_type<uint>(1))))) {
} else {
break;
}
@@ -59,7 +59,7 @@ int performPartition_i1_i1_(thread int* const l, thread int* const h, thread Qui
int const x_122 = pivot;
if ((x_121 <= x_122)) {
int const x_126 = i_1;
i_1 = (x_126 + 1);
i_1 = as_type<int>((as_type<uint>(x_126) + as_type<uint>(1)));
int const x_128 = i_1;
param = x_128;
int const x_129 = j_1;
@@ -68,16 +68,16 @@ int performPartition_i1_i1_(thread int* const l, thread int* const h, thread Qui
}
{
int const x_131 = j_1;
j_1 = (x_131 + 1);
j_1 = as_type<int>((as_type<uint>(x_131) + as_type<uint>(1)));
}
}
int const x_133 = i_1;
param_2 = (x_133 + 1);
param_2 = as_type<int>((as_type<uint>(x_133) + as_type<uint>(1)));
int const x_135 = *(h);
param_3 = x_135;
swap_i1_i1_(&(param_2), &(param_3), tint_symbol_5);
int const x_137 = i_1;
return (x_137 + 1);
return as_type<int>((as_type<uint>(x_137) + as_type<uint>(1)));
}
void quicksort_(thread QuicksortObject* const tint_symbol_6) {
@@ -92,12 +92,12 @@ void quicksort_(thread QuicksortObject* const tint_symbol_6) {
h_1 = 9;
top = -1;
int const x_140 = top;
int const x_141 = (x_140 + 1);
int const x_141 = as_type<int>((as_type<uint>(x_140) + as_type<uint>(1)));
top = x_141;
int const x_142 = l_1;
stack.arr[x_141] = x_142;
int const x_144 = top;
int const x_145 = (x_144 + 1);
int const x_145 = as_type<int>((as_type<uint>(x_144) + as_type<uint>(1)));
top = x_145;
int const x_146 = h_1;
stack.arr[x_145] = x_146;
@@ -108,11 +108,11 @@ void quicksort_(thread QuicksortObject* const tint_symbol_6) {
break;
}
int const x_155 = top;
top = (x_155 - 1);
top = as_type<int>((as_type<uint>(x_155) - as_type<uint>(1)));
int const x_158 = stack.arr[x_155];
h_1 = x_158;
int const x_159 = top;
top = (x_159 - 1);
top = as_type<int>((as_type<uint>(x_159) - as_type<uint>(1)));
int const x_162 = stack.arr[x_159];
l_1 = x_162;
int const x_163 = l_1;
@@ -123,28 +123,28 @@ void quicksort_(thread QuicksortObject* const tint_symbol_6) {
p = x_165;
int const x_166 = p;
int const x_168 = l_1;
if (((x_166 - 1) > x_168)) {
if ((as_type<int>((as_type<uint>(x_166) - as_type<uint>(1))) > x_168)) {
int const x_172 = top;
int const x_173 = (x_172 + 1);
int const x_173 = as_type<int>((as_type<uint>(x_172) + as_type<uint>(1)));
top = x_173;
int const x_174 = l_1;
stack.arr[x_173] = x_174;
int const x_176 = top;
int const x_177 = (x_176 + 1);
int const x_177 = as_type<int>((as_type<uint>(x_176) + as_type<uint>(1)));
top = x_177;
int const x_178 = p;
stack.arr[x_177] = (x_178 - 1);
stack.arr[x_177] = as_type<int>((as_type<uint>(x_178) - as_type<uint>(1)));
}
int const x_181 = p;
int const x_183 = h_1;
if (((x_181 + 1) < x_183)) {
if ((as_type<int>((as_type<uint>(x_181) + as_type<uint>(1))) < x_183)) {
int const x_187 = top;
int const x_188 = (x_187 + 1);
int const x_188 = as_type<int>((as_type<uint>(x_187) + as_type<uint>(1)));
top = x_188;
int const x_189 = p;
stack.arr[x_188] = (x_189 + 1);
stack.arr[x_188] = as_type<int>((as_type<uint>(x_189) + as_type<uint>(1)));
int const x_192 = top;
int const x_193 = (x_192 + 1);
int const x_193 = as_type<int>((as_type<uint>(x_192) + as_type<uint>(1)));
top = x_193;
int const x_194 = h_1;
stack.arr[x_193] = x_194;
@@ -164,16 +164,16 @@ void main_1(thread QuicksortObject* const tint_symbol_7, thread float4* const ti
}
int const x_67 = i_2;
int const x_68 = i_2;
(*(tint_symbol_7)).numbers.arr[x_67] = (10 - x_68);
(*(tint_symbol_7)).numbers.arr[x_67] = as_type<int>((as_type<uint>(10) - as_type<uint>(x_68)));
int const x_71 = i_2;
int const x_72 = i_2;
int const x_74 = (*(tint_symbol_7)).numbers.arr[x_72];
int const x_75 = i_2;
int const x_77 = (*(tint_symbol_7)).numbers.arr[x_75];
(*(tint_symbol_7)).numbers.arr[x_71] = (x_74 * x_77);
(*(tint_symbol_7)).numbers.arr[x_71] = as_type<int>((as_type<uint>(x_74) * as_type<uint>(x_77)));
{
int const x_80 = i_2;
i_2 = (x_80 + 1);
i_2 = as_type<int>((as_type<uint>(x_80) + as_type<uint>(1)));
}
}
quicksort_(tint_symbol_7);

View File

@@ -44,13 +44,13 @@ int performPartition_i1_i1_(thread int* const l, thread int* const h, thread Qui
int const x_106 = (*(tint_symbol_5)).numbers.arr[x_104];
pivot = x_106;
int const x_107 = *(l);
i_1 = (x_107 - 1);
i_1 = as_type<int>((as_type<uint>(x_107) - as_type<uint>(1)));
int const x_109 = *(l);
j_1 = x_109;
while (true) {
int const x_114 = j_1;
int const x_115 = *(h);
if ((x_114 <= (x_115 - 1))) {
if ((x_114 <= as_type<int>((as_type<uint>(x_115) - as_type<uint>(1))))) {
} else {
break;
}
@@ -59,7 +59,7 @@ int performPartition_i1_i1_(thread int* const l, thread int* const h, thread Qui
int const x_122 = pivot;
if ((x_121 <= x_122)) {
int const x_126 = i_1;
i_1 = (x_126 + 1);
i_1 = as_type<int>((as_type<uint>(x_126) + as_type<uint>(1)));
int const x_128 = i_1;
param = x_128;
int const x_129 = j_1;
@@ -68,16 +68,16 @@ int performPartition_i1_i1_(thread int* const l, thread int* const h, thread Qui
}
{
int const x_131 = j_1;
j_1 = (x_131 + 1);
j_1 = as_type<int>((as_type<uint>(x_131) + as_type<uint>(1)));
}
}
int const x_133 = i_1;
param_2 = (x_133 + 1);
param_2 = as_type<int>((as_type<uint>(x_133) + as_type<uint>(1)));
int const x_135 = *(h);
param_3 = x_135;
swap_i1_i1_(&(param_2), &(param_3), tint_symbol_5);
int const x_137 = i_1;
return (x_137 + 1);
return as_type<int>((as_type<uint>(x_137) + as_type<uint>(1)));
}
void quicksort_(thread QuicksortObject* const tint_symbol_6) {
@@ -92,12 +92,12 @@ void quicksort_(thread QuicksortObject* const tint_symbol_6) {
h_1 = 9;
top = -1;
int const x_140 = top;
int const x_141 = (x_140 + 1);
int const x_141 = as_type<int>((as_type<uint>(x_140) + as_type<uint>(1)));
top = x_141;
int const x_142 = l_1;
stack.arr[x_141] = x_142;
int const x_144 = top;
int const x_145 = (x_144 + 1);
int const x_145 = as_type<int>((as_type<uint>(x_144) + as_type<uint>(1)));
top = x_145;
int const x_146 = h_1;
stack.arr[x_145] = x_146;
@@ -108,11 +108,11 @@ void quicksort_(thread QuicksortObject* const tint_symbol_6) {
break;
}
int const x_155 = top;
top = (x_155 - 1);
top = as_type<int>((as_type<uint>(x_155) - as_type<uint>(1)));
int const x_158 = stack.arr[x_155];
h_1 = x_158;
int const x_159 = top;
top = (x_159 - 1);
top = as_type<int>((as_type<uint>(x_159) - as_type<uint>(1)));
int const x_162 = stack.arr[x_159];
l_1 = x_162;
int const x_163 = l_1;
@@ -123,28 +123,28 @@ void quicksort_(thread QuicksortObject* const tint_symbol_6) {
p = x_165;
int const x_166 = p;
int const x_168 = l_1;
if (((x_166 - 1) > x_168)) {
if ((as_type<int>((as_type<uint>(x_166) - as_type<uint>(1))) > x_168)) {
int const x_172 = top;
int const x_173 = (x_172 + 1);
int const x_173 = as_type<int>((as_type<uint>(x_172) + as_type<uint>(1)));
top = x_173;
int const x_174 = l_1;
stack.arr[x_173] = x_174;
int const x_176 = top;
int const x_177 = (x_176 + 1);
int const x_177 = as_type<int>((as_type<uint>(x_176) + as_type<uint>(1)));
top = x_177;
int const x_178 = p;
stack.arr[x_177] = (x_178 - 1);
stack.arr[x_177] = as_type<int>((as_type<uint>(x_178) - as_type<uint>(1)));
}
int const x_181 = p;
int const x_183 = h_1;
if (((x_181 + 1) < x_183)) {
if ((as_type<int>((as_type<uint>(x_181) + as_type<uint>(1))) < x_183)) {
int const x_187 = top;
int const x_188 = (x_187 + 1);
int const x_188 = as_type<int>((as_type<uint>(x_187) + as_type<uint>(1)));
top = x_188;
int const x_189 = p;
stack.arr[x_188] = (x_189 + 1);
stack.arr[x_188] = as_type<int>((as_type<uint>(x_189) + as_type<uint>(1)));
int const x_192 = top;
int const x_193 = (x_192 + 1);
int const x_193 = as_type<int>((as_type<uint>(x_192) + as_type<uint>(1)));
top = x_193;
int const x_194 = h_1;
stack.arr[x_193] = x_194;
@@ -164,16 +164,16 @@ void main_1(thread QuicksortObject* const tint_symbol_7, thread float4* const ti
}
int const x_67 = i_2;
int const x_68 = i_2;
(*(tint_symbol_7)).numbers.arr[x_67] = (10 - x_68);
(*(tint_symbol_7)).numbers.arr[x_67] = as_type<int>((as_type<uint>(10) - as_type<uint>(x_68)));
int const x_71 = i_2;
int const x_72 = i_2;
int const x_74 = (*(tint_symbol_7)).numbers.arr[x_72];
int const x_75 = i_2;
int const x_77 = (*(tint_symbol_7)).numbers.arr[x_75];
(*(tint_symbol_7)).numbers.arr[x_71] = (x_74 * x_77);
(*(tint_symbol_7)).numbers.arr[x_71] = as_type<int>((as_type<uint>(x_74) * as_type<uint>(x_77)));
{
int const x_80 = i_2;
i_2 = (x_80 + 1);
i_2 = as_type<int>((as_type<uint>(x_80) + as_type<uint>(1)));
}
}
quicksort_(tint_symbol_7);

View File

@@ -29,7 +29,7 @@ float func_(constant buf0& x_7, thread float4* const tint_symbol_5) {
x = int(x_111);
float const x_114 = x_7.injectionSwitch.x;
int const x_118 = x;
x = (x_118 + (int(clamp(x_114, 0.0f, 1.0f)) * 3));
x = as_type<int>((as_type<uint>(x_118) + as_type<uint>(as_type<int>((as_type<uint>(int(clamp(x_114, 0.0f, 1.0f))) * as_type<uint>(3))))));
int const x_120 = x;
return (5.0f + float(x_120));
}
@@ -42,7 +42,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_6, thread float
while (true) {
int const x_48 = i;
float const x_50 = x_7.injectionSwitch.x;
if ((x_48 < (4 + int(x_50)))) {
if ((x_48 < as_type<int>((as_type<uint>(4) + as_type<uint>(int(x_50)))))) {
} else {
break;
}
@@ -60,7 +60,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_6, thread float
int const x_67 = j;
int const x_69 = i;
float const x_71 = func_(x_7, tint_symbol_6);
data.arr[((4 * x_67) + x_69)].x = x_71;
data.arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(4) * as_type<uint>(x_67)))) + as_type<uint>(x_69)))].x = x_71;
float const x_74 = data.arr[0].x;
bool const x_75 = (x_74 == 5.0f);
x_82_phi = x_75;
@@ -82,13 +82,13 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_6, thread float
}
{
int const x_93 = j;
j = (x_93 + 1);
j = as_type<int>((as_type<uint>(x_93) + as_type<uint>(1)));
}
}
}
{
int const x_95 = i;
i = (x_95 + 1);
i = as_type<int>((as_type<uint>(x_95) + as_type<uint>(1)));
}
}
return;

View File

@@ -29,7 +29,7 @@ float func_(constant buf0& x_7, thread float4* const tint_symbol_5) {
x = int(x_111);
float const x_114 = x_7.injectionSwitch.x;
int const x_118 = x;
x = (x_118 + (int(clamp(x_114, 0.0f, 1.0f)) * 3));
x = as_type<int>((as_type<uint>(x_118) + as_type<uint>(as_type<int>((as_type<uint>(int(clamp(x_114, 0.0f, 1.0f))) * as_type<uint>(3))))));
int const x_120 = x;
return (5.0f + float(x_120));
}
@@ -42,7 +42,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_6, thread float
while (true) {
int const x_48 = i;
float const x_50 = x_7.injectionSwitch.x;
if ((x_48 < (4 + int(x_50)))) {
if ((x_48 < as_type<int>((as_type<uint>(4) + as_type<uint>(int(x_50)))))) {
} else {
break;
}
@@ -60,7 +60,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_6, thread float
int const x_67 = j;
int const x_69 = i;
float const x_71 = func_(x_7, tint_symbol_6);
data.arr[((4 * x_67) + x_69)].x = x_71;
data.arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(4) * as_type<uint>(x_67)))) + as_type<uint>(x_69)))].x = x_71;
float const x_74 = data.arr[0].x;
bool const x_75 = (x_74 == 5.0f);
x_82_phi = x_75;
@@ -82,13 +82,13 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_6, thread float
}
{
int const x_93 = j;
j = (x_93 + 1);
j = as_type<int>((as_type<uint>(x_93) + as_type<uint>(1)));
}
}
}
{
int const x_95 = i;
i = (x_95 + 1);
i = as_type<int>((as_type<uint>(x_95) + as_type<uint>(1)));
}
}
return;

View File

@@ -41,7 +41,7 @@ float func_i1_(thread int* const a, thread tint_array_wrapper* const tint_symbol
int const x_90 = (*(tint_symbol_5)).arr[x_88];
(*(tint_symbol_7)).arr[x_87] = x_90;
int const x_92 = b;
b = (x_92 + 2);
b = as_type<int>((as_type<uint>(x_92) + as_type<uint>(2)));
}
}
}
@@ -54,10 +54,10 @@ float func_i1_(thread int* const a, thread tint_array_wrapper* const tint_symbol
}
int const x_101 = i;
int const x_103 = (*(tint_symbol_7)).arr[0];
(*(tint_symbol_5)).arr[x_101] = (x_103 + 1);
(*(tint_symbol_5)).arr[x_101] = as_type<int>((as_type<uint>(x_103) + as_type<uint>(1)));
{
int const x_106 = i;
i = (x_106 + 1);
i = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
}
}
int const x_109 = (*(tint_symbol_7)).arr[0];
@@ -101,7 +101,7 @@ void main_1(thread tint_array_wrapper* const tint_symbol_8, thread float4* const
}
{
int const x_62 = i_1;
i_1 = (x_62 + 1);
i_1 = as_type<int>((as_type<uint>(x_62) + as_type<uint>(1)));
}
}
return;

View File

@@ -41,7 +41,7 @@ float func_i1_(thread int* const a, thread tint_array_wrapper* const tint_symbol
int const x_90 = (*(tint_symbol_5)).arr[x_88];
(*(tint_symbol_7)).arr[x_87] = x_90;
int const x_92 = b;
b = (x_92 + 2);
b = as_type<int>((as_type<uint>(x_92) + as_type<uint>(2)));
}
}
}
@@ -54,10 +54,10 @@ float func_i1_(thread int* const a, thread tint_array_wrapper* const tint_symbol
}
int const x_101 = i;
int const x_103 = (*(tint_symbol_7)).arr[0];
(*(tint_symbol_5)).arr[x_101] = (x_103 + 1);
(*(tint_symbol_5)).arr[x_101] = as_type<int>((as_type<uint>(x_103) + as_type<uint>(1)));
{
int const x_106 = i;
i = (x_106 + 1);
i = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
}
}
int const x_109 = (*(tint_symbol_7)).arr[0];
@@ -101,7 +101,7 @@ void main_1(thread tint_array_wrapper* const tint_symbol_8, thread float4* const
}
{
int const x_62 = i_1;
i_1 = (x_62 + 1);
i_1 = as_type<int>((as_type<uint>(x_62) + as_type<uint>(1)));
}
}
return;

View File

@@ -37,7 +37,7 @@ void func_i1_(thread int* const x, thread float4* const tint_symbol_4) {
int const x_69 = data.arr[min(x_66, 0)];
temp.arr[min(x_64, 1)] = x_69;
int const x_71 = a;
a = (x_71 + 1);
a = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
}
}
i = 0;
@@ -50,10 +50,10 @@ void func_i1_(thread int* const x, thread float4* const tint_symbol_4) {
int const x_80 = i;
int const x_82 = temp.arr[0];
int const x_83 = i;
data.arr[x_80] = (x_82 + x_83);
data.arr[x_80] = as_type<int>((as_type<uint>(x_82) + as_type<uint>(x_83)));
{
int const x_86 = i;
i = (x_86 + 1);
i = as_type<int>((as_type<uint>(x_86) + as_type<uint>(1)));
}
}
int const x_89 = data.arr[0];
@@ -88,7 +88,7 @@ void main_1(thread float4* const tint_symbol_5) {
func_i1_(&(param), tint_symbol_5);
{
int const x_48 = i_1;
i_1 = (x_48 + 1);
i_1 = as_type<int>((as_type<uint>(x_48) + as_type<uint>(1)));
}
}
return;

View File

@@ -37,7 +37,7 @@ void func_i1_(thread int* const x, thread float4* const tint_symbol_4) {
int const x_69 = data.arr[min(x_66, 0)];
temp.arr[min(x_64, 1)] = x_69;
int const x_71 = a;
a = (x_71 + 1);
a = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
}
}
i = 0;
@@ -50,10 +50,10 @@ void func_i1_(thread int* const x, thread float4* const tint_symbol_4) {
int const x_80 = i;
int const x_82 = temp.arr[0];
int const x_83 = i;
data.arr[x_80] = (x_82 + x_83);
data.arr[x_80] = as_type<int>((as_type<uint>(x_82) + as_type<uint>(x_83)));
{
int const x_86 = i;
i = (x_86 + 1);
i = as_type<int>((as_type<uint>(x_86) + as_type<uint>(1)));
}
}
int const x_89 = data.arr[0];
@@ -88,7 +88,7 @@ void main_1(thread float4* const tint_symbol_5) {
func_i1_(&(param), tint_symbol_5);
{
int const x_48 = i_1;
i_1 = (x_48 + 1);
i_1 = as_type<int>((as_type<uint>(x_48) + as_type<uint>(1)));
}
}
return;

View File

@@ -27,9 +27,9 @@ void main_1(constant buf1& x_10, device doesNotMatter& x_7, thread uint3* const
int const x_51 = lid;
if ((x_51 > 0)) {
int const x_55 = lid;
int const x_58 = x_7.data[(x_55 - 1)];
int const x_58 = x_7.data[as_type<int>((as_type<uint>(x_55) - as_type<uint>(1)))];
int const x_59 = val;
val = (x_59 + x_58);
val = as_type<int>((as_type<uint>(x_59) + as_type<uint>(x_58)));
float const x_62 = x_10.injectionSwitch.x;
if ((x_62 > 100.0f)) {
break;
@@ -38,7 +38,7 @@ void main_1(constant buf1& x_10, device doesNotMatter& x_7, thread uint3* const
threadgroup_barrier(mem_flags::mem_threadgroup);
{
int const x_66 = i;
i = (x_66 + 1);
i = as_type<int>((as_type<uint>(x_66) + as_type<uint>(1)));
}
}
int const x_68 = lid;

View File

@@ -27,9 +27,9 @@ void main_1(constant buf1& x_10, device doesNotMatter& x_7, thread uint3* const
int const x_51 = lid;
if ((x_51 > 0)) {
int const x_55 = lid;
int const x_58 = x_7.data[(x_55 - 1)];
int const x_58 = x_7.data[as_type<int>((as_type<uint>(x_55) - as_type<uint>(1)))];
int const x_59 = val;
val = (x_59 + x_58);
val = as_type<int>((as_type<uint>(x_59) + as_type<uint>(x_58)));
float const x_62 = x_10.injectionSwitch.x;
if ((x_62 > 100.0f)) {
break;
@@ -38,7 +38,7 @@ void main_1(constant buf1& x_10, device doesNotMatter& x_7, thread uint3* const
threadgroup_barrier(mem_flags::mem_threadgroup);
{
int const x_66 = i;
i = (x_66 + 1);
i = as_type<int>((as_type<uint>(x_66) + as_type<uint>(1)));
}
}
int const x_68 = lid;

View File

@@ -34,7 +34,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
break;
}
int x_54_phi = 0;
int const x_8 = (x_11 + 1);
int const x_8 = as_type<int>((as_type<uint>(x_11) + as_type<uint>(1)));
float const x_47 = x_6.injectionSwitch.x;
x_54_phi = x_40;
switch(int(x_47)) {
@@ -43,7 +43,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
/* fallthrough */
}
case 19: {
x_54_phi = as_type<int>((x_40 + as_type<int>(1)));
x_54_phi = as_type<int>(as_type<int>((as_type<uint>(x_40) + as_type<uint>(as_type<int>(1)))));
/* fallthrough */
}
case 23:

View File

@@ -34,7 +34,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
break;
}
int x_54_phi = 0;
int const x_8 = (x_11 + 1);
int const x_8 = as_type<int>((as_type<uint>(x_11) + as_type<uint>(1)));
float const x_47 = x_6.injectionSwitch.x;
x_54_phi = x_40;
switch(int(x_47)) {
@@ -43,7 +43,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
/* fallthrough */
}
case 19: {
x_54_phi = as_type<int>((x_40 + as_type<int>(1)));
x_54_phi = as_type<int>(as_type<int>((as_type<uint>(x_40) + as_type<uint>(as_type<int>(1)))));
/* fallthrough */
}
case 23:

View File

@@ -36,8 +36,8 @@ void main_1(thread float4* const tint_symbol_6, thread float4* const tint_symbol
{
*(tint_symbol_7) = float4(1.0f, 1.0f, 1.0f, 1.0f);
x_46 = x_45;
x_46.f0 = (x_45.f0 + 1);
x_9 = (x_11 + 1);
x_46.f0 = as_type<int>((as_type<uint>(x_45.f0) + as_type<uint>(1)));
x_9 = as_type<int>((as_type<uint>(x_11) + as_type<uint>(1)));
x_45_phi = x_46;
x_11_phi = x_9;
}
@@ -57,7 +57,7 @@ void main_1(thread float4* const tint_symbol_6, thread float4* const tint_symbol
}
{
*(tint_symbol_7) = float4(1.0f, 0.0f, 0.0f, 1.0f);
x_6 = (x_12 + 1);
x_6 = as_type<int>((as_type<uint>(x_12) + as_type<uint>(1)));
x_12_phi = x_6;
}
}

View File

@@ -36,8 +36,8 @@ void main_1(thread float4* const tint_symbol_6, thread float4* const tint_symbol
{
*(tint_symbol_7) = float4(1.0f, 1.0f, 1.0f, 1.0f);
x_46 = x_45;
x_46.f0 = (x_45.f0 + 1);
x_9 = (x_11 + 1);
x_46.f0 = as_type<int>((as_type<uint>(x_45.f0) + as_type<uint>(1)));
x_9 = as_type<int>((as_type<uint>(x_11) + as_type<uint>(1)));
x_45_phi = x_46;
x_11_phi = x_9;
}
@@ -57,7 +57,7 @@ void main_1(thread float4* const tint_symbol_6, thread float4* const tint_symbol
}
{
*(tint_symbol_7) = float4(1.0f, 0.0f, 0.0f, 1.0f);
x_6 = (x_12 + 1);
x_6 = as_type<int>((as_type<uint>(x_12) + as_type<uint>(1)));
x_12_phi = x_6;
}
}

View File

@@ -83,7 +83,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_41 = GLF_live4_looplimiter5;
GLF_live4_looplimiter5 = (x_41 + 1);
GLF_live4_looplimiter5 = as_type<int>((as_type<uint>(x_41) + as_type<uint>(1)));
GLF_live7m42 = float4x2(float2(1.0f, 0.0f), float2(0.0f, 1.0f), float2(0.0f, 0.0f), float2(1.0f, 0.0f));
GLF_live7m33 = float3x3(float3(1.0f, 0.0f, 0.0f), float3(0.0f, 1.0f, 0.0f), float3(0.0f, 0.0f, 1.0f));
GLF_live7cols = 2;
@@ -98,7 +98,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_45 = GLF_live7_looplimiter3;
GLF_live7_looplimiter3 = (x_45 + 1);
GLF_live7_looplimiter3 = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
GLF_live7rows = 2;
while (true) {
int const x_47 = GLF_live7rows;
@@ -111,7 +111,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_49 = GLF_live7_looplimiter2;
GLF_live7_looplimiter2 = (x_49 + 1);
GLF_live7_looplimiter2 = as_type<int>((as_type<uint>(x_49) + as_type<uint>(1)));
GLF_live7_looplimiter1 = 0;
GLF_live7c = 0;
while (true) {
@@ -125,7 +125,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_53 = GLF_live7_looplimiter1;
GLF_live7_looplimiter1 = (x_53 + 1);
GLF_live7_looplimiter1 = as_type<int>((as_type<uint>(x_53) + as_type<uint>(1)));
GLF_live7r = 0;
while (true) {
int const x_55 = GLF_live7r;
@@ -138,7 +138,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_57 = GLF_live7_looplimiter0;
GLF_live7_looplimiter0 = (x_57 + 1);
GLF_live7_looplimiter0 = as_type<int>((as_type<uint>(x_57) + as_type<uint>(1)));
int const x_59 = GLF_live7c;
int const x_60 = GLF_live7c;
int const x_61 = GLF_live7c;
@@ -159,22 +159,22 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
}
{
int const x_71 = GLF_live7r;
GLF_live7r = (x_71 + 1);
GLF_live7r = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
}
}
{
int const x_73 = GLF_live7c;
GLF_live7c = (x_73 + 1);
GLF_live7c = as_type<int>((as_type<uint>(x_73) + as_type<uint>(1)));
}
}
{
int const x_75 = GLF_live7rows;
GLF_live7rows = (x_75 + 1);
GLF_live7rows = as_type<int>((as_type<uint>(x_75) + as_type<uint>(1)));
}
}
{
int const x_77 = GLF_live7cols;
GLF_live7cols = (x_77 + 1);
GLF_live7cols = as_type<int>((as_type<uint>(x_77) + as_type<uint>(1)));
}
}
GLF_live7sum_index = 0;
@@ -191,7 +191,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_81 = GLF_live7_looplimiter7;
GLF_live7_looplimiter7 = (x_81 + 1);
GLF_live7_looplimiter7 = as_type<int>((as_type<uint>(x_81) + as_type<uint>(1)));
GLF_live7rows_1 = 2;
int const x_83 = GLF_live7sum_index;
int const x_84 = GLF_live7sum_index;
@@ -241,24 +241,24 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
GLF_live7sums.arr[x_332] = (x_336 + x_334);
{
int const x_98 = GLF_live7r_1;
GLF_live7r_1 = (x_98 + 1);
GLF_live7r_1 = as_type<int>((as_type<uint>(x_98) + as_type<uint>(1)));
}
}
{
int const x_100 = GLF_live7c_1;
GLF_live7c_1 = (x_100 + 1);
GLF_live7c_1 = as_type<int>((as_type<uint>(x_100) + as_type<uint>(1)));
}
}
int const x_102 = GLF_live7sum_index;
GLF_live7sum_index = (x_102 + 1);
GLF_live7sum_index = as_type<int>((as_type<uint>(x_102) + as_type<uint>(1)));
{
int const x_104 = GLF_live7cols_1;
GLF_live7cols_1 = (x_104 + 1);
GLF_live7cols_1 = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
}
}
{
int const x_106 = GLF_live4i;
GLF_live4i = (x_106 + 1);
GLF_live4i = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
}
}
return float3(1.0f, 1.0f, 1.0f);
@@ -292,7 +292,7 @@ void main_1(constant buf0& x_25, thread float4* const tint_symbol_5, thread floa
float3 const x_178 = drawShape_vf2_(x_25, &(param_2));
{
int const x_109 = i;
i = (x_109 - 1);
i = as_type<int>((as_type<uint>(x_109) - as_type<uint>(1)));
}
}
}

View File

@@ -83,7 +83,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_41 = GLF_live4_looplimiter5;
GLF_live4_looplimiter5 = (x_41 + 1);
GLF_live4_looplimiter5 = as_type<int>((as_type<uint>(x_41) + as_type<uint>(1)));
GLF_live7m42 = float4x2(float2(1.0f, 0.0f), float2(0.0f, 1.0f), float2(0.0f, 0.0f), float2(1.0f, 0.0f));
GLF_live7m33 = float3x3(float3(1.0f, 0.0f, 0.0f), float3(0.0f, 1.0f, 0.0f), float3(0.0f, 0.0f, 1.0f));
GLF_live7cols = 2;
@@ -98,7 +98,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_45 = GLF_live7_looplimiter3;
GLF_live7_looplimiter3 = (x_45 + 1);
GLF_live7_looplimiter3 = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
GLF_live7rows = 2;
while (true) {
int const x_47 = GLF_live7rows;
@@ -111,7 +111,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_49 = GLF_live7_looplimiter2;
GLF_live7_looplimiter2 = (x_49 + 1);
GLF_live7_looplimiter2 = as_type<int>((as_type<uint>(x_49) + as_type<uint>(1)));
GLF_live7_looplimiter1 = 0;
GLF_live7c = 0;
while (true) {
@@ -125,7 +125,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_53 = GLF_live7_looplimiter1;
GLF_live7_looplimiter1 = (x_53 + 1);
GLF_live7_looplimiter1 = as_type<int>((as_type<uint>(x_53) + as_type<uint>(1)));
GLF_live7r = 0;
while (true) {
int const x_55 = GLF_live7r;
@@ -138,7 +138,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_57 = GLF_live7_looplimiter0;
GLF_live7_looplimiter0 = (x_57 + 1);
GLF_live7_looplimiter0 = as_type<int>((as_type<uint>(x_57) + as_type<uint>(1)));
int const x_59 = GLF_live7c;
int const x_60 = GLF_live7c;
int const x_61 = GLF_live7c;
@@ -159,22 +159,22 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
}
{
int const x_71 = GLF_live7r;
GLF_live7r = (x_71 + 1);
GLF_live7r = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
}
}
{
int const x_73 = GLF_live7c;
GLF_live7c = (x_73 + 1);
GLF_live7c = as_type<int>((as_type<uint>(x_73) + as_type<uint>(1)));
}
}
{
int const x_75 = GLF_live7rows;
GLF_live7rows = (x_75 + 1);
GLF_live7rows = as_type<int>((as_type<uint>(x_75) + as_type<uint>(1)));
}
}
{
int const x_77 = GLF_live7cols;
GLF_live7cols = (x_77 + 1);
GLF_live7cols = as_type<int>((as_type<uint>(x_77) + as_type<uint>(1)));
}
}
GLF_live7sum_index = 0;
@@ -191,7 +191,7 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
break;
}
int const x_81 = GLF_live7_looplimiter7;
GLF_live7_looplimiter7 = (x_81 + 1);
GLF_live7_looplimiter7 = as_type<int>((as_type<uint>(x_81) + as_type<uint>(1)));
GLF_live7rows_1 = 2;
int const x_83 = GLF_live7sum_index;
int const x_84 = GLF_live7sum_index;
@@ -241,24 +241,24 @@ float3 drawShape_vf2_(constant buf0& x_25, thread float2* const pos) {
GLF_live7sums.arr[x_332] = (x_336 + x_334);
{
int const x_98 = GLF_live7r_1;
GLF_live7r_1 = (x_98 + 1);
GLF_live7r_1 = as_type<int>((as_type<uint>(x_98) + as_type<uint>(1)));
}
}
{
int const x_100 = GLF_live7c_1;
GLF_live7c_1 = (x_100 + 1);
GLF_live7c_1 = as_type<int>((as_type<uint>(x_100) + as_type<uint>(1)));
}
}
int const x_102 = GLF_live7sum_index;
GLF_live7sum_index = (x_102 + 1);
GLF_live7sum_index = as_type<int>((as_type<uint>(x_102) + as_type<uint>(1)));
{
int const x_104 = GLF_live7cols_1;
GLF_live7cols_1 = (x_104 + 1);
GLF_live7cols_1 = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
}
}
{
int const x_106 = GLF_live4i;
GLF_live4i = (x_106 + 1);
GLF_live4i = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
}
}
return float3(1.0f, 1.0f, 1.0f);
@@ -292,7 +292,7 @@ void main_1(constant buf0& x_25, thread float4* const tint_symbol_5, thread floa
float3 const x_178 = drawShape_vf2_(x_25, &(param_2));
{
int const x_109 = i;
i = (x_109 - 1);
i = as_type<int>((as_type<uint>(x_109) - as_type<uint>(1)));
}
}
}

View File

@@ -35,13 +35,13 @@ float func_i1_(thread int* const b, thread float4* const tint_symbol_5, thread f
}
{
int const x_121 = i;
i = (x_121 + 1);
i = as_type<int>((as_type<uint>(x_121) + as_type<uint>(1)));
}
}
}
{
int const x_123 = ndx;
ndx = (x_123 + 1);
ndx = as_type<int>((as_type<uint>(x_123) + as_type<uint>(1)));
}
}
int const x_125 = *(b);
@@ -80,17 +80,17 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_7, thread floa
while (true) {
int const x_74 = x_1;
float const x_76 = x_11.zero;
if ((x_74 < (int(x_76) + 1))) {
if ((x_74 < as_type<int>((as_type<uint>(int(x_76)) + as_type<uint>(1))))) {
} else {
break;
}
int const x_81 = x_1;
param_1 = (x_81 + 10);
param_1 = as_type<int>((as_type<uint>(x_81) + as_type<uint>(10)));
float const x_83 = func_i1_(&(param_1), tint_symbol_8, tint_symbol_7);
f = x_83;
{
int const x_84 = x_1;
x_1 = (x_84 + 1);
x_1 = as_type<int>((as_type<uint>(x_84) + as_type<uint>(1)));
}
}
{

View File

@@ -35,13 +35,13 @@ float func_i1_(thread int* const b, thread float4* const tint_symbol_5, thread f
}
{
int const x_121 = i;
i = (x_121 + 1);
i = as_type<int>((as_type<uint>(x_121) + as_type<uint>(1)));
}
}
}
{
int const x_123 = ndx;
ndx = (x_123 + 1);
ndx = as_type<int>((as_type<uint>(x_123) + as_type<uint>(1)));
}
}
int const x_125 = *(b);
@@ -80,17 +80,17 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_7, thread floa
while (true) {
int const x_74 = x_1;
float const x_76 = x_11.zero;
if ((x_74 < (int(x_76) + 1))) {
if ((x_74 < as_type<int>((as_type<uint>(int(x_76)) + as_type<uint>(1))))) {
} else {
break;
}
int const x_81 = x_1;
param_1 = (x_81 + 10);
param_1 = as_type<int>((as_type<uint>(x_81) + as_type<uint>(10)));
float const x_83 = func_i1_(&(param_1), tint_symbol_8, tint_symbol_7);
f = x_83;
{
int const x_84 = x_1;
x_1 = (x_84 + 1);
x_1 = as_type<int>((as_type<uint>(x_84) + as_type<uint>(1)));
}
}
{

View File

@@ -20,7 +20,7 @@ float func_(constant buf0& x_8) {
while (true) {
int const x_47 = i;
int const x_49 = x_8.zero;
if ((x_47 < (x_49 + 1))) {
if ((x_47 < as_type<int>((as_type<uint>(x_49) + as_type<uint>(1))))) {
} else {
break;
}
@@ -39,12 +39,12 @@ float func_(constant buf0& x_8) {
}
{
int const x_67 = j;
j = (x_67 + 1);
j = as_type<int>((as_type<uint>(x_67) + as_type<uint>(1)));
}
}
{
int const x_69 = i;
i = (x_69 + 1);
i = as_type<int>((as_type<uint>(x_69) + as_type<uint>(1)));
}
}
float const x_71 = s;

View File

@@ -20,7 +20,7 @@ float func_(constant buf0& x_8) {
while (true) {
int const x_47 = i;
int const x_49 = x_8.zero;
if ((x_47 < (x_49 + 1))) {
if ((x_47 < as_type<int>((as_type<uint>(x_49) + as_type<uint>(1))))) {
} else {
break;
}
@@ -39,12 +39,12 @@ float func_(constant buf0& x_8) {
}
{
int const x_67 = j;
j = (x_67 + 1);
j = as_type<int>((as_type<uint>(x_67) + as_type<uint>(1)));
}
}
{
int const x_69 = i;
i = (x_69 + 1);
i = as_type<int>((as_type<uint>(x_69) + as_type<uint>(1)));
}
}
float const x_71 = s;

View File

@@ -49,7 +49,7 @@ void main_1(constant buf1& x_6, constant buf0& x_8, thread float4* const tint_sy
int const x_74 = v.x;
int const x_76 = x_8.x_GLF_uniform_int_values.arr[1].el;
float const x_80 = x_6.x_GLF_uniform_float_values.arr[1].el;
*(tint_symbol_6) = float4(x_63, float(((x_65 - x_67) & x_70)), float((x_74 & x_76)), x_80);
*(tint_symbol_6) = float4(x_63, float((as_type<int>((as_type<uint>(x_65) - as_type<uint>(x_67))) & x_70)), float((x_74 & x_76)), x_80);
}
return;
}

View File

@@ -49,7 +49,7 @@ void main_1(constant buf1& x_6, constant buf0& x_8, thread float4* const tint_sy
int const x_74 = v.x;
int const x_76 = x_8.x_GLF_uniform_int_values.arr[1].el;
float const x_80 = x_6.x_GLF_uniform_float_values.arr[1].el;
*(tint_symbol_6) = float4(x_63, float(((x_65 - x_67) & x_70)), float((x_74 & x_76)), x_80);
*(tint_symbol_6) = float4(x_63, float((as_type<int>((as_type<uint>(x_65) - as_type<uint>(x_67))) & x_70)), float((x_74 & x_76)), x_80);
}
return;
}

View File

@@ -36,7 +36,7 @@ void main_1(constant buf1& x_6, constant buf0& x_8, thread float4* const tint_sy
int const x_10 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_11 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_12 = x_6.x_GLF_uniform_int_values.arr[1].el;
bool const x_44 = (x_10 == (x_11 + x_12));
bool const x_44 = (x_10 == as_type<int>((as_type<uint>(x_11) + as_type<uint>(x_12))));
x_52_phi = x_44;
if (!(x_44)) {
float const x_48 = undefined;

View File

@@ -36,7 +36,7 @@ void main_1(constant buf1& x_6, constant buf0& x_8, thread float4* const tint_sy
int const x_10 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_11 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_12 = x_6.x_GLF_uniform_int_values.arr[1].el;
bool const x_44 = (x_10 == (x_11 + x_12));
bool const x_44 = (x_10 == as_type<int>((as_type<uint>(x_11) + as_type<uint>(x_12))));
x_52_phi = x_44;
if (!(x_44)) {
float const x_48 = undefined;

View File

@@ -41,7 +41,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
}
{
int const x_52 = i;
i = (x_52 + 1);
i = as_type<int>((as_type<uint>(x_52) + as_type<uint>(1)));
}
}
int const x_55 = x_6.x_GLF_uniform_int_values.arr[0].el;

View File

@@ -41,7 +41,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
}
{
int const x_52 = i;
i = (x_52 + 1);
i = as_type<int>((as_type<uint>(x_52) + as_type<uint>(1)));
}
}
int const x_55 = x_6.x_GLF_uniform_int_values.arr[0].el;

View File

@@ -45,12 +45,12 @@ void main_1(constant buf0& x_7, constant buf1& x_11, thread float4* const tint_s
int const x_49 = arr.arr[x_47];
a = x_49;
int const x_50 = a;
b = (x_50 - 1);
b = as_type<int>((as_type<uint>(x_50) - as_type<uint>(1)));
float const x_53 = (*(tint_symbol_6)).x;
float const x_55 = x_11.x_GLF_uniform_float_values.arr[0].el;
if ((x_53 < x_55)) {
int const x_59 = b;
b = (x_59 + 1);
b = as_type<int>((as_type<uint>(x_59) + as_type<uint>(1)));
}
int const x_62 = x_7.x_GLF_uniform_int_values.arr[0].el;
c = x_62;

View File

@@ -45,12 +45,12 @@ void main_1(constant buf0& x_7, constant buf1& x_11, thread float4* const tint_s
int const x_49 = arr.arr[x_47];
a = x_49;
int const x_50 = a;
b = (x_50 - 1);
b = as_type<int>((as_type<uint>(x_50) - as_type<uint>(1)));
float const x_53 = (*(tint_symbol_6)).x;
float const x_55 = x_11.x_GLF_uniform_float_values.arr[0].el;
if ((x_53 < x_55)) {
int const x_59 = b;
b = (x_59 + 1);
b = as_type<int>((as_type<uint>(x_59) + as_type<uint>(1)));
}
int const x_62 = x_7.x_GLF_uniform_int_values.arr[0].el;
c = x_62;

View File

@@ -80,7 +80,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_122 = limiter0;
limiter0 = (x_122 + 1);
limiter0 = as_type<int>((as_type<uint>(x_122) + as_type<uint>(1)));
int const x_125 = x_6.x_GLF_uniform_int_values.arr[2].el;
limiter1 = x_125;
int const x_127 = x_6.x_GLF_uniform_int_values.arr[3].el;
@@ -98,14 +98,14 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_143 = limiter1;
limiter1 = (x_143 + 1);
limiter1 = as_type<int>((as_type<uint>(x_143) + as_type<uint>(1)));
int const x_145 = b;
int const x_146 = a;
int const x_148 = arr1.arr[x_146];
arr0.arr[x_145] = x_148;
{
int const x_150 = b;
b = (x_150 + 1);
b = as_type<int>((as_type<uint>(x_150) + as_type<uint>(1)));
}
}
}
@@ -117,7 +117,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_159 = limiter2;
limiter2 = (x_159 + 1);
limiter2 = as_type<int>((as_type<uint>(x_159) + as_type<uint>(1)));
int const x_162 = arr1.arr[1];
arr0.arr[1] = x_162;
}
@@ -135,14 +135,14 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_179 = limiter3;
limiter3 = (x_179 + 1);
limiter3 = as_type<int>((as_type<uint>(x_179) + as_type<uint>(1)));
int const x_181 = d;
int const x_182 = d;
int const x_184 = arr0.arr[x_182];
arr1.arr[x_181] = x_184;
{
int const x_186 = d;
d = (x_186 + 1);
d = as_type<int>((as_type<uint>(x_186) + as_type<uint>(1)));
}
}
{
@@ -156,7 +156,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
}
{
int const x_193 = a;
a = (x_193 + 1);
a = as_type<int>((as_type<uint>(x_193) + as_type<uint>(1)));
}
}
int const x_196 = x_6.x_GLF_uniform_int_values.arr[11].el;
@@ -221,7 +221,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
}
{
int const x_285 = i;
i = (x_285 + 1);
i = as_type<int>((as_type<uint>(x_285) + as_type<uint>(1)));
}
}
return;

View File

@@ -80,7 +80,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_122 = limiter0;
limiter0 = (x_122 + 1);
limiter0 = as_type<int>((as_type<uint>(x_122) + as_type<uint>(1)));
int const x_125 = x_6.x_GLF_uniform_int_values.arr[2].el;
limiter1 = x_125;
int const x_127 = x_6.x_GLF_uniform_int_values.arr[3].el;
@@ -98,14 +98,14 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_143 = limiter1;
limiter1 = (x_143 + 1);
limiter1 = as_type<int>((as_type<uint>(x_143) + as_type<uint>(1)));
int const x_145 = b;
int const x_146 = a;
int const x_148 = arr1.arr[x_146];
arr0.arr[x_145] = x_148;
{
int const x_150 = b;
b = (x_150 + 1);
b = as_type<int>((as_type<uint>(x_150) + as_type<uint>(1)));
}
}
}
@@ -117,7 +117,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_159 = limiter2;
limiter2 = (x_159 + 1);
limiter2 = as_type<int>((as_type<uint>(x_159) + as_type<uint>(1)));
int const x_162 = arr1.arr[1];
arr0.arr[1] = x_162;
}
@@ -135,14 +135,14 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
break;
}
int const x_179 = limiter3;
limiter3 = (x_179 + 1);
limiter3 = as_type<int>((as_type<uint>(x_179) + as_type<uint>(1)));
int const x_181 = d;
int const x_182 = d;
int const x_184 = arr0.arr[x_182];
arr1.arr[x_181] = x_184;
{
int const x_186 = d;
d = (x_186 + 1);
d = as_type<int>((as_type<uint>(x_186) + as_type<uint>(1)));
}
}
{
@@ -156,7 +156,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
}
{
int const x_193 = a;
a = (x_193 + 1);
a = as_type<int>((as_type<uint>(x_193) + as_type<uint>(1)));
}
}
int const x_196 = x_6.x_GLF_uniform_int_values.arr[11].el;
@@ -221,7 +221,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_8) {
}
{
int const x_285 = i;
i = (x_285 + 1);
i = as_type<int>((as_type<uint>(x_285) + as_type<uint>(1)));
}
}
return;

View File

@@ -35,7 +35,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
param = x_35;
x_37 = func_i1_(&(param));
a = x_37;
int const x_36 = (x_35 + 1);
int const x_36 = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
b = x_36;
x_35_phi = x_36;
if ((x_36 < 4)) {

View File

@@ -35,7 +35,7 @@ void main_1(constant buf0& x_9, thread float4* const tint_symbol_4) {
param = x_35;
x_37 = func_i1_(&(param));
a = x_37;
int const x_36 = (x_35 + 1);
int const x_36 = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
b = x_36;
x_35_phi = x_36;
if ((x_36 < 4)) {

View File

@@ -36,7 +36,7 @@ int f1_(constant buf0& x_8, constant buf1& x_11, thread float4* const tint_symbo
float const x_67 = x_8.x_GLF_uniform_float_values.arr[0].el;
if ((x_65 > x_67)) {
int const x_71 = a;
a = (x_71 + 1);
a = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
}
int const x_73 = a;
i = popcount(x_73);

View File

@@ -36,7 +36,7 @@ int f1_(constant buf0& x_8, constant buf1& x_11, thread float4* const tint_symbo
float const x_67 = x_8.x_GLF_uniform_float_values.arr[0].el;
if ((x_65 > x_67)) {
int const x_71 = a;
a = (x_71 + 1);
a = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
}
int const x_73 = a;
i = popcount(x_73);

View File

@@ -33,18 +33,18 @@ void main_1(constant buf0& x_5, thread float4* const tint_symbol_4) {
x_28 = x_28_phi;
int const x_31 = x_31_phi;
x_42_phi = x_28;
if ((x_31 <= (x_24 - 1))) {
if ((x_31 <= as_type<int>((as_type<uint>(x_24) - as_type<uint>(1))))) {
} else {
break;
}
x_29 = as_type<int>((x_28 + as_type<int>(x_31)));
x_29 = as_type<int>(as_type<int>((as_type<uint>(x_28) + as_type<uint>(as_type<int>(x_31)))));
int const x_38 = x_5.x_GLF_uniform_int_values.arr[0].el;
if ((x_38 == 1)) {
x_42_phi = x_29;
break;
}
{
x_32 = (x_31 + 1);
x_32 = as_type<int>((as_type<uint>(x_31) + as_type<uint>(1)));
x_28_phi = x_29;
x_31_phi = x_32;
}

View File

@@ -33,18 +33,18 @@ void main_1(constant buf0& x_5, thread float4* const tint_symbol_4) {
x_28 = x_28_phi;
int const x_31 = x_31_phi;
x_42_phi = x_28;
if ((x_31 <= (x_24 - 1))) {
if ((x_31 <= as_type<int>((as_type<uint>(x_24) - as_type<uint>(1))))) {
} else {
break;
}
x_29 = as_type<int>((x_28 + as_type<int>(x_31)));
x_29 = as_type<int>(as_type<int>((as_type<uint>(x_28) + as_type<uint>(as_type<int>(x_31)))));
int const x_38 = x_5.x_GLF_uniform_int_values.arr[0].el;
if ((x_38 == 1)) {
x_42_phi = x_29;
break;
}
{
x_32 = (x_31 + 1);
x_32 = as_type<int>((as_type<uint>(x_31) + as_type<uint>(1)));
x_28_phi = x_29;
x_31_phi = x_32;
}

View File

@@ -82,45 +82,45 @@ void main_1(thread float4* const tint_symbol_5, thread float4* const tint_symbol
break;
}
int const x_104 = a;
a = (x_104 + 1);
a = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
{
int const x_106 = i8_1;
i8_1 = (x_106 + 1);
i8_1 = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
}
}
{
int const x_108 = i7;
i7 = (x_108 + 1);
i7 = as_type<int>((as_type<uint>(x_108) + as_type<uint>(1)));
}
}
{
int const x_110 = i6;
i6 = (x_110 + 1);
i6 = as_type<int>((as_type<uint>(x_110) + as_type<uint>(1)));
}
}
{
int const x_112 = i5;
i5 = (x_112 + 1);
i5 = as_type<int>((as_type<uint>(x_112) + as_type<uint>(1)));
}
}
{
int const x_114 = i4;
i4 = (x_114 + 1);
i4 = as_type<int>((as_type<uint>(x_114) + as_type<uint>(1)));
}
}
{
int const x_116 = i3;
i3 = (x_116 + 1);
i3 = as_type<int>((as_type<uint>(x_116) + as_type<uint>(1)));
}
}
{
int const x_118 = i2;
i2 = (x_118 + 1);
i2 = as_type<int>((as_type<uint>(x_118) + as_type<uint>(1)));
}
}
{
int const x_120 = i1;
i1 = (x_120 + 1);
i1 = as_type<int>((as_type<uint>(x_120) + as_type<uint>(1)));
}
}
{

View File

@@ -82,45 +82,45 @@ void main_1(thread float4* const tint_symbol_5, thread float4* const tint_symbol
break;
}
int const x_104 = a;
a = (x_104 + 1);
a = as_type<int>((as_type<uint>(x_104) + as_type<uint>(1)));
{
int const x_106 = i8_1;
i8_1 = (x_106 + 1);
i8_1 = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
}
}
{
int const x_108 = i7;
i7 = (x_108 + 1);
i7 = as_type<int>((as_type<uint>(x_108) + as_type<uint>(1)));
}
}
{
int const x_110 = i6;
i6 = (x_110 + 1);
i6 = as_type<int>((as_type<uint>(x_110) + as_type<uint>(1)));
}
}
{
int const x_112 = i5;
i5 = (x_112 + 1);
i5 = as_type<int>((as_type<uint>(x_112) + as_type<uint>(1)));
}
}
{
int const x_114 = i4;
i4 = (x_114 + 1);
i4 = as_type<int>((as_type<uint>(x_114) + as_type<uint>(1)));
}
}
{
int const x_116 = i3;
i3 = (x_116 + 1);
i3 = as_type<int>((as_type<uint>(x_116) + as_type<uint>(1)));
}
}
{
int const x_118 = i2;
i2 = (x_118 + 1);
i2 = as_type<int>((as_type<uint>(x_118) + as_type<uint>(1)));
}
}
{
int const x_120 = i1;
i1 = (x_120 + 1);
i1 = as_type<int>((as_type<uint>(x_120) + as_type<uint>(1)));
}
}
{

View File

@@ -102,22 +102,22 @@ void main_1(constant buf1& x_6, constant buf0& x_8, thread float4* const tint_sy
sums.arr[x_35] = (x_142 + x_140);
{
int const x_39 = d;
d = (x_39 + 1);
d = as_type<int>((as_type<uint>(x_39) + as_type<uint>(1)));
}
}
{
int const x_41 = c;
c = (x_41 + 1);
c = as_type<int>((as_type<uint>(x_41) + as_type<uint>(1)));
}
}
{
int const x_43 = b;
b = (x_43 + 1);
b = as_type<int>((as_type<uint>(x_43) + as_type<uint>(1)));
}
}
{
int const x_45 = a;
a = (x_45 + 1);
a = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
}
}
int const x_47 = x_6.x_GLF_uniform_int_values.arr[1].el;

View File

@@ -102,22 +102,22 @@ void main_1(constant buf1& x_6, constant buf0& x_8, thread float4* const tint_sy
sums.arr[x_35] = (x_142 + x_140);
{
int const x_39 = d;
d = (x_39 + 1);
d = as_type<int>((as_type<uint>(x_39) + as_type<uint>(1)));
}
}
{
int const x_41 = c;
c = (x_41 + 1);
c = as_type<int>((as_type<uint>(x_41) + as_type<uint>(1)));
}
}
{
int const x_43 = b;
b = (x_43 + 1);
b = as_type<int>((as_type<uint>(x_43) + as_type<uint>(1)));
}
}
{
int const x_45 = a;
a = (x_45 + 1);
a = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
}
}
int const x_47 = x_6.x_GLF_uniform_int_values.arr[1].el;

View File

@@ -59,7 +59,7 @@ void main_1(constant buf0& x_6, constant buf1& x_9, thread float4* const tint_sy
sums.arr[x_59] = (x_71 + x_69);
{
int const x_74 = i;
i = (x_74 + 1);
i = as_type<int>((as_type<uint>(x_74) + as_type<uint>(1)));
}
}
int const x_77 = x_9.x_GLF_uniform_int_values.arr[2].el;

View File

@@ -59,7 +59,7 @@ void main_1(constant buf0& x_6, constant buf1& x_9, thread float4* const tint_sy
sums.arr[x_59] = (x_71 + x_69);
{
int const x_74 = i;
i = (x_74 + 1);
i = as_type<int>((as_type<uint>(x_74) + as_type<uint>(1)));
}
}
int const x_77 = x_9.x_GLF_uniform_int_values.arr[2].el;

View File

@@ -61,7 +61,7 @@ void main_1(constant buf1& x_6, constant buf0& x_9, thread float4* const tint_sy
}
{
int const x_109 = i;
i = (x_109 + 1);
i = as_type<int>((as_type<uint>(x_109) + as_type<uint>(1)));
}
}
float4 const x_111 = v;

View File

@@ -61,7 +61,7 @@ void main_1(constant buf1& x_6, constant buf0& x_9, thread float4* const tint_sy
}
{
int const x_109 = i;
i = (x_109 + 1);
i = as_type<int>((as_type<uint>(x_109) + as_type<uint>(1)));
}
}
float4 const x_111 = v;

View File

@@ -113,15 +113,15 @@ void main_1(constant buf1& x_8, constant buf0& x_16, constant buf2& x_12, consta
}
int const x_91 = func1_(x_12, x_14, x_8, tint_symbol_9, tint_symbol_10);
int const x_92 = a_1;
a_1 = (x_92 + x_91);
a_1 = as_type<int>((as_type<uint>(x_92) + as_type<uint>(x_91)));
{
int const x_94 = j;
j = (x_94 + 1);
j = as_type<int>((as_type<uint>(x_94) + as_type<uint>(1)));
}
}
{
int const x_96 = i;
i = (x_96 + 1);
i = as_type<int>((as_type<uint>(x_96) + as_type<uint>(1)));
}
}
int const x_98 = a_1;

View File

@@ -113,15 +113,15 @@ void main_1(constant buf1& x_8, constant buf0& x_16, constant buf2& x_12, consta
}
int const x_91 = func1_(x_12, x_14, x_8, tint_symbol_9, tint_symbol_10);
int const x_92 = a_1;
a_1 = (x_92 + x_91);
a_1 = as_type<int>((as_type<uint>(x_92) + as_type<uint>(x_91)));
{
int const x_94 = j;
j = (x_94 + 1);
j = as_type<int>((as_type<uint>(x_94) + as_type<uint>(1)));
}
}
{
int const x_96 = i;
i = (x_96 + 1);
i = as_type<int>((as_type<uint>(x_96) + as_type<uint>(1)));
}
}
int const x_98 = a_1;

View File

@@ -35,11 +35,11 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
int const x_38 = i;
if ((~(x_38) != 0)) {
int const x_43 = a;
a = (x_43 + 1);
a = as_type<int>((as_type<uint>(x_43) + as_type<uint>(1)));
}
{
int const x_45 = i;
i = (x_45 + 1);
i = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
}
}
int const x_47 = a;

View File

@@ -35,11 +35,11 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
int const x_38 = i;
if ((~(x_38) != 0)) {
int const x_43 = a;
a = (x_43 + 1);
a = as_type<int>((as_type<uint>(x_43) + as_type<uint>(1)));
}
{
int const x_45 = i;
i = (x_45 + 1);
i = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
}
}
int const x_47 = a;

View File

@@ -50,7 +50,7 @@ void main_1(constant buf0& x_6, constant buf2& x_9, constant buf1& x_11, thread
break;
}
int const x_61 = a;
a = (x_61 + 1);
a = as_type<int>((as_type<uint>(x_61) + as_type<uint>(1)));
if ((x_61 > 3)) {
break;
}
@@ -61,7 +61,7 @@ void main_1(constant buf0& x_6, constant buf2& x_9, constant buf1& x_11, thread
}
{
int const x_73 = i;
i = (x_73 + 1);
i = as_type<int>((as_type<uint>(x_73) + as_type<uint>(1)));
}
}
return;

View File

@@ -50,7 +50,7 @@ void main_1(constant buf0& x_6, constant buf2& x_9, constant buf1& x_11, thread
break;
}
int const x_61 = a;
a = (x_61 + 1);
a = as_type<int>((as_type<uint>(x_61) + as_type<uint>(1)));
if ((x_61 > 3)) {
break;
}
@@ -61,7 +61,7 @@ void main_1(constant buf0& x_6, constant buf2& x_9, constant buf1& x_11, thread
}
{
int const x_73 = i;
i = (x_73 + 1);
i = as_type<int>((as_type<uint>(x_73) + as_type<uint>(1)));
}
}
return;

View File

@@ -21,9 +21,9 @@ void main_1(thread float4* const tint_symbol_4) {
break;
}
int const x_33 = i;
i = (x_33 + 1);
i = as_type<int>((as_type<uint>(x_33) + as_type<uint>(1)));
int const x_35 = j;
j = (x_35 + 1);
j = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
}
int const x_37 = i;
int const x_39 = j;

View File

@@ -21,9 +21,9 @@ void main_1(thread float4* const tint_symbol_4) {
break;
}
int const x_33 = i;
i = (x_33 + 1);
i = as_type<int>((as_type<uint>(x_33) + as_type<uint>(1)));
int const x_35 = j;
j = (x_35 + 1);
j = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
}
int const x_37 = i;
int const x_39 = j;

View File

@@ -29,7 +29,7 @@ void main_1(constant buf0& x_8, thread float4* const tint_symbol_4) {
int const x_42 = i;
int const x_43 = highSigned;
int const x_46 = x_8.zero;
if ((x_42 < (min(10, x_43) + x_46))) {
if ((x_42 < as_type<int>((as_type<uint>(min(10, x_43)) + as_type<uint>(x_46))))) {
} else {
break;
}
@@ -37,7 +37,7 @@ void main_1(constant buf0& x_8, thread float4* const tint_symbol_4) {
data.arr[x_50] = 5;
{
int const x_52 = i;
i = (x_52 + 1);
i = as_type<int>((as_type<uint>(x_52) + as_type<uint>(1)));
}
}
i_1 = 1u;

View File

@@ -29,7 +29,7 @@ void main_1(constant buf0& x_8, thread float4* const tint_symbol_4) {
int const x_42 = i;
int const x_43 = highSigned;
int const x_46 = x_8.zero;
if ((x_42 < (min(10, x_43) + x_46))) {
if ((x_42 < as_type<int>((as_type<uint>(min(10, x_43)) + as_type<uint>(x_46))))) {
} else {
break;
}
@@ -37,7 +37,7 @@ void main_1(constant buf0& x_8, thread float4* const tint_symbol_4) {
data.arr[x_50] = 5;
{
int const x_52 = i;
i = (x_52 + 1);
i = as_type<int>((as_type<uint>(x_52) + as_type<uint>(1)));
}
}
i_1 = 1u;

View File

@@ -36,7 +36,7 @@ void main_1(constant buf0& x_6, constant buf1& x_8, thread float4* const tint_sy
int const x_35 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_37 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_39 = x_6.x_GLF_uniform_int_values.arr[1].el;
bool const x_41 = (x_35 == (x_37 + x_39));
bool const x_41 = (x_35 == as_type<int>((as_type<uint>(x_37) + as_type<uint>(x_39))));
x_49_phi = x_41;
if (!(x_41)) {
float const x_45 = f;

View File

@@ -36,7 +36,7 @@ void main_1(constant buf0& x_6, constant buf1& x_8, thread float4* const tint_sy
int const x_35 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_37 = x_6.x_GLF_uniform_int_values.arr[0].el;
int const x_39 = x_6.x_GLF_uniform_int_values.arr[1].el;
bool const x_41 = (x_35 == (x_37 + x_39));
bool const x_41 = (x_35 == as_type<int>((as_type<uint>(x_37) + as_type<uint>(x_39))));
x_49_phi = x_41;
if (!(x_41)) {
float const x_45 = f;

View File

@@ -28,7 +28,7 @@ void main_1(thread float4* const tint_symbol_4) {
{
float2 const x_32 = float2(1.0f, float(x_5));
x_27 = float2(x_32.x, x_32.y);
x_4 = (x_5 + 1);
x_4 = as_type<int>((as_type<uint>(x_5) + as_type<uint>(1)));
x_26_phi = x_27;
x_5_phi = x_4;
}

View File

@@ -28,7 +28,7 @@ void main_1(thread float4* const tint_symbol_4) {
{
float2 const x_32 = float2(1.0f, float(x_5));
x_27 = float2(x_32.x, x_32.y);
x_4 = (x_5 + 1);
x_4 = as_type<int>((as_type<uint>(x_5) + as_type<uint>(1)));
x_26_phi = x_27;
x_5_phi = x_4;
}

View File

@@ -43,12 +43,12 @@ int func_f1_(constant buf0& x_8, thread float* const f) {
float const x_80 = *(f);
int const x_83 = x_8.x_GLF_uniform_int_values.arr[1].el;
int const x_86 = i;
a = ((int(x_80) - (x_83 / 2)) + x_86);
a = as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(int(x_80)) - as_type<uint>((x_83 / 2))))) + as_type<uint>(x_86)));
int const x_88 = b;
b = (x_88 + 1);
b = as_type<int>((as_type<uint>(x_88) + as_type<uint>(1)));
{
int const x_90 = i;
i = (x_90 + 1);
i = as_type<int>((as_type<uint>(x_90) + as_type<uint>(1)));
}
}
int const x_92 = b;

View File

@@ -43,12 +43,12 @@ int func_f1_(constant buf0& x_8, thread float* const f) {
float const x_80 = *(f);
int const x_83 = x_8.x_GLF_uniform_int_values.arr[1].el;
int const x_86 = i;
a = ((int(x_80) - (x_83 / 2)) + x_86);
a = as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(int(x_80)) - as_type<uint>((x_83 / 2))))) + as_type<uint>(x_86)));
int const x_88 = b;
b = (x_88 + 1);
b = as_type<int>((as_type<uint>(x_88) + as_type<uint>(1)));
{
int const x_90 = i;
i = (x_90 + 1);
i = as_type<int>((as_type<uint>(x_90) + as_type<uint>(1)));
}
}
int const x_92 = b;

View File

@@ -48,7 +48,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
int const x_56 = x_6.x_GLF_uniform_int_values.arr[3].el;
if ((x_54 > x_56)) {
int const x_60 = a;
a = (x_60 + 1);
a = as_type<int>((as_type<uint>(x_60) + as_type<uint>(1)));
if (false) {
int const x_65 = x_6.x_GLF_uniform_int_values.arr[2].el;
i_1 = x_65;
@@ -65,7 +65,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
}
{
int const x_75 = i;
i = (x_75 + 1);
i = as_type<int>((as_type<uint>(x_75) + as_type<uint>(1)));
}
}
int const x_78 = x_6.x_GLF_uniform_int_values.arr[2].el;
@@ -84,10 +84,10 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
indexable = tint_symbol_3;
int const x_95 = indexable.arr[x_93];
int const x_96 = a;
a = (x_96 + x_95);
a = as_type<int>((as_type<uint>(x_96) + as_type<uint>(x_95)));
{
int const x_98 = i_2;
i_2 = (x_98 + 1);
i_2 = as_type<int>((as_type<uint>(x_98) + as_type<uint>(1)));
}
}
int const x_100 = a;

View File

@@ -48,7 +48,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
int const x_56 = x_6.x_GLF_uniform_int_values.arr[3].el;
if ((x_54 > x_56)) {
int const x_60 = a;
a = (x_60 + 1);
a = as_type<int>((as_type<uint>(x_60) + as_type<uint>(1)));
if (false) {
int const x_65 = x_6.x_GLF_uniform_int_values.arr[2].el;
i_1 = x_65;
@@ -65,7 +65,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
}
{
int const x_75 = i;
i = (x_75 + 1);
i = as_type<int>((as_type<uint>(x_75) + as_type<uint>(1)));
}
}
int const x_78 = x_6.x_GLF_uniform_int_values.arr[2].el;
@@ -84,10 +84,10 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_5) {
indexable = tint_symbol_3;
int const x_95 = indexable.arr[x_93];
int const x_96 = a;
a = (x_96 + x_95);
a = as_type<int>((as_type<uint>(x_96) + as_type<uint>(x_95)));
{
int const x_98 = i_2;
i_2 = (x_98 + 1);
i_2 = as_type<int>((as_type<uint>(x_98) + as_type<uint>(1)));
}
}
int const x_100 = a;

View File

@@ -31,7 +31,7 @@ void main_1(thread float4* const tint_symbol_5) {
int const x_41 = i;
if ((x_41 > 1)) {
int const x_45 = a;
a = (x_45 + 1);
a = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
if (false) {
i_1 = 0;
while (true) {
@@ -46,7 +46,7 @@ void main_1(thread float4* const tint_symbol_5) {
}
{
int const x_56 = i;
i = (x_56 + 1);
i = as_type<int>((as_type<uint>(x_56) + as_type<uint>(1)));
}
}
i_2 = 0;
@@ -61,10 +61,10 @@ void main_1(thread float4* const tint_symbol_5) {
indexable = tint_symbol_3;
int const x_67 = indexable.arr[x_65];
int const x_68 = a;
a = (x_68 + x_67);
a = as_type<int>((as_type<uint>(x_68) + as_type<uint>(x_67)));
{
int const x_70 = i_2;
i_2 = (x_70 + 1);
i_2 = as_type<int>((as_type<uint>(x_70) + as_type<uint>(1)));
}
}
int const x_72 = a;

View File

@@ -31,7 +31,7 @@ void main_1(thread float4* const tint_symbol_5) {
int const x_41 = i;
if ((x_41 > 1)) {
int const x_45 = a;
a = (x_45 + 1);
a = as_type<int>((as_type<uint>(x_45) + as_type<uint>(1)));
if (false) {
i_1 = 0;
while (true) {
@@ -46,7 +46,7 @@ void main_1(thread float4* const tint_symbol_5) {
}
{
int const x_56 = i;
i = (x_56 + 1);
i = as_type<int>((as_type<uint>(x_56) + as_type<uint>(1)));
}
}
i_2 = 0;
@@ -61,10 +61,10 @@ void main_1(thread float4* const tint_symbol_5) {
indexable = tint_symbol_3;
int const x_67 = indexable.arr[x_65];
int const x_68 = a;
a = (x_68 + x_67);
a = as_type<int>((as_type<uint>(x_68) + as_type<uint>(x_67)));
{
int const x_70 = i_2;
i_2 = (x_70 + 1);
i_2 = as_type<int>((as_type<uint>(x_70) + as_type<uint>(1)));
}
}
int const x_72 = a;

View File

@@ -38,7 +38,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
v[uint3(0u, 1u, 2u)[x_50]] = float(x_51);
{
int const x_55 = i;
i = (x_55 + 1);
i = as_type<int>((as_type<uint>(x_55) + as_type<uint>(1)));
}
}
float4 const x_57 = v;

View File

@@ -38,7 +38,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
v[uint3(0u, 1u, 2u)[x_50]] = float(x_51);
{
int const x_55 = i;
i = (x_55 + 1);
i = as_type<int>((as_type<uint>(x_55) + as_type<uint>(1)));
}
}
float4 const x_57 = v;

View File

@@ -1,6 +1,11 @@
#include <metal_stdlib>
using namespace metal;
int tint_unary_minus(const int v) {
return select(-v, v, v == -2147483648);
}
struct tint_padded_array_element {
/* 0x0000 */ int el;
/* 0x0004 */ int8_t tint_pad[12];
@@ -24,10 +29,10 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
int const x_27 = x_6.x_GLF_uniform_int_values.arr[1].el;
a = x_27;
int const x_29 = x_6.x_GLF_uniform_int_values.arr[3].el;
i = -(x_29);
i = tint_unary_minus(x_29);
while (true) {
int const x_35 = i;
int const x_36 = (x_35 + 1);
int const x_36 = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
i = x_36;
int const x_39 = x_6.x_GLF_uniform_int_values.arr[2].el;
if ((reverse_bits(x_36) <= x_39)) {
@@ -35,7 +40,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
break;
}
int const x_42 = a;
a = (x_42 + 1);
a = as_type<int>((as_type<uint>(x_42) + as_type<uint>(1)));
}
int const x_44 = a;
int const x_46 = x_6.x_GLF_uniform_int_values.arr[0].el;

View File

@@ -1,6 +1,11 @@
#include <metal_stdlib>
using namespace metal;
int tint_unary_minus(const int v) {
return select(-v, v, v == -2147483648);
}
struct tint_padded_array_element {
/* 0x0000 */ int el;
/* 0x0004 */ int8_t tint_pad[12];
@@ -24,10 +29,10 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
int const x_27 = x_6.x_GLF_uniform_int_values.arr[1].el;
a = x_27;
int const x_29 = x_6.x_GLF_uniform_int_values.arr[3].el;
i = -(x_29);
i = tint_unary_minus(x_29);
while (true) {
int const x_35 = i;
int const x_36 = (x_35 + 1);
int const x_36 = as_type<int>((as_type<uint>(x_35) + as_type<uint>(1)));
i = x_36;
int const x_39 = x_6.x_GLF_uniform_int_values.arr[2].el;
if ((reverse_bits(x_36) <= x_39)) {
@@ -35,7 +40,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
break;
}
int const x_42 = a;
a = (x_42 + 1);
a = as_type<int>((as_type<uint>(x_42) + as_type<uint>(1)));
}
int const x_44 = a;
int const x_46 = x_6.x_GLF_uniform_int_values.arr[0].el;

View File

@@ -34,12 +34,12 @@ void main_1(constant buf1& x_8, constant buf0& x_10, thread float4* const tint_s
}
int const x_46 = x_10.minusEight;
int const x_48 = a;
a = (x_48 + (x_46 / -4));
a = as_type<int>((as_type<uint>(x_48) + as_type<uint>((x_46 / -4))));
int const x_50 = b;
b = (x_50 + 1);
b = as_type<int>((as_type<uint>(x_50) + as_type<uint>(1)));
{
int const x_52 = i;
i = (x_52 + 1);
i = as_type<int>((as_type<uint>(x_52) + as_type<uint>(1)));
}
}
int const x_54 = b;

View File

@@ -34,12 +34,12 @@ void main_1(constant buf1& x_8, constant buf0& x_10, thread float4* const tint_s
}
int const x_46 = x_10.minusEight;
int const x_48 = a;
a = (x_48 + (x_46 / -4));
a = as_type<int>((as_type<uint>(x_48) + as_type<uint>((x_46 / -4))));
int const x_50 = b;
b = (x_50 + 1);
b = as_type<int>((as_type<uint>(x_50) + as_type<uint>(1)));
{
int const x_52 = i;
i = (x_52 + 1);
i = as_type<int>((as_type<uint>(x_52) + as_type<uint>(1)));
}
}
int const x_54 = b;

View File

@@ -36,7 +36,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
v[x_50] = (x_51 + float(x_52));
{
int const x_56 = i;
i = (x_56 + 1);
i = as_type<int>((as_type<uint>(x_56) + as_type<uint>(1)));
}
}
float const x_59 = x_6.one;

View File

@@ -36,7 +36,7 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
v[x_50] = (x_51 + float(x_52));
{
int const x_56 = i;
i = (x_56 + 1);
i = as_type<int>((as_type<uint>(x_56) + as_type<uint>(1)));
}
}
float const x_59 = x_6.one;

View File

@@ -34,7 +34,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_5, thread tint
(*(tint_symbol_7)).arr[x_16] = 0.0f;
float const x_65 = x_11.injectionSwitch.x;
int const x_18 = q;
switch((int(x_65) + x_18)) {
switch(as_type<int>((as_type<uint>(int(x_65)) + as_type<uint>(x_18)))) {
case 51: {
while (true) {
if (true) {
@@ -62,7 +62,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_5, thread tint
}
{
int const x_22 = c;
c = (x_22 + 1);
c = as_type<int>((as_type<uint>(x_22) + as_type<uint>(1)));
}
}
int const x_24 = i;

View File

@@ -34,7 +34,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_5, thread tint
(*(tint_symbol_7)).arr[x_16] = 0.0f;
float const x_65 = x_11.injectionSwitch.x;
int const x_18 = q;
switch((int(x_65) + x_18)) {
switch(as_type<int>((as_type<uint>(int(x_65)) + as_type<uint>(x_18)))) {
case 51: {
while (true) {
if (true) {
@@ -62,7 +62,7 @@ void main_1(constant buf0& x_11, thread float4* const tint_symbol_5, thread tint
}
{
int const x_22 = c;
c = (x_22 + 1);
c = as_type<int>((as_type<uint>(x_22) + as_type<uint>(1)));
}
}
int const x_24 = i;

View File

@@ -47,13 +47,13 @@ void main_1(constant buf1& x_7, constant buf0& x_10, constant buf2& x_12, thread
break;
}
int const x_54 = *(tint_symbol_4);
*(tint_symbol_4) = (x_54 + 1);
*(tint_symbol_4) = as_type<int>((as_type<uint>(x_54) + as_type<uint>(1)));
float2 const x_57 = x_12.injectionSwitch;
float const x_60 = f;
f = (x_60 + dfdx(x_57).y);
{
int const x_62 = r;
r = (x_62 + 1);
r = as_type<int>((as_type<uint>(x_62) + as_type<uint>(1)));
}
}
while (true) {
@@ -63,7 +63,7 @@ void main_1(constant buf1& x_7, constant buf0& x_10, constant buf2& x_12, thread
break;
}
int const x_71 = *(tint_symbol_4);
*(tint_symbol_4) = (x_71 + 1);
*(tint_symbol_4) = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
float const x_74 = x_7.x_GLF_uniform_float_values.arr[0].el;
float const x_75 = f;
f = (x_75 + x_74);

View File

@@ -47,13 +47,13 @@ void main_1(constant buf1& x_7, constant buf0& x_10, constant buf2& x_12, thread
break;
}
int const x_54 = *(tint_symbol_4);
*(tint_symbol_4) = (x_54 + 1);
*(tint_symbol_4) = as_type<int>((as_type<uint>(x_54) + as_type<uint>(1)));
float2 const x_57 = x_12.injectionSwitch;
float const x_60 = f;
f = (x_60 + dfdx(x_57).y);
{
int const x_62 = r;
r = (x_62 + 1);
r = as_type<int>((as_type<uint>(x_62) + as_type<uint>(1)));
}
}
while (true) {
@@ -63,7 +63,7 @@ void main_1(constant buf1& x_7, constant buf0& x_10, constant buf2& x_12, thread
break;
}
int const x_71 = *(tint_symbol_4);
*(tint_symbol_4) = (x_71 + 1);
*(tint_symbol_4) = as_type<int>((as_type<uint>(x_71) + as_type<uint>(1)));
float const x_74 = x_7.x_GLF_uniform_float_values.arr[0].el;
float const x_75 = f;
f = (x_75 + x_74);

View File

@@ -49,7 +49,7 @@ void main_1(constant buf0& x_6, constant buf1& x_9, thread float4* const tint_sy
f = fmin(fmax(x_53, 0.0f), 0.0f);
{
int const x_56 = i;
i = (x_56 - 1);
i = as_type<int>((as_type<uint>(x_56) - as_type<uint>(1)));
}
}
float const x_58 = f;

View File

@@ -49,7 +49,7 @@ void main_1(constant buf0& x_6, constant buf1& x_9, thread float4* const tint_sy
f = fmin(fmax(x_53, 0.0f), 0.0f);
{
int const x_56 = i;
i = (x_56 - 1);
i = as_type<int>((as_type<uint>(x_56) - as_type<uint>(1)));
}
}
float const x_58 = f;

View File

@@ -24,7 +24,7 @@ int func_(constant buf0& x_7) {
i = x_53;
while (true) {
int const x_58 = i;
i = (x_58 + 1);
i = as_type<int>((as_type<uint>(x_58) + as_type<uint>(1)));
if (true) {
if (true) {
int const x_65 = x_7.x_GLF_uniform_int_values.arr[2].el;

View File

@@ -24,7 +24,7 @@ int func_(constant buf0& x_7) {
i = x_53;
while (true) {
int const x_58 = i;
i = (x_58 + 1);
i = as_type<int>((as_type<uint>(x_58) + as_type<uint>(1)));
if (true) {
if (true) {
int const x_65 = x_7.x_GLF_uniform_int_values.arr[2].el;

View File

@@ -42,11 +42,11 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5) {
}
{
int const x_59 = i;
i = (x_59 + 1);
i = as_type<int>((as_type<uint>(x_59) + as_type<uint>(1)));
}
}
int const x_61 = a;
a = (x_61 + 1);
a = as_type<int>((as_type<uint>(x_61) + as_type<uint>(1)));
}
int const x_63 = a;
int const x_66 = x_7.x_GLF_uniform_int_values.arr[2].el;

View File

@@ -42,11 +42,11 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5) {
}
{
int const x_59 = i;
i = (x_59 + 1);
i = as_type<int>((as_type<uint>(x_59) + as_type<uint>(1)));
}
}
int const x_61 = a;
a = (x_61 + 1);
a = as_type<int>((as_type<uint>(x_61) + as_type<uint>(1)));
}
int const x_63 = a;
int const x_66 = x_7.x_GLF_uniform_int_values.arr[2].el;

View File

@@ -24,11 +24,11 @@ int func_(constant buf0& x_8) {
break;
}
int const x_44 = ret;
ret = (x_44 + 1);
ret = as_type<int>((as_type<uint>(x_44) + as_type<uint>(1)));
{
int const x_47 = x_8.one;
int const x_48 = i;
i = (x_48 - x_47);
i = as_type<int>((as_type<uint>(x_48) - as_type<uint>(x_47)));
}
}
int const x_50 = ret;

View File

@@ -24,11 +24,11 @@ int func_(constant buf0& x_8) {
break;
}
int const x_44 = ret;
ret = (x_44 + 1);
ret = as_type<int>((as_type<uint>(x_44) + as_type<uint>(1)));
{
int const x_47 = x_8.one;
int const x_48 = i;
i = (x_48 - x_47);
i = as_type<int>((as_type<uint>(x_48) - as_type<uint>(x_47)));
}
}
int const x_50 = ret;

View File

@@ -13,7 +13,7 @@ void main_1(thread float4* const tint_symbol_5, thread float4* const tint_symbol
i = 2;
while (true) {
int const x_6 = i;
i = (x_6 + 1);
i = as_type<int>((as_type<uint>(x_6) + as_type<uint>(1)));
{
float const x_35 = (*(tint_symbol_5)).x;
if (((x_35 >= 0.0f) & false)) {

View File

@@ -13,7 +13,7 @@ void main_1(thread float4* const tint_symbol_5, thread float4* const tint_symbol
i = 2;
while (true) {
int const x_6 = i;
i = (x_6 + 1);
i = as_type<int>((as_type<uint>(x_6) + as_type<uint>(1)));
{
float const x_35 = (*(tint_symbol_5)).x;
if (((x_35 >= 0.0f) && false)) {

View File

@@ -1,6 +1,11 @@
#include <metal_stdlib>
using namespace metal;
int tint_unary_minus(const int v) {
return select(-v, v, v == -2147483648);
}
struct buf0 {
/* 0x0000 */ int minusOne;
};
@@ -16,11 +21,11 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_4) {
int negMinValue = 0;
minValue = (-2147483647 - 1);
int const x_25 = minValue;
negMinValue = -(x_25);
negMinValue = tint_unary_minus(x_25);
int const x_27 = negMinValue;
int const x_28 = minValue;
int const x_30 = x_7.minusOne;
if ((x_27 == (x_28 * x_30))) {
if ((x_27 == as_type<int>((as_type<uint>(x_28) * as_type<uint>(x_30))))) {
*(tint_symbol_4) = float4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
*(tint_symbol_4) = float4(0.0f, 0.0f, 0.0f, 0.0f);

View File

@@ -1,6 +1,11 @@
#include <metal_stdlib>
using namespace metal;
int tint_unary_minus(const int v) {
return select(-v, v, v == -2147483648);
}
struct buf0 {
/* 0x0000 */ int minusOne;
};
@@ -16,11 +21,11 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_4) {
int negMinValue = 0;
minValue = (-2147483647 - 1);
int const x_25 = minValue;
negMinValue = -(x_25);
negMinValue = tint_unary_minus(x_25);
int const x_27 = negMinValue;
int const x_28 = minValue;
int const x_30 = x_7.minusOne;
if ((x_27 == (x_28 * x_30))) {
if ((x_27 == as_type<int>((as_type<uint>(x_28) * as_type<uint>(x_30))))) {
*(tint_symbol_4) = float4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
*(tint_symbol_4) = float4(0.0f, 0.0f, 0.0f, 0.0f);

View File

@@ -13,7 +13,7 @@ struct tint_symbol_1 {
void main_1(constant buf0& x_5, thread float4* const tint_symbol_4) {
int const x_24 = x_5.one;
if (((1 + (3 - x_24)) == 3)) {
if ((as_type<int>((as_type<uint>(1) + as_type<uint>(as_type<int>((as_type<uint>(3) - as_type<uint>(x_24)))))) == 3)) {
*(tint_symbol_4) = float4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
*(tint_symbol_4) = float4(0.0f, 0.0f, 0.0f, 0.0f);

View File

@@ -13,7 +13,7 @@ struct tint_symbol_1 {
void main_1(constant buf0& x_5, thread float4* const tint_symbol_4) {
int const x_24 = x_5.one;
if (((1 + (3 - x_24)) == 3)) {
if ((as_type<int>((as_type<uint>(1) + as_type<uint>(as_type<int>((as_type<uint>(3) - as_type<uint>(x_24)))))) == 3)) {
*(tint_symbol_4) = float4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
*(tint_symbol_4) = float4(0.0f, 0.0f, 0.0f, 0.0f);

View File

@@ -18,9 +18,9 @@ void main_1(thread float4* const tint_symbol_4) {
break;
}
int const x_6 = i;
i = (x_6 - 3);
i = as_type<int>((as_type<uint>(x_6) - as_type<uint>(3)));
int const x_8 = i;
i = (x_8 + 1);
i = as_type<int>((as_type<uint>(x_8) + as_type<uint>(1)));
}
int const x_10 = i;
if ((x_10 == -1)) {

View File

@@ -18,9 +18,9 @@ void main_1(thread float4* const tint_symbol_4) {
break;
}
int const x_6 = i;
i = (x_6 - 3);
i = as_type<int>((as_type<uint>(x_6) - as_type<uint>(3)));
int const x_8 = i;
i = (x_8 + 1);
i = as_type<int>((as_type<uint>(x_8) + as_type<uint>(1)));
}
int const x_10 = i;
if ((x_10 == -1)) {

View File

@@ -28,7 +28,7 @@ void main_1(thread float4* const tint_symbol_4) {
}
{
int const x_9 = i;
i = (x_9 - 1);
i = as_type<int>((as_type<uint>(x_9) - as_type<uint>(1)));
}
}
bool const x_44 = b;

View File

@@ -28,7 +28,7 @@ void main_1(thread float4* const tint_symbol_4) {
}
{
int const x_9 = i;
i = (x_9 - 1);
i = as_type<int>((as_type<uint>(x_9) - as_type<uint>(1)));
}
}
bool const x_44 = b;

View File

@@ -28,7 +28,7 @@ void main_1(thread float4* const tint_symbol_4) {
}
{
int const x_9 = i;
i = (x_9 - 1);
i = as_type<int>((as_type<uint>(x_9) - as_type<uint>(1)));
}
}
bool const x_45 = b;

View File

@@ -28,7 +28,7 @@ void main_1(thread float4* const tint_symbol_4) {
}
{
int const x_9 = i;
i = (x_9 - 1);
i = as_type<int>((as_type<uint>(x_9) - as_type<uint>(1)));
}
}
bool const x_45 = b;

View File

@@ -22,9 +22,9 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
break;
}
int const x_34 = i;
i = (x_34 - 1);
i = as_type<int>((as_type<uint>(x_34) - as_type<uint>(1)));
int const x_36 = i;
i = (x_36 - 1);
i = as_type<int>((as_type<uint>(x_36) - as_type<uint>(1)));
}
int const x_38 = i;
if ((x_38 == -1)) {

View File

@@ -22,9 +22,9 @@ void main_1(constant buf0& x_6, thread float4* const tint_symbol_4) {
break;
}
int const x_34 = i;
i = (x_34 - 1);
i = as_type<int>((as_type<uint>(x_34) - as_type<uint>(1)));
int const x_36 = i;
i = (x_36 - 1);
i = as_type<int>((as_type<uint>(x_36) - as_type<uint>(1)));
}
int const x_38 = i;
if ((x_38 == -1)) {

Some files were not shown because too many files have changed in this diff Show More