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

Function _sqlite3ExprCodeAtInit

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

Source from the content-addressed store, hash-verified

229045 return 2;
229046}
229047function _sqlite3ExprCodeAtInit($0,$1,$2) {
229048 $0 = $0|0;
229049 $1 = $1|0;
229050 $2 = $2|0;
229051 var $$03945 = 0, $$04044 = 0, $$041 = 0, $$1 = 0, $$142 = 0, $$idx$val = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
229052 var $24 = 0, $25 = 0, $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, $5 = 0;
229053 var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
229054 sp = STACKTOP;
229055 $3 = ((($0)) + 76|0);
229056 $4 = HEAP32[$3>>2]|0;
229057 $5 = ($2|0)<(0);
229058 $6 = ($4|0)!=(0|0);
229059 $or$cond = $5 & $6;
229060 L1: do {
229061 if ($or$cond) {
229062 $7 = HEAP32[$4>>2]|0;
229063 $8 = ($7|0)>(0);
229064 if ($8) {
229065 $9 = ((($4)) + 4|0);
229066 $$03945 = $7;$$04044 = $9;
229067 while(1) {
229068 $10 = ((($$04044)) + 13|0);
229069 $11 = HEAP8[$10>>0]|0;
229070 $12 = $11 & 4;
229071 $13 = ($12<<24>>24)==(0);
229072 if (!($13)) {
229073 $14 = HEAP32[$$04044>>2]|0;
229074 $15 = (_sqlite3ExprCompare(0,$14,$1,-1)|0);
229075 $16 = ($15|0)==(0);
229076 if ($16) {
229077 break;
229078 }
229079 }
229080 $17 = ((($$04044)) + 20|0);
229081 $18 = (($$03945) + -1)|0;
229082 $19 = ($$03945|0)>(1);
229083 if ($19) {
229084 $$03945 = $18;$$04044 = $17;
229085 } else {
229086 break L1;
229087 }
229088 }
229089 $20 = ((($$04044)) + 16|0);
229090 $21 = HEAP32[$20>>2]|0;
229091 $$1 = $21;
229092 return ($$1|0);
229093 }
229094 }
229095 } while(0);
229096 $22 = ($1|0)==(0|0);
229097 if ($22) {
229098 $25 = 0;
229099 } else {
229100 $23 = HEAP32[$0>>2]|0;
229101 $24 = (_exprDup($23,$1,0,0)|0);
229102 $25 = $24;
229103 }
229104 $$idx$val = HEAP32[$0>>2]|0;

Callers 6

_sqlite3InsertFunction · 0.85
_sqlite3ExprCodeTempFunction · 0.85
_exprCodeBetweenFunction · 0.85
_sqlite3ExprCodeINFunction · 0.85
_sqlite3ExprCodeTargetFunction · 0.85
_sqlite3ExprCodeExprListFunction · 0.85

Calls 3

_sqlite3ExprCompareFunction · 0.85
_exprDupFunction · 0.85
_sqlite3ExprListAppendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…