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

Function _sumFinalize

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

Source from the content-addressed store, hash-verified

28868 }
28869}
28870function _sumFinalize($0) {
28871 $0 = $0|0;
28872 var $$0$$0$$0$$0$$0$$i$i$i = 0.0, $$0$$0$$0$$0$$0$2$i$i$i = 0.0, $$0$$0$$0$$0$$0$3$i$i$i = 0.0, $$0$i = 0, $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;
28873 var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
28874 var $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, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
28875 var label = 0, sp = 0;
28876 sp = STACKTOP;
28877 STACKTOP = STACKTOP + 16|0;
28878 $1 = sp + 8|0;
28879 $2 = sp;
28880 $3 = ((($0)) + 8|0);
28881 $4 = HEAP32[$3>>2]|0;
28882 $5 = ((($4)) + 8|0);
28883 $6 = HEAP16[$5>>1]|0;
28884 $7 = $6 & 8192;
28885 $8 = ($7<<16>>16)==(0);
28886 if ($8) {
28887 $9 = (_createAggContext($0,0)|0);
28888 $$0$i = $9;
28889 } else {
28890 $10 = ((($4)) + 16|0);
28891 $11 = HEAP32[$10>>2]|0;
28892 $$0$i = $11;
28893 }
28894 $12 = ($$0$i|0)==(0|0);
28895 if ($12) {
28896 STACKTOP = sp;return;
28897 }
28898 $13 = ((($$0$i)) + 16|0);
28899 $14 = $13;
28900 $15 = $14;
28901 $16 = HEAP32[$15>>2]|0;
28902 $17 = (($14) + 4)|0;
28903 $18 = $17;
28904 $19 = HEAP32[$18>>2]|0;
28905 $20 = ($19|0)>(0);
28906 $21 = ($16>>>0)>(0);
28907 $22 = ($19|0)==(0);
28908 $23 = $22 & $21;
28909 $24 = $20 | $23;
28910 if (!($24)) {
28911 STACKTOP = sp;return;
28912 }
28913 $25 = ((($$0$i)) + 24|0);
28914 $26 = HEAP8[$25>>0]|0;
28915 $27 = ($26<<24>>24)==(0);
28916 if (!($27)) {
28917 $28 = ((($0)) + 20|0);
28918 HEAP32[$28>>2] = 1;
28919 $29 = ((($0)) + 25|0);
28920 HEAP8[$29>>0] = 1;
28921 $30 = HEAP32[$0>>2]|0;
28922 (_sqlite3VdbeMemSetStr($30,19017,-1,1,(-1))|0);
28923 STACKTOP = sp;return;
28924 }
28925 $31 = ((($$0$i)) + 25|0);
28926 $32 = HEAP8[$31>>0]|0;
28927 $33 = ($32<<24>>24)==(0);

Callers

nothing calls this directly

Calls 4

_createAggContextFunction · 0.85
_sqlite3VdbeMemSetStrFunction · 0.85
_vdbeReleaseAndSetInt64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…