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

Function _sqlite3_bind_parameter_index

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

Source from the content-addressed store, hash-verified

322685 return (0)|0;
322686}
322687function _sqlite3_bind_parameter_index($0,$1) {
322688 $0 = $0|0;
322689 $1 = $1|0;
322690 var $$0$i3 = 0, $$023$i$i = 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, $24 = 0, $3 = 0, $4 = 0;
322691 var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
322692 sp = STACKTOP;
322693 $2 = ($1|0)==(0|0);
322694 if ($2) {
322695 $$0$i3 = 0;
322696 return ($$0$i3|0);
322697 }
322698 $3 = (_strlen($1)|0);
322699 $4 = $3 & 1073741823;
322700 $5 = ($0|0)==(0|0);
322701 if ($5) {
322702 $$0$i3 = 0;
322703 return ($$0$i3|0);
322704 }
322705 $6 = ((($0)) + 120|0);
322706 $7 = HEAP32[$6>>2]|0;
322707 $8 = ($7|0)==(0|0);
322708 if ($8) {
322709 $$0$i3 = 0;
322710 return ($$0$i3|0);
322711 }
322712 $9 = ((($7)) + 4|0);
322713 $10 = HEAP32[$9>>2]|0;
322714 $$023$i$i = 2;
322715 while(1) {
322716 $11 = (($$023$i$i) + 2)|0;
322717 $12 = (($7) + ($11<<2)|0);
322718 $13 = (_strncmp($12,$1,$4)|0);
322719 $14 = ($13|0)==(0);
322720 if ($14) {
322721 $15 = (($12) + ($4)|0);
322722 $16 = HEAP8[$15>>0]|0;
322723 $17 = ($16<<24>>24)==(0);
322724 if ($17) {
322725 break;
322726 }
322727 }
322728 $20 = (($$023$i$i) + 1)|0;
322729 $21 = (($7) + ($20<<2)|0);
322730 $22 = HEAP32[$21>>2]|0;
322731 $23 = (($22) + ($$023$i$i))|0;
322732 $24 = ($23|0)<($10|0);
322733 if ($24) {
322734 $$023$i$i = $23;
322735 } else {
322736 $$0$i3 = 0;
322737 label = 9;
322738 break;
322739 }
322740 }
322741 if ((label|0) == 9) {
322742 return ($$0$i3|0);
322743 }
322744 $18 = (($7) + ($$023$i$i<<2)|0);

Callers

nothing calls this directly

Calls 2

_strlenFunction · 0.85
_strncmpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…