emscripten/tests/optimizer/test-js-optimizer-asm-last-...

108 строки
1.7 KiB
JavaScript

function finall(x) {
x = +x;
var a = 5.0;
a = +x;
a = 17;
a = 44.0;
a = 44.0;
a = 44.9;
a = 1278.0e3;
a = 12.0e10;
a = -x;
a = -17;
a = -44;
a = -44;
a = -44.9;
a = -1278e3;
a = -12e10;
a = +-x;
a = -17.0;
a = -44.0;
a = -44.0;
a = -44.9;
a = -1278.0e3;
a = -12.0e10;
a = 9223372036854775808.0;
a = -9223372036854775808.0;
a = -9223372036854775808.0;
a = -9223372036854775808;
a = 999999984306749440.0;
a = -999999984306749440.0;
a = -999999984306749440.0;
a = -999999984306749440;
a = 11234567890123457.0e5;
f(g() | 0);
x = 17976931348623157e292;
a = 9007199254740992;
a = 9007199254740992;
a = 9007199254740994;
return 12.0e10;
}
function looop() {
do do_it(); while (!condition());
do do_it(); while (!(a > b));
do do_it(); while (x());
while (1) {
do_it();
if (a()) continue;
if (!x()) break;
}
do {
do_it();
do if (a()) continue; while (b());
} while (x());
do {
do_it();
while (b()) if (a()) continue;
} while (x());
X : while (1) {
do_it();
while (b()) if (a()) continue X;
if (!x()) break;
}
do blah(); while (!shah());
a = b;
LABELED : while (1) {
blah();
if (shah()) {
c = d;
break;
}
}
while (1) {
blah();
if (check) break;
if (shah()) {
e = f;
break;
}
}
do {
blah();
while (1) if (check) break;
} while (!shah());
g = h;
if (a) waka();
if (a) waka(); else wala();
if (a) if (a) waka(); else wala();
if (a) {
if (a) waka();
} else other();
if (a) if (a) waka(); else wala(); else other();
}
function conditions() {
if (HEAP32[$incdec_ptr71_i + 8 >> 2] | 0) shoo();
if (x == 0) y();
if (!x) y();
if (!y) z();
if (x != 0) y();
if (x) y();
if (y) z();
if (x) y();
if (!x) y();
if (!(s() | 0)) z();
if (x + 4 | 0) y();
if (x & 4) y();
}