/ Check-in [1fcf3307]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a defect in the VDBE branch coverage testing logic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1fcf3307d37f0e8e0c8c54491c609b73c7add6eaa38409a41c7cd6614a877a19
User & Date: drh 2019-04-01 13:06:19
Context
2019-04-01
14:01
Improved comments on the VDBE branch coverage testing logic. Fix the VDBE branch coverage measurement on the OP_MustBeInt opcode. check-in: 8681750e user: drh tags: trunk
13:06
Fix a defect in the VDBE branch coverage testing logic. check-in: 1fcf3307 user: drh tags: trunk
03:07
Fix harmless compiler warnings seen with MSVC. check-in: 6cf8b18e user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

  2040   2040         if( (pOp->opcode==OP_Eq)==res2 ) break;
  2041   2041       }
  2042   2042       memAboutToChange(p, pOut);
  2043   2043       MemSetTypeFlag(pOut, MEM_Int);
  2044   2044       pOut->u.i = res2;
  2045   2045       REGISTER_TRACE(pOp->p2, pOut);
  2046   2046     }else{
  2047         -    VdbeBranchTaken(res!=0, (pOp->p5 & SQLITE_NULLEQ)?2:3);
         2047  +    VdbeBranchTaken(res2!=0, (pOp->p5 & SQLITE_NULLEQ)?2:3);
  2048   2048       if( res2 ){
  2049   2049         goto jump_to_p2;
  2050   2050       }
  2051   2051     }
  2052   2052     break;
  2053   2053   }
  2054   2054