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

Function _fts3tokOpenMethod

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

Source from the content-addressed store, hash-verified

328767 return (0)|0;
328768}
328769function _fts3tokOpenMethod($0,$1) {
328770 $0 = $0|0;
328771 $1 = $1|0;
328772 var $$0 = 0, $$0$i8 = 0, $$sink$i$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, $25 = 0;
328773 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;
328774 var $44 = 0, $45 = 0, $46 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, stop = 0;
328775 sp = STACKTOP;
328776 $2 = (_sqlite3_initialize()|0);
328777 $3 = ($2|0)==(0);
328778 if (!($3)) {
328779 $$0 = 7;
328780 return ($$0|0);
328781 }
328782 $4 = HEAP32[2]|0;
328783 $5 = ($4|0)==(0);
328784 if ($5) {
328785 $44 = HEAP32[(52)>>2]|0;
328786 $45 = (FUNCTION_TABLE_ii[$44 & 255](36)|0);
328787 $46 = ($45|0)==(0|0);
328788 if ($46) {
328789 $$0 = 7;
328790 return ($$0|0);
328791 } else {
328792 $$0$i8 = $45;
328793 }
328794 } else {
328795 $6 = HEAP32[(68)>>2]|0;
328796 $7 = (FUNCTION_TABLE_ii[$6 & 255](36)|0);
328797 $8 = HEAP32[11829]|0;
328798 $9 = ($8>>>0)<(36);
328799 if ($9) {
328800 HEAP32[11829] = 36;
328801 }
328802 $10 = (46456);
328803 $11 = $10;
328804 $12 = HEAP32[$11>>2]|0;
328805 $13 = (($10) + 4)|0;
328806 $14 = $13;
328807 $15 = HEAP32[$14>>2]|0;
328808 $16 = ($15|0)>(0);
328809 $17 = ($12>>>0)>(0);
328810 $18 = ($15|0)==(0);
328811 $19 = $18 & $17;
328812 $20 = $16 | $19;
328813 if ($20) {
328814 $21 = HEAP32[11822]|0;
328815 $22 = ($7|0)<(0);
328816 $23 = $22 << 31 >> 31;
328817 $24 = (_i64Subtract(($12|0),($15|0),($7|0),($23|0))|0);
328818 $25 = tempRet0;
328819 $26 = (0)>($25|0);
328820 $27 = ($21>>>0)>=($24>>>0);
328821 $28 = (0)==($25|0);
328822 $29 = $28 & $27;
328823 $30 = $26 | $29;
328824 $$sink$i$i$i = $30&1;
328825 HEAP32[(46464)>>2] = $$sink$i$i$i;
328826 }

Callers

nothing calls this directly

Calls 2

_sqlite3_initializeFunction · 0.85
_i64SubtractFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…