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

Function _fts3ExprCheckDepth

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

Source from the content-addressed store, hash-verified

376403 STACKTOP = sp;return ($$5144|0);
376404}
376405function _fts3ExprCheckDepth($0,$1) {
376406 $0 = $0|0;
376407 $1 = $1|0;
376408 var $$0 = 0, $$tr810 = 0, $$tr9 = 0, $10 = 0, $11 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
376409 sp = STACKTOP;
376410 $2 = ($0|0)==(0|0);
376411 if ($2) {
376412 $$0 = 0;
376413 return ($$0|0);
376414 } else {
376415 $$tr810 = $1;$$tr9 = $0;
376416 }
376417 while(1) {
376418 $3 = ($$tr810|0)<(0);
376419 if ($3) {
376420 $$0 = 18;
376421 label = 5;
376422 break;
376423 }
376424 $4 = ((($$tr9)) + 12|0);
376425 $5 = HEAP32[$4>>2]|0;
376426 $6 = (($$tr810) + -1)|0;
376427 $7 = (_fts3ExprCheckDepth($5,$6)|0);
376428 $8 = ($7|0)==(0);
376429 if (!($8)) {
376430 $$0 = $7;
376431 label = 5;
376432 break;
376433 }
376434 $9 = ((($$tr9)) + 16|0);
376435 $10 = HEAP32[$9>>2]|0;
376436 $11 = ($10|0)==(0|0);
376437 if ($11) {
376438 $$0 = 0;
376439 label = 5;
376440 break;
376441 } else {
376442 $$tr810 = $6;$$tr9 = $10;
376443 }
376444 }
376445 if ((label|0) == 5) {
376446 return ($$0|0);
376447 }
376448 return (0)|0;
376449}
376450function _fts3EvalAllocateReaders($0,$1,$2,$3,$4) {
376451 $0 = $0|0;
376452 $1 = $1|0;

Callers 1

_fts3FilterMethodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…