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

Function _sqlite3VdbeChangeP4

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

Source from the content-addressed store, hash-verified

245588 return (0)|0;
245589}
245590function _sqlite3VdbeChangeP4($0,$1,$2,$3) {
245591 $0 = $0|0;
245592 $1 = $1|0;
245593 $2 = $2|0;
245594 $3 = $3|0;
245595 var $$0 = 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, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0;
245596 var $29 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
245597 sp = STACKTOP;
245598 $4 = HEAP32[$0>>2]|0;
245599 $5 = ((($4)) + 73|0);
245600 $6 = HEAP8[$5>>0]|0;
245601 $7 = ($6<<24>>24)==(0);
245602 if (!($7)) {
245603 $8 = ($3|0)==(-12);
245604 if ($8) {
245605 return;
245606 }
245607 _freeP4($4,$3,$2);
245608 return;
245609 }
245610 $9 = ($1|0)<(0);
245611 if ($9) {
245612 $10 = ((($0)) + 136|0);
245613 $11 = HEAP32[$10>>2]|0;
245614 $12 = (($11) + -1)|0;
245615 $$0 = $12;
245616 } else {
245617 $$0 = $1;
245618 }
245619 $13 = ((($0)) + 88|0);
245620 $14 = HEAP32[$13>>2]|0;
245621 $15 = (($14) + (($$0*20)|0)|0);
245622 $16 = ($3|0)>(-1);
245623 if (!($16)) {
245624 $17 = (((($14) + (($$0*20)|0)|0)) + 1|0);
245625 $18 = HEAP8[$17>>0]|0;
245626 $19 = ($18<<24>>24)==(0);
245627 if ($19) {
245628 $20 = ($3|0)==(-3);
245629 if ($20) {
245630 $21 = $2;
245631 $22 = (((($14) + (($$0*20)|0)|0)) + 16|0);
245632 HEAP32[$22>>2] = $21;
245633 HEAP8[$17>>0] = -3;
245634 return;
245635 }
245636 $23 = ($2|0)==(0|0);
245637 if ($23) {
245638 return;
245639 }
245640 $24 = (((($14) + (($$0*20)|0)|0)) + 16|0);
245641 HEAP32[$24>>2] = $2;
245642 $25 = $3&255;
245643 HEAP8[$17>>0] = $25;
245644 $26 = ($3|0)==(-12);
245645 if (!($26)) {
245646 return;
245647 }

Callers 1

_sqlite3VdbeAddOp4Function · 0.85

Calls 2

_freeP4Function · 0.85
_vdbeChangeP4FullFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…