2011-11-24 01:12:17 +04:00
|
|
|
function expr() {
|
|
|
|
if ($0 >= $1) print("hi");
|
|
|
|
}
|
2011-11-24 05:29:20 +04:00
|
|
|
function loopy() {
|
|
|
|
$while_body$2 : while (1) {
|
|
|
|
$ok = 1;
|
|
|
|
while (1) {
|
|
|
|
if ($ok) break;
|
|
|
|
var $inc = $ok + 1;
|
|
|
|
if ($inc == 9999) break $while_body$2;
|
|
|
|
}
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
next();
|
|
|
|
while (1) {
|
|
|
|
$ok = 1;
|
|
|
|
while (1) {
|
|
|
|
if ($ok) break;
|
|
|
|
var $inc = $ok + 1;
|
|
|
|
}
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
next();
|
|
|
|
do {
|
|
|
|
if (!$ok) break;
|
|
|
|
something();
|
|
|
|
} while (0);
|
|
|
|
next();
|
|
|
|
b$once : do {
|
|
|
|
while (more()) {
|
|
|
|
if (!$ok) break b$once;
|
|
|
|
}
|
|
|
|
something();
|
|
|
|
} while (0);
|
|
|
|
next();
|
2012-02-20 06:17:28 +04:00
|
|
|
something();
|
2011-11-24 05:29:20 +04:00
|
|
|
}
|
2011-11-27 08:14:53 +04:00
|
|
|
function bits() {
|
2012-12-13 06:42:45 +04:00
|
|
|
print(($s & 65535) + ((($f & 65535) << 16 >> 16) * (($f & 65535) << 16 >> 16) | 0) % 256 & 65535);
|
2011-12-27 16:17:27 +04:00
|
|
|
z(HEAP32[$id + 40 >> 2]);
|
|
|
|
z($f << 2);
|
|
|
|
z($f | 255);
|
|
|
|
z($f & 255);
|
|
|
|
z($f ^ 1);
|
|
|
|
z($f << 2);
|
|
|
|
z($f * 100 << 2);
|
2012-12-13 06:42:45 +04:00
|
|
|
z(($f | 0) % 2 | 255);
|
2012-03-31 22:37:20 +04:00
|
|
|
z(($f | 0) / 55 & 255);
|
2011-12-27 16:17:27 +04:00
|
|
|
z($f - 22 ^ 1);
|
|
|
|
z($f + 15 << 2);
|
2011-11-27 08:14:53 +04:00
|
|
|
}
|
2011-12-16 06:39:03 +04:00
|
|
|
function maths() {
|
2011-12-16 07:12:48 +04:00
|
|
|
check(17);
|
|
|
|
check(95);
|
|
|
|
__ZN6b2Vec2C1Ev($this1 + 76 | 0);
|
2011-12-16 06:39:03 +04:00
|
|
|
}
|
2011-12-20 22:32:59 +04:00
|
|
|
function hoisting() {
|
|
|
|
if ($i < $N) {
|
|
|
|
callOther();
|
|
|
|
}
|
|
|
|
pause(1);
|
|
|
|
$for_body3$$for_end$5 : do {
|
|
|
|
if ($i < $N) {
|
|
|
|
while (true) {
|
|
|
|
break $for_body3$$for_end$5;
|
|
|
|
}
|
|
|
|
callOther();
|
|
|
|
}
|
|
|
|
} while (0);
|
|
|
|
pause(2);
|
|
|
|
do {
|
|
|
|
if ($i < $N) {
|
|
|
|
if (callOther()) break;
|
|
|
|
}
|
|
|
|
} while (0);
|
|
|
|
pause(3);
|
|
|
|
if ($i < $N) {
|
|
|
|
callOther();
|
|
|
|
}
|
|
|
|
pause(4);
|
|
|
|
if ($i < $N) {
|
|
|
|
callOther();
|
|
|
|
} else {
|
|
|
|
somethingElse();
|
|
|
|
}
|
|
|
|
pause(5);
|
|
|
|
if ($i < $N) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 2;
|
2011-12-20 22:32:59 +04:00
|
|
|
} else {
|
|
|
|
somethingElse();
|
|
|
|
}
|
2012-11-09 06:26:19 +04:00
|
|
|
if (label == 55) {
|
2011-12-20 22:32:59 +04:00
|
|
|
callOther();
|
|
|
|
}
|
|
|
|
pause(6);
|
2012-01-02 09:00:34 +04:00
|
|
|
if ($i >= $N) {
|
2011-12-20 22:32:59 +04:00
|
|
|
somethingElse();
|
|
|
|
}
|
2012-01-02 09:00:34 +04:00
|
|
|
pause(7);
|
|
|
|
while (1) {
|
2012-02-20 06:17:28 +04:00
|
|
|
if ($i >= $N) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 3;
|
2012-01-02 09:00:34 +04:00
|
|
|
break;
|
|
|
|
}
|
2012-02-20 06:17:28 +04:00
|
|
|
somethingElse();
|
2012-01-02 09:00:34 +04:00
|
|
|
if ($i < $N) {
|
|
|
|
somethingElse();
|
|
|
|
}
|
|
|
|
nothing();
|
|
|
|
}
|
|
|
|
pause(8);
|
|
|
|
var $cmp95 = $69 == -1;
|
|
|
|
do {
|
|
|
|
if ($cmp95) {
|
|
|
|
if (!$cmp103) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 38;
|
2012-01-02 09:00:34 +04:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (!$cmp106) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 38;
|
2012-01-02 09:00:34 +04:00
|
|
|
break;
|
|
|
|
}
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 39;
|
2012-01-02 09:00:34 +04:00
|
|
|
break;
|
|
|
|
}
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 38;
|
2012-01-02 09:00:34 +04:00
|
|
|
} while (0);
|
2012-11-09 06:26:19 +04:00
|
|
|
if (label == 38) {
|
2012-01-02 09:00:34 +04:00
|
|
|
var $79 = $_pr6;
|
|
|
|
}
|
2012-01-16 22:06:30 +04:00
|
|
|
pause(9);
|
|
|
|
var $cmp70 = ($call69 | 0) != 0;
|
2012-02-20 06:17:28 +04:00
|
|
|
pause(10);
|
|
|
|
while (check()) {
|
|
|
|
if ($i < $N) {
|
|
|
|
callOther();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
somethingElse();
|
|
|
|
if ($i1 < $N) {
|
|
|
|
callOther();
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
somethingElse();
|
|
|
|
if ($i2 >= $N) {
|
|
|
|
somethingElse();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
callOther();
|
|
|
|
if ($i3 >= $N) {
|
|
|
|
somethingElse();
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
callOther();
|
|
|
|
if ($i4 < $N) {
|
|
|
|
callOther();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
somethingElse();
|
|
|
|
continue;
|
|
|
|
}
|
2011-12-20 22:32:59 +04:00
|
|
|
}
|
2012-01-07 01:19:48 +04:00
|
|
|
function innerShouldAlsoBeHoisted() {
|
|
|
|
function hoisting() {
|
|
|
|
if ($i < $N) {
|
|
|
|
callOther();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-12-21 06:49:42 +04:00
|
|
|
var FS = {
|
|
|
|
absolutePath: (function(relative, base) {
|
|
|
|
if (typeof relative !== "string") return null;
|
|
|
|
if (base === undefined) base = FS.currentPath;
|
|
|
|
if (relative && relative[0] == "/") base = "";
|
|
|
|
var full = base + "/" + relative;
|
|
|
|
var parts = full.split("/").reverse();
|
|
|
|
var absolute = [ "" ];
|
|
|
|
while (parts.length) {
|
|
|
|
var part = parts.pop();
|
|
|
|
if (part == "" || part == ".") {} else if (part == "..") {
|
|
|
|
if (absolute.length > 1) absolute.pop();
|
|
|
|
} else {
|
|
|
|
absolute.push(part);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return absolute.length == 1 ? "/" : absolute.join("/");
|
|
|
|
})
|
|
|
|
};
|
2011-12-22 10:04:28 +04:00
|
|
|
function sleep() {
|
|
|
|
while (Date.now() - start < msec) {}
|
|
|
|
return 0;
|
|
|
|
}
|
2011-12-23 03:28:17 +04:00
|
|
|
function demangle($cmp) {
|
|
|
|
do {
|
2012-02-20 06:17:28 +04:00
|
|
|
if (!$cmp) {
|
2011-12-23 03:28:17 +04:00
|
|
|
if (something()) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 3;
|
2011-12-23 03:28:17 +04:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
more();
|
|
|
|
break;
|
|
|
|
}
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 3;
|
2011-12-23 03:28:17 +04:00
|
|
|
} while (0);
|
2012-11-09 06:26:19 +04:00
|
|
|
if (label == 3) {
|
2011-12-23 03:28:17 +04:00
|
|
|
final();
|
|
|
|
}
|
|
|
|
}
|
2011-12-23 06:41:02 +04:00
|
|
|
function lua() {
|
|
|
|
while (1) {
|
|
|
|
do {
|
2012-01-02 09:00:34 +04:00
|
|
|
if (!$14) {
|
2011-12-23 06:41:02 +04:00
|
|
|
var $17 = $i;
|
|
|
|
var $18 = $3;
|
|
|
|
var $19 = $18 + ($17 << 2) | 0;
|
|
|
|
var $20 = HEAP32[$19 >> 2];
|
|
|
|
var $21 = $20 + 1 | 0;
|
|
|
|
var $22 = HEAP8[$21];
|
|
|
|
var $23 = $22 << 24 >> 24;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} while (0);
|
|
|
|
}
|
2011-12-23 09:47:11 +04:00
|
|
|
pause();
|
|
|
|
if ($1435 == 0) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 176;
|
2012-01-02 09:00:34 +04:00
|
|
|
cheez();
|
|
|
|
} else if ($1435 != 1) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 180;
|
2012-01-02 09:00:34 +04:00
|
|
|
cheez();
|
2011-12-23 09:47:11 +04:00
|
|
|
}
|
|
|
|
pause();
|
|
|
|
if ($1435 == 0) {
|
2012-11-09 06:26:19 +04:00
|
|
|
label = 176;
|
2012-01-02 09:00:34 +04:00
|
|
|
cheez();
|
2011-12-23 09:47:11 +04:00
|
|
|
}
|
2011-12-23 06:41:02 +04:00
|
|
|
}
|
2012-01-02 04:34:58 +04:00
|
|
|
function moreLabels() {
|
|
|
|
while (1) {
|
|
|
|
if (!$cmp) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if ($cmp1) {
|
|
|
|
break;
|
|
|
|
}
|
2012-02-20 06:17:28 +04:00
|
|
|
inc();
|
2012-01-02 04:34:58 +04:00
|
|
|
}
|
2012-01-03 23:39:31 +04:00
|
|
|
pause(999);
|
|
|
|
$while_body$$while_end$31 : do {
|
|
|
|
if ($cmp3) {
|
|
|
|
var $6 = $5;
|
2012-02-20 06:17:28 +04:00
|
|
|
while (1) {
|
|
|
|
var $6;
|
|
|
|
$iter = $6 + 3;
|
|
|
|
if (FHEAP[$iter + 1] >= $pct_addr) {
|
|
|
|
var $_lcssa = $iter;
|
|
|
|
break $while_body$$while_end$31;
|
2012-01-03 23:39:31 +04:00
|
|
|
}
|
2012-02-20 06:17:28 +04:00
|
|
|
var $6 = $iter;
|
2012-01-03 23:39:31 +04:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
var $_lcssa = $5;
|
|
|
|
}
|
|
|
|
} while (0);
|
|
|
|
var $_lcssa;
|
|
|
|
cheez();
|
2012-01-02 04:34:58 +04:00
|
|
|
}
|
2012-02-20 06:17:28 +04:00
|
|
|
function notComps() {
|
|
|
|
if (HEAP32[$incdec_ptr71_i + 8 >> 2] != 0) {
|
|
|
|
shoo();
|
|
|
|
}
|
|
|
|
}
|
2012-03-29 04:18:36 +04:00
|
|
|
function tricky() {
|
2012-03-31 22:37:20 +04:00
|
|
|
var $conv642 = $conv6374 - (($132 << 16 >> 16 | 0) / 2 & -1) & 65535;
|
2012-03-29 04:18:36 +04:00
|
|
|
}
|
2012-12-14 01:22:39 +04:00
|
|
|
function asmy() {
|
|
|
|
f(HEAPU8[_buf + i6 & 16777215]);
|
|
|
|
f(HEAPU8[_buf + i6 & 16777215]);
|
|
|
|
f(HEAP8[_buf + i6 & 16777215] & 1);
|
|
|
|
f(HEAPU8[_buf + i6 & 16777215] & 1);
|
|
|
|
f(HEAP8[_buf + i6 & 16777215] & 1);
|
|
|
|
f(HEAPU8[_buf + i6 & 16777215] & 1);
|
|
|
|
f((HEAP8[_buf + i6 & 16777215] & 1) + i5 | 0);
|
|
|
|
f((HEAPU8[_buf + i6 & 16777215] & 1) + i5 | 0);
|
|
|
|
f((HEAP8[_buf + i6 & 16777215] & 1) + i5 | 0);
|
|
|
|
f((HEAPU8[_buf + i6 & 16777215] & 1) + i5 | 0);
|
2013-01-09 03:12:12 +04:00
|
|
|
if ((_sbrk($419 | 0) | 0) == -1) {
|
|
|
|
print("fleefl");
|
|
|
|
}
|
2012-12-14 01:22:39 +04:00
|
|
|
}
|
2012-10-27 04:30:48 +04:00
|
|
|
|