MCPcopy Index your code
hub / github.com/sql-js/sql.js / _modeFinalize

Function _modeFinalize

js/sql-debug.js:9510–9571  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

9508 }
9509}
9510function _modeFinalize($0) {
9511 $0 = $0|0;
9512 var $1 = 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, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
9513 var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0.0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
9514 sp = STACKTOP;
9515 $1 = (_sqlite3_aggregate_context($0,0)|0);
9516 $2 = ($1|0)==(0|0);
9517 if ($2) {
9518 return;
9519 }
9520 $3 = ((($1)) + 56|0);
9521 $4 = HEAP32[$3>>2]|0;
9522 $5 = ($4|0)==(0|0);
9523 if ($5) {
9524 return;
9525 }
9526 $6 = HEAP32[$4>>2]|0;
9527 _node_iterate($6,131,$1);
9528 $7 = HEAP32[$3>>2]|0;
9529 $8 = HEAP32[$7>>2]|0;
9530 _node_destroy($8);
9531 $9 = HEAP32[$3>>2]|0;
9532 _free($9);
9533 $10 = ((($1)) + 40|0);
9534 $11 = $10;
9535 $12 = $11;
9536 $13 = HEAP32[$12>>2]|0;
9537 $14 = (($11) + 4)|0;
9538 $15 = $14;
9539 $16 = HEAP32[$15>>2]|0;
9540 $17 = ($13|0)==(1);
9541 $18 = ($16|0)==(0);
9542 $19 = $17 & $18;
9543 if (!($19)) {
9544 return;
9545 }
9546 $20 = ((($1)) + 48|0);
9547 $21 = $20;
9548 $22 = $21;
9549 $23 = HEAP32[$22>>2]|0;
9550 $24 = (($21) + 4)|0;
9551 $25 = $24;
9552 $26 = HEAP32[$25>>2]|0;
9553 $27 = ($23|0)==(0);
9554 $28 = ($26|0)==(0);
9555 $29 = $27 & $28;
9556 if ($29) {
9557 $30 = $1;
9558 $31 = $30;
9559 $32 = HEAP32[$31>>2]|0;
9560 $33 = (($30) + 4)|0;
9561 $34 = $33;
9562 $35 = HEAP32[$34>>2]|0;
9563 _sqlite3_result_int64($0,$32,$35);
9564 return;
9565 } else {
9566 $36 = ((($1)) + 8|0);
9567 $37 = +HEAPF64[$36>>3];

Callers

nothing calls this directly

Calls 6

_node_iterateFunction · 0.85
_node_destroyFunction · 0.85
_freeFunction · 0.85
_sqlite3_result_int64Function · 0.85
_sqlite3_result_doubleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…