MCPcopy
hub / github.com/sql-js/sql.js / _sqlite3ExprIsInteger

Function _sqlite3ExprIsInteger

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

Source from the content-addressed store, hash-verified

213773 STACKTOP = sp;return ($$2|0);
213774}
213775function _sqlite3ExprIsInteger($0,$1) {
213776 $0 = $0|0;
213777 $1 = $1|0;
213778 var $$0 = 0, $$010 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
213779 var label = 0, sp = 0;
213780 sp = STACKTOP;
213781 STACKTOP = STACKTOP + 16|0;
213782 $2 = sp;
213783 $3 = ($0|0)==(0|0);
213784 L1: do {
213785 if ($3) {
213786 $$010 = 0;
213787 } else {
213788 $4 = ((($0)) + 4|0);
213789 $5 = HEAP32[$4>>2]|0;
213790 $6 = $5 & 1024;
213791 $7 = ($6|0)==(0);
213792 if (!($7)) {
213793 $8 = ((($0)) + 8|0);
213794 $9 = HEAP32[$8>>2]|0;
213795 HEAP32[$1>>2] = $9;
213796 $$010 = 1;
213797 break;
213798 }
213799 $10 = HEAP8[$0>>0]|0;
213800 switch ($10<<24>>24) {
213801 case -107: {
213802 $11 = ((($0)) + 12|0);
213803 $12 = HEAP32[$11>>2]|0;
213804 $13 = (_sqlite3ExprIsInteger($12,$1)|0);
213805 $$010 = $13;
213806 break L1;
213807 break;
213808 }
213809 case -108: {
213810 break;
213811 }
213812 default: {
213813 $$010 = 0;
213814 break L1;
213815 }
213816 }
213817 $14 = ((($0)) + 12|0);
213818 $15 = HEAP32[$14>>2]|0;
213819 $16 = (_sqlite3ExprIsInteger($15,$2)|0);
213820 $17 = ($16|0)==(0);
213821 if ($17) {
213822 $$0 = 0;
213823 } else {
213824 $18 = HEAP32[$2>>2]|0;
213825 $19 = (0 - ($18))|0;
213826 HEAP32[$1>>2] = $19;
213827 $$0 = 1;
213828 }
213829 $$010 = $$0;
213830 }
213831 } while(0);
213832 STACKTOP = sp;return ($$010|0);

Callers 9

_sqlite3SelectFunction · 0.85
_resolveSelectStepFunction · 0.85
_resolveOrderGroupByFunction · 0.85
_sqlite3ExprAndFunction · 0.85
_sqlite3ExprIfFalseFunction · 0.85
_sqlite3ExprIfTrueFunction · 0.85
_sqlite3CodeSubselectFunction · 0.85
_whereLoopOutputAdjustFunction · 0.85
_computeLimitRegistersFunction · 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…