MCPcopy Create free account
hub / github.com/sql-js/sql.js / _pragmaVtabBestIndex

Function _pragmaVtabBestIndex

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

Source from the content-addressed store, hash-verified

242535 STACKTOP = sp;return ($$045|0);
242536}
242537function _pragmaVtabBestIndex($0,$1) {
242538 $0 = $0|0;
242539 $1 = $1|0;
242540 var $$03537 = 0, $$038 = 0, $$pre = 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, $25 = 0;
242541 var $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, $43 = 0;
242542 var $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
242543 sp = STACKTOP;
242544 STACKTOP = STACKTOP + 16|0;
242545 $2 = sp;
242546 $3 = ((($1)) + 40|0);
242547 HEAPF64[$3>>3] = 1.0;
242548 $4 = ((($0)) + 20|0);
242549 $5 = HEAP8[$4>>0]|0;
242550 $6 = ($5<<24>>24)==(0);
242551 if ($6) {
242552 STACKTOP = sp;return 0;
242553 }
242554 $7 = ((($1)) + 4|0);
242555 $8 = HEAP32[$7>>2]|0;
242556 HEAP32[$2>>2] = 0;
242557 $9 = ((($2)) + 4|0);
242558 HEAP32[$9>>2] = 0;
242559 $10 = HEAP32[$1>>2]|0;
242560 $11 = ($10|0)>(0);
242561 if ($11) {
242562 $12 = ((($0)) + 21|0);
242563 $$03537 = $8;$$038 = 0;
242564 while(1) {
242565 $13 = ((($$03537)) + 5|0);
242566 $14 = HEAP8[$13>>0]|0;
242567 $15 = ($14<<24>>24)==(0);
242568 if (!($15)) {
242569 $16 = ((($$03537)) + 4|0);
242570 $17 = HEAP8[$16>>0]|0;
242571 $18 = ($17<<24>>24)==(2);
242572 if ($18) {
242573 $19 = HEAP32[$$03537>>2]|0;
242574 $20 = HEAP8[$12>>0]|0;
242575 $21 = $20&255;
242576 $22 = ($19|0)<($21|0);
242577 if (!($22)) {
242578 $23 = (($19) - ($21))|0;
242579 $24 = (($2) + ($23<<2)|0);
242580 $25 = (($$038) + 1)|0;
242581 HEAP32[$24>>2] = $25;
242582 }
242583 }
242584 }
242585 $26 = (($$038) + 1)|0;
242586 $27 = ((($$03537)) + 12|0);
242587 $28 = ($26|0)<($10|0);
242588 if ($28) {
242589 $$03537 = $27;$$038 = $26;
242590 } else {
242591 break;
242592 }
242593 }
242594 $$pre = HEAP32[$2>>2]|0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…