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

Function _sqlite3_vmprintf

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

Source from the content-addressed store, hash-verified

46637 }
46638}
46639function _sqlite3_vmprintf($0,$1) {
46640 $0 = $0|0;
46641 $1 = $1|0;
46642 var $$0 = 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, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0;
46643 var $8 = 0, $9 = 0, label = 0, sp = 0;
46644 sp = STACKTOP;
46645 STACKTOP = STACKTOP + 96|0;
46646 $2 = sp + 24|0;
46647 $3 = sp;
46648 $4 = (_sqlite3_initialize()|0);
46649 $5 = ($4|0)==(0);
46650 if (!($5)) {
46651 $$0 = 0;
46652 STACKTOP = sp;return ($$0|0);
46653 }
46654 $6 = ((($3)) + 4|0);
46655 HEAP32[$6>>2] = $2;
46656 HEAP32[$3>>2] = 0;
46657 $7 = ((($3)) + 8|0);
46658 HEAP32[$7>>2] = 70;
46659 $8 = ((($3)) + 12|0);
46660 HEAP32[$8>>2] = 1000000000;
46661 $9 = ((($3)) + 16|0);
46662 HEAP32[$9>>2] = 0;
46663 $10 = ((($3)) + 20|0);
46664 HEAP8[$10>>0] = 0;
46665 $11 = ((($3)) + 21|0);
46666 HEAP8[$11>>0] = 0;
46667 _sqlite3VXPrintf($3,$0,$1);
46668 $12 = HEAP32[$6>>2]|0;
46669 $13 = ($12|0)==(0|0);
46670 if (!($13)) {
46671 $14 = HEAP32[$9>>2]|0;
46672 $15 = (($12) + ($14)|0);
46673 HEAP8[$15>>0] = 0;
46674 $16 = HEAP32[$8>>2]|0;
46675 $17 = ($16|0)==(0);
46676 if (!($17)) {
46677 $18 = HEAP8[$11>>0]|0;
46678 $19 = $18 & 4;
46679 $20 = ($19<<24>>24)==(0);
46680 if ($20) {
46681 $21 = (_strAccumFinishRealloc($3)|0);
46682 $$0 = $21;
46683 STACKTOP = sp;return ($$0|0);
46684 }
46685 }
46686 }
46687 $22 = HEAP32[$6>>2]|0;
46688 $$0 = $22;
46689 STACKTOP = sp;return ($$0|0);
46690}
46691function _sqlite3ErrorWithMsg($0,$1,$2,$varargs) {
46692 $0 = $0|0;
46693 $1 = $1|0;

Callers 3

_sqlite3Fts3ErrMsgFunction · 0.85
_fts3DbExecFunction · 0.85
_fts3AppendfFunction · 0.85

Calls 3

_sqlite3_initializeFunction · 0.85
_sqlite3VXPrintfFunction · 0.85
_strAccumFinishReallocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…