MCPcopy Index your code
hub / github.com/sql-js/sql.js / _multiSelectOrderByKeyInfo

Function _multiSelectOrderByKeyInfo

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

Source from the content-addressed store, hash-verified

302153 return;
302154}
302155function _multiSelectOrderByKeyInfo($0,$1) {
302156 $0 = $0|0;
302157 $1 = $1|0;
302158 var $$0 = 0, $$0471 = 0, $$1 = 0, $$1$i$i = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
302159 var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0;
302160 var $43 = 0, $44 = 0, $45 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $or$cond = 0, label = 0, sp = 0;
302161 sp = STACKTOP;
302162 STACKTOP = STACKTOP + 16|0;
302163 $2 = sp;
302164 $3 = ((($1)) + 44|0);
302165 $4 = HEAP32[$3>>2]|0;
302166 $5 = HEAP32[$4>>2]|0;
302167 $6 = HEAP32[$0>>2]|0;
302168 $7 = (($5) + 1)|0;
302169 $8 = (_sqlite3KeyInfoAlloc($6,$7,1)|0);
302170 $9 = ($8|0)!=(0|0);
302171 $10 = ($5|0)>(0);
302172 $or$cond = $9 & $10;
302173 if (!($or$cond)) {
302174 STACKTOP = sp;return ($8|0);
302175 }
302176 $11 = ((($6)) + 8|0);
302177 $12 = ((($2)) + 4|0);
302178 $13 = ((($8)) + 16|0);
302179 $$0471 = 0;
302180 while(1) {
302181 $14 = (((($4)) + 4|0) + (($$0471*20)|0)|0);
302182 $15 = HEAP32[$14>>2]|0;
302183 $16 = ((($15)) + 4|0);
302184 $17 = HEAP32[$16>>2]|0;
302185 $18 = $17 & 256;
302186 $19 = ($18|0)==(0);
302187 if ($19) {
302188 $21 = (((((($4)) + 4|0) + (($$0471*20)|0)|0)) + 16|0);
302189 $22 = HEAP16[$21>>1]|0;
302190 $23 = $22&65535;
302191 $24 = (($23) + -1)|0;
302192 $25 = (_multiSelectCollSeq($0,$1,$24)|0);
302193 $26 = ($25|0)==(0|0);
302194 if ($26) {
302195 $27 = HEAP32[$11>>2]|0;
302196 $$0 = $27;
302197 } else {
302198 $$0 = $25;
302199 }
302200 $28 = HEAP32[$$0>>2]|0;
302201 HEAP32[$2>>2] = $28;
302202 $29 = ($28|0)==(0|0);
302203 if ($29) {
302204 HEAP32[$12>>2] = 0;
302205 $$1$i$i = $15;
302206 } else {
302207 $30 = (_strlen($28)|0);
302208 $31 = $30 & 1073741823;
302209 HEAP32[$12>>2] = $31;
302210 $32 = ($31|0)==(0);
302211 if ($32) {
302212 $$1$i$i = $15;

Callers 2

_multiSelectOrderByFunction · 0.85

Calls 5

_sqlite3KeyInfoAllocFunction · 0.85
_multiSelectCollSeqFunction · 0.85
_strlenFunction · 0.85
_sqlite3ExprAllocFunction · 0.85
_sqlite3ExprCollSeqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…