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

Function _padlFunc

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

Source from the content-addressed store, hash-verified

8473 return;
8474}
8475function _padlFunc($0,$1,$2) {
8476 $0 = $0|0;
8477 $1 = $1|0;
8478 $2 = $2|0;
8479 var $$0143$i = 0, $$0152$i = 0, $$038 = 0, $$03940 = 0, $$041 = 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;
8480 var $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, $41 = 0, $42 = 0;
8481 var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0;
8482 var $61 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond$i = 0, $or$cond1$i = 0, label = 0, sp = 0;
8483 sp = STACKTOP;
8484 $3 = ($1|0)==(2);
8485 if (!($3)) {
8486 ___assert_fail((16208|0),(16157|0),771,(16930|0));
8487 // unreachable;
8488 }
8489 $4 = HEAP32[$2>>2]|0;
8490 $5 = (_sqlite3_value_type($4)|0);
8491 $6 = ($5|0)==(5);
8492 if ($6) {
8493 _sqlite3_result_null($0);
8494 return;
8495 }
8496 $7 = HEAP32[$2>>2]|0;
8497 $8 = (_sqlite3_value_text($7)|0);
8498 $9 = ((($2)) + 4|0);
8499 $10 = HEAP32[$9>>2]|0;
8500 $11 = (_sqlite3_value_int64($10)|0);
8501 $12 = tempRet0;
8502 $13 = ($12|0)<(0);
8503 if ($13) {
8504 _sqlite3_result_error($0,16835,-1);
8505 return;
8506 }
8507 $14 = HEAP8[$8>>0]|0;
8508 $15 = ($14<<24>>24)==(0);
8509 $16 = ($8|0)==((-1)|0);
8510 $or$cond1$i = $16 | $15;
8511 if ($or$cond1$i) {
8512 $30 = 0;$32 = 0;
8513 } else {
8514 $$0143$i = 0;$$0152$i = $8;$18 = $14;
8515 while(1) {
8516 $17 = $18&255;
8517 $19 = (16403 + ($17)|0);
8518 $20 = HEAP8[$19>>0]|0;
8519 $21 = $20&255;
8520 $22 = (($21) + 1)|0;
8521 $23 = (($$0152$i) + ($22)|0);
8522 $24 = (($$0143$i) + 1)|0;
8523 $25 = HEAP8[$23>>0]|0;
8524 $26 = ($25<<24>>24)==(0);
8525 $27 = ($23|0)==((-1)|0);
8526 $or$cond$i = $26 | $27;
8527 if ($or$cond$i) {
8528 break;
8529 } else {
8530 $$0143$i = $24;$$0152$i = $23;$18 = $25;
8531 }
8532 }

Callers

nothing calls this directly

Calls 14

_sqlite3_value_typeFunction · 0.85
_sqlite3_result_nullFunction · 0.85
_sqlite3_value_textFunction · 0.85
_sqlite3_value_int64Function · 0.85
_sqlite3_result_errorFunction · 0.85
_strlenFunction · 0.85
_i64AddFunction · 0.85
_i64SubtractFunction · 0.85
_sqlite3_mallocFunction · 0.85
_strcpyFunction · 0.85
_sqlite3_result_textFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…