MCPcopy
hub / github.com/sql-js/sql.js / _countStep

Function _countStep

js/sql-debug.js:29098–29158  ·  view source on GitHub ↗
($0,$1,$2)

Source from the content-addressed store, hash-verified

29096 STACKTOP = sp;return;
29097}
29098function _countStep($0,$1,$2) {
29099 $0 = $0|0;
29100 $1 = $1|0;
29101 $2 = $2|0;
29102 var $$0$i = 0, $$old1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
29103 var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
29104 sp = STACKTOP;
29105 $3 = ((($0)) + 8|0);
29106 $4 = HEAP32[$3>>2]|0;
29107 $5 = ((($4)) + 8|0);
29108 $6 = HEAP16[$5>>1]|0;
29109 $7 = $6 & 8192;
29110 $8 = ($7<<16>>16)==(0);
29111 if ($8) {
29112 $9 = (_createAggContext($0,8)|0);
29113 $$0$i = $9;
29114 } else {
29115 $10 = ((($4)) + 16|0);
29116 $11 = HEAP32[$10>>2]|0;
29117 $$0$i = $11;
29118 }
29119 $12 = ($1|0)==(0);
29120 if ($12) {
29121 $$old1 = ($$0$i|0)==(0|0);
29122 if ($$old1) {
29123 return;
29124 }
29125 } else {
29126 $13 = HEAP32[$2>>2]|0;
29127 $14 = ((($13)) + 8|0);
29128 $15 = HEAP16[$14>>1]|0;
29129 $16 = $15 & 31;
29130 $17 = $16&65535;
29131 $18 = 1431655765 >>> $17;
29132 $19 = $18 & 1;
29133 $20 = ($19|0)!=(0);
29134 $21 = ($$0$i|0)!=(0|0);
29135 $or$cond = $21 & $20;
29136 if (!($or$cond)) {
29137 return;
29138 }
29139 $29 = HEAP32[$i>>2]|0;
29140 $30 = (($29) + 1)|0;
29141 HEAP32[$i>>2] = $30;
29142 }
29143 $22 = $$0$i;
29144 $23 = $22;
29145 $24 = HEAP32[$23>>2]|0;
29146 $25 = (($22) + 4)|0;
29147 $26 = $25;
29148 $27 = HEAP32[$26>>2]|0;
29149 $28 = (_i64Add(($24|0),($27|0),1,0)|0);
29150 $29 = tempRet0;
29151 $30 = $$0$i;
29152 $31 = $30;
29153 HEAP32[$31>>2] = $28;
29154 $32 = (($30) + 4)|0;
29155 $33 = $32;

Callers

nothing calls this directly

Calls 2

_createAggContextFunction · 0.85
_i64AddFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…