MCPcopy Create free account
hub / github.com/sql-js/sql.js / _pcache1Truncate

Function _pcache1Truncate

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

Source from the content-addressed store, hash-verified

22279 return;
22280}
22281function _pcache1Truncate($0,$1) {
22282 $0 = $0|0;
22283 $1 = $1|0;
22284 var $$032$i = 0, $$032$ph$i = 0, $$033$ph36$i = 0, $$034$ph$i = 0, $$phi$trans$insert = 0, $$pre = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0;
22285 var $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, $39 = 0, $4 = 0, $40 = 0;
22286 var $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, $57 = 0, $58 = 0, $59 = 0;
22287 var $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, $75 = 0, $76 = 0, $77 = 0;
22288 var $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$i = 0, label = 0, sp = 0;
22289 sp = STACKTOP;
22290 $2 = ((($0)) + 36|0);
22291 $3 = HEAP32[$2>>2]|0;
22292 $4 = ($3>>>0)<($1>>>0);
22293 if ($4) {
22294 return;
22295 }
22296 $5 = (($3) - ($1))|0;
22297 $6 = ((($0)) + 48|0);
22298 $7 = HEAP32[$6>>2]|0;
22299 $8 = ($5>>>0)<($7>>>0);
22300 if ($8) {
22301 $9 = (($1>>>0) % ($7>>>0))&-1;
22302 $10 = (($3>>>0) % ($7>>>0))&-1;
22303 $$032$ph$i = $9;$$034$ph$i = $10;
22304 } else {
22305 $11 = $7 >>> 1;
22306 $12 = (($11) + -1)|0;
22307 $$032$ph$i = $11;$$034$ph$i = $12;
22308 }
22309 $13 = ((($0)) + 52|0);
22310 $14 = ((($0)) + 44|0);
22311 $$032$i = $$032$ph$i;
22312 while(1) {
22313 $15 = HEAP32[$13>>2]|0;
22314 $16 = (($15) + ($$032$i<<2)|0);
22315 $17 = HEAP32[$16>>2]|0;
22316 $18 = ($17|0)==(0|0);
22317 L10: do {
22318 if (!($18)) {
22319 $$033$ph36$i = $16;$90 = $17;
22320 while(1) {
22321 $20 = $90;
22322 while(1) {
22323 $19 = ((($20)) + 8|0);
22324 $21 = HEAP32[$19>>2]|0;
22325 $22 = ($21>>>0)<($1>>>0);
22326 if ($22) {
22327 break;
22328 }
22329 $23 = HEAP32[$14>>2]|0;
22330 $24 = (($23) + -1)|0;
22331 HEAP32[$14>>2] = $24;
22332 $25 = ((($20)) + 16|0);
22333 $26 = HEAP32[$25>>2]|0;
22334 HEAP32[$$033$ph36$i>>2] = $26;
22335 $27 = ((($20)) + 24|0);
22336 $28 = HEAP32[$27>>2]|0;
22337 $29 = ($28|0)==(0|0);
22338 if ($29) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…