mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +00:00
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:
committed by
Tint LUCI CQ
parent
9bdf2dcc6b
commit
d388bc9b36
@@ -41,7 +41,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
(*(tint_symbol_6)).arr[x_78] = 0;
|
||||
{
|
||||
int const x_80 = i;
|
||||
i = (x_80 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_80) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
p = int2(0, 0);
|
||||
@@ -57,7 +57,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
bool x_143_phi = false;
|
||||
bool x_163_phi = false;
|
||||
int const x_86 = v;
|
||||
v = (x_86 + 1);
|
||||
v = as_type<int>((as_type<uint>(x_86) + as_type<uint>(1)));
|
||||
directions = 0;
|
||||
int const x_89 = p.x;
|
||||
bool const x_90 = (x_89 > 0);
|
||||
@@ -65,14 +65,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_90) {
|
||||
int const x_94 = p.x;
|
||||
int const x_97 = p.y;
|
||||
int const x_101 = (*(tint_symbol_6)).arr[((x_94 - 2) + (x_97 * 16))];
|
||||
int const x_101 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_94) - as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_97) * as_type<uint>(16))))))];
|
||||
x_102 = (x_101 == 0);
|
||||
x_103_phi = x_102;
|
||||
}
|
||||
bool const x_103 = x_103_phi;
|
||||
if (x_103) {
|
||||
int const x_106 = directions;
|
||||
directions = (x_106 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
|
||||
}
|
||||
int const x_109 = p.y;
|
||||
bool const x_110 = (x_109 > 0);
|
||||
@@ -80,14 +80,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_110) {
|
||||
int const x_114 = p.x;
|
||||
int const x_116 = p.y;
|
||||
int const x_121 = (*(tint_symbol_6)).arr[(x_114 + ((x_116 - 2) * 16))];
|
||||
int const x_121 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_114) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_116) - as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_122 = (x_121 == 0);
|
||||
x_123_phi = x_122;
|
||||
}
|
||||
bool const x_123 = x_123_phi;
|
||||
if (x_123) {
|
||||
int const x_126 = directions;
|
||||
directions = (x_126 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_126) + as_type<uint>(1)));
|
||||
}
|
||||
int const x_129 = p.x;
|
||||
bool const x_130 = (x_129 < 14);
|
||||
@@ -95,14 +95,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_130) {
|
||||
int const x_134 = p.x;
|
||||
int const x_137 = p.y;
|
||||
int const x_141 = (*(tint_symbol_6)).arr[((x_134 + 2) + (x_137 * 16))];
|
||||
int const x_141 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_134) + as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_137) * as_type<uint>(16))))))];
|
||||
x_142 = (x_141 == 0);
|
||||
x_143_phi = x_142;
|
||||
}
|
||||
bool const x_143 = x_143_phi;
|
||||
if (x_143) {
|
||||
int const x_146 = directions;
|
||||
directions = (x_146 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_146) + as_type<uint>(1)));
|
||||
}
|
||||
int const x_149 = p.y;
|
||||
bool const x_150 = (x_149 < 14);
|
||||
@@ -110,14 +110,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_150) {
|
||||
int const x_154 = p.x;
|
||||
int const x_156 = p.y;
|
||||
int const x_161 = (*(tint_symbol_6)).arr[(x_154 + ((x_156 + 2) * 16))];
|
||||
int const x_161 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_154) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_156) + as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_162 = (x_161 == 0);
|
||||
x_163_phi = x_162;
|
||||
}
|
||||
bool const x_163 = x_163_phi;
|
||||
if (x_163) {
|
||||
int const x_166 = directions;
|
||||
directions = (x_166 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_166) + as_type<uint>(1)));
|
||||
}
|
||||
bool x_227 = false;
|
||||
bool x_240 = false;
|
||||
@@ -154,34 +154,34 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
}
|
||||
int const x_187 = j;
|
||||
int const x_189 = i;
|
||||
int const x_194 = (*(tint_symbol_6)).arr[((x_187 * 2) + ((x_189 * 2) * 16))];
|
||||
int const x_194 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_187) * as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_189) * as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
if ((x_194 == 0)) {
|
||||
int const x_198 = j;
|
||||
p.x = (x_198 * 2);
|
||||
p.x = as_type<int>((as_type<uint>(x_198) * as_type<uint>(2)));
|
||||
int const x_201 = i;
|
||||
p.y = (x_201 * 2);
|
||||
p.y = as_type<int>((as_type<uint>(x_201) * as_type<uint>(2)));
|
||||
canwalk = true;
|
||||
}
|
||||
{
|
||||
int const x_204 = j;
|
||||
j = (x_204 + 1);
|
||||
j = as_type<int>((as_type<uint>(x_204) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_206 = i;
|
||||
i = (x_206 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_206) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_209 = p.x;
|
||||
int const x_211 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_209 + (x_211 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_209) + as_type<uint>(as_type<int>((as_type<uint>(x_211) * as_type<uint>(16))))))] = 1;
|
||||
} else {
|
||||
int const x_215 = v;
|
||||
int const x_216 = directions;
|
||||
d = (x_215 % x_216);
|
||||
int const x_218 = directions;
|
||||
int const x_219 = v;
|
||||
v = (x_219 + x_218);
|
||||
v = as_type<int>((as_type<uint>(x_219) + as_type<uint>(x_218)));
|
||||
int const x_221 = d;
|
||||
bool const x_222 = (x_221 >= 0);
|
||||
x_228_phi = x_222;
|
||||
@@ -195,25 +195,25 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_228) {
|
||||
int const x_232 = p.x;
|
||||
int const x_235 = p.y;
|
||||
int const x_239 = (*(tint_symbol_6)).arr[((x_232 - 2) + (x_235 * 16))];
|
||||
int const x_239 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_232) - as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_235) * as_type<uint>(16))))))];
|
||||
x_240 = (x_239 == 0);
|
||||
x_241_phi = x_240;
|
||||
}
|
||||
bool const x_241 = x_241_phi;
|
||||
if (x_241) {
|
||||
int const x_244 = d;
|
||||
d = (x_244 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_244) - as_type<uint>(1)));
|
||||
int const x_247 = p.x;
|
||||
int const x_249 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_247 + (x_249 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_247) + as_type<uint>(as_type<int>((as_type<uint>(x_249) * as_type<uint>(16))))))] = 1;
|
||||
int const x_254 = p.x;
|
||||
int const x_257 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_254 - 1) + (x_257 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_254) - as_type<uint>(1)))) + as_type<uint>(as_type<int>((as_type<uint>(x_257) * as_type<uint>(16))))))] = 1;
|
||||
int const x_262 = p.x;
|
||||
int const x_265 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_262 - 2) + (x_265 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_262) - as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_265) * as_type<uint>(16))))))] = 1;
|
||||
int const x_270 = p.x;
|
||||
p.x = (x_270 - 2);
|
||||
p.x = as_type<int>((as_type<uint>(x_270) - as_type<uint>(2)));
|
||||
}
|
||||
int const x_273 = d;
|
||||
bool const x_274 = (x_273 >= 0);
|
||||
@@ -228,25 +228,25 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_280) {
|
||||
int const x_284 = p.x;
|
||||
int const x_286 = p.y;
|
||||
int const x_291 = (*(tint_symbol_6)).arr[(x_284 + ((x_286 - 2) * 16))];
|
||||
int const x_291 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_284) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_286) - as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_292 = (x_291 == 0);
|
||||
x_293_phi = x_292;
|
||||
}
|
||||
bool const x_293 = x_293_phi;
|
||||
if (x_293) {
|
||||
int const x_296 = d;
|
||||
d = (x_296 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_296) - as_type<uint>(1)));
|
||||
int const x_299 = p.x;
|
||||
int const x_301 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_299 + (x_301 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_299) + as_type<uint>(as_type<int>((as_type<uint>(x_301) * as_type<uint>(16))))))] = 1;
|
||||
int const x_306 = p.x;
|
||||
int const x_308 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_306 + ((x_308 - 1) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_306) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_308) - as_type<uint>(1)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_314 = p.x;
|
||||
int const x_316 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_314 + ((x_316 - 2) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_314) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_316) - as_type<uint>(2)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_322 = p.y;
|
||||
p.y = (x_322 - 2);
|
||||
p.y = as_type<int>((as_type<uint>(x_322) - as_type<uint>(2)));
|
||||
}
|
||||
int const x_325 = d;
|
||||
bool const x_326 = (x_325 >= 0);
|
||||
@@ -261,25 +261,25 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_332) {
|
||||
int const x_336 = p.x;
|
||||
int const x_339 = p.y;
|
||||
int const x_343 = (*(tint_symbol_6)).arr[((x_336 + 2) + (x_339 * 16))];
|
||||
int const x_343 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_336) + as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_339) * as_type<uint>(16))))))];
|
||||
x_344 = (x_343 == 0);
|
||||
x_345_phi = x_344;
|
||||
}
|
||||
bool const x_345 = x_345_phi;
|
||||
if (x_345) {
|
||||
int const x_348 = d;
|
||||
d = (x_348 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_348) - as_type<uint>(1)));
|
||||
int const x_351 = p.x;
|
||||
int const x_353 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_351 + (x_353 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_351) + as_type<uint>(as_type<int>((as_type<uint>(x_353) * as_type<uint>(16))))))] = 1;
|
||||
int const x_358 = p.x;
|
||||
int const x_361 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_358 + 1) + (x_361 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_358) + as_type<uint>(1)))) + as_type<uint>(as_type<int>((as_type<uint>(x_361) * as_type<uint>(16))))))] = 1;
|
||||
int const x_366 = p.x;
|
||||
int const x_369 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_366 + 2) + (x_369 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_366) + as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_369) * as_type<uint>(16))))))] = 1;
|
||||
int const x_374 = p.x;
|
||||
p.x = (x_374 + 2);
|
||||
p.x = as_type<int>((as_type<uint>(x_374) + as_type<uint>(2)));
|
||||
}
|
||||
int const x_377 = d;
|
||||
bool const x_378 = (x_377 >= 0);
|
||||
@@ -294,30 +294,30 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_384) {
|
||||
int const x_388 = p.x;
|
||||
int const x_390 = p.y;
|
||||
int const x_395 = (*(tint_symbol_6)).arr[(x_388 + ((x_390 + 2) * 16))];
|
||||
int const x_395 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_388) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_390) + as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_396 = (x_395 == 0);
|
||||
x_397_phi = x_396;
|
||||
}
|
||||
bool const x_397 = x_397_phi;
|
||||
if (x_397) {
|
||||
int const x_400 = d;
|
||||
d = (x_400 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_400) - as_type<uint>(1)));
|
||||
int const x_403 = p.x;
|
||||
int const x_405 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_403 + (x_405 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_403) + as_type<uint>(as_type<int>((as_type<uint>(x_405) * as_type<uint>(16))))))] = 1;
|
||||
int const x_410 = p.x;
|
||||
int const x_412 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_410 + ((x_412 + 1) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_410) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_412) + as_type<uint>(1)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_418 = p.x;
|
||||
int const x_420 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_418 + ((x_420 + 2) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_418) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_420) + as_type<uint>(2)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_426 = p.y;
|
||||
p.y = (x_426 + 2);
|
||||
p.y = as_type<int>((as_type<uint>(x_426) + as_type<uint>(2)));
|
||||
}
|
||||
}
|
||||
int const x_430 = ipos.y;
|
||||
int const x_433 = ipos.x;
|
||||
int const x_436 = (*(tint_symbol_6)).arr[((x_430 * 16) + x_433)];
|
||||
int const x_436 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_430) * as_type<uint>(16)))) + as_type<uint>(x_433)))];
|
||||
if ((x_436 == 1)) {
|
||||
*(tint_symbol_7) = float4(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
return;
|
||||
|
||||
@@ -41,7 +41,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
(*(tint_symbol_6)).arr[x_78] = 0;
|
||||
{
|
||||
int const x_80 = i;
|
||||
i = (x_80 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_80) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
p = int2(0, 0);
|
||||
@@ -57,7 +57,7 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
bool x_143_phi = false;
|
||||
bool x_163_phi = false;
|
||||
int const x_86 = v;
|
||||
v = (x_86 + 1);
|
||||
v = as_type<int>((as_type<uint>(x_86) + as_type<uint>(1)));
|
||||
directions = 0;
|
||||
int const x_89 = p.x;
|
||||
bool const x_90 = (x_89 > 0);
|
||||
@@ -65,14 +65,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_90) {
|
||||
int const x_94 = p.x;
|
||||
int const x_97 = p.y;
|
||||
int const x_101 = (*(tint_symbol_6)).arr[((x_94 - 2) + (x_97 * 16))];
|
||||
int const x_101 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_94) - as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_97) * as_type<uint>(16))))))];
|
||||
x_102 = (x_101 == 0);
|
||||
x_103_phi = x_102;
|
||||
}
|
||||
bool const x_103 = x_103_phi;
|
||||
if (x_103) {
|
||||
int const x_106 = directions;
|
||||
directions = (x_106 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_106) + as_type<uint>(1)));
|
||||
}
|
||||
int const x_109 = p.y;
|
||||
bool const x_110 = (x_109 > 0);
|
||||
@@ -80,14 +80,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_110) {
|
||||
int const x_114 = p.x;
|
||||
int const x_116 = p.y;
|
||||
int const x_121 = (*(tint_symbol_6)).arr[(x_114 + ((x_116 - 2) * 16))];
|
||||
int const x_121 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_114) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_116) - as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_122 = (x_121 == 0);
|
||||
x_123_phi = x_122;
|
||||
}
|
||||
bool const x_123 = x_123_phi;
|
||||
if (x_123) {
|
||||
int const x_126 = directions;
|
||||
directions = (x_126 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_126) + as_type<uint>(1)));
|
||||
}
|
||||
int const x_129 = p.x;
|
||||
bool const x_130 = (x_129 < 14);
|
||||
@@ -95,14 +95,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_130) {
|
||||
int const x_134 = p.x;
|
||||
int const x_137 = p.y;
|
||||
int const x_141 = (*(tint_symbol_6)).arr[((x_134 + 2) + (x_137 * 16))];
|
||||
int const x_141 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_134) + as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_137) * as_type<uint>(16))))))];
|
||||
x_142 = (x_141 == 0);
|
||||
x_143_phi = x_142;
|
||||
}
|
||||
bool const x_143 = x_143_phi;
|
||||
if (x_143) {
|
||||
int const x_146 = directions;
|
||||
directions = (x_146 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_146) + as_type<uint>(1)));
|
||||
}
|
||||
int const x_149 = p.y;
|
||||
bool const x_150 = (x_149 < 14);
|
||||
@@ -110,14 +110,14 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_150) {
|
||||
int const x_154 = p.x;
|
||||
int const x_156 = p.y;
|
||||
int const x_161 = (*(tint_symbol_6)).arr[(x_154 + ((x_156 + 2) * 16))];
|
||||
int const x_161 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_154) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_156) + as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_162 = (x_161 == 0);
|
||||
x_163_phi = x_162;
|
||||
}
|
||||
bool const x_163 = x_163_phi;
|
||||
if (x_163) {
|
||||
int const x_166 = directions;
|
||||
directions = (x_166 + 1);
|
||||
directions = as_type<int>((as_type<uint>(x_166) + as_type<uint>(1)));
|
||||
}
|
||||
bool x_227 = false;
|
||||
bool x_240 = false;
|
||||
@@ -154,34 +154,34 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
}
|
||||
int const x_187 = j;
|
||||
int const x_189 = i;
|
||||
int const x_194 = (*(tint_symbol_6)).arr[((x_187 * 2) + ((x_189 * 2) * 16))];
|
||||
int const x_194 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_187) * as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_189) * as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
if ((x_194 == 0)) {
|
||||
int const x_198 = j;
|
||||
p.x = (x_198 * 2);
|
||||
p.x = as_type<int>((as_type<uint>(x_198) * as_type<uint>(2)));
|
||||
int const x_201 = i;
|
||||
p.y = (x_201 * 2);
|
||||
p.y = as_type<int>((as_type<uint>(x_201) * as_type<uint>(2)));
|
||||
canwalk = true;
|
||||
}
|
||||
{
|
||||
int const x_204 = j;
|
||||
j = (x_204 + 1);
|
||||
j = as_type<int>((as_type<uint>(x_204) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
{
|
||||
int const x_206 = i;
|
||||
i = (x_206 + 1);
|
||||
i = as_type<int>((as_type<uint>(x_206) + as_type<uint>(1)));
|
||||
}
|
||||
}
|
||||
int const x_209 = p.x;
|
||||
int const x_211 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_209 + (x_211 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_209) + as_type<uint>(as_type<int>((as_type<uint>(x_211) * as_type<uint>(16))))))] = 1;
|
||||
} else {
|
||||
int const x_215 = v;
|
||||
int const x_216 = directions;
|
||||
d = (x_215 % x_216);
|
||||
int const x_218 = directions;
|
||||
int const x_219 = v;
|
||||
v = (x_219 + x_218);
|
||||
v = as_type<int>((as_type<uint>(x_219) + as_type<uint>(x_218)));
|
||||
int const x_221 = d;
|
||||
bool const x_222 = (x_221 >= 0);
|
||||
x_228_phi = x_222;
|
||||
@@ -195,25 +195,25 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_228) {
|
||||
int const x_232 = p.x;
|
||||
int const x_235 = p.y;
|
||||
int const x_239 = (*(tint_symbol_6)).arr[((x_232 - 2) + (x_235 * 16))];
|
||||
int const x_239 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_232) - as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_235) * as_type<uint>(16))))))];
|
||||
x_240 = (x_239 == 0);
|
||||
x_241_phi = x_240;
|
||||
}
|
||||
bool const x_241 = x_241_phi;
|
||||
if (x_241) {
|
||||
int const x_244 = d;
|
||||
d = (x_244 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_244) - as_type<uint>(1)));
|
||||
int const x_247 = p.x;
|
||||
int const x_249 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_247 + (x_249 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_247) + as_type<uint>(as_type<int>((as_type<uint>(x_249) * as_type<uint>(16))))))] = 1;
|
||||
int const x_254 = p.x;
|
||||
int const x_257 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_254 - 1) + (x_257 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_254) - as_type<uint>(1)))) + as_type<uint>(as_type<int>((as_type<uint>(x_257) * as_type<uint>(16))))))] = 1;
|
||||
int const x_262 = p.x;
|
||||
int const x_265 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_262 - 2) + (x_265 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_262) - as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_265) * as_type<uint>(16))))))] = 1;
|
||||
int const x_270 = p.x;
|
||||
p.x = (x_270 - 2);
|
||||
p.x = as_type<int>((as_type<uint>(x_270) - as_type<uint>(2)));
|
||||
}
|
||||
int const x_273 = d;
|
||||
bool const x_274 = (x_273 >= 0);
|
||||
@@ -228,25 +228,25 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_280) {
|
||||
int const x_284 = p.x;
|
||||
int const x_286 = p.y;
|
||||
int const x_291 = (*(tint_symbol_6)).arr[(x_284 + ((x_286 - 2) * 16))];
|
||||
int const x_291 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_284) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_286) - as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_292 = (x_291 == 0);
|
||||
x_293_phi = x_292;
|
||||
}
|
||||
bool const x_293 = x_293_phi;
|
||||
if (x_293) {
|
||||
int const x_296 = d;
|
||||
d = (x_296 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_296) - as_type<uint>(1)));
|
||||
int const x_299 = p.x;
|
||||
int const x_301 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_299 + (x_301 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_299) + as_type<uint>(as_type<int>((as_type<uint>(x_301) * as_type<uint>(16))))))] = 1;
|
||||
int const x_306 = p.x;
|
||||
int const x_308 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_306 + ((x_308 - 1) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_306) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_308) - as_type<uint>(1)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_314 = p.x;
|
||||
int const x_316 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_314 + ((x_316 - 2) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_314) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_316) - as_type<uint>(2)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_322 = p.y;
|
||||
p.y = (x_322 - 2);
|
||||
p.y = as_type<int>((as_type<uint>(x_322) - as_type<uint>(2)));
|
||||
}
|
||||
int const x_325 = d;
|
||||
bool const x_326 = (x_325 >= 0);
|
||||
@@ -261,25 +261,25 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_332) {
|
||||
int const x_336 = p.x;
|
||||
int const x_339 = p.y;
|
||||
int const x_343 = (*(tint_symbol_6)).arr[((x_336 + 2) + (x_339 * 16))];
|
||||
int const x_343 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_336) + as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_339) * as_type<uint>(16))))))];
|
||||
x_344 = (x_343 == 0);
|
||||
x_345_phi = x_344;
|
||||
}
|
||||
bool const x_345 = x_345_phi;
|
||||
if (x_345) {
|
||||
int const x_348 = d;
|
||||
d = (x_348 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_348) - as_type<uint>(1)));
|
||||
int const x_351 = p.x;
|
||||
int const x_353 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_351 + (x_353 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_351) + as_type<uint>(as_type<int>((as_type<uint>(x_353) * as_type<uint>(16))))))] = 1;
|
||||
int const x_358 = p.x;
|
||||
int const x_361 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_358 + 1) + (x_361 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_358) + as_type<uint>(1)))) + as_type<uint>(as_type<int>((as_type<uint>(x_361) * as_type<uint>(16))))))] = 1;
|
||||
int const x_366 = p.x;
|
||||
int const x_369 = p.y;
|
||||
(*(tint_symbol_6)).arr[((x_366 + 2) + (x_369 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_366) + as_type<uint>(2)))) + as_type<uint>(as_type<int>((as_type<uint>(x_369) * as_type<uint>(16))))))] = 1;
|
||||
int const x_374 = p.x;
|
||||
p.x = (x_374 + 2);
|
||||
p.x = as_type<int>((as_type<uint>(x_374) + as_type<uint>(2)));
|
||||
}
|
||||
int const x_377 = d;
|
||||
bool const x_378 = (x_377 >= 0);
|
||||
@@ -294,30 +294,30 @@ void main_1(constant buf0& x_7, thread float4* const tint_symbol_5, thread tint_
|
||||
if (x_384) {
|
||||
int const x_388 = p.x;
|
||||
int const x_390 = p.y;
|
||||
int const x_395 = (*(tint_symbol_6)).arr[(x_388 + ((x_390 + 2) * 16))];
|
||||
int const x_395 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_388) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_390) + as_type<uint>(2)))) * as_type<uint>(16))))))];
|
||||
x_396 = (x_395 == 0);
|
||||
x_397_phi = x_396;
|
||||
}
|
||||
bool const x_397 = x_397_phi;
|
||||
if (x_397) {
|
||||
int const x_400 = d;
|
||||
d = (x_400 - 1);
|
||||
d = as_type<int>((as_type<uint>(x_400) - as_type<uint>(1)));
|
||||
int const x_403 = p.x;
|
||||
int const x_405 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_403 + (x_405 * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_403) + as_type<uint>(as_type<int>((as_type<uint>(x_405) * as_type<uint>(16))))))] = 1;
|
||||
int const x_410 = p.x;
|
||||
int const x_412 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_410 + ((x_412 + 1) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_410) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_412) + as_type<uint>(1)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_418 = p.x;
|
||||
int const x_420 = p.y;
|
||||
(*(tint_symbol_6)).arr[(x_418 + ((x_420 + 2) * 16))] = 1;
|
||||
(*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(x_418) + as_type<uint>(as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_420) + as_type<uint>(2)))) * as_type<uint>(16))))))] = 1;
|
||||
int const x_426 = p.y;
|
||||
p.y = (x_426 + 2);
|
||||
p.y = as_type<int>((as_type<uint>(x_426) + as_type<uint>(2)));
|
||||
}
|
||||
}
|
||||
int const x_430 = ipos.y;
|
||||
int const x_433 = ipos.x;
|
||||
int const x_436 = (*(tint_symbol_6)).arr[((x_430 * 16) + x_433)];
|
||||
int const x_436 = (*(tint_symbol_6)).arr[as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(x_430) * as_type<uint>(16)))) + as_type<uint>(x_433)))];
|
||||
if ((x_436 == 1)) {
|
||||
*(tint_symbol_7) = float4(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user