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

Function _fts3auxBestIndexMethod

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

Source from the content-addressed store, hash-verified

388370 STACKTOP = sp;return ($$0|0);
388371}
388372function _fts3auxBestIndexMethod($0,$1) {
388373 $0 = $0|0;
388374 $1 = $1|0;
388375 var $$0$$067 = 0, $$0$$070 = 0, $$0$$174 = 0, $$0$$178 = 0, $$06784 = 0, $$068 = 0, $$07083 = 0, $$07382 = 0, $$07781 = 0, $$085 = 0, $$169 = 0, $$2 = 0, $$272 = 0, $$279 = 0, $$3 = 0, $$376 = 0, $$380 = 0, $$4 = 0, $10 = 0, $11 = 0;
388376 var $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, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0;
388377 var $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, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0;
388378 var $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0.0, $56 = 0.0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0.0, $63 = 0.0, $7 = 0, $8 = 0, $9 = 0;
388379 var $or$cond = 0, label = 0, sp = 0;
388380 sp = STACKTOP;
388381 $2 = ((($1)) + 8|0);
388382 $3 = HEAP32[$2>>2]|0;
388383 $4 = ($3|0)==(1);
388384 if ($4) {
388385 $5 = ((($1)) + 12|0);
388386 $6 = HEAP32[$5>>2]|0;
388387 $7 = HEAP32[$6>>2]|0;
388388 $8 = ($7|0)==(0);
388389 if ($8) {
388390 $9 = ((($6)) + 4|0);
388391 $10 = HEAP8[$9>>0]|0;
388392 $11 = ($10<<24>>24)==(0);
388393 if ($11) {
388394 $12 = ((($1)) + 32|0);
388395 HEAP32[$12>>2] = 1;
388396 }
388397 }
388398 }
388399 $13 = HEAP32[$1>>2]|0;
388400 $14 = ($13|0)>(0);
388401 if (!($14)) {
388402 $15 = ((($1)) + 20|0);
388403 HEAP32[$15>>2] = 0;
388404 $16 = ((($1)) + 40|0);
388405 HEAPF64[$16>>3] = 2.0E+4;
388406 return 0;
388407 }
388408 $17 = ((($1)) + 4|0);
388409 $18 = HEAP32[$17>>2]|0;
388410 $$06784 = -1;$$07083 = -1;$$07382 = -1;$$07781 = -1;$$085 = 0;
388411 while(1) {
388412 $19 = (((($18) + (($$085*12)|0)|0)) + 5|0);
388413 $20 = HEAP8[$19>>0]|0;
388414 $21 = ($20<<24>>24)==(0);
388415 if ($21) {
388416 $$272 = $$07083;$$3 = $$06784;$$380 = $$07781;$$4 = $$07382;
388417 } else {
388418 $22 = (((($18) + (($$085*12)|0)|0)) + 4|0);
388419 $23 = HEAP8[$22>>0]|0;
388420 $24 = (($18) + (($$085*12)|0)|0);
388421 $25 = HEAP32[$24>>2]|0;
388422 $26 = ($25|0)==(0);
388423 if ($26) {
388424 $27 = ($23<<24>>24)==(2);
388425 $$0$$067 = $27 ? $$085 : $$06784;
388426 $28 = ($23<<24>>24)==(16);
388427 $29 = ($23<<24>>24)==(8);
388428 $30 = $29 | $28;
388429 $$0$$174 = $30 ? $$085 : $$07382;

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…