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

Function _rightFunc

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

Source from the content-addressed store, hash-verified

8069 return;
8070}
8071function _rightFunc($0,$1,$2) {
8072 $0 = $0|0;
8073 $1 = $1|0;
8074 $2 = $2|0;
8075 var $$0 = 0, $$0$i = 0, $$018$i = 0, $$038 = 0, $$1 = 0, $$1$i = 0, $$119$i = 0, $$2$lcssa = 0, $$243 = 0, $$3 = 0, $$in = 0, $$pre = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0;
8076 var $18 = 0, $19 = 0, $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;
8077 var $37 = 0, $38 = 0, $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;
8078 var $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond$i = 0, $or$cond22$i = 0, label = 0, sp = 0;
8079 sp = STACKTOP;
8080 $3 = ($1|0)==(2);
8081 if (!($3)) {
8082 ___assert_fail((16208|0),(16157|0),1113,(16889|0));
8083 // unreachable;
8084 }
8085 $4 = HEAP32[$2>>2]|0;
8086 $5 = (_sqlite3_value_type($4)|0);
8087 $6 = ($5|0)==(5);
8088 if (!($6)) {
8089 $7 = ((($2)) + 4|0);
8090 $8 = HEAP32[$7>>2]|0;
8091 $9 = (_sqlite3_value_type($8)|0);
8092 $10 = ($9|0)==(5);
8093 if (!($10)) {
8094 $11 = HEAP32[$2>>2]|0;
8095 $12 = (_sqlite3_value_text($11)|0);
8096 $13 = HEAP32[$7>>2]|0;
8097 $14 = (_sqlite3_value_int($13)|0);
8098 $$pre = HEAP8[$12>>0]|0;
8099 $$0 = 0;$$038 = $12;$17 = $$pre;
8100 while(1) {
8101 $15 = ((($$038)) + 1|0);
8102 $16 = $17&255;
8103 $18 = (16403 + ($16)|0);
8104 $19 = HEAP8[$18>>0]|0;
8105 $20 = $19&255;
8106 switch ($19<<24>>24) {
8107 case 4: {
8108 $$1 = $$038;
8109 break;
8110 }
8111 case 3: {
8112 $21 = $16 << 6;
8113 $22 = ((($$038)) + 2|0);
8114 $23 = HEAP8[$15>>0]|0;
8115 $24 = $23&255;
8116 $25 = (($24) + ($21))|0;
8117 $$0$i = $22;$$018$i = $25;
8118 label = 9;
8119 break;
8120 }
8121 case 2: {
8122 $$0$i = $15;$$018$i = $16;
8123 label = 9;
8124 break;
8125 }
8126 case 1: {
8127 $$1$i = $15;$$119$i = $16;
8128 label = 10;

Callers

nothing calls this directly

Calls 10

_sqlite3_value_typeFunction · 0.85
_sqlite3_value_textFunction · 0.85
_sqlite3_value_intFunction · 0.85
_sqlite3_mallocFunction · 0.85
_strcpyFunction · 0.85
_sqlite3_result_textFunction · 0.85
_sqlite3_freeFunction · 0.85
_sqlite3_result_nullFunction · 0.85
___assert_failFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…