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

Function _atn2Func

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

Source from the content-addressed store, hash-verified

5964 }
5965}
5966function _atn2Func($0,$1,$2) {
5967 $0 = $0|0;
5968 $1 = $1|0;
5969 $2 = $2|0;
5970 var $10 = 0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
5971 sp = STACKTOP;
5972 $3 = ($1|0)==(2);
5973 if (!($3)) {
5974 ___assert_fail((16208|0),(16157|0),570,(16216|0));
5975 // unreachable;
5976 }
5977 $4 = HEAP32[$2>>2]|0;
5978 $5 = (_sqlite3_value_type($4)|0);
5979 $6 = ($5|0)==(5);
5980 if (!($6)) {
5981 $7 = ((($2)) + 4|0);
5982 $8 = HEAP32[$7>>2]|0;
5983 $9 = (_sqlite3_value_type($8)|0);
5984 $10 = ($9|0)==(5);
5985 if (!($10)) {
5986 $11 = HEAP32[$2>>2]|0;
5987 $12 = (+_sqlite3_value_double($11));
5988 $13 = HEAP32[$7>>2]|0;
5989 $14 = (+_sqlite3_value_double($13));
5990 $15 = (+Math_atan2((+$12),(+$14)));
5991 _sqlite3_result_double($0,$15);
5992 return;
5993 }
5994 }
5995 _sqlite3_result_null($0);
5996 return;
5997}
5998function _acoshFunc($0,$1,$2) {
5999 $0 = $0|0;
6000 $1 = $1|0;

Callers

nothing calls this directly

Calls 5

_sqlite3_value_typeFunction · 0.85
_sqlite3_value_doubleFunction · 0.85
_sqlite3_result_doubleFunction · 0.85
_sqlite3_result_nullFunction · 0.85
___assert_failFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…