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

Function _estimateIndexWidth

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

Source from the content-addressed store, hash-verified

303891 return ($$0|0);
303892}
303893function _estimateIndexWidth($0) {
303894 $0 = $0|0;
303895 var $$019$i = 0, $$01925 = 0, $$026 = 0, $$026$i = 0, $$1$lcssa$i = 0, $$136$i = 0, $$230$i = 0, $$3$i = 0, $$318$off0$i = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
303896 var $2 = 0, $20 = 0, $21 = 0, $22 = 0, $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;
303897 var $38 = 0, $39 = 0, $4 = 0, $40 = 0, $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;
303898 var $56 = 0, $57 = 0, $58 = 0, $59 = 0, $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;
303899 var $74 = 0, $75 = 0, $76 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
303900 sp = STACKTOP;
303901 $1 = ((($0)) + 12|0);
303902 $2 = HEAP32[$1>>2]|0;
303903 $3 = ((($2)) + 4|0);
303904 $4 = HEAP32[$3>>2]|0;
303905 $5 = ((($0)) + 52|0);
303906 $6 = HEAP16[$5>>1]|0;
303907 $7 = ($6<<16>>16)==(0);
303908 if ($7) {
303909 $$019$i = 0;
303910 $76 = ((($0)) + 48|0);
303911 HEAP16[$76>>1] = $$019$i;
303912 return;
303913 }
303914 $8 = ((($0)) + 4|0);
303915 $9 = HEAP32[$8>>2]|0;
303916 $10 = $6&65535;
303917 $$01925 = 0;$$026 = 0;
303918 while(1) {
303919 $11 = (($9) + ($$01925<<1)|0);
303920 $12 = HEAP16[$11>>1]|0;
303921 $13 = ($12<<16>>16)<(0);
303922 if ($13) {
303923 $19 = 1;
303924 } else {
303925 $14 = $12 << 16 >> 16;
303926 $15 = (((($4) + ($14<<4)|0)) + 14|0);
303927 $16 = HEAP8[$15>>0]|0;
303928 $17 = $16&255;
303929 $19 = $17;
303930 }
303931 $18 = (($19) + ($$026))|0;
303932 $20 = (($$01925) + 1)|0;
303933 $21 = ($20|0)<($10|0);
303934 if ($21) {
303935 $$01925 = $20;$$026 = $18;
303936 } else {
303937 break;
303938 }
303939 }
303940 $phitmp = $18 << 2;
303941 $22 = ($phitmp>>>0)<(8);
303942 if ($22) {
303943 $24 = ($phitmp>>>0)<(2);
303944 if ($24) {
303945 $$019$i = 0;
303946 $76 = ((($0)) + 48|0);
303947 HEAP16[$76>>1] = $$019$i;
303948 return;
303949 } else {
303950 $$026$i = 40;$27 = $phitmp;$28 = 0;

Callers 2

_sqlite3EndTableFunction · 0.85
_sqlite3CreateIndexFunction · 0.85

Calls 2

_bitshift64ShlFunction · 0.85
_bitshift64LshrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…