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

Function _padrFunc

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

Source from the content-addressed store, hash-verified

8598 return;
8599}
8600function _padrFunc($0,$1,$2) {
8601 $0 = $0|0;
8602 $1 = $1|0;
8603 $2 = $2|0;
8604 var $$0143$i = 0, $$0152$i = 0, $$042 = 0, $$04344 = 0, $$045 = 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;
8605 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;
8606 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;
8607 var $61 = 0, $62 = 0, $63 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond$i = 0, $or$cond1$i = 0, label = 0, sp = 0;
8608 sp = STACKTOP;
8609 $3 = ($1|0)==(2);
8610 if (!($3)) {
8611 ___assert_fail((16208|0),(16157|0),825,(16939|0));
8612 // unreachable;
8613 }
8614 $4 = HEAP32[$2>>2]|0;
8615 $5 = (_sqlite3_value_type($4)|0);
8616 $6 = ($5|0)==(5);
8617 if ($6) {
8618 _sqlite3_result_null($0);
8619 return;
8620 }
8621 $7 = HEAP32[$2>>2]|0;
8622 $8 = (_sqlite3_value_text($7)|0);
8623 $9 = ((($2)) + 4|0);
8624 $10 = HEAP32[$9>>2]|0;
8625 $11 = (_sqlite3_value_int64($10)|0);
8626 $12 = tempRet0;
8627 $13 = ($12|0)<(0);
8628 if ($13) {
8629 _sqlite3_result_error($0,16835,-1);
8630 return;
8631 }
8632 $14 = HEAP8[$8>>0]|0;
8633 $15 = ($14<<24>>24)==(0);
8634 $16 = ($8|0)==((-1)|0);
8635 $or$cond1$i = $16 | $15;
8636 if ($or$cond1$i) {
8637 $30 = 0;$32 = 0;
8638 } else {
8639 $$0143$i = 0;$$0152$i = $8;$18 = $14;
8640 while(1) {
8641 $17 = $18&255;
8642 $19 = (16403 + ($17)|0);
8643 $20 = HEAP8[$19>>0]|0;
8644 $21 = $20&255;
8645 $22 = (($21) + 1)|0;
8646 $23 = (($$0152$i) + ($22)|0);
8647 $24 = (($$0143$i) + 1)|0;
8648 $25 = HEAP8[$23>>0]|0;
8649 $26 = ($25<<24>>24)==(0);
8650 $27 = ($23|0)==((-1)|0);
8651 $or$cond$i = $26 | $27;
8652 if ($or$cond$i) {
8653 break;
8654 } else {
8655 $$0143$i = $24;$$0152$i = $23;$18 = $25;
8656 }
8657 }

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…