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

Function _padcFunc

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

Source from the content-addressed store, hash-verified

8723 return;
8724}
8725function _padcFunc($0,$1,$2) {
8726 $0 = $0|0;
8727 $1 = $1|0;
8728 $2 = $2|0;
8729 var $$0$lcssa = 0, $$0143$i = 0, $$0152$i = 0, $$048 = 0, $$049$lcssa = 0, $$04953 = 0, $$054 = 0, $$1$lcssa = 0, $$15051 = 0, $$152 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
8730 var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $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;
8731 var $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $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;
8732 var $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0;
8733 var $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $or$cond$i = 0, $or$cond1$i = 0;
8734 var label = 0, sp = 0;
8735 sp = STACKTOP;
8736 $3 = ($1|0)==(2);
8737 if (!($3)) {
8738 ___assert_fail((16208|0),(16157|0),880,(16948|0));
8739 // unreachable;
8740 }
8741 $4 = HEAP32[$2>>2]|0;
8742 $5 = (_sqlite3_value_type($4)|0);
8743 $6 = ($5|0)==(5);
8744 if ($6) {
8745 _sqlite3_result_null($0);
8746 return;
8747 }
8748 $7 = HEAP32[$2>>2]|0;
8749 $8 = (_sqlite3_value_text($7)|0);
8750 $9 = ((($2)) + 4|0);
8751 $10 = HEAP32[$9>>2]|0;
8752 $11 = (_sqlite3_value_int64($10)|0);
8753 $12 = tempRet0;
8754 $13 = ($12|0)<(0);
8755 if ($13) {
8756 _sqlite3_result_error($0,16835,-1);
8757 return;
8758 }
8759 $14 = HEAP8[$8>>0]|0;
8760 $15 = ($14<<24>>24)==(0);
8761 $16 = ($8|0)==((-1)|0);
8762 $or$cond1$i = $16 | $15;
8763 if ($or$cond1$i) {
8764 $30 = 0;$32 = 0;
8765 } else {
8766 $$0143$i = 0;$$0152$i = $8;$18 = $14;
8767 while(1) {
8768 $17 = $18&255;
8769 $19 = (16403 + ($17)|0);
8770 $20 = HEAP8[$19>>0]|0;
8771 $21 = $20&255;
8772 $22 = (($21) + 1)|0;
8773 $23 = (($$0152$i) + ($22)|0);
8774 $24 = (($$0143$i) + 1)|0;
8775 $25 = HEAP8[$23>>0]|0;
8776 $26 = ($25<<24>>24)==(0);
8777 $27 = ($23|0)==((-1)|0);
8778 $or$cond$i = $26 | $27;
8779 if ($or$cond$i) {
8780 break;
8781 } else {
8782 $$0143$i = $24;$$0152$i = $23;$18 = $25;

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…