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

Function _minMaxFinalize

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

Source from the content-addressed store, hash-verified

24708 return;
24709}
24710function _minMaxFinalize($0) {
24711 $0 = $0|0;
24712 var $$0$i = 0, $$pre = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, $phitmp7 = 0;
24713 var label = 0, sp = 0;
24714 sp = STACKTOP;
24715 $1 = ((($0)) + 8|0);
24716 $2 = HEAP32[$1>>2]|0;
24717 $3 = ((($2)) + 8|0);
24718 $4 = HEAP16[$3>>1]|0;
24719 $5 = $4 & 8192;
24720 $6 = ($5<<16>>16)==(0);
24721 if ($6) {
24722 $7 = (_createAggContext($0,0)|0);
24723 $$0$i = $7;
24724 } else {
24725 $8 = ((($2)) + 16|0);
24726 $9 = HEAP32[$8>>2]|0;
24727 $$0$i = $9;
24728 }
24729 $10 = ($$0$i|0)==(0|0);
24730 if ($10) {
24731 return;
24732 }
24733 $11 = ((($$0$i)) + 8|0);
24734 $12 = HEAP16[$11>>1]|0;
24735 $13 = ($12<<16>>16)==(0);
24736 if ($13) {
24737 label = 7;
24738 } else {
24739 _sqlite3_result_value($0,$$0$i);
24740 $$pre = HEAP16[$11>>1]|0;
24741 $phitmp = $$pre & 9312;
24742 $phitmp7 = ($phitmp<<16>>16)==(0);
24743 if ($phitmp7) {
24744 label = 7;
24745 }
24746 }
24747 if ((label|0) == 7) {
24748 $14 = ((($$0$i)) + 24|0);
24749 $15 = HEAP32[$14>>2]|0;
24750 $16 = ($15|0)==(0);
24751 if ($16) {
24752 return;
24753 }
24754 }
24755 _vdbeMemClear($$0$i);
24756 return;
24757}
24758function _typeofFunc($0,$1,$2) {
24759 $0 = $0|0;
24760 $1 = $1|0;

Callers

nothing calls this directly

Calls 3

_createAggContextFunction · 0.85
_sqlite3_result_valueFunction · 0.85
_vdbeMemClearFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…