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

Function _sqlite3_mprintf

js/sql-debug.js:18592–18654  ·  view source on GitHub ↗
($0,$varargs)

Source from the content-addressed store, hash-verified

18590 STACKTOP = sp;return ($1|0);
18591}
18592function _sqlite3_mprintf($0,$varargs) {
18593 $0 = $0|0;
18594 $varargs = $varargs|0;
18595 var $$0 = 0, $$0$i = 0, $1 = 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, $23 = 0, $24 = 0, $3 = 0;
18596 var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
18597 sp = STACKTOP;
18598 STACKTOP = STACKTOP + 112|0;
18599 $1 = sp + 40|0;
18600 $2 = sp + 16|0;
18601 $3 = sp;
18602 $4 = (_sqlite3_initialize()|0);
18603 $5 = ($4|0)==(0);
18604 if (!($5)) {
18605 $$0 = 0;
18606 STACKTOP = sp;return ($$0|0);
18607 }
18608 HEAP32[$3>>2] = $varargs;
18609 $6 = (_sqlite3_initialize()|0);
18610 $7 = ($6|0)==(0);
18611 do {
18612 if ($7) {
18613 $8 = ((($2)) + 4|0);
18614 HEAP32[$8>>2] = $1;
18615 HEAP32[$2>>2] = 0;
18616 $9 = ((($2)) + 8|0);
18617 HEAP32[$9>>2] = 70;
18618 $10 = ((($2)) + 12|0);
18619 HEAP32[$10>>2] = 1000000000;
18620 $11 = ((($2)) + 16|0);
18621 HEAP32[$11>>2] = 0;
18622 $12 = ((($2)) + 20|0);
18623 HEAP8[$12>>0] = 0;
18624 $13 = ((($2)) + 21|0);
18625 HEAP8[$13>>0] = 0;
18626 _sqlite3VXPrintf($2,$0,$3);
18627 $14 = HEAP32[$8>>2]|0;
18628 $15 = ($14|0)==(0|0);
18629 if (!($15)) {
18630 $16 = HEAP32[$11>>2]|0;
18631 $17 = (($14) + ($16)|0);
18632 HEAP8[$17>>0] = 0;
18633 $18 = HEAP32[$10>>2]|0;
18634 $19 = ($18|0)==(0);
18635 if (!($19)) {
18636 $20 = HEAP8[$13>>0]|0;
18637 $21 = $20 & 4;
18638 $22 = ($21<<24>>24)==(0);
18639 if ($22) {
18640 $23 = (_strAccumFinishRealloc($2)|0);
18641 $$0$i = $23;
18642 break;
18643 }
18644 }
18645 }
18646 $24 = HEAP32[$8>>2]|0;
18647 $$0$i = $24;
18648 } else {
18649 $$0$i = 0;

Callers 15

_unixFileControlFunction · 0.85
_roundFuncFunction · 0.85
_sqlite3PragmaFunction · 0.85
_sqlite3AuthReadColFunction · 0.85
_sqlite3ParseUriFunction · 0.85
_pragmaVtabConnectFunction · 0.85
_pragmaVtabFilterFunction · 0.85
_sqlite3InvalidFunctionFunction · 0.85
_fts3TokenizerFuncFunction · 0.85
_fts3FilterMethodFunction · 0.85
_fts3UpdateMethodFunction · 0.85
_fts3BeginMethodFunction · 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…