LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3VdbeMakeLabel
SQLITE_PRIVATE int sqlite3VdbeMakeLabel(Vdbe *v){
  Parse *p = v->pParse;
  int i = p->nLabel++;
  assert( v->magic==VDBE_MAGIC_INIT );
  if( (i & (i-1))==0 ){
    p->aLabel = sqlite3DbReallocOrFree(p->db, p->aLabel, 
                                       (i*2+1)*sizeof(p->aLabel[0]));
  }
  if( p->aLabel ){
    p->aLabel[i] = -1;
  }
  return ADDR(i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movslq 0x7c(%rdi), %rbx
leal 0x1(%rbx), %eax
movl %eax, 0x7c(%rdi)
leal -0x1(%rbx), %eax
testl %eax, %ebx
jne 0x51764
movq (%r14), %rdi
movq 0x80(%r14), %rsi
leaq 0x4(,%rbx,8), %rdx
callq 0x2a49a
movq %rax, 0x80(%r14)
jmp 0x5176b
movq 0x80(%r14), %rax
testq %rax, %rax
je 0x51777
movl $0xffffffff, (%rax,%rbx,4) # imm = 0xFFFFFFFF
notl %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ExprCachePop
SQLITE_PRIVATE void sqlite3ExprCachePop(Parse *pParse){
  int i;
  struct yColCache *p;
  assert( pParse->iCacheLevel>=1 );
  pParse->iCacheLevel--;
#ifdef SQLITE_DEBUG
  if( pParse->db->flags & SQLITE_VdbeAddopTrace ){
    printf("POP  to %d\n", pParse->iCacheLevel);
  }
#endif
  for(i=0, p=pParse->aColCache; i<SQLITE_N_COLCACHE; i++, p++){
    if( p->iReg && p->iLevel>pParse->iCacheLevel ){
      cacheEntryClear(pParse, p);
      p->iReg = 0;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
decl 0x74(%rdi)
xorl %eax, %eax
movl 0x94(%rdi,%rax), %ecx
testl %ecx, %ecx
je 0x51838
movl 0x90(%rdi,%rax), %edx
cmpl 0x74(%rdi), %edx
jle 0x51838
cmpb $0x0, 0x8e(%rdi,%rax)
je 0x5182d
movzbl 0x1f(%rdi), %edx
cmpq $0x7, %rdx
ja 0x51825
leal 0x1(%rdx), %esi
movb %sil, 0x1f(%rdi)
movl %ecx, 0x24(%rdi,%rdx,4)
movb $0x0, 0x8e(%rdi,%rax)
movl $0x0, 0x94(%rdi,%rax)
addq $0x14, %rax
cmpl $0xc8, %eax
jne 0x517ef
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3WalkSelect
SQLITE_PRIVATE int sqlite3WalkSelect(Walker *pWalker, Select *p){
  int rc;
  if( p==0 || (pWalker->xSelectCallback==0 && pWalker->xSelectCallback2==0) ){
    return WRC_Continue;
  }
  rc = WRC_Continue;
  pWalker->walkerDepth++;
  while( p ){
    if( pWalker->xSelectCallback ){
       rc = pWalker->xSelectCallback(pWalker, p);
       if( rc ) break;
    }
    if( sqlite3WalkSelectExpr(pWalker, p)
     || sqlite3WalkSelectFrom(pWalker, p)
    ){
      pWalker->walkerDepth--;
      return WRC_Abort;
    }
    if( pWalker->xSelectCallback2 ){
      pWalker->xSelectCallback2(pWalker, p);
    }
    p = p->pPrior;
  }
  pWalker->walkerDepth--;
  return rc & WRC_Abort;
}

// Assembly:
xorl %eax, %eax
testq %rsi, %rsi
je 0x537b3
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
jne 0x5368d
cmpq $0x0, 0x10(%rbx)
je 0x537ab
incl 0x20(%rbx)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x536a9
movq %rbx, %rdi
movq %r14, %rsi
callq *%rax
testl %eax, %eax
jne 0x5379b
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x537b4
testl %eax, %eax
jne 0x537a3
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x535da
testl %eax, %eax
jne 0x537a3
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x537b4
testl %eax, %eax
jne 0x537a3
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x535da
testl %eax, %eax
jne 0x537a3
movq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x537b4
testl %eax, %eax
jne 0x537a3
movq 0x60(%r14), %rsi
movq %rbx, %rdi
callq 0x535da
testl %eax, %eax
jne 0x537a3
movq 0x68(%r14), %rsi
movq %rbx, %rdi
callq 0x535da
testl %eax, %eax
jne 0x537a3
movq 0x28(%r14), %r15
testq %r15, %r15
je 0x5377b
movl (%r15), %r12d
testl %r12d, %r12d
jle 0x5377b
addq $0x30, %r15
incl %r12d
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x5365f
testl %eax, %eax
jne 0x537a3
testb $0x4, 0x15(%r15)
je 0x5376e
movq 0x38(%r15), %rsi
movq %rbx, %rdi
callq 0x537b4
testl %eax, %eax
jne 0x537a3
addq $0x70, %r15
decl %r12d
cmpl $0x1, %r12d
jg 0x53748
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x5378c
movq %rbx, %rdi
movq %r14, %rsi
callq *%rax
movq 0x50(%r14), %r14
testq %r14, %r14
jne 0x53690
xorl %eax, %eax
decl 0x20(%rbx)
andl $0x2, %eax
jmp 0x537ab
decl 0x20(%rbx)
movl $0x2, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ExprCanBeNull
SQLITE_PRIVATE int sqlite3ExprCanBeNull(const Expr *p){
  u8 op;
  while( p->op==TK_UPLUS || p->op==TK_UMINUS ){ p = p->pLeft; }
  op = p->op;
  if( op==TK_REGISTER ) op = p->op2;
  switch( op ){
    case TK_INTEGER:
    case TK_STRING:
    case TK_FLOAT:
    case TK_BLOB:
      return 0;
    case TK_COLUMN:
      assert( p->pTab!=0 );
      return ExprHasProperty(p, EP_CanBeNull) ||
             (p->iColumn>=0 && p->pTab->aCol[p->iColumn].notNull==0);
    default:
      return 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb (%rdi), %al
movzbl %al, %ecx
leal -0x9b(%rcx), %edx
cmpl $0x2, %edx
jae 0x54862
movq 0x10(%rdi), %rdi
jmp 0x5484c
cmpl $0x9d, %ecx
jne 0x5486d
movb 0x36(%rdi), %al
movzbl %al, %ecx
xorl %eax, %eax
leal -0x84(%rcx), %edx
cmpl $0x3, %edx
jb 0x548be
cmpl $0x61, %ecx
je 0x548be
movl $0x1, %eax
cmpl $0x98, %ecx
jne 0x548be
testb $0x10, 0x6(%rdi)
jne 0x548be
movswq 0x30(%rdi), %rcx
movl $0x0, %eax
testq %rcx, %rcx
js 0x548be
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rdx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
xorl %eax, %eax
cmpb $0x0, 0x28(%rdx,%rcx)
sete %al
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3CodeVerifySchema
SQLITE_PRIVATE void sqlite3CodeVerifySchema(Parse *pParse, int iDb){
  Parse *pToplevel = sqlite3ParseToplevel(pParse);
  sqlite3 *db = pToplevel->db;

  assert( iDb>=0 && iDb<db->nDb );
  assert( db->aDb[iDb].pBt!=0 || iDb==1 );
  assert( iDb<SQLITE_MAX_ATTACHED+2 );
  assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
  if( DbMaskTest(pToplevel->cookieMask, iDb)==0 ){
    DbMaskSet(pToplevel->cookieMask, iDb);
    pToplevel->cookieValue[iDb] = db->aDb[iDb].pSchema->schema_cookie;
    if( !OMIT_TEMPDB && iDb==1 ){
      sqlite3OpenTempDatabase(pToplevel);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movq 0x1c0(%rdi), %rdi
testq %rdi, %rdi
cmoveq %rax, %rdi
movl %esi, %ecx
movl 0x16c(%rdi), %eax
movl $0x1, %edx
shll %cl, %edx
btl %esi, %eax
jb 0x5491b
movq (%rdi), %rsi
orl %edx, %eax
movl %eax, 0x16c(%rdi)
movq 0x20(%rsi), %rax
movslq %ecx, %rdx
movq %rdx, %rsi
shlq $0x5, %rsi
movq 0x18(%rax,%rsi), %rax
movl (%rax), %eax
movl %eax, 0x170(%rdi,%rdx,4)
cmpl $0x1, %ecx
jne 0x5491b
popq %rbp
jmp 0x1e3b5
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: exprAlwaysTrue
static int exprAlwaysTrue(Expr *p){
  int v = 0;
  if( ExprHasProperty(p, EP_FromJoin) ) return 0;
  if( !sqlite3ExprIsInteger(p, &v) ) return 0;
  return v!=0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x0, -0xc(%rbp)
xorl %ebx, %ebx
testb $0x1, 0x4(%rdi)
jne 0x54dda
leaq -0xc(%rbp), %rsi
callq 0x54283
testl %eax, %eax
je 0x54dda
xorl %ebx, %ebx
cmpl $0x0, -0xc(%rbp)
setne %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ResolveSelfReference
SQLITE_PRIVATE void sqlite3ResolveSelfReference(
  Parse *pParse,      /* Parsing context */
  Table *pTab,        /* The table being referenced */
  int type,           /* NC_IsCheck or NC_PartIdx or NC_IdxExpr */
  Expr *pExpr,        /* Expression to resolve.  May be NULL. */
  ExprList *pList     /* Expression list to resolve.  May be NUL. */
){
  SrcList sSrc;                   /* Fake SrcList for pParse->pNewTable */
  NameContext sNC;                /* Name context for pParse->pNewTable */

  assert( type==NC_IsCheck || type==NC_PartIdx || type==NC_IdxExpr );
  memset(&sNC, 0, sizeof(sNC));
  memset(&sSrc, 0, sizeof(sSrc));
  sSrc.nSrc = 1;
  sSrc.a[0].zName = pTab->zName;
  sSrc.a[0].pTab = pTab;
  sSrc.a[0].iCursor = -1;
  sNC.pParse = pParse;
  sNC.pSrcList = &sSrc;
  sNC.ncFlags = type;
  if( sqlite3ResolveExprNames(&sNC, pExpr) ) return;
  if( pList ) sqlite3ResolveExprListNames(&sNC, pList);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xb8, %rsp
movq %r8, %rbx
xorl %r8d, %r8d
leaq -0x40(%rbp), %rax
movq %r8, 0x30(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
leaq -0xc0(%rbp), %r9
movaps %xmm0, (%r9)
movaps %xmm0, 0x10(%r9)
movaps %xmm0, 0x20(%r9)
movaps %xmm0, 0x30(%r9)
movaps %xmm0, 0x40(%r9)
movaps %xmm0, 0x50(%r9)
movaps %xmm0, 0x60(%r9)
movq %r8, 0x70(%r9)
movl $0x1, (%r9)
movq (%rsi), %r8
movq %r8, 0x18(%r9)
movq %rsi, 0x28(%r9)
movl $0xffffffff, 0x4c(%r9)  # imm = 0xFFFFFFFF
movq %rdi, (%rax)
movq %r9, 0x8(%rax)
movw %dx, 0x30(%rax)
movq %rax, %rdi
movq %rcx, %rsi
callq 0x55a7d
testq %rbx, %rbx
je 0x551b7
testl %eax, %eax
jne 0x551b7
leaq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x55b6f
addq $0xb8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3TableAffinity
SQLITE_PRIVATE void sqlite3TableAffinity(Vdbe *v, Table *pTab, int iReg){
  int i;
  char *zColAff = pTab->zColAff;
  if( zColAff==0 ){
    sqlite3 *db = sqlite3VdbeDb(v);
    zColAff = (char *)sqlite3DbMallocRaw(0, pTab->nCol+1);
    if( !zColAff ){
      db->mallocFailed = 1;
      return;
    }

    for(i=0; i<pTab->nCol; i++){
      zColAff[i] = pTab->aCol[i].affinity;
    }
    do{
      zColAff[i--] = 0;
    }while( i>=0 && zColAff[i]==SQLITE_AFF_BLOB );
    pTab->zColAff = zColAff;
  }
  i = sqlite3Strlen30(zColAff);
  if( i ){
    if( iReg ){
      sqlite3VdbeAddOp4(v, OP_Affinity, iReg, i, 0, zColAff, i);
    }else{
      sqlite3VdbeChangeP4(v, -1, zColAff, i);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rdi, %rbx
movq 0x28(%rsi), %r15
testq %r15, %r15
jne 0x55395
movq %rsi, %r12
movq (%rbx), %r13
movswq 0x3e(%rsi), %rdi
incq %rdi
callq 0xc0e2
testq %rax, %rax
je 0x55371
movq %rax, %r15
cmpw $0x0, 0x3e(%r12)
jle 0x55378
movl $0x29, %ecx
xorl %eax, %eax
movq 0x8(%r12), %rdx
movb (%rdx,%rcx), %dl
movb %dl, (%r15,%rax)
incq %rax
movswq 0x3e(%r12), %rdx
addq $0x30, %rcx
cmpq %rdx, %rax
jl 0x55351
jmp 0x5537a
movb $0x1, 0x51(%r13)
jmp 0x553cb
xorl %eax, %eax
movb $0x0, (%r15,%rax)
testq %rax, %rax
jle 0x55390
cmpb $0x41, -0x1(%r15,%rax)
leaq -0x1(%rax), %rax
je 0x5537a
movq %r15, 0x28(%r12)
movq %r15, %rdi
callq 0xa190
movq %rax, %r12
andl $0x3fffffff, %r12d      # imm = 0x3FFFFFFF
je 0x553cb
testl %r14d, %r14d
je 0x553da
movq %rbx, %rdi
movl $0x31, %esi
movl %r14d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %rbx, %rdi
movl %eax, %esi
jmp 0x553e2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r15, %rdx
movl %r12d, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x14b4f
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ResolveExprNames
SQLITE_PRIVATE int sqlite3ResolveExprNames( 
  NameContext *pNC,       /* Namespace to resolve expressions in. */
  Expr *pExpr             /* The expression to be analyzed. */
){
  u16 savedHasAgg;
  Walker w;

  if( pExpr==0 ) return 0;
#if SQLITE_MAX_EXPR_DEPTH>0
  {
    Parse *pParse = pNC->pParse;
    if( sqlite3ExprCheckHeight(pParse, pExpr->nHeight+pNC->pParse->nHeight) ){
      return 1;
    }
    pParse->nHeight += pExpr->nHeight;
  }
#endif
  savedHasAgg = pNC->ncFlags & (NC_HasAgg|NC_MinMaxAgg);
  pNC->ncFlags &= ~(NC_HasAgg|NC_MinMaxAgg);
  memset(&w, 0, sizeof(w));
  w.xExprCallback = resolveExprStep;
  w.xSelectCallback = resolveSelectStep;
  w.pParse = pNC->pParse;
  w.u.pNC = pNC;
  sqlite3WalkExpr(&w, pExpr);
#if SQLITE_MAX_EXPR_DEPTH>0
  pNC->pParse->nHeight -= pExpr->nHeight;
#endif
  if( pNC->nErr>0 || w.pParse->nErr>0 ){
    ExprSetProperty(pExpr, EP_Error);
  }
  if( pNC->ncFlags & NC_HasAgg ){
    ExprSetProperty(pExpr, EP_Agg);
  }
  pNC->ncFlags |= savedHasAgg;
  return ExprHasProperty(pExpr, EP_Error);
}

// Assembly:
testq %rsi, %rsi
je 0x55ac3
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
movl 0x1f8(%rdi), %eax
addl 0x28(%rsi), %eax
movq (%rdi), %rcx
movl 0x74(%rcx), %edx
cmpl %eax, %edx
jge 0x55ac6
leaq 0x27263(%rip), %rsi     # 0x7cd15
xorl %eax, %eax
callq 0x14890
movl $0x1, %eax
jmp 0x55b64
xorl %eax, %eax
retq
movl %eax, 0x1f8(%rdi)
movzwl 0x30(%rbx), %eax
movl %eax, %r15d
andl $0x1002, %r15d          # imm = 0x1002
andl $0xeffd, %eax           # imm = 0xEFFD
movw %ax, 0x30(%rbx)
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %rax
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
leaq 0xca(%rip), %rcx        # 0x55bc7
movq %rcx, (%rax)
leaq 0x4fe(%rip), %rcx       # 0x56005
movq %rcx, 0x8(%rax)
movq %rdi, 0x18(%rax)
movq %rbx, 0x28(%rax)
movq %rax, %rdi
movq %r14, %rsi
callq 0x535da
movl 0x28(%r14), %eax
movq (%rbx), %rcx
subl %eax, 0x1f8(%rcx)
cmpl $0x0, 0x2c(%rbx)
jg 0x55b3b
movq -0x30(%rbp), %rax
cmpl $0x0, 0x4c(%rax)
jle 0x55b40
orb $0x8, 0x4(%r14)
movzwl 0x30(%rbx), %ecx
movl 0x4(%r14), %eax
testb $0x2, %cl
je 0x55b54
orl $0x2, %eax
movl %eax, 0x4(%r14)
movzwl %r15w, %edx
orl %ecx, %edx
movw %dx, 0x30(%rbx)
shrl $0x3, %eax
andl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ResolveExprListNames
SQLITE_PRIVATE int sqlite3ResolveExprListNames( 
  NameContext *pNC,       /* Namespace to resolve expressions in. */
  ExprList *pList         /* The expression list to be analyzed. */
){
  int i;
  if( pList ){
    for(i=0; i<pList->nExpr; i++){
      if( sqlite3ResolveExprNames(pNC, pList->a[i].pExpr) ) return WRC_Abort;
    }
  }
  return WRC_Continue;
}

// Assembly:
xorl %eax, %eax
testq %rsi, %rsi
je 0x55bc6
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpl $0x0, (%rsi)
jle 0x55bbe
movq %rdi, %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
movq (%rax,%r15), %rsi
movq %r14, %rdi
callq 0x55a7d
testl %eax, %eax
jne 0x55bb9
incq %r12
movslq (%rbx), %rax
addq $0x20, %r15
cmpq %rax, %r12
jl 0x55b92
xorl %eax, %eax
jmp 0x55bbe
movl $0x2, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: exprSrcCount
static int exprSrcCount(Walker *pWalker, Expr *pExpr){
  /* The NEVER() on the second term is because sqlite3FunctionUsesThisSrc()
  ** is always called before sqlite3ExprAnalyzeAggregates() and so the
  ** TK_COLUMNs have not yet been converted into TK_AGG_COLUMN.  If
  ** sqlite3FunctionUsesThisSrc() is used differently in the future, the
  ** NEVER() will need to be removed. */
  if( pExpr->op==TK_COLUMN || NEVER(pExpr->op==TK_AGG_COLUMN) ){
    int i;
    struct SrcCount *p = pWalker->u.pSrcCount;
    SrcList *pSrc = p->pSrc;
    int nSrc = pSrc ? pSrc->nSrc : 0;
    for(i=0; i<nSrc; i++){
      if( pExpr->iTable==pSrc->a[i].iCursor ) break;
    }
    if( i<nSrc ){
      p->nThis++;
    }else{
      p->nOther++;
    }
  }
  return WRC_Continue;
}

// Assembly:
movzbl (%rsi), %eax
orl $0x2, %eax
cmpl $0x9a, %eax
jne 0x572fd
pushq %rbp
movq %rsp, %rbp
movq 0x28(%rdi), %rax
movq (%rax), %rcx
testq %rcx, %rcx
je 0x572f9
movslq (%rcx), %rdi
testq %rdi, %rdi
jle 0x572f9
movl 0x2c(%rsi), %edx
imulq $0x70, %rdi, %rsi
xorl %edi, %edi
cmpl 0x4c(%rcx,%rdi), %edx
je 0x57300
addq $0x70, %rdi
cmpq %rdi, %rsi
jne 0x572ea
incl 0xc(%rax)
popq %rbp
xorl %eax, %eax
retq
incl 0x8(%rax)
jmp 0x572fc
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: selectPopWith
static void selectPopWith(Walker *pWalker, Select *p){
  Parse *pParse = pWalker->pParse;
  With *pWith = findRightmost(p)->pWith;
  if( pWith!=0 ){
    assert( pParse->pWith==pWith );
    pParse->pWith = pWith->pOuter;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x18(%rdi), %rax
movq %rsi, %rcx
movq 0x58(%rsi), %rsi
testq %rsi, %rsi
jne 0x58a1d
movq 0x70(%rcx), %rcx
testq %rcx, %rcx
je 0x58a3d
movq 0x8(%rcx), %rcx
movq %rcx, 0x280(%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: setJoinExpr
static void setJoinExpr(Expr *p, int iTable){
  while( p ){
    ExprSetProperty(p, EP_FromJoin);
    assert( !ExprHasProperty(p, EP_TokenOnly|EP_Reduced) );
    ExprSetVVAProperty(p, EP_NoReduce);
    p->iRightJoinTable = (i16)iTable;
    if( p->op==TK_FUNCTION && p->x.pList ){
      int i;
      for(i=0; i<p->x.pList->nExpr; i++){
        setJoinExpr(p->x.pList->a[i].pExpr, iTable);
      }
    }
    setJoinExpr(p->pLeft, iTable);
    p = p->pRight;
  } 
}

// Assembly:
testq %rdi, %rdi
je 0x591f8
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
orb $0x1, 0x4(%r14)
movw %bx, 0x34(%r14)
cmpb $-0x69, (%r14)
jne 0x591dc
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x591dc
cmpl $0x0, (%rax)
jle 0x591dc
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x8(%rax), %rax
movq (%rax,%r15), %rdi
movl %ebx, %esi
callq 0x59181
incq %r12
movq 0x20(%r14), %rax
movslq (%rax), %rcx
addq $0x20, %r15
cmpq %rcx, %r12
jl 0x591ba
movq 0x10(%r14), %rdi
movl %ebx, %esi
callq 0x59181
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0x59196
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3UniqueConstraint
SQLITE_PRIVATE void sqlite3UniqueConstraint(
  Parse *pParse,    /* Parsing context */
  int onError,      /* Constraint type */
  Index *pIdx       /* The index that triggers the constraint */
){
  char *zErr;
  int j;
  StrAccum errMsg;
  Table *pTab = pIdx->pTable;

  sqlite3StrAccumInit(&errMsg, pParse->db, 0, 0, 200);
  if( pIdx->aColExpr ){
    sqlite3XPrintf(&errMsg, 0, "index '%q'", pIdx->zName);
  }else{
    for(j=0; j<pIdx->nKeyCol; j++){
      char *zCol;
      assert( pIdx->aiColumn[j]>=0 );
      zCol = pTab->aCol[pIdx->aiColumn[j]].zName;
      if( j ) sqlite3StrAccumAppend(&errMsg, ", ", 2);
      sqlite3XPrintf(&errMsg, 0, "%s.%s", pTab->zName, zCol);
    }
  }
  zErr = sqlite3StrAccumFinish(&errMsg);
  sqlite3HaltConstraint(pParse, 
    IsPrimaryKeyIndex(pIdx) ? SQLITE_CONSTRAINT_PRIMARYKEY 
                            : SQLITE_CONSTRAINT_UNIQUE,
    onError, zErr, P4_DYNAMIC, P5_ConstraintUnique);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r15
movl %esi, -0x2c(%rbp)
movq 0x18(%rdx), %r14
movq %rdi, -0x60(%rbp)
movq (%rdi), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movq $0x0, -0x40(%rbp)
movl $0xc8, -0x38(%rbp)
movw $0x0, -0x34(%rbp)
cmpq $0x0, 0x50(%rdx)
je 0x5a557
movq (%r15), %rcx
leaq 0x230d7(%rip), %rdx     # 0x7d61c
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x3d84d
jmp 0x5a5d8
cmpw $0x0, 0x5e(%r15)
je 0x5a5d8
leaq -0x58(%rbp), %r13
xorl %r12d, %r12d
movq 0x8(%r14), %rax
movq 0x8(%r15), %rcx
movswq (%rcx,%r12,2), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
testq %r12, %r12
je 0x5a5b2
movl -0x40(%rbp), %eax
leal 0x2(%rax), %ecx
cmpl -0x3c(%rbp), %ecx
jae 0x5a59e
movl %ecx, -0x40(%rbp)
movq -0x48(%rbp), %rcx
movw $0x202c, (%rcx,%rax)    # imm = 0x202C
jmp 0x5a5b2
movq %r13, %rdi
leaq 0x2307f(%rip), %rsi     # 0x7d627
movl $0x2, %edx
callq 0x1be51
movq (%r14), %rcx
movq %r13, %rdi
xorl %esi, %esi
leaq 0x20c28(%rip), %rdx     # 0x7b1e9
movq %rbx, %r8
xorl %eax, %eax
callq 0x3d84d
incq %r12
movzwl 0x5e(%r15), %eax
cmpq %rax, %r12
jb 0x5a566
leaq -0x58(%rbp), %rdi
callq 0xdbce
movb 0x63(%r15), %cl
andb $0x3, %cl
xorl %esi, %esi
cmpb $0x2, %cl
setne %sil
shll $0x9, %esi
addl $0x613, %esi            # imm = 0x613
movq -0x60(%rbp), %rdi
movl -0x2c(%rbp), %edx
movq %rax, %rcx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl $0x2, %r9d
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x52ba1
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3DropTriggerPtr
SQLITE_PRIVATE void sqlite3DropTriggerPtr(Parse *pParse, Trigger *pTrigger){
  Table   *pTable;
  Vdbe *v;
  sqlite3 *db = pParse->db;
  int iDb;

  iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema);
  assert( iDb>=0 && iDb<db->nDb );
  pTable = tableOfTrigger(pTrigger);
  assert( pTable );
  assert( pTable->pSchema==pTrigger->pSchema || iDb==1 );
#ifndef SQLITE_OMIT_AUTHORIZATION
  {
    int code = SQLITE_DROP_TRIGGER;
    const char *zDb = db->aDb[iDb].zName;
    const char *zTab = SCHEMA_TABLE(iDb);
    if( iDb==1 ) code = SQLITE_DROP_TEMP_TRIGGER;
    if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) ||
      sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){
      return;
    }
  }
#endif

  /* Generate code to destroy the database record of the trigger.
  */
  assert( pTable!=0 );
  if( (v = sqlite3GetVdbe(pParse))!=0 ){
    sqlite3NestedParse(pParse,
       "DELETE FROM %Q.%s WHERE name=%Q AND type='trigger'",
       db->aDb[iDb].zName, SCHEMA_TABLE(iDb), pTrigger->zName
    );
    sqlite3ChangeCookie(pParse, iDb);
    sqlite3VdbeAddOp4(v, OP_DropTrigger, iDb, 0, 0, pTrigger->zName, 0);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %r14
movq %rsi, -0x30(%rbp)
movq 0x28(%rsi), %rax
testq %rax, %rax
movq %rdi, -0x40(%rbp)
je 0x5aca3
movl 0x28(%r14), %ecx
testl %ecx, %ecx
jle 0x5acab
movq 0x20(%r14), %rdx
addq $0x18, %rdx
xorl %r15d, %r15d
cmpq %rax, (%rdx)
je 0x5acae
incq %r15
addq $0x20, %rdx
cmpq %r15, %rcx
jne 0x5ac8d
movl %ecx, %r15d
jmp 0x5acae
movl $0xfff0bdc0, %r15d      # imm = 0xFFF0BDC0
jmp 0x5acae
xorl %r15d, %r15d
movq -0x30(%rbp), %rbx
movq 0x8(%rbx), %rsi
movq 0x30(%rbx), %rdi
addq $0x8, %rdi
leaq -0x44(%rbp), %rdx
callq 0x3c196
movq 0x10(%rax), %rax
movq %r14, -0x38(%rbp)
movq 0x20(%r14), %rcx
movslq %r15d, %rdx
movq %rdx, %r14
shlq $0x5, %r14
movq (%rcx,%r14), %r13
xorl %ecx, %ecx
cmpl $0x1, %edx
leaq 0x20ff8(%rip), %rdx     # 0x7bce5
leaq 0x21004(%rip), %r12     # 0x7bcf8
cmoveq %rdx, %r12
setne %cl
leal 0xe(%rcx,%rcx), %esi
movq (%rbx), %rdx
movq (%rax), %rcx
movq -0x40(%rbp), %rbx
movq %rbx, %rdi
movq %r13, %r8
callq 0x54de3
testl %eax, %eax
jne 0x5ad31
movq %rbx, %rdi
movl $0x9, %esi
movq %r12, %rdx
xorl %ecx, %ecx
movq %r13, %r8
callq 0x54de3
testl %eax, %eax
je 0x5ad40
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x4f63b
testq %rax, %rax
je 0x5ad31
movq %rax, %r13
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq (%rax,%r14), %rdx
movq -0x30(%rbp), %r14
movq (%r14), %r8
leaq 0x22a8a(%rip), %rsi     # 0x7d7f4
movq %rbx, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0x5562c
movq %rbx, %rdi
movl %r15d, %esi
callq 0x5575a
movq (%r14), %rbx
movq %r13, %rdi
movl $0x80, %esi
movl %r15d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r13, %rdi
movl %eax, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x14b4f
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: pushDownWhereTerms
static int pushDownWhereTerms(
  sqlite3 *db,          /* The database connection (for malloc()) */
  Select *pSubq,        /* The subquery whose WHERE clause is to be augmented */
  Expr *pWhere,         /* The WHERE clause of the outer query */
  int iCursor           /* Cursor number of the subquery */
){
  Expr *pNew;
  int nChng = 0;
  if( pWhere==0 ) return 0;
  if( (pSubq->selFlags & (SF_Aggregate|SF_Recursive))!=0 ){
     return 0; /* restrictions (1) and (2) */
  }
  if( pSubq->pLimit!=0 ){
     return 0; /* restriction (3) */
  }
  while( pWhere->op==TK_AND ){
    nChng += pushDownWhereTerms(db, pSubq, pWhere->pRight, iCursor);
    pWhere = pWhere->pLeft;
  }
  if( ExprHasProperty(pWhere,EP_FromJoin) ) return 0; /* restriction 5 */
  if( sqlite3ExprIsTableConstant(pWhere, iCursor) ){
    nChng++;
    while( pSubq ){
      pNew = sqlite3ExprDup(db, pWhere, 0);
      pNew = substExpr(db, pNew, iCursor, pSubq->pEList);
      pSubq->pWhere = sqlite3ExprAnd(db, pSubq->pWhere, pNew);
      pSubq = pSubq->pPrior;
    }
  }
  return nChng;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, -0x2c(%rbp)
xorl %eax, %eax
testq %rdx, %rdx
je 0x5ce02
movq %rsi, %r15
movzwl 0xa(%rsi), %ecx
testl $0x2008, %ecx           # imm = 0x2008
jne 0x5ce02
cmpq $0x0, 0x60(%r15)
jne 0x5ce02
movq %rdx, %r14
movq %rdi, %r12
cmpb $0x48, (%rdx)
jne 0x5cd67
xorl %r13d, %r13d
movl -0x2c(%rbp), %ebx
movq 0x18(%r14), %rdx
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %ecx
callq 0x5ccf9
addl %eax, %r13d
movq 0x10(%r14), %r14
cmpb $0x48, (%r14)
je 0x5cd47
jmp 0x5cd6a
xorl %r13d, %r13d
testb $0x1, 0x4(%r14)
movl $0x0, %eax
jne 0x5ce02
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rbx
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movb $0x3, 0x24(%rbx)
leaq -0x983f(%rip), %rax     # 0x53555
movq %rax, (%rbx)
leaq -0x97d3(%rip), %rax     # 0x535cb
movq %rax, 0x8(%rbx)
movl -0x2c(%rbp), %eax
movl %eax, 0x28(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x535da
cmpb $0x0, 0x24(%rbx)
je 0x5cdff
incl %r13d
testq %r15, %r15
je 0x5cdff
movl -0x2c(%rbp), %ebx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5388d
movq (%r15), %rcx
movq %r12, %rdi
movq %rax, %rsi
movl %ebx, %edx
callq 0x604f9
movq 0x30(%r15), %rsi
movq %r12, %rdi
movq %rax, %rdx
callq 0x591f9
movq %rax, 0x30(%r15)
movq 0x50(%r15), %r15
testq %r15, %r15
jne 0x5cdc4
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: keyInfoFromExprList
static KeyInfo *keyInfoFromExprList(
  Parse *pParse,       /* Parsing context */
  ExprList *pList,     /* Form the KeyInfo object from this ExprList */
  int iStart,          /* Begin with this column of pList */
  int nExtra           /* Add this many extra columns to the end */
){
  int nExpr;
  KeyInfo *pInfo;
  struct ExprList_item *pItem;
  sqlite3 *db = pParse->db;
  int i;

  nExpr = pList->nExpr;
  pInfo = sqlite3KeyInfoAlloc(db, nExpr-iStart, nExtra+1);
  if( pInfo ){
    assert( sqlite3KeyInfoIsWriteable(pInfo) );
    for(i=iStart, pItem=pList->a+iStart; i<nExpr; i++, pItem++){
      CollSeq *pColl;
      pColl = sqlite3ExprCollSeq(pParse, pItem->pExpr);
      if( !pColl ) pColl = db->pDfltColl;
      pInfo->aColl[i-iStart] = pColl;
      pInfo->aSortOrder[i-iStart] = pItem->sortOrder;
    }
  }
  return pInfo;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r13d
movq %rdi, %rbx
movq (%rdi), %rdi
movq %rsi, -0x30(%rbp)
movl (%rsi), %r15d
leal 0x1(%rcx), %edx
subl %r13d, %r15d
setle %r14b
movq %rdi, -0x38(%rbp)
movl %r15d, %esi
callq 0x4fc2f
movq %rax, %r12
testq %rax, %rax
sete %al
orb %r14b, %al
jne 0x5ce9f
movl %r13d, %r13d
shlq $0x5, %r13
movq -0x30(%rbp), %rax
addq 0x8(%rax), %r13
xorl %r14d, %r14d
movq (%r13), %rsi
movq %rbx, %rdi
callq 0x51845
testq %rax, %rax
jne 0x5ce81
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%r12,%r14,8)
movb 0x18(%r13), %al
movq 0x18(%r12), %rcx
movb %al, (%rcx,%r14)
addq $0x20, %r13
incq %r14
cmpl %r14d, %r15d
jne 0x5ce68
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ExprCacheClear
SQLITE_PRIVATE void sqlite3ExprCacheClear(Parse *pParse){
  int i;
  struct yColCache *p;

#if SQLITE_DEBUG
  if( pParse->db->flags & SQLITE_VdbeAddopTrace ){
    printf("CLEAR\n");
  }
#endif
  for(i=0, p=pParse->aColCache; i<SQLITE_N_COLCACHE; i++, p++){
    if( p->iReg ){
      cacheEntryClear(pParse, p);
      p->iReg = 0;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movl 0x94(%rdi,%rax), %ecx
testl %ecx, %ecx
je 0x5f3ec
cmpb $0x0, 0x8e(%rdi,%rax)
je 0x5f3e1
movzbl 0x1f(%rdi), %edx
cmpq $0x7, %rdx
ja 0x5f3d9
leal 0x1(%rdx), %esi
movb %sil, 0x1f(%rdi)
movl %ecx, 0x24(%rdi,%rdx,4)
movb $0x0, 0x8e(%rdi,%rax)
movl $0x0, 0x94(%rdi,%rax)
addq $0x14, %rax
cmpl $0xc8, %eax
jne 0x5f3af
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: resetAccumulator
static void resetAccumulator(Parse *pParse, AggInfo *pAggInfo){
  Vdbe *v = pParse->pVdbe;
  int i;
  struct AggInfo_func *pFunc;
  int nReg = pAggInfo->nFunc + pAggInfo->nColumn;
  if( nReg==0 ) return;
#ifdef SQLITE_DEBUG
  /* Verify that all AggInfo registers are within the range specified by
  ** AggInfo.mnReg..AggInfo.mxReg */
  assert( nReg==pAggInfo->mxReg-pAggInfo->mnReg+1 );
  for(i=0; i<pAggInfo->nColumn; i++){
    assert( pAggInfo->aCol[i].iMem>=pAggInfo->mnReg
         && pAggInfo->aCol[i].iMem<=pAggInfo->mxReg );
  }
  for(i=0; i<pAggInfo->nFunc; i++){
    assert( pAggInfo->aFunc[i].iMem>=pAggInfo->mnReg
         && pAggInfo->aFunc[i].iMem<=pAggInfo->mxReg );
  }
#endif
  sqlite3VdbeAddOp3(v, OP_Null, 0, pAggInfo->mnReg, pAggInfo->mxReg);
  for(pFunc=pAggInfo->aFunc, i=0; i<pAggInfo->nFunc; i++, pFunc++){
    if( pFunc->iDistinct>=0 ){
      Expr *pE = pFunc->pExpr;
      assert( !ExprHasProperty(pE, EP_xIsSelect) );
      if( pE->x.pList==0 || pE->x.pList->nExpr!=1 ){
        sqlite3ErrorMsg(pParse, "DISTINCT aggregates must have exactly one "
           "argument");
        pFunc->iDistinct = -1;
      }else{
        KeyInfo *pKeyInfo = keyInfoFromExprList(pParse, pE->x.pList, 0, 0);
        sqlite3VdbeAddOp4(v, OP_OpenEphemeral, pFunc->iDistinct, 0, 0,
                          (char*)pKeyInfo, P4_KEYINFO);
      }
    }
  }
}

// Assembly:
movl 0x38(%rsi), %eax
addl 0x28(%rsi), %eax
je 0x5f8e2
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rdi
movl 0x10(%rsi), %ecx
movl 0x14(%rsi), %r8d
movq %rdi, -0x30(%rbp)
movl $0x1a, %esi
xorl %edx, %edx
callq 0x3ea9f
cmpl $0x0, 0x38(%rbx)
jle 0x5f8d4
movq 0x30(%rbx), %r12
addq $0x14, %r12
leaq 0x1e360(%rip), %r13     # 0x7dba5
xorl %r15d, %r15d
cmpl $0x0, (%r12)
js 0x5f8c3
movq -0x14(%r12), %rax
movq 0x20(%rax), %rsi
testq %rsi, %rsi
je 0x5f8ae
cmpl $0x1, (%rsi)
jne 0x5f8ae
movq %r14, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5ce11
movq %rax, -0x38(%rbp)
movl (%r12), %edx
movq %r14, %r13
movq -0x30(%rbp), %r14
movq %r14, %rdi
movl $0x3a, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r14, %rdi
movq %r13, %r14
leaq 0x1e309(%rip), %r13     # 0x7dba5
movl %eax, %esi
movq -0x38(%rbp), %rdx
movl $0xfffffffa, %ecx       # imm = 0xFFFFFFFA
callq 0x14b4f
jmp 0x5f8c3
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x14890
movl $0xffffffff, (%r12)     # imm = 0xFFFFFFFF
incl %r15d
addq $0x18, %r12
cmpl 0x38(%rbx), %r15d
jl 0x5f848
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: explainSimpleCount
static void explainSimpleCount(
  Parse *pParse,                  /* Parse context */
  Table *pTab,                    /* Table being queried */
  Index *pIdx                     /* Index used to optimize scan, or NULL */
){
  if( pParse->explain==2 ){
    int bCover = (pIdx!=0 && (HasRowid(pTab) || !IsPrimaryKeyIndex(pIdx)));
    char *zEqp = sqlite3MPrintf(pParse->db, "SCAN TABLE %s%s%s",
        pTab->zName,
        bCover ? " USING COVERING INDEX " : "",
        bCover ? pIdx->zName : ""
    );
    sqlite3VdbeAddOp4(
        pParse->pVdbe, OP_Explain, pParse->iSelectId, 0, 0, zEqp, P4_DYNAMIC
    );
  }
}

// Assembly:
cmpb $0x2, 0x1ed(%rdi)
jne 0x5f96f
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rax
movq %rdi, %rbx
testq %rdx, %rdx
je 0x5f970
testb $0x20, 0x46(%rsi)
jne 0x5f978
movq (%rbx), %rdi
movq (%rsi), %rdx
jmp 0x5f995
retq
movq (%rbx), %rdi
movq (%rsi), %rdx
jmp 0x5f989
movb 0x63(%rax), %cl
andb $0x3, %cl
movq (%rbx), %rdi
movq (%rsi), %rdx
cmpb $0x2, %cl
jne 0x5f995
leaq 0x1e711(%rip), %rcx     # 0x7e0a1
movq %rcx, %r8
jmp 0x5f99f
movq (%rax), %r8
leaq 0x1e24b(%rip), %rcx     # 0x7dbea
leaq 0x1e232(%rip), %rsi     # 0x7dbd8
xorl %eax, %eax
callq 0x1494e
movq %rax, %r14
movq 0x10(%rbx), %r15
movl 0x1fc(%rbx), %edx
movq %r15, %rdi
movl $0xa2, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3ea9f
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x14b4f
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: substSelect
static void substSelect(
  sqlite3 *db,         /* Report malloc errors here */
  Select *p,           /* SELECT statement in which to make substitutions */
  int iTable,          /* Table to be replaced */
  ExprList *pEList,    /* Substitute values */
  int doPrior          /* Do substitutes on p->pPrior too */
){
  SrcList *pSrc;
  struct SrcList_item *pItem;
  int i;
  if( !p ) return;
  do{
    substExprList(db, p->pEList, iTable, pEList);
    substExprList(db, p->pGroupBy, iTable, pEList);
    substExprList(db, p->pOrderBy, iTable, pEList);
    p->pHaving = substExpr(db, p->pHaving, iTable, pEList);
    p->pWhere = substExpr(db, p->pWhere, iTable, pEList);
    pSrc = p->pSrc;
    assert( pSrc!=0 );
    for(i=pSrc->nSrc, pItem=pSrc->a; i>0; i--, pItem++){
      substSelect(db, pItem->pSelect, iTable, pEList, 1);
      if( pItem->fg.isTabFunc ){
        substExprList(db, pItem->u1.pFuncArg, iTable, pEList);
      }
    }
  }while( doPrior && (p = p->pPrior)!=0 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, -0x2c(%rbp)
testq %rsi, %rsi
je 0x60478
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r13
movq (%rbx), %rsi
movq %r13, %rdi
movl %r15d, %edx
movq %r14, %rcx
callq 0x60487
movq 0x38(%rbx), %rsi
movq %r13, %rdi
movl %r15d, %edx
movq %r14, %rcx
callq 0x60487
movq 0x48(%rbx), %rsi
movq %r13, %rdi
movl %r15d, %edx
movq %r14, %rcx
callq 0x60487
movq 0x40(%rbx), %rsi
movq %r13, %rdi
movl %r15d, %edx
movq %r14, %rcx
callq 0x604f9
movq %rax, 0x40(%rbx)
movq 0x30(%rbx), %rsi
movq %r13, %rdi
movl %r15d, %edx
movq %r14, %rcx
callq 0x604f9
movq %rax, 0x30(%rbx)
movq %rbx, -0x38(%rbp)
movq 0x28(%rbx), %rbx
movl (%rbx), %r12d
testl %r12d, %r12d
jle 0x60461
incl %r12d
addq $0x30, %rbx
movq (%rbx), %rsi
movq %r13, %rdi
movl %r15d, %edx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x60383
testb $0x4, 0x15(%rbx)
je 0x60454
movq 0x38(%rbx), %rsi
movq %r13, %rdi
movl %r15d, %edx
movq %r14, %rcx
callq 0x60487
decl %r12d
addq $0x70, %rbx
cmpl $0x1, %r12d
jg 0x60425
cmpl $0x0, -0x2c(%rbp)
movq -0x38(%rbp), %rbx
je 0x60478
movq 0x50(%rbx), %rbx
testq %rbx, %rbx
jne 0x603ad
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: whereInfoFree
static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){
  if( ALWAYS(pWInfo) ){
    int i;
    for(i=0; i<pWInfo->nLevel; i++){
      WhereLevel *pLevel = &pWInfo->a[i];
      if( pLevel->pWLoop && (pLevel->pWLoop->wsFlags & WHERE_IN_ABLE) ){
        sqlite3DbFree(db, pLevel->u.in.aInLoop);
      }
    }
    sqlite3WhereClauseClear(&pWInfo->sWC);
    while( pWInfo->pLoops ){
      WhereLoop *p = pWInfo->pLoops;
      pWInfo->pLoops = p->pNextLoop;
      whereLoopDelete(db, p);
    }
    sqlite3DbFree(db, pWInfo);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movb 0x39(%rsi), %al
testb %al, %al
je 0x63fbc
leaq 0x388(%rbx), %r15
xorl %r12d, %r12d
movq (%r15), %rcx
testq %rcx, %rcx
je 0x63fad
testb $0x8, 0x29(%rcx)
je 0x63fad
movq -0x8(%r15), %rsi
movq %r14, %rdi
callq 0xb752
movb 0x39(%rbx), %al
incq %r12
movzbl %al, %ecx
addq $0x58, %r15
cmpq %rcx, %r12
jb 0x63f90
leaq 0x158(%rbx), %rdi
callq 0x68d9c
movq 0x20(%rbx), %r15
testq %r15, %r15
je 0x63ff1
movq 0x40(%r15), %rax
movq %rax, 0x20(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x670dd
movq %r14, %rdi
movq %r15, %rsi
callq 0xb752
jmp 0x63fc8
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xb752
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3WhereExprUsage
SQLITE_PRIVATE Bitmask sqlite3WhereExprUsage(WhereMaskSet *pMaskSet, Expr *p){
  Bitmask mask = 0;
  if( p==0 ) return 0;
  if( p->op==TK_COLUMN ){
    mask = sqlite3WhereGetMask(pMaskSet, p->iTable);
    return mask;
  }
  mask = sqlite3WhereExprUsage(pMaskSet, p->pRight);
  mask |= sqlite3WhereExprUsage(pMaskSet, p->pLeft);
  if( ExprHasProperty(p, EP_xIsSelect) ){
    mask |= exprSelectUsage(pMaskSet, p->x.pSelect);
  }else{
    mask |= sqlite3WhereExprListUsage(pMaskSet, p->x.pList);
  }
  return mask;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x6571d
movq %rsi, %r15
movq %rdi, %r14
cmpb $-0x68, (%rsi)
jne 0x65721
movslq (%r14), %rax
testq %rax, %rax
jle 0x6571d
movl 0x2c(%r15), %edx
xorl %ebx, %ebx
xorl %ecx, %ecx
cmpl %edx, 0x4(%r14,%rcx,4)
je 0x65761
incq %rcx
cmpq %rcx, %rax
jne 0x6570c
jmp 0x65769
xorl %ebx, %ebx
jmp 0x65769
movq 0x18(%r15), %rsi
movq %r14, %rdi
callq 0x656e1
movq %rax, %r12
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x656e1
movq %rax, %rbx
orq %r12, %rbx
testb $0x8, 0x5(%r15)
movq 0x20(%r15), %rsi
movq %r14, %rdi
jne 0x65757
callq 0x61533
jmp 0x6575c
callq 0x65775
orq %rax, %rbx
jmp 0x65769
movl $0x1, %ebx
shlq %cl, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: exprSelectUsage
static Bitmask exprSelectUsage(WhereMaskSet *pMaskSet, Select *pS){
  Bitmask mask = 0;
  while( pS ){
    SrcList *pSrc = pS->pSrc;
    mask |= sqlite3WhereExprListUsage(pMaskSet, pS->pEList);
    mask |= sqlite3WhereExprListUsage(pMaskSet, pS->pGroupBy);
    mask |= sqlite3WhereExprListUsage(pMaskSet, pS->pOrderBy);
    mask |= sqlite3WhereExprUsage(pMaskSet, pS->pWhere);
    mask |= sqlite3WhereExprUsage(pMaskSet, pS->pHaving);
    if( ALWAYS(pSrc!=0) ){
      int i;
      for(i=0; i<pSrc->nSrc; i++){
        mask |= exprSelectUsage(pMaskSet, pSrc->a[i].pSelect);
        mask |= sqlite3WhereExprUsage(pMaskSet, pSrc->a[i].pOn);
      }
    }
    pS = pS->pPrior;
  }
  return mask;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rsi, %rsi
je 0x65869
movq %rsi, %r12
movq %rdi, %r14
xorl %r15d, %r15d
movq (%r12), %rsi
movq 0x28(%r12), %rbx
movq %r14, %rdi
callq 0x61533
movq %rax, -0x30(%rbp)
movq 0x38(%r12), %rsi
movq %r14, %rdi
callq 0x61533
movq %rax, -0x40(%rbp)
movq 0x48(%r12), %rsi
movq %r14, %rdi
callq 0x61533
movq %rax, %r13
movq 0x30(%r12), %rsi
movq %r14, %rdi
callq 0x656e1
movq %rax, -0x38(%rbp)
movq %r12, -0x48(%rbp)
movq 0x40(%r12), %rsi
movq %r14, %rdi
callq 0x656e1
movq %rax, %r12
movq -0x30(%rbp), %rax
orq %r15, %rax
orq -0x40(%rbp), %r13
orq %rax, %r13
orq -0x38(%rbp), %r12
orq %r13, %r12
testq %rbx, %rbx
je 0x65852
movslq (%rbx), %rax
testq %rax, %rax
jle 0x65852
imulq $0x70, %rax, %rax
movq %rax, -0x30(%rbp)
xorl %r13d, %r13d
movq 0x30(%rbx,%r13), %rsi
movq %r14, %rdi
callq 0x65775
movq %rax, %r15
movq 0x50(%rbx,%r13), %rsi
movq %r14, %rdi
callq 0x656e1
orq %r12, %r15
orq %rax, %r15
addq $0x70, %r13
movq %r15, %r12
cmpq %r13, -0x30(%rbp)
jne 0x65820
jmp 0x65855
movq %r12, %r15
movq -0x48(%rbp), %r12
movq 0x50(%r12), %r12
testq %r12, %r12
jne 0x65798
jmp 0x6586c
xorl %r15d, %r15d
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: exprMightBeIndexed
static int exprMightBeIndexed(
  SrcList *pFrom,        /* The FROM clause */
  Bitmask mPrereq,       /* Bitmask of FROM clause terms referenced by pExpr */
  Expr *pExpr,           /* An operand of a comparison operator */
  int *piCur,            /* Write the referenced table cursor number here */
  int *piColumn          /* Write the referenced table column number here */
){
  Index *pIdx;
  int i;
  int iCur;
  if( pExpr->op==TK_COLUMN ){
    *piCur = pExpr->iTable;
    *piColumn = pExpr->iColumn;
    return 1;
  }
  if( mPrereq==0 ) return 0;                 /* No table references */
  if( (mPrereq&(mPrereq-1))!=0 ) return 0;   /* Refs more than one table */
  for(i=0; mPrereq>1; i++, mPrereq>>=1){}
  iCur = pFrom->a[i].iCursor;
  for(pIdx=pFrom->a[i].pTab->pIndex; pIdx; pIdx=pIdx->pNext){
    if( pIdx->aColExpr==0 ) continue;
    for(i=0; i<pIdx->nKeyCol; i++){
      if( pIdx->aiColumn[i]!=(-2) ) continue;
      if( sqlite3ExprCompare(pExpr, pIdx->aColExpr->a[i].pExpr, iCur)==0 ){
        *piCur = iCur;
        *piColumn = -2;
        return 1;
      }
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
cmpb $-0x68, (%rdx)
jne 0x658a5
movl 0x2c(%rbx), %eax
movl %eax, (%rcx)
movswl 0x30(%rbx), %eax
jmp 0x65967
movq %rcx, -0x38(%rbp)
movq %r8, -0x40(%rbp)
leaq -0x1(%rsi), %rcx
movq %rsi, %rdx
xorq %rcx, %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
jbe 0x6596f
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0x2, %rsi
jb 0x658de
movq %rsi, %rdx
shrq %rdx
incq %rcx
cmpq $0x3, %rsi
movq %rdx, %rsi
ja 0x658cf
imulq $0x70, %rcx, %rcx
movq 0x28(%rdi,%rcx), %rdx
movq 0x10(%rdx), %r13
testq %r13, %r13
je 0x6596f
movl 0x4c(%rdi,%rcx), %eax
movl %eax, -0x2c(%rbp)
movq 0x50(%r13), %rax
movq %rax, -0x48(%rbp)
testq %rax, %rax
je 0x65948
movzwl 0x5e(%r13), %r14d
testq %r14, %r14
je 0x65948
movq 0x8(%r13), %r15
shll $0x5, %r14d
xorl %r12d, %r12d
cmpw $-0x2, (%r15)
jne 0x6593b
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r12), %rsi
movq %rbx, %rdi
movl -0x2c(%rbp), %edx
callq 0x532d3
testl %eax, %eax
je 0x65955
addq $0x20, %r12
addq $0x2, %r15
cmpq %r12, %r14
jne 0x65919
movq 0x28(%r13), %r13
xorl %eax, %eax
testq %r13, %r13
jne 0x658f7
jmp 0x6596f
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, (%rax)
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
movq -0x40(%rbp), %r8
movl %eax, (%r8)
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: termIsEquivalence
static int termIsEquivalence(Parse *pParse, Expr *pExpr){
  char aff1, aff2;
  CollSeq *pColl;
  const char *zColl1, *zColl2;
  if( !OptimizationEnabled(pParse->db, SQLITE_Transitive) ) return 0;
  if( pExpr->op!=TK_EQ && pExpr->op!=TK_IS ) return 0;
  if( ExprHasProperty(pExpr, EP_FromJoin) ) return 0;
  aff1 = sqlite3ExprAffinity(pExpr->pLeft);
  aff2 = sqlite3ExprAffinity(pExpr->pRight);
  if( aff1!=aff2
   && (!sqlite3IsNumericAffinity(aff1) || !sqlite3IsNumericAffinity(aff2))
  ){
    return 0;
  }
  pColl = sqlite3BinaryCompareCollSeq(pParse, pExpr->pLeft, pExpr->pRight);
  if( pColl==0 || sqlite3StrICmp(pColl->zName, "BINARY")==0 ) return 1;
  pColl = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
  /* Since pLeft and pRight are both a column references, their collating
  ** sequence should always be defined. */
  zColl1 = ALWAYS(pColl) ? pColl->zName : 0;
  pColl = sqlite3ExprCollSeq(pParse, pExpr->pRight);
  zColl2 = ALWAYS(pColl) ? pColl->zName : 0;
  return sqlite3StrICmp(zColl1, zColl2)==0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rdi), %rax
xorl %r15d, %r15d
testb $0x2, 0x4d(%rax)
jne 0x65a55
movq %rsi, %r14
movq %rdi, %rbx
movzbl (%rsi), %eax
cmpl $0x4f, %eax
je 0x659b0
cmpl $0x49, %eax
jne 0x65a55
testb $0x1, 0x4(%r14)
jne 0x65a55
movq 0x10(%r14), %rdi
callq 0x54166
movl %eax, %r12d
movq 0x18(%r14), %rdi
callq 0x54166
cmpb %al, %r12b
je 0x659e5
cmpb $0x43, %r12b
setl %cl
cmpb $0x43, %al
setl %al
orb %cl, %al
jne 0x65a55
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rbx, %rdi
callq 0x54122
movl $0x1, %r15d
testq %rax, %rax
je 0x65a55
movq (%rax), %rdi
leaq 0x12da6(%rip), %rsi     # 0x787b0
callq 0xa400
testl %eax, %eax
je 0x65a55
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x51845
testq %rax, %rax
je 0x65a29
movq (%rax), %r15
jmp 0x65a2c
xorl %r15d, %r15d
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x51845
testq %rax, %rax
je 0x65a42
movq (%rax), %rsi
jmp 0x65a44
xorl %esi, %esi
movq %r15, %rdi
callq 0xa400
xorl %r15d, %r15d
testl %eax, %eax
sete %r15b
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: whereScanInit
static WhereTerm *whereScanInit(
  WhereScan *pScan,       /* The WhereScan object being initialized */
  WhereClause *pWC,       /* The WHERE clause to be scanned */
  int iCur,               /* Cursor to scan for */
  int iColumn,            /* Column to scan for */
  u32 opMask,             /* Operator(s) to scan for */
  Index *pIdx             /* Must be compatible with this index */
){
  int j = 0;

  /* memset(pScan, 0, sizeof(*pScan)); */
  pScan->pOrigWC = pWC;
  pScan->pWC = pWC;
  pScan->pIdxExpr = 0;
  if( pIdx ){
    j = iColumn;
    iColumn = pIdx->aiColumn[j];
    if( iColumn==XN_EXPR ) pScan->pIdxExpr = pIdx->aColExpr->a[j].pExpr;
  }
  if( pIdx && iColumn>=0 ){
    pScan->idxaff = pIdx->pTable->aCol[iColumn].affinity;
    pScan->zCollName = pIdx->azColl[j];
  }else{
    pScan->idxaff = 0;
    pScan->zCollName = 0;
  }
  pScan->opMask = opMask;
  pScan->k = 0;
  pScan->aiCur[0] = iCur;
  pScan->aiColumn[0] = iColumn;
  pScan->nEquiv = 1;
  pScan->iEquiv = 1;
  return whereScanNext(pScan);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rsi, (%rdi)
movq %rsi, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
testq %r9, %r9
je 0x65bcf
movq 0x8(%r9), %rsi
movslq %ecx, %rax
movswl (%rsi,%rax,2), %ecx
cmpl $-0x2, %ecx
jne 0x65ba0
movq 0x50(%r9), %rcx
movq 0x8(%rcx), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %rax
movq %rax, 0x18(%rdi)
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
jmp 0x65bcf
testw %cx, %cx
js 0x65bcf
movq 0x18(%r9), %rsi
movq 0x8(%rsi), %rsi
movl %ecx, %r10d
leaq (%r10,%r10,2), %r10
shlq $0x4, %r10
movb 0x29(%rsi,%r10), %sil
movb %sil, 0x20(%rdi)
movq 0x40(%r9), %rsi
movq (%rsi,%rax,8), %rax
movq %rax, 0x10(%rdi)
jmp 0x65bdb
movb $0x0, 0x20(%rdi)
movq $0x0, 0x10(%rdi)
movl %r8d, 0x24(%rdi)
movl $0x0, 0x28(%rdi)
movl %edx, 0x2c(%rdi)
movw %cx, 0x58(%rdi)
movw $0x101, 0x21(%rdi)      # imm = 0x101
popq %rbp
jmp 0x65bf6