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

Function ___strchrnul

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

Source from the content-addressed store, hash-verified

395855 return ($$243|0);
395856}
395857function ___strchrnul($0,$1) {
395858 $0 = $0|0;
395859 $1 = $1|0;
395860 var $$0 = 0, $$029$lcssa = 0, $$02936 = 0, $$030$lcssa = 0, $$03039 = 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;
395861 var $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, $38 = 0, $39 = 0, $4 = 0, $40 = 0;
395862 var $41 = 0, $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond33 = 0, label = 0, sp = 0;
395863 sp = STACKTOP;
395864 $2 = $1 & 255;
395865 $3 = ($2|0)==(0);
395866 L1: do {
395867 if ($3) {
395868 $8 = (_strlen($0)|0);
395869 $9 = (($0) + ($8)|0);
395870 $$0 = $9;
395871 } else {
395872 $4 = $0;
395873 $5 = $4 & 3;
395874 $6 = ($5|0)==(0);
395875 if ($6) {
395876 $$030$lcssa = $0;
395877 } else {
395878 $7 = $1&255;
395879 $$03039 = $0;
395880 while(1) {
395881 $10 = HEAP8[$$03039>>0]|0;
395882 $11 = ($10<<24>>24)==(0);
395883 $12 = ($10<<24>>24)==($7<<24>>24);
395884 $or$cond = $11 | $12;
395885 if ($or$cond) {
395886 $$0 = $$03039;
395887 break L1;
395888 }
395889 $13 = ((($$03039)) + 1|0);
395890 $14 = $13;
395891 $15 = $14 & 3;
395892 $16 = ($15|0)==(0);
395893 if ($16) {
395894 $$030$lcssa = $13;
395895 break;
395896 } else {
395897 $$03039 = $13;
395898 }
395899 }
395900 }
395901 $17 = Math_imul($2, 16843009)|0;
395902 $18 = HEAP32[$$030$lcssa>>2]|0;
395903 $19 = (($18) + -16843009)|0;
395904 $20 = $18 & -2139062144;
395905 $21 = $20 ^ -2139062144;
395906 $22 = $21 & $19;
395907 $23 = ($22|0)==(0);
395908 L10: do {
395909 if ($23) {
395910 $$02936 = $$030$lcssa;$25 = $18;
395911 while(1) {
395912 $24 = $25 ^ $17;
395913 $26 = (($24) + -16843009)|0;
395914 $27 = $24 & -2139062144;

Callers 1

_strcspnFunction · 0.85

Calls 1

_strlenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…