// File: /workspace/github_c_makefile_star2_O2/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3ExprIfFalse
SQLITE_PRIVATE void sqlite3ExprIfFalse(Parse *pParse, Expr *pExpr, int dest, int jumpIfNull){
  Vdbe *v = pParse->pVdbe;
  int op = 0;
  int regFree1 = 0;
  int regFree2 = 0;
  int r1, r2;

  assert( jumpIfNull==SQLITE_JUMPIFNULL || jumpIfNull==0 );
  if( NEVER(v==0) ) return; /* Existence of VDBE checked by caller */
  if( pExpr==0 )    return;

  /* The value of pExpr->op and op are related as follows:
  **
  **       pExpr->op            op
  **       ---------          ----------
  **       TK_ISNULL          OP_NotNull
  **       TK_NOTNULL         OP_IsNull
  **       TK_NE              OP_Eq
  **       TK_EQ              OP_Ne
  **       TK_GT              OP_Le
  **       TK_LE              OP_Gt
  **       TK_GE              OP_Lt
  **       TK_LT              OP_Ge
  **
  ** For other values of pExpr->op, op is undefined and unused.
  ** The value of TK_ and OP_ constants are arranged such that we
  ** can compute the mapping above using the following expression.
  ** Assert()s verify that the computation is correct.
  */
  op = ((pExpr->op+(TK_ISNULL&1))^1)-(TK_ISNULL&1);

  /* Verify correct alignment of TK_ and OP_ constants
  */
  assert( pExpr->op!=TK_ISNULL || op==OP_NotNull );
  assert( pExpr->op!=TK_NOTNULL || op==OP_IsNull );
  assert( pExpr->op!=TK_NE || op==OP_Eq );
  assert( pExpr->op!=TK_EQ || op==OP_Ne );
  assert( pExpr->op!=TK_LT || op==OP_Ge );
  assert( pExpr->op!=TK_LE || op==OP_Gt );
  assert( pExpr->op!=TK_GT || op==OP_Le );
  assert( pExpr->op!=TK_GE || op==OP_Lt );

  switch( pExpr->op ){
    case TK_AND: {
      testcase( jumpIfNull==0 );
      sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest, jumpIfNull);
      sqlite3ExprCachePush(pParse);
      sqlite3ExprIfFalse(pParse, pExpr->pRight, dest, jumpIfNull);
      sqlite3ExprCachePop(pParse);
      break;
    }
    case TK_OR: {
      int d2 = sqlite3VdbeMakeLabel(v);
      testcase( jumpIfNull==0 );
      sqlite3ExprIfTrue(pParse, pExpr->pLeft, d2, jumpIfNull^SQLITE_JUMPIFNULL);
      sqlite3ExprCachePush(pParse);
      sqlite3ExprIfFalse(pParse, pExpr->pRight, dest, jumpIfNull);
      sqlite3VdbeResolveLabel(v, d2);
      sqlite3ExprCachePop(pParse);
      break;
    }
    case TK_NOT: {
      testcase( jumpIfNull==0 );
      sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest, jumpIfNull);
      break;
    }
    case TK_LT:
    case TK_LE:
    case TK_GT:
    case TK_GE:
    case TK_NE:
    case TK_EQ: {
      testcase( jumpIfNull==0 );
      r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
      r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
      codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
                  r1, r2, dest, jumpIfNull);
      assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
      assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
      assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
      assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
      assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
      assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
      testcase( regFree1==0 );
      testcase( regFree2==0 );
      break;
    }
    case TK_IS:
    case TK_ISNOT: {
      testcase( pExpr->op==TK_IS );
      testcase( pExpr->op==TK_ISNOT );
      r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
      r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
      op = (pExpr->op==TK_IS) ? TK_NE : TK_EQ;
      codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
                  r1, r2, dest, SQLITE_NULLEQ);
      VdbeCoverageIf(v, op==TK_EQ);
      VdbeCoverageIf(v, op==TK_NE);
      testcase( regFree1==0 );
      testcase( regFree2==0 );
      break;
    }
    case TK_ISNULL:
    case TK_NOTNULL: {
      r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
      sqlite3VdbeAddOp2(v, op, r1, dest);
      testcase( op==TK_ISNULL );   VdbeCoverageIf(v, op==TK_ISNULL);
      testcase( op==TK_NOTNULL );  VdbeCoverageIf(v, op==TK_NOTNULL);
      testcase( regFree1==0 );
      break;
    }
    case TK_BETWEEN: {
      testcase( jumpIfNull==0 );
      exprCodeBetween(pParse, pExpr, dest, 0, jumpIfNull);
      break;
    }
#ifndef SQLITE_OMIT_SUBQUERY
    case TK_IN: {
      if( jumpIfNull ){
        sqlite3ExprCodeIN(pParse, pExpr, dest, dest);
      }else{
        int destIfNull = sqlite3VdbeMakeLabel(v);
        sqlite3ExprCodeIN(pParse, pExpr, dest, destIfNull);
        sqlite3VdbeResolveLabel(v, destIfNull);
      }
      break;
    }
#endif
    default: {
      if( exprAlwaysFalse(pExpr) ){
        sqlite3VdbeGoto(v, dest);
      }else if( exprAlwaysTrue(pExpr) ){
        /* no-op */
      }else{
        r1 = sqlite3ExprCodeTemp(pParse, pExpr, &regFree1);
        sqlite3VdbeAddOp3(v, OP_IfNot, r1, dest, jumpIfNull!=0);
        VdbeCoverage(v);
        testcase( regFree1==0 );
        testcase( jumpIfNull==0 );
      }
      break;
    }
  }
  sqlite3ReleaseTempReg(pParse, regFree1);
  sqlite3ReleaseTempReg(pParse, regFree2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r12d
movq 0x10(%rdi), %r13
andl $0x0, -0x2c(%rbp)
andl $0x0, -0x30(%rbp)
testq %r13, %r13
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x4c5f3
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edx, %r8d
movq %rsi, %r15
movq %rdi, %rbx
movzbl (%rsi), %r14d
leal -0x47(%r14), %eax
cmpl $0xc, %eax
ja 0x4c65f
xorl $0x1, %r14d
leaq 0x1cbc4(%rip), %rcx     # 0x691d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r15), %rsi
leaq -0x2c(%rbp), %rdx
movq %rbx, %rdi
movq %r8, -0x38(%rbp)
callq 0x4b846
movl %eax, %r13d
movq 0x18(%r15), %rsi
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0x4b846
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
movl %r14d, %ecx
movl %r13d, %r8d
movl %eax, %r9d
pushq %r12
pushq -0x38(%rbp)
jmp 0x4c6c0
cmpl $0x13, %r14d
je 0x4c72c
cmpl $0x94, %r14d
jne 0x4c76c
movq 0x10(%r15), %rsi
leaq -0x2c(%rbp), %rdx
movq %rbx, %rdi
movq %r8, %r12
callq 0x4b846
movl %eax, %r14d
movq 0x18(%r15), %rsi
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
callq 0x4b846
xorl %ecx, %ecx
cmpb $0x49, (%r15)
sete %cl
xorl $0x4f, %ecx
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rbx, %rdi
movl %r14d, %r8d
movl %eax, %r9d
pushq $0x80
pushq %r12
callq 0x4b92d
popq %rax
popq %rcx
movl -0x2c(%rbp), %esi
movq %rbx, %rdi
callq 0x4c573
movl -0x30(%rbp), %esi
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4c573
movq 0x10(%r15), %rsi
leaq -0x2c(%rbp), %rdx
movq %rbx, %rdi
movq %r8, %r15
callq 0x4b846
movq %r13, %rdi
movl %r14d, %esi
movl %eax, %edx
movl %r15d, %ecx
callq 0x4a1ab
jmp 0x4c6c7
testl %r12d, %r12d
je 0x4c7f8
movq %rbx, %rdi
movq %r15, %rsi
movl %r8d, %edx
movl %r8d, %ecx
callq 0x4c1f8
jmp 0x4c6c7
movq 0x10(%r15), %rsi
movq %rbx, %rdi
movl %r8d, %edx
movl %r12d, %ecx
callq 0x4e38f
jmp 0x4c6c7
movq 0x10(%r15), %rsi
movq %rbx, %rdi
movl %r8d, %edx
movl %r12d, %ecx
movq %r8, %r14
callq 0x4c5b4
incl 0x74(%rbx)
movq 0x18(%r15), %rsi
movq %rbx, %rdi
movl %r14d, %edx
movl %r12d, %ecx
callq 0x4c5b4
jmp 0x4c7eb
movq %r8, %r14
movq %r15, %rdi
callq 0x4e710
testl %eax, %eax
je 0x4c826
movq %r13, %rdi
movl %r14d, %esi
callq 0x4a0cb
jmp 0x4c6c7
movq %rbx, %rdi
movq %r15, %rsi
movl %r8d, %edx
xorl %ecx, %ecx
movl %r12d, %r8d
callq 0x4e637
jmp 0x4c6c7
movq %r13, %rdi
movq %r8, -0x38(%rbp)
callq 0x4b9c2
movl %eax, %r14d
movq 0x10(%r15), %rsi
movl %r12d, %ecx
xorl $0x10, %ecx
movq %rbx, %rdi
movl %eax, %edx
callq 0x4e38f
incl 0x74(%rbx)
movq 0x18(%r15), %rsi
movq %rbx, %rdi
movq -0x38(%rbp), %rdx
movl %r12d, %ecx
callq 0x4c5b4
movq %r13, %rdi
movl %r14d, %esi
callq 0x4bacf
movq %rbx, %rdi
callq 0x4ba7d
jmp 0x4c6c7
movq %r13, %rdi
movq %r8, %r12
callq 0x4b9c2
movl %eax, %r14d
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
movl %eax, %ecx
callq 0x4c1f8
movq %r13, %rdi
movl %r14d, %esi
callq 0x4bacf
jmp 0x4c6c7
movq %r15, %rdi
callq 0x4e741
testl %eax, %eax
jne 0x4c6c7
leaq -0x2c(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4b846
xorl %r8d, %r8d
testl %r12d, %r12d
setne %r8b
pushq $0x2f
popq %rsi
movq %r13, %rdi
movl %eax, %edx
movl %r14d, %ecx
callq 0x385b6
jmp 0x4c6c7