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

Function _sqlite3MemCompare

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

Source from the content-addressed store, hash-verified

33282 return ($$0|0);
33283}
33284function _sqlite3MemCompare($0,$1,$2) {
33285 $0 = $0|0;
33286 $1 = $1|0;
33287 $2 = $2|0;
33288 var $$ = 0, $$$ = 0, $$$i = 0, $$$i44 = 0, $$0 = 0, $$0$i46 = 0, $$18$i = 0, $$18$i45 = 0, $$42 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0;
33289 var $11 = 0, $110 = 0, $111 = 0.0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
33290 var $17 = 0, $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;
33291 var $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0.0, $47 = 0.0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0;
33292 var $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0.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;
33293 var $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0.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;
33294 var $90 = 0, $91 = 0, $92 = 0.0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond$i = 0, $or$cond$i43 = 0, label = 0, sp = 0;
33295 sp = STACKTOP;
33296 $3 = ((($0)) + 8|0);
33297 $4 = HEAP16[$3>>1]|0;
33298 $5 = $4&65535;
33299 $6 = ((($1)) + 8|0);
33300 $7 = HEAP16[$6>>1]|0;
33301 $8 = $7&65535;
33302 $9 = $7 | $4;
33303 $10 = $9&65535;
33304 $11 = $10 & 1;
33305 $12 = ($11|0)==(0);
33306 if (!($12)) {
33307 $13 = $8 & 1;
33308 $14 = $5 & 1;
33309 $15 = (($13) - ($14))|0;
33310 $$0 = $15;
33311 return ($$0|0);
33312 }
33313 $16 = $10 & 12;
33314 $17 = ($16|0)==(0);
33315 if ($17) {
33316 $115 = $10 & 2;
33317 $116 = ($115|0)==(0);
33318 if (!($116)) {
33319 $117 = $5 & 2;
33320 $118 = ($117|0)==(0);
33321 if ($118) {
33322 $$0 = 1;
33323 return ($$0|0);
33324 }
33325 $119 = $8 & 2;
33326 $120 = ($119|0)==(0);
33327 if ($120) {
33328 $$0 = -1;
33329 return ($$0|0);
33330 }
33331 $121 = ($2|0)==(0|0);
33332 if (!($121)) {
33333 $122 = (_vdbeCompareMemString($0,$1,$2,0)|0);
33334 $$0 = $122;
33335 return ($$0|0);
33336 }
33337 }
33338 $123 = (_sqlite3BlobCompare($0,$1)|0);
33339 $$0 = $123;
33340 return ($$0|0);
33341 }

Callers 5

_minmaxFuncFunction · 0.85
_minmaxStepFunction · 0.85
_nullifFuncFunction · 0.85
_sqlite3VdbeExecFunction · 0.85
_sqlite3ExprCompareFunction · 0.85

Calls 2

_vdbeCompareMemStringFunction · 0.85
_sqlite3BlobCompareFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…