assert 228 Zend/zend.h #define ZEND_ASSERT(c) assert(c) assert 131 Zend/zend_language_scanner.c assert(internal_encoding && zend_multibyte_check_lexer_compatibility(internal_encoding)); assert 149 Zend/zend_language_scanner.c assert(internal_encoding && zend_multibyte_check_lexer_compatibility(internal_encoding)); assert 412 Zend/zend_operators.h assert(0); \ assert 124 ext/bcmath/libbcmath/src/recmul.c assert (accum->n_len+accum->n_scale >= shift+count); assert 24730 ext/date/lib/parse_date.c assert(time != NULL); assert 24742 ext/date/lib/parse_date.c assert(time != NULL); assert 229 ext/dba/libinifile/inifile.c assert(k1->group && k1->name && k2->group && k2->name); assert 443 ext/dba/libinifile/inifile.c assert(0); assert 479 ext/dba/libinifile/inifile.c assert(!append || (key->name && value)); /* missuse */ assert 11 ext/dom/tests/domdocumentload_test_method.php assert('$result === $expectedResult'); assert 11 ext/dom/tests/domdocumentload_test_method_savexml.php assert('$result === $expectedResult'); assert 11 ext/dom/tests/domdocumentloadxml_test_method.php assert('$result === $expectedResult'); assert 11 ext/dom/tests/domdocumentloadxml_test_method_savexml.php assert('$result === $expectedResult'); assert 132 ext/ereg/regex/engine.c assert(m->coldp != NULL); assert 138 ext/ereg/regex/engine.c assert(m->coldp < m->endp); assert 173 ext/ereg/regex/engine.c assert(g->backrefs); /* must be back references doing it */ assert 174 ext/ereg/regex/engine.c assert(g->nplus == 0 || m->lastpos != NULL); assert 185 ext/ereg/regex/engine.c assert(m->pmatch[i].rm_so == -1); assert 186 ext/ereg/regex/engine.c assert(m->pmatch[i].rm_eo == -1); assert 192 ext/ereg/regex/engine.c assert(dp == NULL || dp == endp); assert 199 ext/ereg/regex/engine.c assert(start <= stop); assert 208 ext/ereg/regex/engine.c assert(m->pmatch != NULL); assert 273 ext/ereg/regex/engine.c assert(PHP_REGEX_NOPE); assert 289 ext/ereg/regex/engine.c assert(PHP_REGEX_NOPE); assert 297 ext/ereg/regex/engine.c assert(rest != NULL); /* it did match */ assert 304 ext/ereg/regex/engine.c assert(stp >= sp); /* it did work */ assert 311 ext/ereg/regex/engine.c assert(dp == rest); assert 313 ext/ereg/regex/engine.c assert(sp == rest); assert 321 ext/ereg/regex/engine.c assert(rest != NULL); /* it did match */ assert 328 ext/ereg/regex/engine.c assert(stp >= sp); /* it did work */ assert 346 ext/ereg/regex/engine.c assert(sep == rest); /* must exhaust substring */ assert 347 ext/ereg/regex/engine.c assert(slow(m, ssp, sep, ssub, esub) == rest); assert 349 ext/ereg/regex/engine.c assert(dp == sep); assert 357 ext/ereg/regex/engine.c assert(rest != NULL); /* it did match */ assert 364 ext/ereg/regex/engine.c assert(stp >= sp); /* it did work */ assert 368 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR1); assert 373 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR1); assert 375 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR2); assert 381 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == O_CH); assert 384 ext/ereg/regex/engine.c assert(dp == rest); assert 392 ext/ereg/regex/engine.c assert(PHP_REGEX_NOPE); assert 396 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); assert 401 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); assert 405 ext/ereg/regex/engine.c assert(PHP_REGEX_NOPE); assert 410 ext/ereg/regex/engine.c assert(sp == stop); assert 505 ext/ereg/regex/engine.c assert(OP(s) == OOR2); assert 527 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); assert 530 ext/ereg/regex/engine.c assert(m->pmatch[i].rm_so != -1); assert 532 ext/ereg/regex/engine.c assert(stop - m->beginp >= len); assert 549 ext/ereg/regex/engine.c assert(m->lastpos != NULL); assert 550 ext/ereg/regex/engine.c assert(lev+1 <= m->g->nplus); assert 568 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR1); assert 577 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == OOR2); assert 583 ext/ereg/regex/engine.c assert(OP(m->g->strip[esub]) == O_CH); assert 588 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); assert 599 ext/ereg/regex/engine.c assert(0 < i && i <= m->g->nsub); assert 609 ext/ereg/regex/engine.c assert(PHP_REGEX_NOPE); assert 614 ext/ereg/regex/engine.c assert(PHP_REGEX_NOPE); assert 695 ext/ereg/regex/engine.c assert(c != OUT); assert 698 ext/ereg/regex/engine.c assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st)); assert 702 ext/ereg/regex/engine.c assert(coldp != NULL); assert 786 ext/ereg/regex/engine.c assert(c != OUT); assert 789 ext/ereg/regex/engine.c assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st)); assert 831 ext/ereg/regex/engine.c assert(pc == stop-1); assert 835 ext/ereg/regex/engine.c assert(!NONCHAR(ch) || ch != (unsigned char)OPND(s)); assert 894 ext/ereg/regex/engine.c assert(OP(g->strip[pc+OPND(s)]) == OOR2); assert 902 ext/ereg/regex/engine.c assert(OP(s) == OOR2); assert 909 ext/ereg/regex/engine.c assert(OP(g->strip[pc+OPND(s)]) == OOR2); assert 917 ext/ereg/regex/engine.c assert(PHP_REGEX_NOPE); assert 490 ext/ereg/regex/main.c assert(len <= sizeof(epbuf)); assert 506 ext/ereg/regex/main.c assert(strlen(efbuf) < sizeof(efbuf)); assert 230 ext/ereg/regex/regcomp.c assert(!MORE() || SEE(stop)); assert 248 ext/ereg/regex/regcomp.c assert(MORE()); /* caller should have ensured this */ assert 264 ext/ereg/regex/regcomp.c assert(p->pend[subno] != 0); assert 455 ext/ereg/regex/regcomp.c assert(MORE()); /* caller should have ensured this */ assert 485 ext/ereg/regex/regcomp.c assert(p->pend[subno] != 0); assert 504 ext/ereg/regex/regcomp.c assert(i < NPAREN); assert 506 ext/ereg/regex/regcomp.c assert(i <= p->g->nsub); assert 508 ext/ereg/regex/regcomp.c assert(p->pbegin[i] != 0); assert 509 ext/ereg/regex/regcomp.c assert(OP(p->strip[p->pbegin[i]]) == OLPAREN); assert 510 ext/ereg/regex/regcomp.c assert(OP(p->strip[p->pend[i]]) == ORPAREN); assert 642 ext/ereg/regex/regcomp.c assert(cs->multis == NULL); /* xxx */ assert 825 ext/ereg/regex/regcomp.c assert(isalpha(ch)); assert 849 ext/ereg/regex/regcomp.c assert(othercase(ch) != ch); /* p_bracket() would recurse */ assert 856 ext/ereg/regex/regcomp.c assert(p->next == bracket+2); assert 902 ext/ereg/regex/regcomp.c assert(p->next == bracket+3); assert 928 ext/ereg/regex/regcomp.c assert(from <= to); assert 958 ext/ereg/regex/regcomp.c assert(copy == finish+4); assert 1013 ext/ereg/regex/regcomp.c assert(nc % CHAR_BIT == 0); assert 1039 ext/ereg/regex/regcomp.c assert(p->g->sets != NULL); /* xxx */ assert 1124 ext/ereg/regex/regcomp.c assert(never); assert 1187 ext/ereg/regex/regcomp.c assert(fp != NULL); assert 1199 ext/ereg/regex/regcomp.c assert(cs->multis != NULL); assert 1247 ext/ereg/regex/regcomp.c assert(cs->multis == NULL); /* xxx */ assert 1262 ext/ereg/regex/regcomp.c assert(cs->multis == NULL); /* xxx */ assert 1348 ext/ereg/regex/regcomp.c assert(finish >= start); assert 1352 ext/ereg/regex/regcomp.c assert(p->ssize >= p->slen + len); assert 1378 ext/ereg/regex/regcomp.c assert(opnd < 1<<OPSHIFT); assert 1383 ext/ereg/regex/regcomp.c assert(p->slen < p->ssize); assert 1410 ext/ereg/regex/regcomp.c assert(HERE() == sn+1); assert 1414 ext/ereg/regex/regcomp.c assert(pos > 0); assert 1443 ext/ereg/regex/regcomp.c assert(value < 1<<OPSHIFT); assert 1572 ext/ereg/regex/regcomp.c assert(cp < g->must + g->mlen); assert 1575 ext/ereg/regex/regcomp.c assert(cp == g->must + g->mlen); assert 91 ext/ereg/regex/regerror.c assert(strlen(convbuf) < sizeof(convbuf)); assert 129 ext/ereg/regex/regexec.c assert(!(g->iflags&BAD)); assert 356 ext/fileinfo/libmagic/apprentice.c assert(p->type < FILE_NAMES_SIZE); assert 360 ext/fileinfo/libmagic/apprentice.c assert(p - type_tbl == FILE_NAMES_SIZE); assert 2223 ext/fileinfo/libmagic/apprentice.c assert(file_nformats == file_nnames); assert 2786 ext/fileinfo/libmagic/apprentice.c assert(nm + sizeof(ar) < m); assert 357 ext/fileinfo/libmagic/cdf.c assert(ss == len); assert 367 ext/fileinfo/libmagic/cdf.c assert(ss == len); assert 413 ext/filter/filter.c assert(*val != NULL); assert 73 ext/intl/breakiterator/breakiterator_class.cpp assert(bio->biter == NULL); assert 183 ext/intl/breakiterator/breakiterator_iterators.cpp assert(next <= slen && next >= cur); assert 239 ext/intl/breakiterator/breakiterator_iterators.cpp assert(((zoi_break_iter_parts*)ii->iterator)->bio->biter != NULL); assert 166 ext/intl/breakiterator/breakiterator_methods.cpp assert(res == SUCCESS); assert 172 ext/intl/breakiterator/breakiterator_methods.cpp assert(text == Z_STRVAL_PP(textzv)); assert 279 ext/intl/breakiterator/breakiterator_methods.cpp assert(res == SUCCESS); assert 74 ext/intl/calendar/calendar_class.cpp assert(co->ucal == NULL); assert 181 ext/intl/calendar/calendar_class.cpp assert(is_tmp == 1); assert 255 ext/intl/intl_error.c assert( pe != NULL ); assert 45 ext/intl/transliterator/transliterator_class.c assert( to->utrans == NULL ); assert 508 ext/openssl/openssl.c assert(pkey != NULL); assert 2995 ext/openssl/openssl.c assert(pkey != NULL); assert 3001 ext/openssl/openssl.c assert(pkey->pkey.rsa != NULL); assert 3013 ext/openssl/openssl.c assert(pkey->pkey.dsa != NULL); assert 3022 ext/openssl/openssl.c assert(pkey->pkey.dh != NULL); assert 21 ext/pgsql/mysql_users.php assert(is_resource($db)); assert 40 ext/pgsql/mysql_users.php assert(is_resource($db)); assert 63 ext/pgsql/mysql_users.php assert(is_resource($db)); assert 5372 ext/pgsql/pgsql.c assert(Z_TYPE_P(src) == IS_STRING); assert 5373 ext/pgsql/pgsql.c assert(should_free == 1 || should_free == 0); assert 5419 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 5420 ext/pgsql/pgsql.c assert(Z_TYPE_P(values) == IS_ARRAY); assert 5421 ext/pgsql/pgsql.c assert(Z_TYPE_P(result) == IS_ARRAY); assert 5422 ext/pgsql/pgsql.c assert(!(opt & ~PGSQL_CONV_OPTS)); assert 6180 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6181 ext/pgsql/pgsql.c assert(table != NULL); assert 6182 ext/pgsql/pgsql.c assert(Z_TYPE_P(var_array) == IS_ARRAY); assert 6365 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6366 ext/pgsql/pgsql.c assert(table != NULL); assert 6367 ext/pgsql/pgsql.c assert(Z_TYPE_P(var_array) == IS_ARRAY); assert 6368 ext/pgsql/pgsql.c assert(Z_TYPE_P(ids_array) == IS_ARRAY); assert 6369 ext/pgsql/pgsql.c assert(!(opt & ~(PGSQL_CONV_OPTS|PGSQL_DML_NO_CONV|PGSQL_DML_EXEC|PGSQL_DML_STRING))); assert 6474 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6475 ext/pgsql/pgsql.c assert(table != NULL); assert 6476 ext/pgsql/pgsql.c assert(Z_TYPE_P(ids_array) == IS_ARRAY); assert 6477 ext/pgsql/pgsql.c assert(!(opt & ~(PGSQL_CONV_FORCE_NULL|PGSQL_DML_EXEC|PGSQL_DML_STRING))); assert 6567 ext/pgsql/pgsql.c assert(Z_TYPE_P(ret_array) == IS_ARRAY); assert 6609 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6610 ext/pgsql/pgsql.c assert(table != NULL); assert 6611 ext/pgsql/pgsql.c assert(Z_TYPE_P(ids_array) == IS_ARRAY); assert 6612 ext/pgsql/pgsql.c assert(Z_TYPE_P(ret_array) == IS_ARRAY); assert 6613 ext/pgsql/pgsql.c assert(!(opt & ~(PGSQL_CONV_OPTS|PGSQL_DML_NO_CONV|PGSQL_DML_EXEC|PGSQL_DML_ASYNC|PGSQL_DML_STRING))); assert 3779 ext/soap/php_encoding.c assert(t->details.map == NULL); assert 2467 ext/soap/php_sdl.c assert(0); assert 2473 ext/soap/php_sdl.c assert(0); assert 2532 ext/soap/php_sdl.c assert(0); assert 2538 ext/soap/php_sdl.c assert(0); assert 2918 ext/soap/php_sdl.c assert(0); assert 3060 ext/soap/php_sdl.c assert(0); assert 3072 ext/soap/php_sdl.c assert(0); assert 3128 ext/soap/php_sdl.c assert(0); assert 284 ext/sockets/conversions.c assert(Z_TYPE_P(zarr) == IS_ARRAY); assert 285 ext/sockets/conversions.c assert(Z_ARRVAL_P(zarr) != NULL); assert 908 ext/sockets/conversions.c assert(*control_len >= *offset); assert 460 ext/sockets/multicast.c assert(greq.gr_group.ss_family != 0); /* the caller has set this */ assert 471 ext/sockets/multicast.c assert(group_len == sizeof(struct sockaddr_in)); assert 490 ext/sockets/multicast.c assert(group_len == sizeof(struct sockaddr_in6)); assert 524 ext/sockets/multicast.c assert(gsreq.gsr_group.ss_family != 0); assert 526 ext/sockets/multicast.c assert(gsreq.gsr_source.ss_family != 0); assert 539 ext/sockets/multicast.c assert(group_len == sizeof(struct sockaddr_in)); assert 540 ext/sockets/multicast.c assert(source_len == sizeof(struct sockaddr_in)); assert 585 ext/sockets/multicast.c assert(0); assert 602 ext/sockets/multicast.c assert(0); assert 619 ext/sockets/multicast.c assert(0); assert 261 ext/sockets/sendrecvmsg.c assert(zres == NULL); assert 322 ext/sockets/sendrecvmsg.c assert(level == IPPROTO_IPV6); assert 373 ext/sockets/sendrecvmsg.c assert(level == IPPROTO_IPV6); assert 518 ext/sqlite3/libsqlite/sqlite3.c # define ALWAYS(X) ((X)?1:(assert(0),0)) assert 519 ext/sqlite3/libsqlite/sqlite3.c # define NEVER(X) ((X)?(assert(0),1):0) assert 12944 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); assert 12954 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); assert 12966 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); assert 13021 ext/sqlite3/libsqlite/sqlite3.c assert( (op-SQLITE_DBSTATUS_LOOKASIDE_HIT)>=0 ); assert 13022 ext/sqlite3/libsqlite/sqlite3.c assert( (op-SQLITE_DBSTATUS_LOOKASIDE_HIT)<3 ); assert 14388 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pFile->pMethods==0 ); assert 14472 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 14526 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)) ); assert 14563 ext/sqlite3/libsqlite/sqlite3.c assert(vfsList); assert 14770 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 14793 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 ); assert 14822 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 && nByte>0 ); assert 14823 ext/sqlite3/libsqlite/sqlite3.c assert( nByte==ROUND8(nByte) ); /* EV: R-46199-30249 */ assert 15024 ext/sqlite3/libsqlite/sqlite3.c assert( mem.nCurrent[i]>=0 ); assert 15042 ext/sqlite3/libsqlite/sqlite3.c assert( p->iForeGuard==(int)FOREGUARD ); assert 15046 ext/sqlite3/libsqlite/sqlite3.c assert( pInt[nReserve/sizeof(int)]==(int)REARGUARD ); assert 15051 ext/sqlite3/libsqlite/sqlite3.c while( nReserve-- > p->iSize ) assert( pU8[nReserve]==0x65 ); assert 15072 ext/sqlite3/libsqlite/sqlite3.c assert( (sizeof(struct MemBlockHdr)&7) == 0 ); assert 15133 ext/sqlite3/libsqlite/sqlite3.c assert( mem.disallow==0 ); assert 15158 ext/sqlite3/libsqlite/sqlite3.c assert(pBt[0]); assert 15187 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.bMemstat || sqlite3GlobalConfig.bCoreMutex==0 assert 15194 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->pPrev->pNext==pHdr ); assert 15197 ext/sqlite3/libsqlite/sqlite3.c assert( mem.pFirst==pHdr ); assert 15201 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->pNext->pPrev==pHdr ); assert 15204 ext/sqlite3/libsqlite/sqlite3.c assert( mem.pLast==pHdr ); assert 15228 ext/sqlite3/libsqlite/sqlite3.c assert( mem.disallow==0 ); assert 15229 ext/sqlite3/libsqlite/sqlite3.c assert( (nByte & 7)==0 ); /* EV: R-46199-30249 */ assert 15267 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->iForeGuard==FOREGUARD ); assert 15286 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->iForeGuard==FOREGUARD ); /* Allocation is valid */ assert 15308 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->iForeGuard==FOREGUARD ); /* Allocation is valid */ assert 15562 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15581 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15582 ext/sqlite3/libsqlite/sqlite3.c assert( (mem3.aPool[i-1].u.hdr.size4x & 1)==0 ); assert 15583 ext/sqlite3/libsqlite/sqlite3.c assert( i>=1 ); assert 15585 ext/sqlite3/libsqlite/sqlite3.c assert( size==mem3.aPool[i+size-1].u.hdr.prevSize ); assert 15586 ext/sqlite3/libsqlite/sqlite3.c assert( size>=2 ); assert 15600 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15615 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15616 ext/sqlite3/libsqlite/sqlite3.c assert( i>=1 ); assert 15617 ext/sqlite3/libsqlite/sqlite3.c assert( (mem3.aPool[i-1].u.hdr.size4x & 1)==0 ); assert 15619 ext/sqlite3/libsqlite/sqlite3.c assert( size==mem3.aPool[i+size-1].u.hdr.prevSize ); assert 15620 ext/sqlite3/libsqlite/sqlite3.c assert( size>=2 ); assert 15650 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15666 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15667 ext/sqlite3/libsqlite/sqlite3.c assert( i>=1 ); assert 15668 ext/sqlite3/libsqlite/sqlite3.c assert( mem3.aPool[i-1].u.hdr.size4x/4==nBlock ); assert 15669 ext/sqlite3/libsqlite/sqlite3.c assert( mem3.aPool[i+nBlock-1].u.hdr.prevSize==nBlock ); assert 15683 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15684 ext/sqlite3/libsqlite/sqlite3.c assert( mem3.szMaster>=nBlock ); assert 15696 ext/sqlite3/libsqlite/sqlite3.c assert( newi > mem3.iMaster+1 ); assert 15730 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15734 ext/sqlite3/libsqlite/sqlite3.c assert( (size&1)==0 ); assert 15737 ext/sqlite3/libsqlite/sqlite3.c assert( i > mem3.aPool[i-1].u.hdr.prevSize ); assert 15771 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15772 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(Mem3Block)==8 ); assert 15778 ext/sqlite3/libsqlite/sqlite3.c assert( nBlock>=2 ); assert 15852 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 15853 ext/sqlite3/libsqlite/sqlite3.c assert( p>mem3.aPool && p<&mem3.aPool[mem3.nPool] ); assert 15855 ext/sqlite3/libsqlite/sqlite3.c assert( (mem3.aPool[i-1].u.hdr.size4x&1)==1 ); assert 15857 ext/sqlite3/libsqlite/sqlite3.c assert( i+size<=mem3.nPool+1 ); assert 15893 ext/sqlite3/libsqlite/sqlite3.c assert( (pBlock[-1].u.hdr.size4x&1)!=0 ); assert 15913 ext/sqlite3/libsqlite/sqlite3.c assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */ assert 15924 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior ); assert 15971 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(Mem3Block)==8 ); assert 16022 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 16027 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 16032 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 16250 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<mem5.nBlock ); assert 16251 ext/sqlite3/libsqlite/sqlite3.c assert( iLogsize>=0 && iLogsize<=LOGMAX ); assert 16252 ext/sqlite3/libsqlite/sqlite3.c assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize ); assert 16272 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem5.mutex) ); assert 16273 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<mem5.nBlock ); assert 16274 ext/sqlite3/libsqlite/sqlite3.c assert( iLogsize>=0 && iLogsize<=LOGMAX ); assert 16275 ext/sqlite3/libsqlite/sqlite3.c assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize ); assert 16280 ext/sqlite3/libsqlite/sqlite3.c assert( x<mem5.nBlock ); assert 16307 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<mem5.nBlock ); assert 16321 ext/sqlite3/libsqlite/sqlite3.c assert( iLogsize>=0 && iLogsize<=LOGMAX ); assert 16323 ext/sqlite3/libsqlite/sqlite3.c assert( iFirst>=0 ); assert 16349 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 16414 ext/sqlite3/libsqlite/sqlite3.c assert( iBlock>=0 && iBlock<mem5.nBlock ); assert 16415 ext/sqlite3/libsqlite/sqlite3.c assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 ); assert 16416 ext/sqlite3/libsqlite/sqlite3.c assert( (mem5.aCtrl[iBlock] & CTRL_FREE)==0 ); assert 16420 ext/sqlite3/libsqlite/sqlite3.c assert( iBlock+size-1<(u32)mem5.nBlock ); assert 16424 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentCount>0 ); assert 16425 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentOut>=(size*mem5.szAtom) ); assert 16428 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentOut>0 || mem5.currentCount==0 ); assert 16429 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentCount>0 || mem5.currentOut==0 ); assert 16439 ext/sqlite3/libsqlite/sqlite3.c assert( iBuddy>=0 ); assert 16477 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 ); assert 16498 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 ); assert 16499 ext/sqlite3/libsqlite/sqlite3.c assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */ assert 16500 ext/sqlite3/libsqlite/sqlite3.c assert( nBytes>=0 ); assert 16571 ext/sqlite3/libsqlite/sqlite3.c assert( (sizeof(Mem5Link)&(sizeof(Mem5Link)-1))==0 ); assert 16575 ext/sqlite3/libsqlite/sqlite3.c assert( zByte!=0 ); /* sqlite3_config() does not allow otherwise */ assert 16600 ext/sqlite3/libsqlite/sqlite3.c assert((iOffset+nAlloc)>mem5.nBlock); assert 16777 ext/sqlite3/libsqlite/sqlite3.c assert( GLOBAL(int, mutexIsInit) ); assert 16962 ext/sqlite3/libsqlite/sqlite3.c assert( id-2 >= 0 ); assert 16963 ext/sqlite3/libsqlite/sqlite3.c assert( id-2 < (int)(sizeof(aStatic)/sizeof(aStatic[0])) ); assert 16977 ext/sqlite3/libsqlite/sqlite3.c assert( p->cnt==0 ); assert 16978 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_FAST || p->id==SQLITE_MUTEX_RECURSIVE ); assert 16995 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || debugMutexNotheld(pX) ); assert 17000 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || debugMutexNotheld(pX) ); assert 17013 ext/sqlite3/libsqlite/sqlite3.c assert( debugMutexHeld(pX) ); assert 17015 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || debugMutexNotheld(pX) ); assert 17193 ext/sqlite3/libsqlite/sqlite3.c assert( iType-2 >= 0 ); assert 17194 ext/sqlite3/libsqlite/sqlite3.c assert( iType-2 < sizeof(staticMutexes)/sizeof(staticMutexes[0]) ); assert 17214 ext/sqlite3/libsqlite/sqlite3.c assert( ulCount==0 ); assert 17215 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_FAST || p->id==SQLITE_MUTEX_RECURSIVE ); assert 17269 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || os2MutexNotheld(p) ); assert 17277 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || os2MutexNotheld(p) ); assert 17294 ext/sqlite3/libsqlite/sqlite3.c assert( os2MutexHeld(p) ); assert 17495 ext/sqlite3/libsqlite/sqlite3.c assert( iType-2 >= 0 ); assert 17496 ext/sqlite3/libsqlite/sqlite3.c assert( iType-2 < ArraySize(staticMutexes) ); assert 17514 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 ); assert 17515 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_FAST || p->id==SQLITE_MUTEX_RECURSIVE ); assert 17532 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || pthreadMutexNotheld(p) ); assert 17551 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 ); assert 17561 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 || p->owner==0 ); assert 17575 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || pthreadMutexNotheld(p) ); assert 17594 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 ); assert 17631 ext/sqlite3/libsqlite/sqlite3.c assert( pthreadMutexHeld(p) ); assert 17636 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); assert 17878 ext/sqlite3/libsqlite/sqlite3.c assert( winMutex_isInit==1 ); assert 17879 ext/sqlite3/libsqlite/sqlite3.c assert( iType-2 >= 0 ); assert 17880 ext/sqlite3/libsqlite/sqlite3.c assert( iType-2 < ArraySize(winMutex_staticMutexes) ); assert 17898 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 17899 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 && p->owner==0 ); assert 17900 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_FAST || p->id==SQLITE_MUTEX_RECURSIVE ); assert 17919 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld2(p, tid) ); assert 17923 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 || p->owner==0 ); assert 17936 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld2(p, tid) ); assert 17974 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 17975 ext/sqlite3/libsqlite/sqlite3.c assert( p->owner==tid ); assert 17978 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); assert 18273 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem0.mutex) ); assert 18323 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(p) ); /* IMP: R-04675-44850 */ assert 18360 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 ); assert 18382 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(mem0.mutex) ); assert 18390 ext/sqlite3/libsqlite/sqlite3.c assert( scratchAllocOut<=1 ); assert 18404 ext/sqlite3/libsqlite/sqlite3.c assert( scratchAllocOut>=1 && scratchAllocOut<=2 ); assert 18416 ext/sqlite3/libsqlite/sqlite3.c assert( mem0.nScratchFree <= (u32)sqlite3GlobalConfig.nScratch ); assert 18421 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_SCRATCH) ); assert 18422 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, ~MEMTYPE_SCRATCH) ); assert 18455 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_HEAP) ); assert 18456 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, MEMTYPE_DB) ); assert 18460 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); assert 18464 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_DB) ); assert 18465 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_LOOKASIDE|MEMTYPE_HEAP) ); assert 18466 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 || sqlite3MemdebugNoType(p, MEMTYPE_LOOKASIDE) ); assert 18476 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, MEMTYPE_DB) ); assert 18477 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_HEAP) ); assert 18494 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); assert 18508 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_DB) ); assert 18509 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_LOOKASIDE|MEMTYPE_HEAP) ); assert 18510 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 || sqlite3MemdebugNoType(p, MEMTYPE_LOOKASIDE) ); assert 18547 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(pOld, MEMTYPE_HEAP) ); assert 18548 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(pOld, ~MEMTYPE_HEAP) ); assert 18562 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pNew) ); /* IMP: R-04675-44850 */ assert 18621 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); assert 18622 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || db->pnBytesFreed==0 ); assert 18665 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 18666 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 18681 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_DB) ); assert 18682 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_LOOKASIDE|MEMTYPE_HEAP) ); assert 18723 ext/sqlite3/libsqlite/sqlite3.c assert( (n&0x7fffffff)==n ); assert 18735 ext/sqlite3/libsqlite/sqlite3.c assert( (n&0x7fffffff)==n ); assert 18779 ext/sqlite3/libsqlite/sqlite3.c assert( !db || sqlite3_mutex_held(db->mutex) ); assert 19349 ext/sqlite3/libsqlite/sqlite3.c assert( precision>0 ); assert 19359 ext/sqlite3/libsqlite/sqlite3.c assert( bufpt>buf ); assert 19491 ext/sqlite3/libsqlite/sqlite3.c assert( k>=0 && k<pSrc->nSrc ); assert 19501 ext/sqlite3/libsqlite/sqlite3.c assert( xtype==etINVALID ); assert 19537 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 || N==0 ); assert 19647 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 20176 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 20177 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags&MEM_Str ); assert 20178 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->enc!=desiredEnc ); assert 20179 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->enc!=0 ); assert 20180 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n>=0 ); assert 20199 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM ); assert 20255 ext/sqlite3/libsqlite/sqlite3.c assert( desiredEnc==SQLITE_UTF16BE ); assert 20266 ext/sqlite3/libsqlite/sqlite3.c assert( desiredEnc==SQLITE_UTF8 ); assert 20283 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->n+(desiredEnc==SQLITE_UTF8?1:2))<=len ); assert 20316 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n>=0 ); assert 20359 ext/sqlite3/libsqlite/sqlite3.c assert( z<=zTerm ); assert 20414 ext/sqlite3/libsqlite/sqlite3.c assert( (m.flags & MEM_Term)!=0 || db->mallocFailed ); assert 20415 ext/sqlite3/libsqlite/sqlite3.c assert( (m.flags & MEM_Str)!=0 || db->mallocFailed ); assert 20416 ext/sqlite3/libsqlite/sqlite3.c assert( (m.flags & MEM_Dyn)!=0 || db->mallocFailed ); assert 20417 ext/sqlite3/libsqlite/sqlite3.c assert( m.z || db->mallocFailed ); assert 20438 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 20441 ext/sqlite3/libsqlite/sqlite3.c assert( m.z==m.zMalloc ); assert 20488 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && n<=4 ); assert 20495 ext/sqlite3/libsqlite/sqlite3.c assert( c==t ); assert 20496 ext/sqlite3/libsqlite/sqlite3.c assert( (z-zBuf)==n ); assert 20503 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && n<=4 ); assert 20507 ext/sqlite3/libsqlite/sqlite3.c assert( c==i ); assert 20508 ext/sqlite3/libsqlite/sqlite3.c assert( (z-zBuf)==n ); assert 20515 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && n<=4 ); assert 20519 ext/sqlite3/libsqlite/sqlite3.c assert( c==i ); assert 20520 ext/sqlite3/libsqlite/sqlite3.c assert( (z-zBuf)==n ); assert 21024 ext/sqlite3/libsqlite/sqlite3.c assert( u<=LARGEST_INT64 ); assert 21031 ext/sqlite3/libsqlite/sqlite3.c assert( u<=LARGEST_INT64 ); assert 21039 ext/sqlite3/libsqlite/sqlite3.c assert( u-1==LARGEST_INT64 ); assert 21040 ext/sqlite3/libsqlite/sqlite3.c assert( (*pNum)==SMALLEST_INT64 ); assert 21146 ext/sqlite3/libsqlite/sqlite3.c assert( n<=9 ); assert 21217 ext/sqlite3/libsqlite/sqlite3.c assert( SLOT_2_0 == ((0x7f<<14) | (0x7f)) ); assert 21218 ext/sqlite3/libsqlite/sqlite3.c assert( SLOT_4_2_0 == ((0xfU<<28) | (0x7f<<14) | (0x7f)) ); assert 21423 ext/sqlite3/libsqlite/sqlite3.c assert( n>3 && n<=9 ); assert 21475 ext/sqlite3/libsqlite/sqlite3.c assert( n>5 && n<=9 ); assert 21517 ext/sqlite3/libsqlite/sqlite3.c assert( (h>='0' && h<='9') || (h>='a' && h<='f') || (h>='A' && h<='F') ); assert 21652 ext/sqlite3/libsqlite/sqlite3.c assert( iA1*iB0==0 || iA0*iB1==0 ); assert 21724 ext/sqlite3/libsqlite/sqlite3.c assert( pNew!=0 ); assert 21738 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 21757 ext/sqlite3/libsqlite/sqlite3.c assert( nKey>=0 ); assert 21888 ext/sqlite3/libsqlite/sqlite3.c assert( pEntry->count>=0 ); assert 21893 ext/sqlite3/libsqlite/sqlite3.c assert( pH->first==0 ); assert 21894 ext/sqlite3/libsqlite/sqlite3.c assert( pH->count==0 ); assert 21907 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 21908 ext/sqlite3/libsqlite/sqlite3.c assert( pKey!=0 ); assert 21909 ext/sqlite3/libsqlite/sqlite3.c assert( nKey>=0 ); assert 21938 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 21939 ext/sqlite3/libsqlite/sqlite3.c assert( pKey!=0 ); assert 21940 ext/sqlite3/libsqlite/sqlite3.c assert( nKey>=0 ); assert 21954 ext/sqlite3/libsqlite/sqlite3.c assert(nKey==elem->nKey); assert 21967 ext/sqlite3/libsqlite/sqlite3.c assert( pH->htsize>0 ); assert 22440 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 22472 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 22504 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 22511 ext/sqlite3/libsqlite/sqlite3.c assert( amt>0 ); assert 22529 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 22585 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 22668 ext/sqlite3/libsqlite/sqlite3.c assert( pFile!=0 ); assert 22682 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype!=NO_LOCK || locktype==SHARED_LOCK ); assert 22683 ext/sqlite3/libsqlite/sqlite3.c assert( locktype!=PENDING_LOCK ); assert 22684 ext/sqlite3/libsqlite/sqlite3.c assert( locktype!=RESERVED_LOCK || pFile->locktype==SHARED_LOCK ); assert 22710 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype==NO_LOCK ); assert 22721 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype==SHARED_LOCK ); assert 22745 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype>=SHARED_LOCK ); assert 22798 ext/sqlite3/libsqlite/sqlite3.c assert( pFile!=0 ); assert 22850 ext/sqlite3/libsqlite/sqlite3.c assert( pFile!=0 ); assert 22851 ext/sqlite3/libsqlite/sqlite3.c assert( locktype<=SHARED_LOCK ); assert 23182 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pNode->mutex) || pNode->nRef==0 ); assert 23431 ext/sqlite3/libsqlite/sqlite3.c assert( szRegion==pNode->szRegion ); assert 23517 ext/sqlite3/libsqlite/sqlite3.c assert(*ppLink); assert 23560 ext/sqlite3/libsqlite/sqlite3.c assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK ); assert 23561 ext/sqlite3/libsqlite/sqlite3.c assert( n>=1 ); assert 23562 ext/sqlite3/libsqlite/sqlite3.c assert( flags==(SQLITE_SHM_LOCK | SQLITE_SHM_SHARED) assert 23566 ext/sqlite3/libsqlite/sqlite3.c assert( n==1 || (flags & SQLITE_SHM_EXCLUSIVE)!=0 ); assert 23569 ext/sqlite3/libsqlite/sqlite3.c assert( n>1 || mask==(1<<ofst) ); assert 23580 ext/sqlite3/libsqlite/sqlite3.c assert( (pX->exclMask & (p->exclMask|p->sharedMask))==0 ); assert 23641 ext/sqlite3/libsqlite/sqlite3.c assert( (p->sharedMask & mask)==0 ); assert 23832 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 23841 ext/sqlite3/libsqlite/sqlite3.c assert((isReadonly==0 || isReadWrite==0) && (isReadWrite || isReadonly)); assert 23842 ext/sqlite3/libsqlite/sqlite3.c assert(isCreate==0 || isReadWrite); assert 23843 ext/sqlite3/libsqlite/sqlite3.c assert(isExclusive==0 || isCreate); assert 23844 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete==0 || isCreate); assert 23848 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_DB ); assert 23849 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_JOURNAL ); assert 23850 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MASTER_JOURNAL ); assert 23851 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_WAL ); assert 23854 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_OPEN_MAIN_DB || eType==SQLITE_OPEN_TEMP_DB assert 23867 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete && !isOpenJournal); assert 24003 ext/sqlite3/libsqlite/sqlite3.c assert( !"Invalid flags argument" ); assert 24222 ext/sqlite3/libsqlite/sqlite3.c assert(zBuf[0]=='\0'); assert 25034 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 25036 ext/sqlite3/libsqlite/sqlite3.c assert( p->l_whence==SEEK_SET ); assert 25053 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 25244 ext/sqlite3/libsqlite/sqlite3.c assert( zAbsoluteName[0]=='/' ); assert 25283 ext/sqlite3/libsqlite/sqlite3.c assert( pId->nRef>0 ); assert 25288 ext/sqlite3/libsqlite/sqlite3.c assert( *pp==pId ); assert 25496 ext/sqlite3/libsqlite/sqlite3.c assert( errcode!=SQLITE_OK ); assert 25549 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 25553 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->pShmNode==0 ); assert 25556 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->pPrev->pNext==pInode ); assert 25559 ext/sqlite3/libsqlite/sqlite3.c assert( inodeList==pInode ); assert 25563 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->pNext->pPrev==pInode ); assert 25591 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 25675 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 25730 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 25731 ext/sqlite3/libsqlite/sqlite3.c assert( pInode!=0 ); assert 25737 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nLock==0 ); assert 25824 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 25844 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock!=NO_LOCK || eFileLock==SHARED_LOCK ); assert 25845 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=PENDING_LOCK ); assert 25846 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=RESERVED_LOCK || pFile->eFileLock==SHARED_LOCK ); assert 25869 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==SHARED_LOCK ); assert 25870 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock==0 ); assert 25871 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared>0 ); assert 25905 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared==0 ); assert 25906 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==0 ); assert 25907 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 25946 ext/sqlite3/libsqlite/sqlite3.c assert( 0!=pFile->eFileLock ); assert 25949 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==RESERVED_LOCK || eFileLock==EXCLUSIVE_LOCK ); assert 26033 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26038 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 26045 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared!=0 ); assert 26047 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==pFile->eFileLock ); assert 26062 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->inNormalWrite==0 assert 26082 ext/sqlite3/libsqlite/sqlite3.c assert( handleNFSUnlock==0 ); assert 26148 ext/sqlite3/libsqlite/sqlite3.c lock.l_len = 2L; assert( PENDING_BYTE+1==RESERVED_BYTE ); assert 26185 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nLock>=0 ); assert 26256 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pInode->nLock>0 || pFile->pInode->bProcessLock==0 ); assert 26360 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26460 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26463 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 26479 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==NO_LOCK ); assert 26555 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26634 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26677 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26680 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 26745 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26844 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26845 ext/sqlite3/libsqlite/sqlite3.c assert( pSem ); assert 26848 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 26881 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26989 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27057 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27077 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock!=NO_LOCK || eFileLock==SHARED_LOCK ); assert 27078 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=PENDING_LOCK ); assert 27079 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=RESERVED_LOCK || pFile->eFileLock==SHARED_LOCK ); assert 27102 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==SHARED_LOCK ); assert 27103 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock==0 ); assert 27104 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared>0 ); assert 27133 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared==0 ); assert 27134 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==0 ); assert 27173 ext/sqlite3/libsqlite/sqlite3.c assert( 0!=pFile->eFileLock ); assert 27243 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27248 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 27254 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared!=0 ); assert 27256 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==pFile->eFileLock ); assert 27270 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->inNormalWrite==0 assert 27321 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nLock>=0 ); assert 27461 ext/sqlite3/libsqlite/sqlite3.c assert( id ); assert 27466 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pUnused==0 assert 27538 ext/sqlite3/libsqlite/sqlite3.c assert( id ); assert 27539 ext/sqlite3/libsqlite/sqlite3.c assert( amt>0 ); assert 27544 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pUnused==0 assert 27739 ext/sqlite3/libsqlite/sqlite3.c assert((flags&0x0F)==SQLITE_SYNC_NORMAL assert 27748 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27788 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27828 ext/sqlite3/libsqlite/sqlite3.c assert( id ); assert 28074 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 ); assert 28077 ext/sqlite3/libsqlite/sqlite3.c assert( n==1 || lockType!=F_RDLCK ); assert 28080 ext/sqlite3/libsqlite/sqlite3.c assert( n>=1 && n<SQLITE_SHM_NLOCK ); assert 28109 ext/sqlite3/libsqlite/sqlite3.c assert( lockType==F_WRLCK ); assert 28120 ext/sqlite3/libsqlite/sqlite3.c assert( lockType==F_WRLCK ); assert 28141 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 28144 ext/sqlite3/libsqlite/sqlite3.c assert( p->pInode==pFd->pInode ); assert 28210 ext/sqlite3/libsqlite/sqlite3.c assert( pDbFd->pShm==0 ); assert 28363 ext/sqlite3/libsqlite/sqlite3.c assert( szRegion==pShmNode->szRegion || pShmNode->nRegion==0 ); assert 28364 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->pInode==pDbFd->pInode ); assert 28365 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h>=0 || pDbFd->pInode->bProcessLock==1 ); assert 28366 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h<0 || pDbFd->pInode->bProcessLock==0 ); assert 28466 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode==pDbFd->pInode->pShmNode ); assert 28467 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->pInode==pDbFd->pInode ); assert 28468 ext/sqlite3/libsqlite/sqlite3.c assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK ); assert 28469 ext/sqlite3/libsqlite/sqlite3.c assert( n>=1 ); assert 28470 ext/sqlite3/libsqlite/sqlite3.c assert( flags==(SQLITE_SHM_LOCK | SQLITE_SHM_SHARED) assert 28474 ext/sqlite3/libsqlite/sqlite3.c assert( n==1 || (flags & SQLITE_SHM_EXCLUSIVE)!=0 ); assert 28475 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h>=0 || pDbFd->pInode->bProcessLock==1 ); assert 28476 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h<0 || pDbFd->pInode->bProcessLock==0 ); assert 28479 ext/sqlite3/libsqlite/sqlite3.c assert( n>1 || mask==(1<<ofst) ); assert 28487 ext/sqlite3/libsqlite/sqlite3.c assert( (pX->exclMask & (p->exclMask|p->sharedMask))==0 ); assert 28548 ext/sqlite3/libsqlite/sqlite3.c assert( (p->sharedMask & mask)==0 ); assert 28594 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode==pDbFd->pInode->pShmNode ); assert 28595 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->pInode==pDbFd->pInode ); assert 28611 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->nRef>0 ); assert 28938 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->pInode==NULL ); assert 28950 ext/sqlite3/libsqlite/sqlite3.c assert( zFilename==0 || zFilename[0]=='/' assert 28953 ext/sqlite3/libsqlite/sqlite3.c assert( zFilename==0 || zFilename[0]=='/' ); assert 29410 ext/sqlite3/libsqlite/sqlite3.c assert((isReadonly==0 || isReadWrite==0) && (isReadWrite || isReadonly)); assert 29411 ext/sqlite3/libsqlite/sqlite3.c assert(isCreate==0 || isReadWrite); assert 29412 ext/sqlite3/libsqlite/sqlite3.c assert(isExclusive==0 || isCreate); assert 29413 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete==0 || isCreate); assert 29417 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_DB ); assert 29418 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_JOURNAL ); assert 29419 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MASTER_JOURNAL ); assert 29420 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_WAL ); assert 29423 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_OPEN_MAIN_DB || eType==SQLITE_OPEN_TEMP_DB assert 29445 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete && !isOpenDirectory); assert 29467 ext/sqlite3/libsqlite/sqlite3.c assert( !p->pUnused ); assert 29468 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_OPEN_WAL || eType==SQLITE_OPEN_MAIN_JOURNAL ); assert 29487 ext/sqlite3/libsqlite/sqlite3.c assert( fd>=0 ); assert 29517 ext/sqlite3/libsqlite/sqlite3.c assert( eType!=SQLITE_OPEN_MAIN_DB ); assert 29670 ext/sqlite3/libsqlite/sqlite3.c assert(!"Invalid flags argument"); assert 29706 ext/sqlite3/libsqlite/sqlite3.c assert( pVfs->mxPathname==MAX_PATHNAME ); assert 29791 ext/sqlite3/libsqlite/sqlite3.c assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int))); assert 29816 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(t)+sizeof(pid)<=(size_t)nBuf ); assert 30153 ext/sqlite3/libsqlite/sqlite3.c assert(lockPath!=NULL); assert 30285 ext/sqlite3/libsqlite/sqlite3.c assert(PROXY_HOSTIDLEN == sizeof(uuid_t)); assert 30413 ext/sqlite3/libsqlite/sqlite3.c assert( nTries>1 ); assert 30439 ext/sqlite3/libsqlite/sqlite3.c assert( nTries==3 ); assert 30739 ext/sqlite3/libsqlite/sqlite3.c assert( (int)strlen(conchPath) == len+7 ); assert 30789 ext/sqlite3/libsqlite/sqlite3.c assert( (int)strlen((char*)pFile->lockingContext)<=MAXPATHLEN ); assert 30800 ext/sqlite3/libsqlite/sqlite3.c assert( strlen((char*)pFile->lockingContext)<=MAXPATHLEN ); assert 30951 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); /* The call assures that only valid opcodes are sent */ assert 31196 ext/sqlite3/libsqlite/sqlite3.c assert( ArraySize(aSyscall)==16 ); assert 31816 ext/sqlite3/libsqlite/sqlite3.c assert( errcode!=SQLITE_OK ); assert 32080 ext/sqlite3/libsqlite/sqlite3.c assert(nNumberOfBytesToUnlockLow == (DWORD)SHARED_SIZE); assert 32088 ext/sqlite3/libsqlite/sqlite3.c assert(nNumberOfBytesToUnlockLow == (DWORD)SHARED_SIZE || nNumberOfBytesToUnlockLow == 1); assert 32204 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 32205 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pShm==0 ); assert 32246 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 32279 ext/sqlite3/libsqlite/sqlite3.c assert( amt>0 ); assert 32280 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 32319 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 32365 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 32367 ext/sqlite3/libsqlite/sqlite3.c assert((flags&0x0F)==SQLITE_SYNC_NORMAL assert 32413 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 32519 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 32533 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype!=NO_LOCK || locktype==SHARED_LOCK ); assert 32534 ext/sqlite3/libsqlite/sqlite3.c assert( locktype!=PENDING_LOCK ); assert 32535 ext/sqlite3/libsqlite/sqlite3.c assert( locktype!=RESERVED_LOCK || pFile->locktype==SHARED_LOCK ); assert 32563 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype==NO_LOCK ); assert 32575 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype==SHARED_LOCK ); assert 32594 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype>=SHARED_LOCK ); assert 32640 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 32671 ext/sqlite3/libsqlite/sqlite3.c assert( pFile!=0 ); assert 32672 ext/sqlite3/libsqlite/sqlite3.c assert( locktype<=SHARED_LOCK ); assert 32739 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 32884 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 ); assert 32930 ext/sqlite3/libsqlite/sqlite3.c assert( winShmMutexHeld() ); assert 32979 ext/sqlite3/libsqlite/sqlite3.c assert( pDbFd->pShm==0 ); /* Not previously opened */ assert 33113 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->nRef>0 ); assert 33139 ext/sqlite3/libsqlite/sqlite3.c assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK ); assert 33140 ext/sqlite3/libsqlite/sqlite3.c assert( n>=1 ); assert 33141 ext/sqlite3/libsqlite/sqlite3.c assert( flags==(SQLITE_SHM_LOCK | SQLITE_SHM_SHARED) assert 33145 ext/sqlite3/libsqlite/sqlite3.c assert( n==1 || (flags & SQLITE_SHM_EXCLUSIVE)!=0 ); assert 33148 ext/sqlite3/libsqlite/sqlite3.c assert( n>1 || mask==(1<<ofst) ); assert 33156 ext/sqlite3/libsqlite/sqlite3.c assert( (pX->exclMask & (p->exclMask|p->sharedMask))==0 ); assert 33217 ext/sqlite3/libsqlite/sqlite3.c assert( (p->sharedMask & mask)==0 ); assert 33283 ext/sqlite3/libsqlite/sqlite3.c assert( szRegion==pShmNode->szRegion || pShmNode->nRegion==0 ); assert 33566 ext/sqlite3/libsqlite/sqlite3.c assert((isReadonly==0 || isReadWrite==0) && (isReadWrite || isReadonly)); assert 33567 ext/sqlite3/libsqlite/sqlite3.c assert(isCreate==0 || isReadWrite); assert 33568 ext/sqlite3/libsqlite/sqlite3.c assert(isExclusive==0 || isCreate); assert 33569 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete==0 || isCreate); assert 33573 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_DB ); assert 33574 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_JOURNAL ); assert 33575 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MASTER_JOURNAL ); assert 33576 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_WAL ); assert 33579 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_OPEN_MAIN_DB || eType==SQLITE_OPEN_TEMP_DB assert 33585 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 33594 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete && !isOpenJournal); assert 33853 ext/sqlite3/libsqlite/sqlite3.c assert(!"Invalid flags argument"); assert 34261 ext/sqlite3/libsqlite/sqlite3.c assert(winSysInfo.dwAllocationGranularity > 0); assert 34389 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(*p)==BITVEC_SZ ); assert 34441 ext/sqlite3/libsqlite/sqlite3.c assert( i>0 ); assert 34442 ext/sqlite3/libsqlite/sqlite3.c assert( i<=p->iSize ); assert 34511 ext/sqlite3/libsqlite/sqlite3.c assert( i>0 ); assert 34723 ext/sqlite3/libsqlite/sqlite3.c # define expensive_assert(X) assert(X) assert 34741 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef || (p->flags&PGHDR_NEED_SYNC) ); assert 34753 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyNext || pPage==p->pDirtyTail ); assert 34754 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyPrev || pPage==p->pDirty ); assert 34768 ext/sqlite3/libsqlite/sqlite3.c assert( pPage==p->pDirtyTail ); assert 34774 ext/sqlite3/libsqlite/sqlite3.c assert( pPage==p->pDirty ); assert 34790 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyNext==0 && pPage->pDirtyPrev==0 && p->pDirty!=pPage ); assert 34794 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyNext->pDirtyPrev==0 ); assert 34875 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nRef==0 && pCache->pDirty==0 ); assert 34896 ext/sqlite3/libsqlite/sqlite3.c assert( pCache!=0 ); assert 34897 ext/sqlite3/libsqlite/sqlite3.c assert( createFlag==1 || createFlag==0 ); assert 34898 ext/sqlite3/libsqlite/sqlite3.c assert( pgno>0 ); assert 34964 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pCache==pCache ); assert 34965 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pgno==pgno ); assert 34966 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pData==(void *)&pPage[1] ); assert 34967 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pExtra==(void *)&((char *)&pPage[1])[pCache->szPage] ); assert 34986 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 35005 ext/sqlite3/libsqlite/sqlite3.c assert(p->nRef>0); assert 35016 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==1 ); assert 35034 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 35081 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 35082 ext/sqlite3/libsqlite/sqlite3.c assert( newPgno>0 ); assert 35110 ext/sqlite3/libsqlite/sqlite3.c assert( p->pgno>0 ); assert 35112 ext/sqlite3/libsqlite/sqlite3.c assert( p->flags&PGHDR_DIRTY ); assert 35489 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pcache1.grp.mutex) ); assert 35498 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.nFreeSlot>=0 ); assert 35533 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.nFreeSlot<=pcache1.nSlot ); assert 35537 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_PCACHE) ); assert 35556 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_PCACHE) ); assert 35655 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pGroup->mutex) ); assert 35703 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pGroup->mutex) ); assert 35735 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCache->pGroup->mutex) ); assert 35748 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pGroup->mutex) ); assert 35751 ext/sqlite3/libsqlite/sqlite3.c assert( p->pCache->pGroup==pGroup ); assert 35771 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCache->pGroup->mutex) ); assert 35787 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nPage==nPage ); assert 35798 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.isInit==0 ); assert 35816 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.isInit!=0 ); assert 35963 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable || createFlag!=1 ); assert 35964 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable || pCache->nMin==0 ); assert 35965 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable==0 || pCache->nMin==10 ); assert 35966 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nMin==0 || pCache->bPurgeable ); assert 35995 ext/sqlite3/libsqlite/sqlite3.c assert( nPinned>=0 ); assert 35996 ext/sqlite3/libsqlite/sqlite3.c assert( pGroup->mxPinned == pGroup->nMaxPage + 10 - pGroup->nMinPage ); assert 35997 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->n90pct == pCache->nMax*9/10 ); assert 36071 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pCache==pCache ); assert 36077 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pLruPrev==0 && pPage->pLruNext==0 ); assert 36078 ext/sqlite3/libsqlite/sqlite3.c assert( pGroup->pLruHead!=pPage && pGroup->pLruTail!=pPage ); assert 36112 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->iKey==iOld ); assert 36113 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pCache==pCache ); assert 36160 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable || (pCache->nMax==0 && pCache->nMin==0) ); assert 36206 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pcache1.grp.mutex) ); assert 36207 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pcache1.mutex) ); assert 36374 ext/sqlite3/libsqlite/sqlite3.c assert( N >= ROUND8(sizeof(*p)) ); assert 36416 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 36439 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEntry==0 ); /* Fires if INSERT after SMALLEST */ assert 36460 ext/sqlite3/libsqlite/sqlite3.c assert( pA->pRight==0 || pA->v<=pA->pRight->v ); assert 36461 ext/sqlite3/libsqlite/sqlite3.c assert( pB->pRight==0 || pB->v<=pB->pRight->v ); assert 36475 ext/sqlite3/libsqlite/sqlite3.c assert( pA->pRight==0 || pA->v<=pA->pRight->v ); assert 36478 ext/sqlite3/libsqlite/sqlite3.c assert( pB==0 || pB->pRight==0 || pB->v<=pB->pRight->v ); assert 36492 ext/sqlite3/libsqlite/sqlite3.c assert( p->isSorted==0 ); assert 36524 ext/sqlite3/libsqlite/sqlite3.c assert( pIn!=0 ); assert 36537 ext/sqlite3/libsqlite/sqlite3.c assert( (*ppLast)->pRight==0 ); assert 36589 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); assert 37602 ext/sqlite3/libsqlite/sqlite3.c assert( p->eState==PAGER_OPEN assert 37615 ext/sqlite3/libsqlite/sqlite3.c assert( p->tempFile==0 || p->eLock==EXCLUSIVE_LOCK ); assert 37616 ext/sqlite3/libsqlite/sqlite3.c assert( p->tempFile==0 || pPager->changeCountDone ); assert 37621 ext/sqlite3/libsqlite/sqlite3.c assert( p->journalMode==PAGER_JOURNALMODE_OFF || p->useJournal ); assert 37622 ext/sqlite3/libsqlite/sqlite3.c assert( p->journalMode!=PAGER_JOURNALMODE_OFF || !isOpen(p->jfd) ); assert 37633 ext/sqlite3/libsqlite/sqlite3.c assert( p->noSync ); assert 37634 ext/sqlite3/libsqlite/sqlite3.c assert( p->journalMode==PAGER_JOURNALMODE_OFF assert 37637 ext/sqlite3/libsqlite/sqlite3.c assert( p->eState!=PAGER_ERROR && p->eState!=PAGER_OPEN ); assert 37638 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(p)==0 ); assert 37644 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->changeCountDone==0 || pPager->eLock>=RESERVED_LOCK ); assert 37645 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=PENDING_LOCK ); assert 37649 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 37650 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 37651 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PcacheRefCount(pPager->pPCache)==0 || pPager->tempFile ); assert 37655 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 37656 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=UNKNOWN_LOCK ); assert 37657 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=SHARED_LOCK || p->noReadlock ); assert 37661 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=UNKNOWN_LOCK ); assert 37662 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 37664 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=RESERVED_LOCK ); assert 37666 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbSize==pPager->dbOrigSize ); assert 37667 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbFileSize ); assert 37668 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbHintSize ); assert 37669 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->setMaster==0 ); assert 37673 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=UNKNOWN_LOCK ); assert 37674 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 37681 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=RESERVED_LOCK ); assert 37682 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(p->jfd) assert 37687 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbFileSize ); assert 37688 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbHintSize ); assert 37692 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock==EXCLUSIVE_LOCK ); assert 37693 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 37694 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 37695 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=EXCLUSIVE_LOCK ); assert 37696 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(p->jfd) assert 37700 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize<=pPager->dbHintSize ); assert 37704 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock==EXCLUSIVE_LOCK ); assert 37705 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 37706 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 37707 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(p->jfd) assert 37718 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode!=SQLITE_OK ); assert 37719 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PcacheRefCount(pPager->pPCache)>0 ); assert 37851 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->exclusiveMode || pPager->eLock==eLock ); assert 37852 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==NO_LOCK || eLock==SHARED_LOCK ); assert 37853 ext/sqlite3/libsqlite/sqlite3.c assert( eLock!=NO_LOCK || pagerUseWal(pPager)==0 ); assert 37855 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock>=eLock ); assert 37878 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==SHARED_LOCK || eLock==RESERVED_LOCK || eLock==EXCLUSIVE_LOCK ); assert 37908 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 37914 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); assert 37919 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC512==(512>>8)); assert 37920 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC64K==(65536>>8)); assert 37962 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 37963 ext/sqlite3/libsqlite/sqlite3.c assert( (pPg->flags&PGHDR_DIRTY) || pPg->pageHash==pager_pagehash(pPg) ); assert 38057 ext/sqlite3/libsqlite/sqlite3.c assert( offset%JOURNAL_HDR_SZ(pPager)==0 ); assert 38058 ext/sqlite3/libsqlite/sqlite3.c assert( offset>=c ); assert 38059 ext/sqlite3/libsqlite/sqlite3.c assert( (offset-c)<JOURNAL_HDR_SZ(pPager) ); assert 38086 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); assert 38140 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); /* Journal file must be open. */ assert 38178 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->noSync ); assert 38227 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalHdr <= pPager->journalOff ); assert 38262 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); /* Journal file must be open. */ assert 38383 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->setMaster==0 ); assert 38384 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 38393 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); assert 38394 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalHdr <= pPager->journalOff ); assert 38497 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_NOMEM ); assert 38522 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER assert 38532 ext/sqlite3/libsqlite/sqlite3.c assert( !isOpen(pPager->jfd) ); assert 38544 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_MEMORY & 5)!=1 ); assert 38545 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_OFF & 5)!=1 ); assert 38546 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_WAL & 5)!=1 ); assert 38547 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_DELETE & 5)!=1 ); assert 38548 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_TRUNCATE & 5)==1 ); assert 38549 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_PERSIST & 5)==1 ); assert 38570 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode || pPager->eState!=PAGER_ERROR ); assert 38581 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 38614 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || !MEMDB ); assert 38615 ext/sqlite3/libsqlite/sqlite3.c assert( assert 38697 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 38698 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 38704 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) || pPager->pInJournal==0 ); assert 38706 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 38710 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalMode==PAGER_JOURNALMODE_MEMORY ); assert 38730 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalMode==PAGER_JOURNALMODE_DELETE assert 38764 ext/sqlite3/libsqlite/sqlite3.c assert( rc2==SQLITE_OK ); assert 38797 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 38803 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER ); assert 38906 ext/sqlite3/libsqlite/sqlite3.c assert( (isMainJrnl&~1)==0 ); /* isMainJrnl is 0 or 1 */ assert 38907 ext/sqlite3/libsqlite/sqlite3.c assert( (isSavepnt&~1)==0 ); /* isSavepnt is 0 or 1 */ assert 38908 ext/sqlite3/libsqlite/sqlite3.c assert( isMainJrnl || pDone ); /* pDone always used on sub-journals */ assert 38909 ext/sqlite3/libsqlite/sqlite3.c assert( isSavepnt || pDone==0 ); /* pDone never used on non-savepoint */ assert 38912 ext/sqlite3/libsqlite/sqlite3.c assert( aData ); /* Temp storage must have already been allocated */ assert 38913 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager)==0 || (!isMainJrnl && isSavepnt) ); assert 38921 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD assert 38924 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD || isMainJrnl ); assert 38942 ext/sqlite3/libsqlite/sqlite3.c assert( !isSavepnt ); assert 39010 ext/sqlite3/libsqlite/sqlite3.c assert( pPg || !MEMDB ); assert 39011 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_OPEN || pPg==0 ); assert 39027 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 39054 ext/sqlite3/libsqlite/sqlite3.c assert( isSavepnt ); assert 39055 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->doNotSpill==0 ); assert 39058 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->doNotSpill==1 ); assert 39095 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 39239 ext/sqlite3/libsqlite/sqlite3.c assert( !isOpen(pJournal) ); assert 39268 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 39269 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_READER ); assert 39276 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==EXCLUSIVE_LOCK ); assert 39314 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); assert 39327 ext/sqlite3/libsqlite/sqlite3.c assert( MAX_SECTOR_SIZE>=512 ); assert 39403 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); assert 39456 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalOff==JOURNAL_HDR_SZ(pPager) ); assert 39524 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 39532 ext/sqlite3/libsqlite/sqlite3.c assert( assert 39597 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER && !MEMDB ); assert 39598 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); assert 39601 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->tempFile ); assert 39762 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pWal ); assert 39766 ext/sqlite3/libsqlite/sqlite3.c assert( p->pgno < p->pDirty->pgno ); assert 39780 ext/sqlite3/libsqlite/sqlite3.c assert( pList ); assert 39816 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager) ); assert 39817 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER ); assert 39853 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 39854 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock>=SHARED_LOCK || pPager->noReadlock ); assert 39865 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); assert 39911 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 39912 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock>=SHARED_LOCK || pPager->noReadlock ); assert 39983 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 39984 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_LOCKED ); assert 40010 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager)==0 || szJ==0 ); assert 40025 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 40040 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 40055 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 40057 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pPager->journalOff>=szJ ); assert 40071 ext/sqlite3/libsqlite/sqlite3.c assert( offset==ii*(4+pPager->pageSize) ); assert 40074 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 40142 ext/sqlite3/libsqlite/sqlite3.c assert( level>=1 && level<=3 ); assert 40199 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pFile) ); assert 40277 ext/sqlite3/libsqlite/sqlite3.c assert( pageSize==0 || (pageSize>=512 && pageSize<=SQLITE_MAX_PAGE_SIZE) ); assert 40306 ext/sqlite3/libsqlite/sqlite3.c assert( nReserve>=0 && nReserve<1000 ); assert 40336 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_OPEN ); /* Called only by OP_MaxPgcnt */ assert 40337 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->mxPgno>=pPager->dbSize ); /* OP_MaxPgcnt enforces this */ assert 40382 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); assert 40388 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 40408 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER ); assert 40409 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_WRITER_FINISHED ); assert 40436 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->eLock>=locktype) assert 40471 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->flags&PGHDR_DIRTY ); assert 40472 ext/sqlite3/libsqlite/sqlite3.c assert( !subjRequiresPage(pPg) || pPg->pgno<=pPg->pPager->dbSize ); assert 40488 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbSize>=nPage ); assert 40489 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD ); assert 40578 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->aSavepoint && !pPager->pInJournal ); assert 40579 ext/sqlite3/libsqlite/sqlite3.c assert( !isOpen(pPager->jfd) && !isOpen(pPager->sjfd) ); assert 40639 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 40642 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 40643 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 40649 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->tempFile ); assert 40652 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); assert 40743 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 40783 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 40784 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_DBMOD ); assert 40785 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==EXCLUSIVE_LOCK ); assert 40792 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->tempFile && rc==SQLITE_OK ); assert 40799 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->fd) ); assert 40821 ext/sqlite3/libsqlite/sqlite3.c assert( (pList->flags&PGHDR_NEED_SYNC)==0 ); assert 40898 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->useJournal ); assert 40899 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) || pagerUseWal(pPager) ); assert 40900 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->sjfd) || pPager->nSubRec==0 ); assert 40901 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager) assert 40924 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->nSavepoint>0 ); assert 40953 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pPager==pPager ); assert 40954 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->flags&PGHDR_DIRTY ); assert 41030 ext/sqlite3/libsqlite/sqlite3.c assert( (pPg->flags&PGHDR_NEED_SYNC)==0 ); assert 41182 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(SQLITE_INT_TO_PTR(journalFileSize)) ); assert 41193 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pPager->jfd) ); assert 41197 ext/sqlite3/libsqlite/sqlite3.c assert( nPathname>0 ); assert 41220 ext/sqlite3/libsqlite/sqlite3.c assert( !memDb ); assert 41233 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_DEFAULT_PAGE_SIZE<=SQLITE_MAX_DEFAULT_PAGE_SIZE); assert 41245 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC512==(512>>8)); assert 41246 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC64K==(65536>>8)); assert 41247 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_MAX_DEFAULT_PAGE_SIZE<=65536); assert 41275 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->memDb==0 ); assert 41284 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->pTmpSpace ); assert 41291 ext/sqlite3/libsqlite/sqlite3.c assert( nExtra<1000 ); assert 41310 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->state == (tempFile ? PAGER_EXCLUSIVE : PAGER_UNLOCK) ); assert 41314 ext/sqlite3/libsqlite/sqlite3.c assert( tempFile==PAGER_LOCKINGMODE_NORMAL assert 41316 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_LOCKINGMODE_EXCLUSIVE==1 ); assert 41321 ext/sqlite3/libsqlite/sqlite3.c assert( useJournal || pPager->tempFile ); assert 41331 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || tempFile ); assert 41386 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->useJournal ); assert 41387 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); assert 41388 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 41390 ext/sqlite3/libsqlite/sqlite3.c assert( jrnlOpen==0 || ( sqlite3OsDeviceCharacteristics(pPager->jfd) & assert 41505 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PcacheRefCount(pPager->pPCache)==0 ); assert 41506 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 41507 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER ); assert 41513 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 41514 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->noReadlock==0 || pPager->readOnly ); assert 41519 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==NO_LOCK || pPager->eLock==UNKNOWN_LOCK ); assert 41575 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->tempFile ); assert 41577 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->jfd) ); assert 41594 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 41625 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 41626 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->eLock==SHARED_LOCK) assert 41676 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pWal==0 || rc==SQLITE_OK ); assert 41681 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 41691 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 41693 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 41773 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER ); assert 41774 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 41795 ext/sqlite3/libsqlite/sqlite3.c assert( (*ppPage)->pgno==pgno ); assert 41796 ext/sqlite3/libsqlite/sqlite3.c assert( (*ppPage)->pPager==pPager || (*ppPage)->pPager==0 ); assert 41801 ext/sqlite3/libsqlite/sqlite3.c assert( pgno<=PAGER_MAX_PGNO && pgno!=PAGER_MJ_PGNO(pPager) ); assert 41844 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pPager==pPager ); assert 41856 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK ); assert 41879 ext/sqlite3/libsqlite/sqlite3.c assert( pPager!=0 ); assert 41880 ext/sqlite3/libsqlite/sqlite3.c assert( pgno!=0 ); assert 41881 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pPCache!=0 ); assert 41882 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER && pPager->eState!=PAGER_ERROR ); assert 41929 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED ); assert 41930 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 41931 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pInJournal==0 ); assert 41963 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->jfd) ); assert 41984 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED ); assert 42012 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER && pPager->eState<PAGER_ERROR ); assert 42016 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pInJournal==0 ); assert 42065 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pPager->eState==PAGER_READER ); assert 42066 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pPager->eState==PAGER_WRITER_LOCKED ); assert 42067 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42090 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED assert 42094 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42119 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD ); assert 42120 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42127 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 42135 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager)==0 ); assert 42144 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pgno!=PAGER_MJ_PGNO(pPager) ); assert 42146 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalHdr<=pPager->journalOff ); assert 42175 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pInJournal!=0 ); assert 42178 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_NOMEM ); assert 42181 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM ); assert 42233 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_LOCKED ); assert 42234 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 42235 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42248 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 42249 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->doNotSyncSpill==0 ); assert 42266 ext/sqlite3/libsqlite/sqlite3.c assert(nPage>0); assert 42267 ext/sqlite3/libsqlite/sqlite3.c assert(pg1<=pPg->pgno); assert 42268 ext/sqlite3/libsqlite/sqlite3.c assert((pg1+nPage)>pPg->pgno); assert 42299 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 42309 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->doNotSyncSpill==1 ); assert 42377 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 42380 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42394 ext/sqlite3/libsqlite/sqlite3.c assert( isDirectMode==0 ); assert 42403 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->tempFile && isOpen(pPager->fd) ); assert 42407 ext/sqlite3/libsqlite/sqlite3.c assert( pPgHdr==0 || rc==SQLITE_OK ); assert 42425 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbFileSize>0 ); assert 42454 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 42457 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 42476 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 42480 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42520 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED assert 42525 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42553 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 42589 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) assert 42671 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_IOERR_BLOCKED ); assert 42681 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_DBMOD ); assert 42725 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED assert 42729 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42746 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalOff==JOURNAL_HDR_SZ(pPager) || !pPager->journalOff ); assert 42790 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42815 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER || rc!=SQLITE_OK ); assert 42816 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_FULL || (rc&0xFF)==SQLITE_IOERR ); assert 42900 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_LOCKED ); assert 42901 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 42938 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->nSavepoint==nSavepoint ); assert 42978 ext/sqlite3/libsqlite/sqlite3.c assert( op==SAVEPOINT_RELEASE || op==SAVEPOINT_ROLLBACK ); assert 42979 ext/sqlite3/libsqlite/sqlite3.c assert( iSavepoint>=0 || op==SAVEPOINT_ROLLBACK ); assert 43002 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 43015 ext/sqlite3/libsqlite/sqlite3.c assert(rc!=SQLITE_DONE); assert 43115 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->nRef>0 ); assert 43116 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 43119 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 43167 ext/sqlite3/libsqlite/sqlite3.c assert( pageInJournal(pPg) || pPg->pgno>pPager->dbOrigSize ); assert 43168 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->flags&PGHDR_DIRTY ); assert 43178 ext/sqlite3/libsqlite/sqlite3.c assert( !pPgOld || pPgOld->nRef==1 ); assert 43199 ext/sqlite3/libsqlite/sqlite3.c assert( pPgOld ); assert 43223 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pTmpSpace!=0 ); assert 43241 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->nRef>0 || pPg->pPager->memDb ); assert 43264 ext/sqlite3/libsqlite/sqlite3.c assert( eMode==PAGER_LOCKINGMODE_QUERY assert 43267 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_LOCKINGMODE_QUERY<0 ); assert 43268 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_LOCKINGMODE_NORMAL>=0 && PAGER_LOCKINGMODE_EXCLUSIVE>=0 ); assert 43269 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->exclusiveMode || 0==sqlite3WalHeapMemory(pPager->pWal) ); assert 43307 ext/sqlite3/libsqlite/sqlite3.c assert( eMode==PAGER_JOURNALMODE_DELETE assert 43318 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->tempFile==0 || eMode!=PAGER_JOURNALMODE_WAL ); assert 43324 ext/sqlite3/libsqlite/sqlite3.c assert( eOld==PAGER_JOURNALMODE_MEMORY || eOld==PAGER_JOURNALMODE_OFF ); assert 43333 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 43340 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_TRUNCATE & 5)==1 ); assert 43341 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_PERSIST & 5)==1 ); assert 43342 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_DELETE & 5)==0 ); assert 43343 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_MEMORY & 5)==4 ); assert 43344 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_OFF & 5)==0 ); assert 43345 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_WAL & 5)==5 ); assert 43347 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->exclusiveMode ); assert 43364 ext/sqlite3/libsqlite/sqlite3.c assert( state==PAGER_OPEN || state==PAGER_READER ); assert 43369 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 43380 ext/sqlite3/libsqlite/sqlite3.c assert( state==pPager->eState ); assert 43402 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 43472 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK ); assert 43492 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pWal==0 && pPager->tempFile==0 ); assert 43493 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK || pPager->noReadlock); assert 43539 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 43540 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN || pbOpen ); assert 43541 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER || !pbOpen ); assert 43542 ext/sqlite3/libsqlite/sqlite3.c assert( pbOpen==0 || *pbOpen==0 ); assert 43543 ext/sqlite3/libsqlite/sqlite3.c assert( pbOpen!=0 || (!pPager->tempFile && !pPager->pWal) ); assert 43575 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalMode==PAGER_JOURNALMODE_WAL ); assert 44174 ext/sqlite3/libsqlite/sqlite3.c assert( iPage==0 || *ppPage || rc!=SQLITE_OK ); assert 44182 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>0 && pWal->apWiData[0] ); assert 44190 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>0 && pWal->apWiData[0] ); assert 44233 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>=8 ); assert 44234 ext/sqlite3/libsqlite/sqlite3.c assert( (nByte&0x00000007)==0 ); assert 44268 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 44299 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_FRAME_HDRSIZE==24 ); assert 44327 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_FRAME_HDRSIZE==24 ); assert 44436 ext/sqlite3/libsqlite/sqlite3.c assert( iPage>0 ); assert 44437 ext/sqlite3/libsqlite/sqlite3.c assert( (HASHTABLE_NSLOT & (HASHTABLE_NSLOT-1))==0 ); assert 44469 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || iHash>0 ); assert 44498 ext/sqlite3/libsqlite/sqlite3.c assert( (iHash==0 || iFrame>HASHTABLE_NPAGE_ONE) assert 44538 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 44549 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>walFramePage(pWal->hdr.mxFrame) ); assert 44550 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->apWiData[walFramePage(pWal->hdr.mxFrame)] ); assert 44557 ext/sqlite3/libsqlite/sqlite3.c assert( iLimit>0 ); assert 44581 ext/sqlite3/libsqlite/sqlite3.c assert( aHash[iKey]==i ); assert 44609 ext/sqlite3/libsqlite/sqlite3.c assert( idx <= HASHTABLE_NSLOT/2 + 1 ); assert 44627 ext/sqlite3/libsqlite/sqlite3.c assert( !aPgno[idx] ); assert 44646 ext/sqlite3/libsqlite/sqlite3.c assert( nEntry==idx ); assert 44660 ext/sqlite3/libsqlite/sqlite3.c assert( aHash[iKey]==i ); assert 44694 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->ckptLock==1 || pWal->ckptLock==0 ); assert 44695 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_ALL_BUT_WRITE==WAL_WRITE_LOCK+1 ); assert 44696 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_CKPT_LOCK==WAL_ALL_BUT_WRITE ); assert 44697 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 44883 ext/sqlite3/libsqlite/sqlite3.c assert( zWalName && zWalName[0] ); assert 44884 ext/sqlite3/libsqlite/sqlite3.c assert( pDbFd ); assert 44891 ext/sqlite3/libsqlite/sqlite3.c assert( WIN_SHM_BASE==WALINDEX_LOCK_OFFSET ); assert 44894 ext/sqlite3/libsqlite/sqlite3.c assert( UNIX_SHM_BASE==WALINDEX_LOCK_OFFSET ); assert 44958 ext/sqlite3/libsqlite/sqlite3.c assert( iMin<0xffffffff ); assert 45015 ext/sqlite3/libsqlite/sqlite3.c assert( nLeft>0 && nRight>0 ); assert 45032 ext/sqlite3/libsqlite/sqlite3.c assert( iLeft>=nLeft || aContent[aLeft[iLeft]]>dbpage ); assert 45033 ext/sqlite3/libsqlite/sqlite3.c assert( iRight>=nRight || aContent[aRight[iRight]]>dbpage ); assert 45077 ext/sqlite3/libsqlite/sqlite3.c assert( nList<=HASHTABLE_NPAGE && nList>0 ); assert 45078 ext/sqlite3/libsqlite/sqlite3.c assert( HASHTABLE_NPAGE==(1<<(ArraySize(aSub)-1)) ); assert 45085 ext/sqlite3/libsqlite/sqlite3.c assert( p->aList && p->nList<=(1<<iSub) ); assert 45086 ext/sqlite3/libsqlite/sqlite3.c assert( p->aList==&aList[iList&~((2<<iSub)-1)] ); assert 45096 ext/sqlite3/libsqlite/sqlite3.c assert( p->nList<=(1<<iSub) ); assert 45097 ext/sqlite3/libsqlite/sqlite3.c assert( p->aList==&aList[nList&~((2<<iSub)-1)] ); assert 45101 ext/sqlite3/libsqlite/sqlite3.c assert( aMerge==aList ); assert 45108 ext/sqlite3/libsqlite/sqlite3.c assert( aContent[aList[i]] > aContent[aList[i-1]] ); assert 45145 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->ckptLock && pWal->hdr.mxFrame>0 ); assert 45298 ext/sqlite3/libsqlite/sqlite3.c assert( pIter ); assert 45312 ext/sqlite3/libsqlite/sqlite3.c assert( y<=pWal->hdr.mxFrame ); assert 45351 ext/sqlite3/libsqlite/sqlite3.c assert( walFramePgno(pWal, iFrame)==iDbpage ); assert 45394 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 45398 ext/sqlite3/libsqlite/sqlite3.c assert( mxSafeFrame==pWal->hdr.mxFrame ); assert 45480 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>0 && pWal->apWiData[0] ); assert 45540 ext/sqlite3/libsqlite/sqlite3.c assert( pChanged ); assert 45545 ext/sqlite3/libsqlite/sqlite3.c assert( page0 || pWal->writeLock==0 ); assert 45557 ext/sqlite3/libsqlite/sqlite3.c assert( badHdr==0 || pWal->writeLock==0 ); assert 45656 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock<0 ); /* Not currently locked */ assert 45759 ext/sqlite3/libsqlite/sqlite3.c assert( thisMark!=READMARK_NOT_USED ); assert 45782 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_BUSY || (pWal->readOnly & WAL_SHM_RDONLY)!=0 ); assert 45817 ext/sqlite3/libsqlite/sqlite3.c assert( mxReadMark<=pWal->hdr.mxFrame ); assert 45884 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 || pWal->lockError ); assert 45938 ext/sqlite3/libsqlite/sqlite3.c assert( iFrame>iRead ); assert 45960 ext/sqlite3/libsqlite/sqlite3.c assert( iRead==iRead2 ); assert 46014 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 ); assert 46092 ext/sqlite3/libsqlite/sqlite3.c assert( walFramePgno(pWal, iFrame)!=1 ); assert 46097 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 46108 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 46124 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 46125 ext/sqlite3/libsqlite/sqlite3.c assert( aWalData[3]!=pWal->nCkpt || aWalData[0]<=pWal->hdr.mxFrame ); assert 46164 ext/sqlite3/libsqlite/sqlite3.c assert( pInfo->nBackfill==pWal->hdr.mxFrame ); assert 46207 ext/sqlite3/libsqlite/sqlite3.c assert( pInfo->aReadMark[0]==0 ); assert 46220 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xff)!=SQLITE_BUSY ); /* BUSY not possible when useWal==1 */ assert 46247 ext/sqlite3/libsqlite/sqlite3.c assert( pList ); assert 46248 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 46294 ext/sqlite3/libsqlite/sqlite3.c assert( (int)pWal->szPage==szPage ); assert 46331 ext/sqlite3/libsqlite/sqlite3.c assert( isCommit ); assert 46332 ext/sqlite3/libsqlite/sqlite3.c assert( iSegment>0 ); assert 46422 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->ckptLock==0 ); assert 46423 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock==0 ); assert 46533 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock==0 ); assert 46534 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->exclusiveMode!=WAL_HEAPMEMORY_MODE || op==-1 ); assert 46542 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 || pWal->lockError ); assert 46543 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) ); assert 46557 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->exclusiveMode==0 ); assert 46558 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 ); assert 47201 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->inTransaction!=TRANS_NONE || p->pBt->nTransaction==0 ); \ assert 47202 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->inTransaction>=p->inTrans ); assert 47254 ext/sqlite3/libsqlite/sqlite3.c assert( p->locked==0 ); assert 47255 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(p->pBt->mutex) ); assert 47256 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 47269 ext/sqlite3/libsqlite/sqlite3.c assert( p->locked==1 ); assert 47270 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 47271 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 47272 ext/sqlite3/libsqlite/sqlite3.c assert( p->db==pBt->db ); assert 47301 ext/sqlite3/libsqlite/sqlite3.c assert( p->pNext==0 || p->pNext->pBt>p->pBt ); assert 47302 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrev==0 || p->pPrev->pBt<p->pBt ); assert 47303 ext/sqlite3/libsqlite/sqlite3.c assert( p->pNext==0 || p->pNext->db==p->db ); assert 47304 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrev==0 || p->pPrev->db==p->db ); assert 47305 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable || (p->pNext==0 && p->pPrev==0) ); assert 47308 ext/sqlite3/libsqlite/sqlite3.c assert( !p->locked || p->wantToLock>0 ); assert 47309 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable || p->wantToLock==0 ); assert 47312 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 47316 ext/sqlite3/libsqlite/sqlite3.c assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db ); assert 47338 ext/sqlite3/libsqlite/sqlite3.c assert( pLater->sharable ); assert 47339 ext/sqlite3/libsqlite/sqlite3.c assert( pLater->pNext==0 || pLater->pNext->pBt>pLater->pBt ); assert 47340 ext/sqlite3/libsqlite/sqlite3.c assert( !pLater->locked || pLater->wantToLock>0 ); assert 47358 ext/sqlite3/libsqlite/sqlite3.c assert( p->wantToLock>0 ); assert 47374 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || p->wantToLock>0 ); assert 47375 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || p->db==p->pBt->db ); assert 47376 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->pBt->mutex) ); assert 47377 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->db->mutex) ); assert 47416 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 47425 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 47478 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 47480 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 47484 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 47741 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 47742 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || eLock==WRITE_LOCK ); assert 47743 ext/sqlite3/libsqlite/sqlite3.c assert( p->db!=0 ); assert 47744 ext/sqlite3/libsqlite/sqlite3.c assert( !(p->db->flags&SQLITE_ReadUncommitted)||eLock==WRITE_LOCK||iTab==1 ); assert 47750 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || (p==pBt->pWriter && p->inTrans==TRANS_WRITE) ); assert 47751 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || pBt->inTransaction==TRANS_WRITE ); assert 47776 ext/sqlite3/libsqlite/sqlite3.c assert( pIter->eLock==READ_LOCK || pIter->eLock==WRITE_LOCK ); assert 47777 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || pIter->pBtree==p || pIter->eLock==READ_LOCK); assert 47781 ext/sqlite3/libsqlite/sqlite3.c assert( p==pBt->pWriter ); assert 47814 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 47815 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || eLock==WRITE_LOCK ); assert 47816 ext/sqlite3/libsqlite/sqlite3.c assert( p->db!=0 ); assert 47822 ext/sqlite3/libsqlite/sqlite3.c assert( 0==(p->db->flags&SQLITE_ReadUncommitted) || eLock==WRITE_LOCK ); assert 47826 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable ); assert 47827 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OK==querySharedCacheTableLock(p, iTable, eLock) ); assert 47855 ext/sqlite3/libsqlite/sqlite3.c assert( WRITE_LOCK>READ_LOCK ); assert 47877 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 47878 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable || 0==*ppIter ); assert 47879 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>0 ); assert 47883 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->isExclusive==0 || pBt->pWriter==pLock->pBtree ); assert 47884 ext/sqlite3/libsqlite/sqlite3.c assert( pLock->pBtree->inTrans>=pLock->eLock ); assert 47887 ext/sqlite3/libsqlite/sqlite3.c assert( pLock->iTable!=1 || pLock==&p->lock ); assert 47896 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->isPending==0 || pBt->pWriter ); assert 47926 ext/sqlite3/libsqlite/sqlite3.c assert( pLock->eLock==READ_LOCK || pLock->pBtree==p ); assert 47953 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 47964 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 47990 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(pBtree) ); assert 48043 ext/sqlite3/libsqlite/sqlite3.c assert( pgno<=pBt->nPage ); assert 48086 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_VALID==pCur->eState ); assert 48087 ext/sqlite3/libsqlite/sqlite3.c assert( 0==pCur->pKey ); assert 48088 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 48091 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* KeySize() cannot fail */ assert 48112 ext/sqlite3/libsqlite/sqlite3.c assert( !pCur->apPage[0]->intKey || !pCur->pKey ); assert 48135 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 48136 ext/sqlite3/libsqlite/sqlite3.c assert( pExcept==0 || pExcept->pBt==pBt ); assert 48153 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 48176 ext/sqlite3/libsqlite/sqlite3.c assert( nKey==(i64)(int)nKey ); assert 48199 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 48200 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState>=CURSOR_REQUIRESEEK ); assert 48209 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_INVALID ); assert 48256 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 48286 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 48288 ext/sqlite3/libsqlite/sqlite3.c assert( 0==PTRMAP_ISPAGE(pBt, PENDING_BYTE_PAGE(pBt)) ); assert 48290 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum ); assert 48306 ext/sqlite3/libsqlite/sqlite3.c assert( offset <= (int)pBt->usableSize-5 ); assert 48336 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 48350 ext/sqlite3/libsqlite/sqlite3.c assert( offset <= (int)pBt->usableSize-5 ); assert 48351 ext/sqlite3/libsqlite/sqlite3.c assert( pEType!=0 ); assert 48384 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 48417 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 48420 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf==0 || pPage->leaf==1 ); assert 48422 ext/sqlite3/libsqlite/sqlite3.c assert( n==4-4*pPage->leaf ); assert 48540 ext/sqlite3/libsqlite/sqlite3.c assert( nSize==debuginfo.nSize ); assert 48561 ext/sqlite3/libsqlite/sqlite3.c assert( pCell!=0 ); assert 48563 ext/sqlite3/libsqlite/sqlite3.c assert( (info.nData+(pPage->intKey?0:info.nKey))==info.nPayload ); assert 48593 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 48594 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt!=0 ); assert 48595 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt->usableSize <= SQLITE_MAX_PAGE_SIZE ); assert 48596 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow==0 ); assert 48597 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 48603 ext/sqlite3/libsqlite/sqlite3.c assert( nCell==get2byte(&data[hdr+3]) ); assert 48624 ext/sqlite3/libsqlite/sqlite3.c assert( pc>=iCellFirst && pc<=iCellLast ); assert 48636 ext/sqlite3/libsqlite/sqlite3.c assert( cbrk+size<=usableSize && cbrk>=iCellFirst ); assert 48642 ext/sqlite3/libsqlite/sqlite3.c assert( cbrk>=iCellFirst ); assert 48648 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 48677 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 48678 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt ); assert 48679 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 48680 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>=0 ); /* Minimum cell size is 4 */ assert 48681 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nFree>=nByte ); assert 48682 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow==0 ); assert 48684 ext/sqlite3/libsqlite/sqlite3.c assert( nByte < usableSize-8 ); assert 48687 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->cellOffset == hdr + 12 - 4*pPage->leaf ); assert 48742 ext/sqlite3/libsqlite/sqlite3.c assert( gap+nByte<=top ); assert 48754 ext/sqlite3/libsqlite/sqlite3.c assert( top+nByte <= (int)pPage->pBt->usableSize ); assert 48772 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt!=0 ); assert 48773 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 48774 ext/sqlite3/libsqlite/sqlite3.c assert( start>=pPage->hdrOffset+6+pPage->childPtrSize ); assert 48775 ext/sqlite3/libsqlite/sqlite3.c assert( (start + size) <= (int)pPage->pBt->usableSize ); assert 48776 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 48777 ext/sqlite3/libsqlite/sqlite3.c assert( size>=0 ); /* Minimum cell size is 4 */ assert 48797 ext/sqlite3/libsqlite/sqlite3.c assert( start<=iLast ); assert 48807 ext/sqlite3/libsqlite/sqlite3.c assert( pbegin>addr || pbegin==0 ); assert 48817 ext/sqlite3/libsqlite/sqlite3.c assert( pbegin>addr ); assert 48818 ext/sqlite3/libsqlite/sqlite3.c assert( pbegin <= (int)pPage->pBt->usableSize-4 ); assert 48844 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 48863 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->hdrOffset==(pPage->pgno==1 ? 100 : 0) ); assert 48864 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 48865 ext/sqlite3/libsqlite/sqlite3.c pPage->leaf = (u8)(flagByte>>3); assert( PTF_LEAF == 1<<3 ); assert 48896 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt!=0 ); assert 48897 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 48898 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pgno==sqlite3PagerPagenumber(pPage->pDbPage) ); assert 48899 ext/sqlite3/libsqlite/sqlite3.c assert( pPage == sqlite3PagerGetExtra(pPage->pDbPage) ); assert 48900 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->aData == sqlite3PagerGetData(pPage->pDbPage) ); assert 48919 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pageSize>=512 && pBt->pageSize<=65536 ); assert 49010 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerPagenumber(pPage->pDbPage)==pPage->pgno ); assert 49011 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetExtra(pPage->pDbPage) == (void*)pPage ); assert 49012 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetData(pPage->pDbPage) == data ); assert 49013 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 49014 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 49028 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pageSize>=512 && pBt->pageSize<=65536 ); assert 49069 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 49083 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 49099 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 49100 ext/sqlite3/libsqlite/sqlite3.c assert( ((p->pBt->nPage)&0x8000000)==0 ); assert 49118 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 49133 ext/sqlite3/libsqlite/sqlite3.c assert( pgno!=0 || rc==SQLITE_CORRUPT ); assert 49143 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->aData ); assert 49144 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt ); assert 49145 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetExtra(pPage->pDbPage) == (void*)pPage ); assert 49146 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetData(pPage->pDbPage)==pPage->aData ); assert 49147 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 49163 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerPageRefcount(pData)>0 ); assert 49165 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 49184 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->db ); assert 49185 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->db->mutex) ); assert 49241 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 49242 ext/sqlite3/libsqlite/sqlite3.c assert( pVfs!=0 ); assert 49243 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 49244 ext/sqlite3/libsqlite/sqlite3.c assert( (flags&0xff)==flags ); /* flags fit in 8 bits */ assert 49247 ext/sqlite3/libsqlite/sqlite3.c assert( (flags & BTREE_UNORDERED)==0 || (flags & BTREE_SINGLE)!=0 ); assert 49250 ext/sqlite3/libsqlite/sqlite3.c assert( (flags & BTREE_SINGLE)==0 || isTempDb ); assert 49293 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nRef>0 ); assert 49333 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(i64)==8 || sizeof(i64)==4 ); assert 49334 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u64)==8 || sizeof(u64)==4 ); assert 49335 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u32)==4 ); assert 49336 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u16)==2 ); assert 49337 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(Pgno)==4 ); assert 49391 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->pageSize & 7)==0 ); /* 8-byte alignment of pageSize */ assert 49467 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mutexOpen) ); assert 49485 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pBt->mutex) ); assert 49539 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 49561 ext/sqlite3/libsqlite/sqlite3.c assert( p->wantToLock==0 && p->locked==0 ); assert 49568 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->pCursor ); assert 49579 ext/sqlite3/libsqlite/sqlite3.c assert( p->wantToLock==0 ); assert 49580 ext/sqlite3/libsqlite/sqlite3.c assert( p->locked==0 ); assert 49606 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 49629 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 49630 ext/sqlite3/libsqlite/sqlite3.c assert( level>=1 && level<=3 ); assert 49645 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 49647 ext/sqlite3/libsqlite/sqlite3.c assert( pBt && pBt->pPager ); assert 49676 ext/sqlite3/libsqlite/sqlite3.c assert( nReserve>=-1 && nReserve<=255 ); assert 49685 ext/sqlite3/libsqlite/sqlite3.c assert( nReserve>=0 && nReserve<=255 ); assert 49688 ext/sqlite3/libsqlite/sqlite3.c assert( (pageSize & 7)==0 ); assert 49689 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->pPage1 && !pBt->pCursor ); assert 49815 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 49816 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1==0 ); assert 49890 ext/sqlite3/libsqlite/sqlite3.c assert( (pageSize & 7)==0 ); assert 49939 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->maxLeaf + 23 <= MX_CELL_SIZE(pBt) ); assert 49959 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 49960 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pCursor==0 || pBt->inTransaction>TRANS_NONE ); assert 49962 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1->aData ); assert 49963 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerRefcount(pBt->pPager)==1 ); assert 49964 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1->aData ); assert 49980 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 49985 ext/sqlite3/libsqlite/sqlite3.c assert( pP1!=0 ); assert 49990 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(zMagicHeader)==16 ); assert 49995 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->usableSize<=pBt->pageSize && pBt->usableSize+255>=pBt->pageSize); assert 50004 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum==1 || pBt->autoVacuum==0 ); assert 50005 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->incrVacuum==1 || pBt->incrVacuum==0 ); assert 50133 ext/sqlite3/libsqlite/sqlite3.c assert( p->lock.pBtree==p && p->lock.iTable==1 ); assert 50147 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->pWriter ); assert 50197 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 50240 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 50241 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 50311 ext/sqlite3/libsqlite/sqlite3.c assert( eType==PTRMAP_OVERFLOW2 || eType==PTRMAP_OVERFLOW1 || assert 50313 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 50314 ext/sqlite3/libsqlite/sqlite3.c assert( pDbPage->pBt==pBt ); assert 50396 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 50397 ext/sqlite3/libsqlite/sqlite3.c assert( iLastPg>nFin ); assert 50429 ext/sqlite3/libsqlite/sqlite3.c assert( iFreePg==iLastPg ); assert 50457 ext/sqlite3/libsqlite/sqlite3.c assert( iFreePg<iLastPg ); assert 50506 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE && p->inTrans==TRANS_WRITE ); assert 50535 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 50537 ext/sqlite3/libsqlite/sqlite3.c assert(pBt->autoVacuum); assert 50583 ext/sqlite3/libsqlite/sqlite3.c assert( nRef==sqlite3PagerRefcount(pPager) ); assert 50643 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 50712 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 50713 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nTransaction>0 ); assert 50828 ext/sqlite3/libsqlite/sqlite3.c assert( TRANS_WRITE==pBt->inTransaction ); assert 50845 ext/sqlite3/libsqlite/sqlite3.c assert( countWriteCursors(pBt)==0 ); assert 50876 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 50877 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->readOnly==0 ); assert 50878 ext/sqlite3/libsqlite/sqlite3.c assert( iStatement>0 ); assert 50879 ext/sqlite3/libsqlite/sqlite3.c assert( iStatement>p->db->nSavepoint ); assert 50880 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 50907 ext/sqlite3/libsqlite/sqlite3.c assert( op==SAVEPOINT_RELEASE || op==SAVEPOINT_ROLLBACK ); assert 50908 ext/sqlite3/libsqlite/sqlite3.c assert( iSavepoint>=0 || (iSavepoint==-1 && op==SAVEPOINT_ROLLBACK) ); assert 50919 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nPage>0 ); assert 50967 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 50968 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 || wrFlag==1 ); assert 50974 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(p, iTable, pKeyInfo!=0, wrFlag+1) ); assert 50975 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 || !hasReadConflicts(p, iTable) ); assert 50978 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>TRANS_NONE ); assert 50979 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 || p->inTrans==TRANS_WRITE ); assert 50980 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1 && pBt->pPage1->aData ); assert 51061 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->cachedRowid==iRowid ); assert 51125 ext/sqlite3/libsqlite/sqlite3.c assert( memcmp(&info, &pCur->info, sizeof(info))==0 ); assert 51177 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51178 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_INVALID || pCur->eState==CURSOR_VALID ); assert 51201 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51202 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51237 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 51238 ext/sqlite3/libsqlite/sqlite3.c assert(pPgnoNext); assert 51266 ext/sqlite3/libsqlite/sqlite3.c assert( next==0 || rc==SQLITE_DONE ); assert 51269 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pPage==0 ); assert 51358 ext/sqlite3/libsqlite/sqlite3.c assert( pPage ); assert 51359 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51360 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pPage->nCell ); assert 51361 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51428 ext/sqlite3/libsqlite/sqlite3.c assert(!pCur->aOverflow[iIdx] || pCur->aOverflow[iIdx]==nextPage); assert 51489 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51490 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51491 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>=0 && pCur->apPage[pCur->iPage] ); assert 51492 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pCur->apPage[pCur->iPage]->nCell ); assert 51514 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51517 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51518 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>=0 && pCur->apPage[pCur->iPage] ); assert 51519 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pCur->apPage[pCur->iPage]->nCell ); assert 51554 ext/sqlite3/libsqlite/sqlite3.c assert( pCur!=0 && pCur->iPage>=0 && pCur->apPage[pCur->iPage]); assert 51555 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51556 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51558 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pPage->nCell ); assert 51575 ext/sqlite3/libsqlite/sqlite3.c assert( nLocal<=nKey ); assert 51598 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 51599 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51607 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 51608 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51631 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51632 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51633 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage<BTCURSOR_MAX_DEPTH ); assert 51660 ext/sqlite3/libsqlite/sqlite3.c assert( iIdx<=pParent->nCell ); assert 51662 ext/sqlite3/libsqlite/sqlite3.c assert( get4byte(&pParent->aData[pParent->hdrOffset+8])==iChild ); assert 51664 ext/sqlite3/libsqlite/sqlite3.c assert( get4byte(findCell(pParent, iIdx))==iChild ); assert 51680 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51681 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51682 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>0 ); assert 51683 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage] ); assert 51722 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51723 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_INVALID < CURSOR_REQUIRESEEK ); assert 51724 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_VALID < CURSOR_REQUIRESEEK ); assert 51725 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_FAULT > CURSOR_REQUIRESEEK ); assert 51728 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext!=SQLITE_OK ); assert 51752 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[0]->intKey==1 || pCur->apPage[0]->intKey==0 ); assert 51765 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->pgno==pCur->pgnoRoot ); assert 51766 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->isInit && (pCur->pKeyInfo==0)==pRoot->intKey ); assert 51797 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51798 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51800 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pPage->nCell ); assert 51822 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51823 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51844 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51845 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 51849 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nCell==0 ); assert 51852 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nCell>0 ); assert 51867 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51868 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 51877 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[ii]==pCur->apPage[ii]->nCell ); assert 51879 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]==pCur->apPage[pCur->iPage]->nCell-1 ); assert 51880 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->leaf ); assert 51888 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nCell==0 ); assert 51891 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 51937 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 51938 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 51939 ext/sqlite3/libsqlite/sqlite3.c assert( pRes ); assert 51940 ext/sqlite3/libsqlite/sqlite3.c assert( (pIdxKey==0)==(pCur->pKeyInfo==0) ); assert 51961 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage] ); assert 51962 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->isInit ); assert 51963 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nCell>0 || pCur->eState==CURSOR_INVALID ); assert 51966 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nCell==0 ); assert 51969 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[0]->intKey || pIdxKey ); assert 51982 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nCell>0 ); assert 51983 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->intKey==(pIdxKey==0) ); assert 51994 ext/sqlite3/libsqlite/sqlite3.c assert( idx==pCur->aiIdx[pCur->iPage] ); assert 52009 ext/sqlite3/libsqlite/sqlite3.c assert( nCellKey>intKey ); assert 52079 ext/sqlite3/libsqlite/sqlite3.c assert( lwr==upr+1 ); assert 52080 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 52089 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pCur->apPage[pCur->iPage]->nCell ); assert 52131 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 52136 ext/sqlite3/libsqlite/sqlite3.c assert( pRes!=0 ); assert 52150 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 52151 ext/sqlite3/libsqlite/sqlite3.c assert( idx<=pPage->nCell ); assert 52199 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 52217 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 52285 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 52305 ext/sqlite3/libsqlite/sqlite3.c assert( nearby>0 ); assert 52306 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum ); assert 52350 ext/sqlite3/libsqlite/sqlite3.c assert( pPrevTrunk==0 ); assert 52369 ext/sqlite3/libsqlite/sqlite3.c assert( *pPgno==iTrunk ); assert 52412 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage1->pDbPage) ); assert 52495 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nPage!=PENDING_BYTE_PAGE(pBt) ); assert 52509 ext/sqlite3/libsqlite/sqlite3.c assert( *pPgno!=PENDING_BYTE_PAGE(pBt) ); assert 52519 ext/sqlite3/libsqlite/sqlite3.c assert( *pPgno!=PENDING_BYTE_PAGE(pBt) ); assert 52533 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || sqlite3PagerIswriteable((*ppPage)->pDbPage) ); assert 52557 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 52558 ext/sqlite3/libsqlite/sqlite3.c assert( iPage>1 ); assert 52559 ext/sqlite3/libsqlite/sqlite3.c assert( !pMemPage || pMemPage->pgno==iPage ); assert 52611 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->usableSize>32 ); assert 52688 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 52694 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->usableSize > 4 ); assert 52697 ext/sqlite3/libsqlite/sqlite3.c assert( ovflPgno==0 || nOvfl>0 ); assert 52772 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 52776 ext/sqlite3/libsqlite/sqlite3.c assert( pCell<pPage->aData || pCell>=&pPage->aData[pBt->pageSize] assert 52791 ext/sqlite3/libsqlite/sqlite3.c assert( info.nHeader==nHeader ); assert 52792 ext/sqlite3/libsqlite/sqlite3.c assert( info.nKey==nKey ); assert 52793 ext/sqlite3/libsqlite/sqlite3.c assert( info.nData==(u32)(nData+nZero) ); assert 52853 ext/sqlite3/libsqlite/sqlite3.c assert( pToRelease==0 || sqlite3PagerIswriteable(pToRelease->pDbPage) ); assert 52857 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior<pPage->aData || pPrior>=&pPage->aData[pBt->pageSize] assert 52873 ext/sqlite3/libsqlite/sqlite3.c assert( pToRelease==0 || sqlite3PagerIswriteable(pToRelease->pDbPage) ); assert 52877 ext/sqlite3/libsqlite/sqlite3.c assert( pPayload<pPage->aData || pPayload>=&pPage->aData[pBt->pageSize] assert 52882 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc ); assert 52919 ext/sqlite3/libsqlite/sqlite3.c assert( idx>=0 && idx<pPage->nCell ); assert 52920 ext/sqlite3/libsqlite/sqlite3.c assert( sz==cellSize(pPage, idx) ); assert 52921 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 52922 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 52939 ext/sqlite3/libsqlite/sqlite3.c assert( (SQLITE_PTR_TO_INT(ptr)&1)==0 ); /* ptr is always 2-byte aligned */ assert 52988 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<=pPage->nCell+pPage->nOverflow ); assert 52989 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nCell<=MX_CELL(pPage->pBt) && MX_CELL(pPage->pBt)<=10921 ); assert 52990 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow<=ArraySize(pPage->aOvfl) ); assert 52991 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 52997 ext/sqlite3/libsqlite/sqlite3.c assert( sz==cellSizePtr(pPage, pCell) || (sz==8 && iChild>0) ); assert 53007 ext/sqlite3/libsqlite/sqlite3.c assert( j<(int)(sizeof(pPage->aOvfl)/sizeof(pPage->aOvfl[0])) ); assert 53016 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 53025 ext/sqlite3/libsqlite/sqlite3.c assert( idx >= end+2 ); assert 53026 ext/sqlite3/libsqlite/sqlite3.c assert( idx+sz <= (int)pPage->pBt->usableSize ); assert 53035 ext/sqlite3/libsqlite/sqlite3.c assert( (SQLITE_PTR_TO_INT(ptr)&1)==0 ); /* ptr is always 2-byte aligned */ assert 53070 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow==0 ); assert 53071 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 53072 ext/sqlite3/libsqlite/sqlite3.c assert( nCell>=0 && nCell<=(int)MX_CELL(pPage->pBt) assert 53074 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 53077 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nCell==0 ); assert 53078 ext/sqlite3/libsqlite/sqlite3.c assert( get2byteNotZero(&data[hdr+5])==nUsable ); assert 53141 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 53142 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 53143 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow==1 ); assert 53161 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pNew->pDbPage) ); assert 53162 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->aData[0]==(PTF_INTKEY|PTF_LEAFDATA|PTF_LEAF) ); assert 53229 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 53240 ext/sqlite3/libsqlite/sqlite3.c assert( n==pPage->pgno && e==PTRMAP_OVERFLOW1 ); assert 53245 ext/sqlite3/libsqlite/sqlite3.c assert( n==pPage->pgno && e==PTRMAP_BTREE ); assert 53251 ext/sqlite3/libsqlite/sqlite3.c assert( n==pPage->pgno && e==PTRMAP_BTREE ); assert 53286 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->isInit ); assert 53287 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->nFree>=iToHdr ); assert 53288 ext/sqlite3/libsqlite/sqlite3.c assert( get2byte(&aFrom[iFromHdr+5]) <= (int)pBt->usableSize ); assert 53391 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 53392 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 53403 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->nOverflow==0 || pParent->nOverflow==1 ); assert 53404 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->nOverflow==0 || pParent->aOvfl[0].idx==iParentIdx ); assert 53508 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(aSpace1) ); assert 53543 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<nMaxCells ); assert 53553 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<nMaxCells ); assert 53562 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<nMaxCells ); assert 53566 ext/sqlite3/libsqlite/sqlite3.c assert( sz<=pBt->maxLocal+23 ); assert 53567 ext/sqlite3/libsqlite/sqlite3.c assert( iSpace1 <= (int)pBt->pageSize ); assert 53570 ext/sqlite3/libsqlite/sqlite3.c assert( leafCorrection==0 || leafCorrection==4 ); assert 53573 ext/sqlite3/libsqlite/sqlite3.c assert( leafCorrection==0 ); assert 53574 ext/sqlite3/libsqlite/sqlite3.c assert( pOld->hdrOffset==0 ); assert 53579 ext/sqlite3/libsqlite/sqlite3.c assert( leafCorrection==4 ); assert 53607 ext/sqlite3/libsqlite/sqlite3.c assert( i<nMaxCells ); assert 53640 ext/sqlite3/libsqlite/sqlite3.c assert( d<nMaxCells ); assert 53641 ext/sqlite3/libsqlite/sqlite3.c assert( r<nMaxCells ); assert 53657 ext/sqlite3/libsqlite/sqlite3.c assert( cntNew[0]>0 || (pParent->pgno==1 && pParent->nCell==0) ); assert 53682 ext/sqlite3/libsqlite/sqlite3.c assert( i>0 ); assert 53745 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 53756 ext/sqlite3/libsqlite/sqlite3.c assert( j<nMaxCells ); assert 53759 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nCell>0 || (nNew==1 && cntNew[0]==0) ); assert 53760 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nOverflow==0 ); assert 53767 ext/sqlite3/libsqlite/sqlite3.c assert( i<nNew-1 || j==nCell ); assert 53773 ext/sqlite3/libsqlite/sqlite3.c assert( j<nMaxCells ); assert 53805 ext/sqlite3/libsqlite/sqlite3.c assert(leafCorrection==4); assert 53810 ext/sqlite3/libsqlite/sqlite3.c assert( sz<=pBt->maxLocal+23 ); assert 53811 ext/sqlite3/libsqlite/sqlite3.c assert( iOvflSpace <= (int)pBt->pageSize ); assert 53814 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 53820 ext/sqlite3/libsqlite/sqlite3.c assert( j==nCell ); assert 53821 ext/sqlite3/libsqlite/sqlite3.c assert( nOld>0 ); assert 53822 ext/sqlite3/libsqlite/sqlite3.c assert( nNew>0 ); assert 53843 ext/sqlite3/libsqlite/sqlite3.c assert( nNew==1 ); assert 53844 ext/sqlite3/libsqlite/sqlite3.c assert( apNew[0]->nFree == assert 53903 ext/sqlite3/libsqlite/sqlite3.c assert(nOverflow>0 || iOverflow<i ); assert 53904 ext/sqlite3/libsqlite/sqlite3.c assert(nOverflow<2 || pOld->aOvfl[0].idx==pOld->aOvfl[1].idx-1); assert 53905 ext/sqlite3/libsqlite/sqlite3.c assert(nOverflow<3 || pOld->aOvfl[1].idx==pOld->aOvfl[2].idx-1); assert 53920 ext/sqlite3/libsqlite/sqlite3.c assert( j<nOld ); assert 53921 ext/sqlite3/libsqlite/sqlite3.c assert( k<nNew ); assert 53954 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->isInit ); assert 53999 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->nOverflow>0 ); assert 54000 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 54019 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pChild->pDbPage) ); assert 54020 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pRoot->pDbPage) ); assert 54021 ext/sqlite3/libsqlite/sqlite3.c assert( pChild->nCell==pRoot->nCell ); assert 54067 ext/sqlite3/libsqlite/sqlite3.c assert( (balance_deeper_called++)==0 ); assert 54073 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[1]->nOverflow ); assert 54106 ext/sqlite3/libsqlite/sqlite3.c assert( (balance_quick_called++)==0 ); assert 54201 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext!=SQLITE_OK ); assert 54205 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 54206 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->wrFlag && pBt->inTransaction==TRANS_WRITE && !pBt->readOnly ); assert 54207 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) ); assert 54214 ext/sqlite3/libsqlite/sqlite3.c assert( (pKey==0)==(pCur->pKeyInfo==0) ); assert 54240 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID || (pCur->eState==CURSOR_INVALID && loc) ); assert 54243 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->intKey || nKey>=0 ); assert 54244 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf || !pPage->intKey ); assert 54249 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 54255 ext/sqlite3/libsqlite/sqlite3.c assert( szNew==cellSizePtr(pPage, newCell) ); assert 54256 ext/sqlite3/libsqlite/sqlite3.c assert( szNew <= MX_CELL_SIZE(pBt) ); assert 54260 ext/sqlite3/libsqlite/sqlite3.c assert( idx<pPage->nCell ); assert 54274 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf ); assert 54277 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf ); assert 54280 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pPage->nCell>0 || pPage->nOverflow>0 ); assert 54314 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nOverflow==0 ); assert 54333 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 54334 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 54335 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->readOnly ); assert 54336 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->wrFlag ); assert 54337 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) ); assert 54338 ext/sqlite3/libsqlite/sqlite3.c assert( !hasReadConflicts(p, pCur->pgnoRoot) ); assert 54396 ext/sqlite3/libsqlite/sqlite3.c assert( MX_CELL_SIZE(pBt) >= nCell ); assert 54454 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 54455 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 54456 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->readOnly ); assert 54489 ext/sqlite3/libsqlite/sqlite3.c assert( pgnoRoot>=3 ); assert 54525 ext/sqlite3/libsqlite/sqlite3.c assert( eType!=PTRMAP_ROOTPAGE ); assert 54526 ext/sqlite3/libsqlite/sqlite3.c assert( eType!=PTRMAP_FREEPAGE ); assert 54558 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pBt->pPage1->pDbPage) ); assert 54570 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pRoot->pDbPage) ); assert 54578 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 ); assert 54605 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 54625 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->intKey ); assert 54656 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 54696 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 54697 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 54776 ext/sqlite3/libsqlite/sqlite3.c assert( maxRootPgno!=PENDING_BYTE_PAGE(pBt) ); assert 54820 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>TRANS_NONE ); assert 54821 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OK==querySharedCacheTableLock(p, MASTER_ROOT, READ_LOCK) ); assert 54822 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1 ); assert 54823 ext/sqlite3/libsqlite/sqlite3.c assert( idx>=0 && idx<=15 ); assert 54844 ext/sqlite3/libsqlite/sqlite3.c assert( idx>=1 && idx<=15 ); assert 54846 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 54847 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1!=0 ); assert 54854 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum || iMeta==0 ); assert 54855 ext/sqlite3/libsqlite/sqlite3.c assert( iMeta==0 || iMeta==1 ); assert 55152 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_CORRUPT ); /* The only possible error from InitPage */ assert 55185 ext/sqlite3/libsqlite/sqlite3.c assert( sz==info.nPayload ); assert 55273 ext/sqlite3/libsqlite/sqlite3.c assert( contentOffset<=usableSize ); /* Enforced by btreeInitPage() */ assert 55295 ext/sqlite3/libsqlite/sqlite3.c assert( i<=usableSize-4 ); /* Enforced by btreeInitPage() */ assert 55297 ext/sqlite3/libsqlite/sqlite3.c assert( i+size<=usableSize ); /* Enforced by btreeInitPage() */ assert 55300 ext/sqlite3/libsqlite/sqlite3.c assert( j==0 || j>i+size ); /* Enforced by btreeInitPage() */ assert 55301 ext/sqlite3/libsqlite/sqlite3.c assert( j<=usableSize-4 ); /* Enforced by btreeInitPage() */ assert 55353 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>TRANS_NONE && pBt->inTransaction>TRANS_NONE ); assert 55452 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->pPager!=0 ); assert 55465 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->pPager!=0 ); assert 55473 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 || sqlite3_mutex_held(p->db->mutex) ); assert 55506 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 55507 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55512 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 55513 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55555 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55558 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_LOCKED_SHAREDCACHE ); assert 55572 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans!=TRANS_NONE ); assert 55575 ext/sqlite3/libsqlite/sqlite3.c assert( READ_LOCK+1==WRITE_LOCK ); assert 55576 ext/sqlite3/libsqlite/sqlite3.c assert( isWriteLock==0 || isWriteLock==1 ); assert 55602 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCsr) ); assert 55603 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCsr->pBtree->db->mutex) ); assert 55604 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->isIncrblobHandle ); assert 55610 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->eState!=CURSOR_REQUIRESEEK ); assert 55625 ext/sqlite3/libsqlite/sqlite3.c assert( !pCsr->pBt->readOnly && pCsr->pBt->inTransaction==TRANS_WRITE ); assert 55626 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) ); assert 55627 ext/sqlite3/libsqlite/sqlite3.c assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) ); assert 55628 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->apPage[pCsr->iPage]->intKey ); assert 55644 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 55645 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 55660 ext/sqlite3/libsqlite/sqlite3.c assert( pBtree->inTrans==TRANS_NONE ); assert 55661 ext/sqlite3/libsqlite/sqlite3.c assert( iVersion==1 || iVersion==2 ); assert 55916 ext/sqlite3/libsqlite/sqlite3.c assert( p->bDestLocked ); assert 55917 ext/sqlite3/libsqlite/sqlite3.c assert( !isFatalError(p->rc) ); assert 55918 ext/sqlite3/libsqlite/sqlite3.c assert( iSrcPg!=PENDING_BYTE_PAGE(p->pSrc->pBt) ); assert 55919 ext/sqlite3/libsqlite/sqlite3.c assert( zSrcData ); assert 56002 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p->pSrc) ); assert 56071 ext/sqlite3/libsqlite/sqlite3.c assert( nSrcPage>=0 ); assert 56120 ext/sqlite3/libsqlite/sqlite3.c assert( pgszSrc==sqlite3BtreeGetPageSize(p->pSrc) ); assert 56121 ext/sqlite3/libsqlite/sqlite3.c assert( pgszDest==sqlite3BtreeGetPageSize(p->pDest) ); assert 56148 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 56149 ext/sqlite3/libsqlite/sqlite3.c assert( (i64)nDestTruncate*(i64)pgszDest >= iSize || ( assert 56207 ext/sqlite3/libsqlite/sqlite3.c assert( rc2==SQLITE_OK ); assert 56305 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) ); assert 56312 ext/sqlite3/libsqlite/sqlite3.c assert( p->pDestDb ); assert 56316 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_BUSY && rc!=SQLITE_LOCKED ); assert 56338 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) ); assert 56377 ext/sqlite3/libsqlite/sqlite3.c assert( b.rc!=SQLITE_OK ); assert 56430 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 56431 ext/sqlite3/libsqlite/sqlite3.c assert( desiredEnc==SQLITE_UTF8 || desiredEnc==SQLITE_UTF16LE assert 56436 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56445 ext/sqlite3/libsqlite/sqlite3.c assert(rc==SQLITE_OK || rc==SQLITE_NOMEM); assert 56446 ext/sqlite3/libsqlite/sqlite3.c assert(rc==SQLITE_OK || pMem->enc!=desiredEnc); assert 56447 ext/sqlite3/libsqlite/sqlite3.c assert(rc==SQLITE_NOMEM || pMem->enc==desiredEnc); assert 56466 ext/sqlite3/libsqlite/sqlite3.c assert( 1 >= assert 56472 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 56512 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56513 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 56539 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags&MEM_Blob ); assert 56540 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 56541 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56565 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56596 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56597 ext/sqlite3/libsqlite/sqlite3.c assert( !(fg&MEM_Zero) ); assert 56598 ext/sqlite3/libsqlite/sqlite3.c assert( !(fg&(MEM_Str|MEM_Blob)) ); assert 56599 ext/sqlite3/libsqlite/sqlite3.c assert( fg&(MEM_Int|MEM_Real) ); assert 56600 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 56601 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 56617 ext/sqlite3/libsqlite/sqlite3.c assert( fg & MEM_Real ); assert 56639 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Null)!=0 || pFunc==pMem->u.pDef ); assert 56640 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56647 ext/sqlite3/libsqlite/sqlite3.c assert( 0==(pMem->flags&MEM_Dyn) && !pMem->xDel ); assert 56661 ext/sqlite3/libsqlite/sqlite3.c assert( p->db==0 || sqlite3_mutex_held(p->db->mutex) ); assert 56669 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags & MEM_Agg)==0 ); assert 56672 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags&MEM_RowSet)==0 ); assert 56750 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56751 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 56759 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->z || pMem->n==0 ); assert 56775 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56776 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 56797 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags & MEM_Real ); assert 56798 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 56799 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56800 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 56826 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56827 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 56828 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 56840 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56841 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 56858 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & (MEM_Blob|MEM_Str))!=0 ); assert 56859 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 56868 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & (MEM_Int|MEM_Real|MEM_Null))!=0 ); assert 56945 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 56946 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 56952 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->zMalloc ); assert 56955 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->u.pRowSet!=0 ); assert 56965 ext/sqlite3/libsqlite/sqlite3.c assert( p->db!=0 ); assert 57010 ext/sqlite3/libsqlite/sqlite3.c assert( (pFrom->flags & MEM_RowSet)==0 ); assert 57016 ext/sqlite3/libsqlite/sqlite3.c assert( srcType==MEM_Ephem || srcType==MEM_Static ); assert 57028 ext/sqlite3/libsqlite/sqlite3.c assert( (pFrom->flags & MEM_RowSet)==0 ); assert 57050 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->db==0 || sqlite3_mutex_held(pFrom->db->mutex) ); assert 57051 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) ); assert 57052 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db ); assert 57087 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 57088 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 57103 ext/sqlite3/libsqlite/sqlite3.c assert( enc!=0 ); assert 57174 ext/sqlite3/libsqlite/sqlite3.c assert( (combined_flags & MEM_RowSet)==0 ); assert 57210 ext/sqlite3/libsqlite/sqlite3.c assert( f1&MEM_Int ); assert 57211 ext/sqlite3/libsqlite/sqlite3.c assert( f2&MEM_Int ); assert 57229 ext/sqlite3/libsqlite/sqlite3.c assert( pMem1->enc==pMem2->enc ); assert 57230 ext/sqlite3/libsqlite/sqlite3.c assert( pMem1->enc==SQLITE_UTF8 || assert 57237 ext/sqlite3/libsqlite/sqlite3.c assert( !pColl || pColl->xCmp ); assert 57299 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCur) ); assert 57303 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 57309 ext/sqlite3/libsqlite/sqlite3.c assert( zData!=0 ); assert 57348 ext/sqlite3/libsqlite/sqlite3.c assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) ); assert 57349 ext/sqlite3/libsqlite/sqlite3.c assert( (enc&3)==(enc&~SQLITE_UTF16_ALIGNED) ); assert 57350 ext/sqlite3/libsqlite/sqlite3.c assert( (pVal->flags & MEM_RowSet)==0 ); assert 57355 ext/sqlite3/libsqlite/sqlite3.c assert( (MEM_Blob>>3) == MEM_Str ); assert 57361 ext/sqlite3/libsqlite/sqlite3.c assert( (pVal->flags & (MEM_Ephem|MEM_Static))!=0 ); assert 57368 ext/sqlite3/libsqlite/sqlite3.c assert( (pVal->flags&MEM_Blob)==0 ); assert 57370 ext/sqlite3/libsqlite/sqlite3.c assert( 0==(1&SQLITE_PTR_TO_INT(pVal->z)) ); assert 57372 ext/sqlite3/libsqlite/sqlite3.c assert(pVal->enc==(enc & ~SQLITE_UTF16_ALIGNED) || pVal->db==0 assert 57485 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]=='x' || pExpr->u.zToken[0]=='X' ); assert 57486 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[1]=='\'' ); assert 57491 ext/sqlite3/libsqlite/sqlite3.c assert( zVal[nVal]=='\'' ); assert 57602 ext/sqlite3/libsqlite/sqlite3.c assert( isPrepareV2==1 || isPrepareV2==0 ); assert 57607 ext/sqlite3/libsqlite/sqlite3.c assert( p->zSql==0 ); assert 57691 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 57692 ext/sqlite3/libsqlite/sqlite3.c assert( op>0 && op<0xff ); assert 57792 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 57812 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 57813 ext/sqlite3/libsqlite/sqlite3.c assert( j>=0 && j<p->nLabel ); assert 57867 ext/sqlite3/libsqlite/sqlite3.c assert( p->iAddr<nOp ); assert 57979 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp - i >= 3 ); assert 57980 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[-1].opcode==OP_Integer ); assert 57987 ext/sqlite3/libsqlite/sqlite3.c assert( -1-pOp->p2<p->nLabel ); assert 58001 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 58018 ext/sqlite3/libsqlite/sqlite3.c assert( aOp && !p->db->mallocFailed ); assert 58021 ext/sqlite3/libsqlite/sqlite3.c assert( p->btreeMask==0 ); assert 58035 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 58076 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 58077 ext/sqlite3/libsqlite/sqlite3.c assert( addr>=0 ); assert 58088 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 58089 ext/sqlite3/libsqlite/sqlite3.c assert( addr>=0 ); assert 58099 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 58100 ext/sqlite3/libsqlite/sqlite3.c assert( addr>=0 ); assert 58111 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 58113 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 58123 ext/sqlite3/libsqlite/sqlite3.c assert( addr>=0 ); assert 58145 ext/sqlite3/libsqlite/sqlite3.c assert( db ); assert 58261 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 58263 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 58270 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 58271 ext/sqlite3/libsqlite/sqlite3.c assert( addr<p->nOp ); assert 58314 ext/sqlite3/libsqlite/sqlite3.c assert( ((VTable *)zP4)->db==p->db ); assert 58335 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 || p->aOp==0 ); assert 58336 ext/sqlite3/libsqlite/sqlite3.c assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed ); assert 58349 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 || p->aOp==0 ); assert 58350 ext/sqlite3/libsqlite/sqlite3.c assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed ); assert 58386 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 58393 ext/sqlite3/libsqlite/sqlite3.c assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed ); assert 58409 ext/sqlite3/libsqlite/sqlite3.c assert( nTemp>=20 ); assert 58438 ext/sqlite3/libsqlite/sqlite3.c assert( i<nTemp ); assert 58465 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Null)==0 ); assert 58473 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags & MEM_Blob ); assert 58501 ext/sqlite3/libsqlite/sqlite3.c assert( zP4!=0 ); assert 58514 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<p->db->nDb && i<(int)sizeof(yDbMask)*8 ); assert 58515 ext/sqlite3/libsqlite/sqlite3.c assert( i<(int)sizeof(p->btreeMask)*8 ); assert 58621 ext/sqlite3/libsqlite/sqlite3.c assert( (&p[1])==pEnd || p[0].db==p[1].db ); assert 58691 ext/sqlite3/libsqlite/sqlite3.c assert( p->explain ); assert 58692 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); assert 58693 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc==SQLITE_OK || p->rc==SQLITE_BUSY || p->rc==SQLITE_NOMEM ); assert 58721 ext/sqlite3/libsqlite/sqlite3.c assert( p->nMem>9 ); assert 58769 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->z!=0 ); assert 58811 ext/sqlite3/libsqlite/sqlite3.c assert( p->db->mallocFailed ); assert 58819 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->z!=0 ); assert 58828 ext/sqlite3/libsqlite/sqlite3.c assert( p->db->mallocFailed ); assert 58936 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(*ppFrom) ); assert 58956 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 58957 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 58961 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 58968 ext/sqlite3/libsqlite/sqlite3.c assert( p->aMem[i].db==p->db ); assert 59020 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 59021 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 59022 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 59023 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 59025 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed==0 ); assert 59055 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(zCsr) ); assert 59203 ext/sqlite3/libsqlite/sqlite3.c for(i=0; i<p->nCursor; i++) assert( p->apCsr==0 || p->apCsr[i]==0 ); assert 59204 ext/sqlite3/libsqlite/sqlite3.c for(i=1; i<=p->nMem; i++) assert( p->aMem==0 || p->aMem[i].flags==MEM_Null ); assert 59255 ext/sqlite3/libsqlite/sqlite3.c assert( idx<p->nResColumn ); assert 59256 ext/sqlite3/libsqlite/sqlite3.c assert( var<COLNAME_N ); assert 59258 ext/sqlite3/libsqlite/sqlite3.c assert( !zName || xDel!=SQLITE_DYNAMIC ); assert 59261 ext/sqlite3/libsqlite/sqlite3.c assert( p->aColName!=0 ); assert 59264 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=0 || !zName || (pColName->flags&MEM_Term)!=0 ); assert 59407 ext/sqlite3/libsqlite/sqlite3.c assert( zFile[0]!=0 ); assert 59452 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_BUSY ); assert 59516 ext/sqlite3/libsqlite/sqlite3.c assert( cnt==db->activeVdbeCnt ); assert 59517 ext/sqlite3/libsqlite/sqlite3.c assert( nWrite==db->writeVdbeCnt ); assert 59572 ext/sqlite3/libsqlite/sqlite3.c assert( eOp==SAVEPOINT_ROLLBACK || eOp==SAVEPOINT_RELEASE); assert 59573 ext/sqlite3/libsqlite/sqlite3.c assert( db->nStatement>0 ); assert 59574 ext/sqlite3/libsqlite/sqlite3.c assert( p->iStatement==(db->nStatement+db->nSavepoint) ); assert 59689 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc!=SQLITE_IOERR_BLOCKED ); /* This error no longer exists */ assert 59826 ext/sqlite3/libsqlite/sqlite3.c assert( db->activeVdbeCnt>=db->writeVdbeCnt ); assert 59842 ext/sqlite3/libsqlite/sqlite3.c assert( db->activeVdbeCnt>0 || db->autoCommit==0 || db->nStatement==0 ); assert 59946 ext/sqlite3/libsqlite/sqlite3.c assert( (rc & p->db->errMask)==rc ); assert 59980 ext/sqlite3/libsqlite/sqlite3.c assert( p->db==0 || p->db==db ); assert 60008 ext/sqlite3/libsqlite/sqlite3.c assert( db->pVdbe==p ); assert 60038 ext/sqlite3/libsqlite/sqlite3.c assert( p->isTable ); assert 60138 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) ); assert 60143 ext/sqlite3/libsqlite/sqlite3.c assert( n>=0 ); assert 60239 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(v)==sizeof(pMem->r) ); assert 60246 ext/sqlite3/libsqlite/sqlite3.c assert( len<=(u32)nBuf ); assert 60256 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n + ((pMem->flags & MEM_Zero)?pMem->u.nZero:0) assert 60258 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n<=nBuf ); assert 60263 ext/sqlite3/libsqlite/sqlite3.c assert( nBuf>=0 ); assert 60334 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(r1)==sizeof(t2) && memcmp(&r1, &t2, sizeof(r1))==0 ); assert 60344 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(x)==8 && sizeof(pMem->r)==8 ); assert 60424 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 60440 ext/sqlite3/libsqlite/sqlite3.c assert( u<=pKeyInfo->nField + 1 ); assert 60453 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 60454 ext/sqlite3/libsqlite/sqlite3.c assert( p->flags & UNPACKED_NEED_DESTROY ); assert 60546 ext/sqlite3/libsqlite/sqlite3.c assert( mem1.zMalloc==0 ); /* See comment below */ assert 60559 ext/sqlite3/libsqlite/sqlite3.c assert( idx1==szHdr1 && rc ); assert 60560 ext/sqlite3/libsqlite/sqlite3.c assert( mem1.flags & MEM_Int ); assert 60574 ext/sqlite3/libsqlite/sqlite3.c assert( mem1.zMalloc==0 ); assert 60584 ext/sqlite3/libsqlite/sqlite3.c assert( rc==0 ); assert 60619 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCur) ); assert 60621 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* pCur is always valid so KeySize cannot fail */ assert 60622 ext/sqlite3/libsqlite/sqlite3.c assert( (nCellKey & SQLITE_MAX_U32)==(u64)nCellKey ); assert 60694 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCur) ); assert 60696 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* pCur is always valid so KeySize cannot fail */ assert 60708 ext/sqlite3/libsqlite/sqlite3.c assert( pUnpacked->flags & UNPACKED_IGNORE_ROWID ); assert 60719 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 60765 ext/sqlite3/libsqlite/sqlite3.c assert( iVar>0 ); assert 60787 ext/sqlite3/libsqlite/sqlite3.c assert( iVar>0 ); assert 60900 ext/sqlite3/libsqlite/sqlite3.c assert( (rc & (v->db->errMask))==rc ); assert 61003 ext/sqlite3/libsqlite/sqlite3.c assert( n>=0 ); assert 61004 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61008 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61012 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61018 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61024 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61028 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61032 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61041 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61051 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61060 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61069 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61074 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61078 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61091 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61099 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61139 ext/sqlite3/libsqlite/sqlite3.c assert(p); assert 61189 ext/sqlite3/libsqlite/sqlite3.c assert( db->writeVdbeCnt>0 || db->autoCommit==0 || db->nDeferredCons==0 ); assert 61223 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc==SQLITE_OK ); assert 61242 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_ROW || rc==SQLITE_DONE || rc==SQLITE_ERROR assert 61245 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc!=SQLITE_ROW && p->rc!=SQLITE_DONE ); assert 61316 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pFunc ); assert 61331 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pFunc ); assert 61364 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pFunc && p->pFunc->xStep ); assert 61365 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->s.db->mutex) ); assert 61392 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61415 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->s.db->mutex) ); assert 61455 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pMem && p->pFunc && p->pFunc->xStep ); assert 61656 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 61661 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed==0 ); assert 62017 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->db==pFrom->db ); assert 62018 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->nVar==pFrom->nVar ); assert 62136 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && tokenType!=TK_ILLEGAL ); assert 62194 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 ); assert 62197 ext/sqlite3/libsqlite/sqlite3.c assert( zRawSql[0] || nToken==0 ); assert 62201 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3Isdigit(zRawSql[1]) ); assert 62207 ext/sqlite3/libsqlite/sqlite3.c assert( zRawSql[0]==':' || zRawSql[0]=='$' || zRawSql[0]=='@' ); assert 62212 ext/sqlite3/libsqlite/sqlite3.c assert( idx>0 ); assert 62216 ext/sqlite3/libsqlite/sqlite3.c assert( idx>0 && idx<=p->nVar ); assert 62243 ext/sqlite3/libsqlite/sqlite3.c assert( pVar->flags & MEM_Blob ); assert 62478 ext/sqlite3/libsqlite/sqlite3.c assert( iCur<p->nCursor ); assert 62556 ext/sqlite3/libsqlite/sqlite3.c assert( affinity==SQLITE_AFF_INTEGER || affinity==SQLITE_AFF_REAL assert 62608 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Ephem))==0 ); assert 62611 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Dyn|MEM_Ephem))==0 ); assert 62614 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Dyn))==0 ); assert 62645 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Ephem))==0 ); assert 62648 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Dyn|MEM_Ephem))==0 ); assert 62651 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Dyn))==0 ); assert 62841 ext/sqlite3/libsqlite/sqlite3.c assert( n==(db->nSavepoint + db->isTransactionSavepoint) ); assert 63327 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); /* sqlite3_step() verifies this */ assert 63334 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc==SQLITE_OK || p->rc==SQLITE_BUSY ); assert 63336 ext/sqlite3/libsqlite/sqlite3.c assert( p->explain==0 ); assert 63357 ext/sqlite3/libsqlite/sqlite3.c assert( pc>=0 && pc<p->nOp ); assert 63416 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opflags==sqlite3OpcodeProperty[pOp->opcode] ); assert 63418 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 63419 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<=p->nMem ); assert 63429 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 ); assert 63430 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1<=p->nMem ); assert 63431 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p1]) ); assert 63435 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 63436 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<=p->nMem ); assert 63437 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p2]) ); assert 63441 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 63442 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=p->nMem ); assert 63443 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p3]) ); assert 63447 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 63448 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<=p->nMem ); assert 63452 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 63453 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=p->nMem ); assert 63515 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn1->flags & MEM_Dyn)==0 ); assert 63530 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags & MEM_Int ); assert 63544 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn1->flags & MEM_Dyn)==0 ); assert 63610 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc!=SQLITE_OK ); assert 63619 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_BUSY || rc==SQLITE_OK || rc==SQLITE_ERROR ); assert 63623 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || p->rc==SQLITE_CONSTRAINT ); assert 63624 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || db->nDeferredCons>0 ); assert 63645 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.pI64!=0 ); assert 63658 ext/sqlite3/libsqlite/sqlite3.c assert( !sqlite3IsNaN(*pOp->p4.pReal) ); assert 63670 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.z!=0 ); assert 63679 ext/sqlite3/libsqlite/sqlite3.c assert( pOut->zMalloc==pOut->z ); assert 63680 ext/sqlite3/libsqlite/sqlite3.c assert( pOut->flags & MEM_Dyn ); assert 63703 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.z!=0 ); assert 63728 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1 <= SQLITE_MAX_LENGTH ); assert 63747 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 && pOp->p1<=p->nVar ); assert 63748 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.z==0 || pOp->p4.z==p->azVar[pOp->p1-1] ); assert 63776 ext/sqlite3/libsqlite/sqlite3.c assert( u.ac.n>0 && u.ac.p1>0 && u.ac.p2>0 ); assert 63777 ext/sqlite3/libsqlite/sqlite3.c assert( u.ac.p1+u.ac.n<=u.ac.p2 || u.ac.p2+u.ac.n<=u.ac.p1 ); assert 63782 ext/sqlite3/libsqlite/sqlite3.c assert( pOut<=&aMem[p->nMem] ); assert 63783 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1<=&aMem[p->nMem] ); assert 63784 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pIn1) ); assert 63807 ext/sqlite3/libsqlite/sqlite3.c assert( pOut!=pIn1 ); assert 63829 ext/sqlite3/libsqlite/sqlite3.c assert( pOut!=pIn1 ); assert 63851 ext/sqlite3/libsqlite/sqlite3.c assert( p->nResColumn==pOp->p2 ); assert 63852 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 ); assert 63853 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1+pOp->p2<=p->nMem+1 ); assert 63859 ext/sqlite3/libsqlite/sqlite3.c assert( db->flags&SQLITE_CountRows ); assert 63860 ext/sqlite3/libsqlite/sqlite3.c assert( p->usesStmtJournal ); assert 63879 ext/sqlite3/libsqlite/sqlite3.c assert( p->iStatement==0 || db->flags&SQLITE_CountRows ); assert 63894 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&u.ad.pMem[u.ad.i]) ); assert 63896 ext/sqlite3/libsqlite/sqlite3.c assert( (u.ad.pMem[u.ad.i].flags & MEM_Ephem)==0 assert 63931 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1!=pOut ); assert 64091 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_COLLSEQ ); assert 64122 ext/sqlite3/libsqlite/sqlite3.c assert( u.ag.apVal || u.ag.n==0 ); assert 64123 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=p->nMem ); assert 64127 ext/sqlite3/libsqlite/sqlite3.c assert( u.ag.n==0 || (pOp->p2>0 && pOp->p2+u.ag.n<=p->nMem+1) ); assert 64128 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<pOp->p2 || pOp->p3>=pOp->p2+u.ag.n ); assert 64131 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.ag.pArg) ); assert 64138 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_FUNCDEF || pOp->p4type==P4_VDBEFUNC ); assert 64161 ext/sqlite3/libsqlite/sqlite3.c assert( pOp>aOp ); assert 64162 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[-1].p4type==P4_COLLSEQ ); assert 64163 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[-1].opcode==OP_CollSeq ); assert 64267 ext/sqlite3/libsqlite/sqlite3.c assert( u.ah.op==OP_ShiftRight || u.ah.op==OP_ShiftLeft ); assert 64271 ext/sqlite3/libsqlite/sqlite3.c assert( OP_ShiftRight==OP_ShiftLeft+1 ); assert 64366 ext/sqlite3/libsqlite/sqlite3.c assert( MEM_Str==(MEM_Blob>>3) ); assert 64370 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags & MEM_Str || db->mallocFailed ); assert 64390 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags & MEM_Str || db->mallocFailed ); assert 64549 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_Eq || pOp->opcode==OP_Ne ); assert 64574 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_COLLSEQ || pOp->p4.pColl==0 ); assert 64614 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INTARRAY ); assert 64615 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.ai ); assert 64648 ext/sqlite3/libsqlite/sqlite3.c assert( u.aj.n>0 ); assert 64649 ext/sqlite3/libsqlite/sqlite3.c assert( u.aj.pKeyInfo!=0 ); assert 64656 ext/sqlite3/libsqlite/sqlite3.c assert( u.aj.p1>0 && u.aj.p1+mx<=p->nMem+1 ); assert 64657 ext/sqlite3/libsqlite/sqlite3.c assert( u.aj.p2>0 && u.aj.p2+mx<=p->nMem+1 ); assert 64659 ext/sqlite3/libsqlite/sqlite3.c assert( u.aj.p1>0 && u.aj.p1+u.aj.n<=p->nMem+1 ); assert 64660 ext/sqlite3/libsqlite/sqlite3.c assert( u.aj.p2>0 && u.aj.p2+u.aj.n<=p->nMem+1 ); assert 64665 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[u.aj.p1+u.aj.idx]) ); assert 64666 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[u.aj.p2+u.aj.idx]) ); assert 64669 ext/sqlite3/libsqlite/sqlite3.c assert( u.aj.i<u.aj.pKeyInfo->nField ); assert 64895 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.p1<p->nCursor ); assert 64896 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=p->nMem ); assert 64915 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.pC!=0 ); assert 64917 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.pC->pVtabCursor==0 ); assert 64930 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(u.am.pCrsr) ); assert 64932 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* True because of CursorMoveto() call above */ assert 64936 ext/sqlite3/libsqlite/sqlite3.c assert( (u.am.payloadSize64 & SQLITE_MAX_U32)==(u64)u.am.payloadSize64 ); assert 64939 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(u.am.pCrsr) ); assert 64941 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* DataSize() cannot fail */ assert 64945 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.pReg->flags & MEM_Blob ); assert 64946 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.am.pReg) ); assert 64950 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.payloadSize==0 || u.am.zRec!=0 ); assert 64958 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.pDest->flags&MEM_Null ); assert 64961 ext/sqlite3/libsqlite/sqlite3.c assert( db->aLimit[SQLITE_LIMIT_LENGTH]>=0 ); assert 64967 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.p2<u.am.nField ); assert 64976 ext/sqlite3/libsqlite/sqlite3.c assert(u.am.aType); assert 64996 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.avail>=0 ); assert 65105 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 65124 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.pDest->flags&MEM_Null ); assert 65134 ext/sqlite3/libsqlite/sqlite3.c assert( u.am.sMem.z==u.am.sMem.zMalloc ); assert 65135 ext/sqlite3/libsqlite/sqlite3.c assert( !(u.am.pDest->flags & MEM_Dyn) ); assert 65136 ext/sqlite3/libsqlite/sqlite3.c assert( !(u.am.pDest->flags & (MEM_Blob|MEM_Str)) || u.am.pDest->z==u.am.sMem.z ); assert 65166 ext/sqlite3/libsqlite/sqlite3.c assert( u.an.zAffinity!=0 ); assert 65167 ext/sqlite3/libsqlite/sqlite3.c assert( u.an.zAffinity[pOp->p2]==0 ); assert 65170 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1 <= &p->aMem[p->nMem] ); assert 65171 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pIn1) ); assert 65233 ext/sqlite3/libsqlite/sqlite3.c assert( u.ao.nField>0 && pOp->p2>0 && pOp->p2+u.ao.nField<=p->nMem+1 ); assert 65240 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<pOp->p1 || pOp->p3>=pOp->p1+pOp->p2 ); assert 65248 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.ao.pRec) ); assert 65297 ext/sqlite3/libsqlite/sqlite3.c assert( u.ao.i==u.ao.nByte ); assert 65299 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=p->nMem ); assert 65360 ext/sqlite3/libsqlite/sqlite3.c assert( db->pSavepoint==0 || db->autoCommit==0 ); assert 65361 ext/sqlite3/libsqlite/sqlite3.c assert( u.aq.p1==SAVEPOINT_BEGIN||u.aq.p1==SAVEPOINT_RELEASE||u.aq.p1==SAVEPOINT_ROLLBACK ); assert 65362 ext/sqlite3/libsqlite/sqlite3.c assert( db->pSavepoint || db->isTransactionSavepoint==0 ); assert 65363 ext/sqlite3/libsqlite/sqlite3.c assert( checkSavepointCount(db) ); assert 65381 ext/sqlite3/libsqlite/sqlite3.c assert( db->autoCommit==0 || db->nVTrans==0 ); assert 65484 ext/sqlite3/libsqlite/sqlite3.c assert( u.aq.pSavepoint==db->pSavepoint ); assert 65523 ext/sqlite3/libsqlite/sqlite3.c assert( u.ar.desiredAutoCommit==1 || u.ar.desiredAutoCommit==0 ); assert 65524 ext/sqlite3/libsqlite/sqlite3.c assert( u.ar.desiredAutoCommit==1 || u.ar.iRollback==0 ); assert 65525 ext/sqlite3/libsqlite/sqlite3.c assert( db->activeVdbeCnt>0 ); /* At least this one VM is active */ assert 65544 ext/sqlite3/libsqlite/sqlite3.c assert( u.ar.desiredAutoCommit==1 ); assert 65558 ext/sqlite3/libsqlite/sqlite3.c assert( db->nStatement==0 ); assert 65613 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 65614 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<pOp->p1))!=0 ); assert 65631 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeIsInTrans(u.as.pBt) ); assert 65633 ext/sqlite3/libsqlite/sqlite3.c assert( db->nStatement>=0 && db->nSavepoint>=0 ); assert 65673 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<SQLITE_N_BTREE_META ); assert 65674 ext/sqlite3/libsqlite/sqlite3.c assert( u.at.iDb>=0 && u.at.iDb<db->nDb ); assert 65675 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[u.at.iDb].pBt!=0 ); assert 65676 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<u.at.iDb))!=0 ); assert 65697 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<SQLITE_N_BTREE_META ); assert 65698 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 65699 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<pOp->p1))!=0 ); assert 65701 ext/sqlite3/libsqlite/sqlite3.c assert( u.au.pDb->pBt!=0 ); assert 65702 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, pOp->p1, 0) ); assert 65749 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 65750 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<pOp->p1))!=0 ); assert 65751 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, pOp->p1, 0) ); assert 65856 ext/sqlite3/libsqlite/sqlite3.c assert( u.aw.iDb>=0 && u.aw.iDb<db->nDb ); assert 65857 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<u.aw.iDb))!=0 ); assert 65860 ext/sqlite3/libsqlite/sqlite3.c assert( u.aw.pX!=0 ); assert 65863 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, u.aw.iDb, 0) ); assert 65871 ext/sqlite3/libsqlite/sqlite3.c assert( u.aw.p2>0 ); assert 65872 ext/sqlite3/libsqlite/sqlite3.c assert( u.aw.p2<=p->nMem ); assert 65874 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pIn2) ); assert 65875 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn2->flags & MEM_Int)!=0 ); assert 65894 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 ); assert 65906 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_EMPTY || rc==SQLITE_OK ); assert 65958 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 ); assert 65975 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_KEYINFO ); assert 65978 ext/sqlite3/libsqlite/sqlite3.c assert( pgno==MASTER_ROOT+1 ); assert 66015 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 ); assert 66031 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66102 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66103 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2!=0 ); assert 66105 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.pC!=0 ); assert 66106 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.pC->pseudoTableReg==0 ); assert 66107 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekLe == OP_SeekLt+1 ); assert 66108 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekGe == OP_SeekLt+2 ); assert 66109 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekGt == OP_SeekLt+3 ); assert 66110 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.pC->isOrdered ); assert 66134 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn3->flags & MEM_Real)!=0 ); assert 66141 ext/sqlite3/libsqlite/sqlite3.c if( u.az.oc>=OP_SeekGe ){ assert( u.az.oc==OP_SeekGe || u.az.oc==OP_SeekGt ); assert 66146 ext/sqlite3/libsqlite/sqlite3.c if( u.az.oc<=OP_SeekLe ){ assert( u.az.oc==OP_SeekLt || u.az.oc==OP_SeekLe ); assert 66160 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.oc==OP_SeekLe || u.az.oc==OP_SeekGt ); assert 66174 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 66175 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.nField>0 ); assert 66187 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.oc!=OP_SeekGt || u.az.r.flags==UNPACKED_INCRKEY ); assert 66188 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.oc!=OP_SeekLe || u.az.r.flags==UNPACKED_INCRKEY ); assert 66189 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.oc!=OP_SeekGe || u.az.r.flags==0 ); assert 66190 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.oc!=OP_SeekLt || u.az.r.flags==0 ); assert 66194 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<u.az.r.nField; i++) assert( memIsValid(&u.az.r.aMem[i]) ); } assert 66208 ext/sqlite3/libsqlite/sqlite3.c if( u.az.oc>=OP_SeekGe ){ assert( u.az.oc==OP_SeekGe || u.az.oc==OP_SeekGt ); assert 66217 ext/sqlite3/libsqlite/sqlite3.c assert( u.az.oc==OP_SeekLt || u.az.oc==OP_SeekLe ); assert 66229 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 66257 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66259 ext/sqlite3/libsqlite/sqlite3.c assert( u.ba.pC!=0 ); assert 66261 ext/sqlite3/libsqlite/sqlite3.c assert( u.ba.pC->isTable ); assert 66312 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66313 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 66315 ext/sqlite3/libsqlite/sqlite3.c assert( u.bb.pC!=0 ); assert 66319 ext/sqlite3/libsqlite/sqlite3.c assert( u.bb.pC->isTable==0 ); assert 66325 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<u.bb.r.nField; i++) assert( memIsValid(&u.bb.r.aMem[i]) ); } assert 66330 ext/sqlite3/libsqlite/sqlite3.c assert( pIn3->flags & MEM_Blob ); assert 66331 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn3->flags & MEM_Zero)==0 ); /* zeroblobs already expanded */ assert 66398 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 66399 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.i>0 && pOp->p4.i<=p->nMem ); assert 66400 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66404 ext/sqlite3/libsqlite/sqlite3.c assert( u.bc.pCx->deferredMoveto==0 ); assert 66418 ext/sqlite3/libsqlite/sqlite3.c assert( (u.bc.aMx[u.bc.nField].flags & MEM_Null)==0 ); assert 66427 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<u.bc.r.nField; i++) assert( memIsValid(&u.bc.r.aMem[i]) ); } assert 66470 ext/sqlite3/libsqlite/sqlite3.c assert( pIn3->flags & MEM_Int ); assert 66471 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66473 ext/sqlite3/libsqlite/sqlite3.c assert( u.bd.pC!=0 ); assert 66474 ext/sqlite3/libsqlite/sqlite3.c assert( u.bd.pC->isTable ); assert 66475 ext/sqlite3/libsqlite/sqlite3.c assert( u.bd.pC->pseudoTableReg==0 ); assert 66488 ext/sqlite3/libsqlite/sqlite3.c assert( u.bd.pC->rowidIsValid==0 ); assert 66496 ext/sqlite3/libsqlite/sqlite3.c assert( u.bd.pC->rowidIsValid==0 ); assert 66510 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66511 ext/sqlite3/libsqlite/sqlite3.c assert( p->apCsr[pOp->p1]!=0 ); assert 66543 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66545 ext/sqlite3/libsqlite/sqlite3.c assert( u.be.pC!=0 ); assert 66562 ext/sqlite3/libsqlite/sqlite3.c assert( u.be.pC->isTable ); assert 66584 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(u.be.pC->pCursor) ); assert 66586 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* Cannot fail following BtreeLast() */ assert 66598 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 66602 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=u.be.pFrame->nMem ); assert 66606 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=p->nMem ); assert 66610 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.be.pMem) ); assert 66614 ext/sqlite3/libsqlite/sqlite3.c assert( (u.be.pMem->flags & MEM_Int)!=0 ); /* mem(P3) holds an integer */ assert 66633 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3==0 ); /* We cannot be in random rowid mode if this is assert 66658 ext/sqlite3/libsqlite/sqlite3.c assert( u.be.v>0 ); /* EV: R-40812-03570 */ assert 66727 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66728 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.bf.pData) ); assert 66730 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pC!=0 ); assert 66731 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pC->pCursor!=0 ); assert 66732 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pC->pseudoTableReg==0 ); assert 66733 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pC->isTable ); assert 66738 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pKey->flags & MEM_Int ); assert 66739 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.bf.pKey) ); assert 66743 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_InsertInt ); assert 66753 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pData->flags & (MEM_Blob|MEM_Str) ); assert 66775 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pC->isTable ); assert 66777 ext/sqlite3/libsqlite/sqlite3.c assert( u.bf.pC->iDb>=0 ); assert 66809 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66811 ext/sqlite3/libsqlite/sqlite3.c assert( u.bg.pC!=0 ); assert 66812 ext/sqlite3/libsqlite/sqlite3.c assert( u.bg.pC->pCursor!=0 ); /* Only valid for real tables, no pseudotables */ assert 66818 ext/sqlite3/libsqlite/sqlite3.c assert( u.bg.pC->isTable ); assert 66819 ext/sqlite3/libsqlite/sqlite3.c assert( u.bg.pC->rowidIsValid ); /* lastRowid set by previous OP_NotFound */ assert 66830 ext/sqlite3/libsqlite/sqlite3.c assert( u.bg.pC->deferredMoveto==0 ); assert 66843 ext/sqlite3/libsqlite/sqlite3.c assert( u.bg.pC->iDb>=0 ); assert 66894 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66896 ext/sqlite3/libsqlite/sqlite3.c assert( u.bh.pC->isTable || pOp->opcode==OP_RowKey ); assert 66897 ext/sqlite3/libsqlite/sqlite3.c assert( u.bh.pC->isIndex || pOp->opcode==OP_RowData ); assert 66898 ext/sqlite3/libsqlite/sqlite3.c assert( u.bh.pC!=0 ); assert 66899 ext/sqlite3/libsqlite/sqlite3.c assert( u.bh.pC->nullRow==0 ); assert 66900 ext/sqlite3/libsqlite/sqlite3.c assert( u.bh.pC->pseudoTableReg==0 ); assert 66901 ext/sqlite3/libsqlite/sqlite3.c assert( u.bh.pC->pCursor!=0 ); assert 66903 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(u.bh.pCrsr) ); assert 66910 ext/sqlite3/libsqlite/sqlite3.c assert( u.bh.pC->deferredMoveto==0 ); assert 66915 ext/sqlite3/libsqlite/sqlite3.c assert( !u.bh.pC->isTable ); assert 66917 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* True because of CursorMoveto() call above */ assert 66924 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* DataSize() cannot fail */ assert 66961 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 66963 ext/sqlite3/libsqlite/sqlite3.c assert( u.bi.pC!=0 ); assert 66964 ext/sqlite3/libsqlite/sqlite3.c assert( u.bi.pC->pseudoTableReg==0 ); assert 66974 ext/sqlite3/libsqlite/sqlite3.c assert( u.bi.pModule->xRowid ); assert 66979 ext/sqlite3/libsqlite/sqlite3.c assert( u.bi.pC->pCursor!=0 ); assert 66986 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* Always so because of CursorMoveto() above */ assert 67004 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67006 ext/sqlite3/libsqlite/sqlite3.c assert( u.bj.pC!=0 ); assert 67030 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67032 ext/sqlite3/libsqlite/sqlite3.c assert( u.bk.pC!=0 ); assert 67085 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67087 ext/sqlite3/libsqlite/sqlite3.c assert( u.bl.pC!=0 ); assert 67097 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 && pOp->p2<p->nOp ); assert 67139 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67140 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5<=ArraySize(p->aCounter) ); assert 67151 ext/sqlite3/libsqlite/sqlite3.c assert( u.bm.pC->deferredMoveto==0 ); assert 67187 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67189 ext/sqlite3/libsqlite/sqlite3.c assert( u.bn.pC!=0 ); assert 67191 ext/sqlite3/libsqlite/sqlite3.c assert( pIn2->flags & MEM_Blob ); assert 67194 ext/sqlite3/libsqlite/sqlite3.c assert( u.bn.pC->isTable==0 ); assert 67202 ext/sqlite3/libsqlite/sqlite3.c assert( u.bn.pC->deferredMoveto==0 ); assert 67223 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 67224 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 && pOp->p2+pOp->p3<=p->nMem+1 ); assert 67225 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67227 ext/sqlite3/libsqlite/sqlite3.c assert( u.bo.pC!=0 ); assert 67235 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<u.bo.r.nField; i++) assert( memIsValid(&u.bo.r.aMem[i]) ); } assert 67241 ext/sqlite3/libsqlite/sqlite3.c assert( u.bo.pC->deferredMoveto==0 ); assert 67262 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67264 ext/sqlite3/libsqlite/sqlite3.c assert( u.bp.pC!=0 ); assert 67270 ext/sqlite3/libsqlite/sqlite3.c assert( u.bp.pC->deferredMoveto==0 ); assert 67271 ext/sqlite3/libsqlite/sqlite3.c assert( u.bp.pC->isTable==0 ); assert 67318 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 67320 ext/sqlite3/libsqlite/sqlite3.c assert( u.bq.pC!=0 ); assert 67321 ext/sqlite3/libsqlite/sqlite3.c assert( u.bq.pC->isOrdered ); assert 67323 ext/sqlite3/libsqlite/sqlite3.c assert( u.bq.pC->deferredMoveto==0 ); assert 67324 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5==0 || pOp->p5==1 ); assert 67325 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 67335 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<u.bq.r.nField; i++) assert( memIsValid(&u.bq.r.aMem[i]) ); } assert 67341 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_IdxGE ); assert 67394 ext/sqlite3/libsqlite/sqlite3.c assert( u.br.iCnt==1 ); assert 67395 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<u.br.iDb))!=0 ); assert 67403 ext/sqlite3/libsqlite/sqlite3.c assert( resetSchemaOnFault==0 || resetSchemaOnFault==u.br.iDb+1 ); assert 67435 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<pOp->p2))!=0 ); assert 67442 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p3]) ); assert 67481 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 67482 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<pOp->p1))!=0 ); assert 67484 ext/sqlite3/libsqlite/sqlite3.c assert( u.bt.pDb->pBt!=0 ); assert 67518 ext/sqlite3/libsqlite/sqlite3.c assert( u.bu.iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[u.bu.iDb].pBt) ); assert 67523 ext/sqlite3/libsqlite/sqlite3.c assert( u.bu.iDb>=0 && u.bu.iDb<db->nDb ); assert 67524 ext/sqlite3/libsqlite/sqlite3.c assert( DbHasProperty(db, u.bu.iDb, DB_SchemaLoaded) ); assert 67536 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy==0 ); assert 67539 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 67560 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 67635 ext/sqlite3/libsqlite/sqlite3.c assert( u.bv.nRoot>0 ); assert 67638 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=p->nMem ); assert 67640 ext/sqlite3/libsqlite/sqlite3.c assert( (u.bv.pnErr->flags & MEM_Int)!=0 ); assert 67641 ext/sqlite3/libsqlite/sqlite3.c assert( (u.bv.pnErr->flags & (MEM_Str|MEM_Blob))==0 ); assert 67647 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5<db->nDb ); assert 67648 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<pOp->p5))!=0 ); assert 67655 ext/sqlite3/libsqlite/sqlite3.c assert( u.bv.z==0 ); assert 67677 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn2->flags & MEM_Int)!=0 ); assert 67743 ext/sqlite3/libsqlite/sqlite3.c assert( pIn3->flags&MEM_Int ); assert 67753 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 67754 ext/sqlite3/libsqlite/sqlite3.c assert( u.bx.iSet==-1 || u.bx.iSet>=0 ); assert 67800 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.by.pRt) ); assert 67801 ext/sqlite3/libsqlite/sqlite3.c assert( u.by.pProgram->nOp>0 ); assert 67867 ext/sqlite3/libsqlite/sqlite3.c assert( u.by.pProgram->nMem+u.by.pProgram->nCsr==u.by.pFrame->nChildMem ); assert 67868 ext/sqlite3/libsqlite/sqlite3.c assert( u.by.pProgram->nCsr==u.by.pFrame->nChildCsr ); assert 67869 ext/sqlite3/libsqlite/sqlite3.c assert( pc==u.by.pFrame->pc ); assert 67974 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.ca.pIn1) ); assert 67994 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 68010 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 68027 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 68056 ext/sqlite3/libsqlite/sqlite3.c assert( u.cb.n>=0 ); assert 68059 ext/sqlite3/libsqlite/sqlite3.c assert( u.cb.apVal || u.cb.n==0 ); assert 68061 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.cb.pRec) ); assert 68067 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=p->nMem ); assert 68078 ext/sqlite3/libsqlite/sqlite3.c assert( pOp>p->aOp ); assert 68079 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[-1].p4type==P4_COLLSEQ ); assert 68080 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[-1].opcode==OP_CollSeq ); assert 68110 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 && pOp->p1<=p->nMem ); assert 68112 ext/sqlite3/libsqlite/sqlite3.c assert( (u.cc.pMem->flags & ~(MEM_Null|MEM_Agg))==0 ); assert 68146 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2==SQLITE_CHECKPOINT_PASSIVE assert 68184 ext/sqlite3/libsqlite/sqlite3.c assert( u.ce.eNew==PAGER_JOURNALMODE_DELETE assert 68192 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 68244 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeIsInTrans(u.ce.pBt)==0 ); assert 68292 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 68293 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<pOp->p1))!=0 ); assert 68341 ext/sqlite3/libsqlite/sqlite3.c assert( p1>=0 && p1<db->nDb ); assert 68342 ext/sqlite3/libsqlite/sqlite3.c assert( (p->btreeMask & (((yDbMask)1)<<p1))!=0 ); assert 68343 ext/sqlite3/libsqlite/sqlite3.c assert( isWriteLock==0 || isWriteLock==1 ); assert 68420 ext/sqlite3/libsqlite/sqlite3.c assert(u.ch.pVtab && u.ch.pModule); assert 68478 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.ci.pQuery) ); assert 68480 ext/sqlite3/libsqlite/sqlite3.c assert( u.ci.pCur->pVtabCursor ); assert 68486 ext/sqlite3/libsqlite/sqlite3.c assert( (u.ci.pQuery->flags&MEM_Int)!=0 && u.ci.pArgc->flags==MEM_Int ); assert 68533 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pVtabCursor ); assert 68534 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=p->nMem ); assert 68543 ext/sqlite3/libsqlite/sqlite3.c assert( u.cj.pModule->xColumn ); assert 68593 ext/sqlite3/libsqlite/sqlite3.c assert( u.ck.pCur->pVtabCursor ); assert 68599 ext/sqlite3/libsqlite/sqlite3.c assert( u.ck.pModule->xNext ); assert 68638 ext/sqlite3/libsqlite/sqlite3.c assert( u.cl.pVtab->pModule->xRename ); assert 68639 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.cl.pName) ); assert 68641 ext/sqlite3/libsqlite/sqlite3.c assert( u.cl.pName->flags & MEM_Str ); assert 68685 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2==1 || pOp->p5==OE_Fail || pOp->p5==OE_Rollback assert 68691 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_VTAB ); assert 68697 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(u.cm.pX) ); assert 68708 ext/sqlite3/libsqlite/sqlite3.c assert( u.cm.nArg>1 && u.cm.apArg[0] && (u.cm.apArg[0]->flags&MEM_Null) ); assert 68803 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_Noop || pOp->opcode==OP_Explain ); assert 68833 ext/sqlite3/libsqlite/sqlite3.c assert( pc>=-1 && pc<p->nOp ); assert 68853 ext/sqlite3/libsqlite/sqlite3.c assert( rc ); assert 68893 ext/sqlite3/libsqlite/sqlite3.c assert( p->zErrMsg==0 ); assert 68904 ext/sqlite3/libsqlite/sqlite3.c assert( db->u1.isInterrupted ); assert 68972 ext/sqlite3/libsqlite/sqlite3.c assert( v->aVar[0].flags&MEM_Int ); assert 69008 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || zErr==0 ); assert 69009 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_ROW && rc!=SQLITE_DONE ); assert 69164 ext/sqlite3/libsqlite/sqlite3.c assert( pBlob->pStmt || db->mallocFailed ); assert 69297 ext/sqlite3/libsqlite/sqlite3.c assert( db == v->db ); assert 69370 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_SCHEMA ); assert 69374 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || p->pStmt==0 ); assert 69440 ext/sqlite3/libsqlite/sqlite3.c assert(p->iSize<=p->nBuf); assert 69706 ext/sqlite3/libsqlite/sqlite3.c assert( iOfst+iAmt<=p->endpoint.iOffset ); assert 69751 ext/sqlite3/libsqlite/sqlite3.c assert( iOfst==p->endpoint.iOffset ); assert 69767 ext/sqlite3/libsqlite/sqlite3.c assert( p->pFirst ); assert 69770 ext/sqlite3/libsqlite/sqlite3.c assert( !p->pFirst ); assert 69791 ext/sqlite3/libsqlite/sqlite3.c assert(size==0); assert 69862 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(p) ); assert 70075 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 && iCol<pEList->nExpr ); assert 70077 ext/sqlite3/libsqlite/sqlite3.c assert( pOrig!=0 ); assert 70078 ext/sqlite3/libsqlite/sqlite3.c assert( pOrig->flags & EP_Resolved ); assert 70093 ext/sqlite3/libsqlite/sqlite3.c assert( zToken!=0 ); assert 70098 ext/sqlite3/libsqlite/sqlite3.c assert( (pDup->flags & (EP_Reduced|EP_TokenOnly))==0 ); assert 70162 ext/sqlite3/libsqlite/sqlite3.c assert( pNC ); /* the name context cannot be NULL. */ assert 70163 ext/sqlite3/libsqlite/sqlite3.c assert( zCol ); /* The Z in X.Y.Z cannot be NULL */ assert 70164 ext/sqlite3/libsqlite/sqlite3.c assert( ~ExprHasAnyProperty(pExpr, EP_TokenOnly|EP_Reduced) ); assert 70183 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 && pTab->zName!=0 ); assert 70185 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->nCol>0 ); assert 70249 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_DELETE || op==TK_UPDATE || op==TK_INSERT ); assert 70321 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft==0 && pExpr->pRight==0 ); assert 70322 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->x.pList==0 ); assert 70323 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->x.pSelect==0 ); assert 70332 ext/sqlite3/libsqlite/sqlite3.c assert( zTab==0 && zDb==0 ); assert 70392 ext/sqlite3/libsqlite/sqlite3.c assert( pMatch->iCursor==pExpr->iTable ); assert 70405 ext/sqlite3/libsqlite/sqlite3.c assert( pNC!=0 ); assert 70410 ext/sqlite3/libsqlite/sqlite3.c assert( pTopNC!=0 ); assert 70460 ext/sqlite3/libsqlite/sqlite3.c assert( pNC!=0 ); assert 70462 ext/sqlite3/libsqlite/sqlite3.c assert( pParse==pWalker->pParse ); assert 70471 ext/sqlite3/libsqlite/sqlite3.c assert( pSrcList->a[i].iCursor>=0 && pSrcList->a[i].iCursor<pParse->nTab); assert 70485 ext/sqlite3/libsqlite/sqlite3.c assert( pSrcList && pSrcList->nSrc==1 ); assert 70518 ext/sqlite3/libsqlite/sqlite3.c assert( pRight->op==TK_DOT ); assert 70542 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 70608 ext/sqlite3/libsqlite/sqlite3.c assert( pNC->nRef>=nRef ); assert 70690 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3ExprIsInteger(pE, &i)==0 ); assert 70782 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 70798 ext/sqlite3/libsqlite/sqlite3.c assert(pDup); assert 70860 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); /* sqlite3SelectNew() guarantees this */ assert 70954 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 70979 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Expanded)!=0 ); assert 70980 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Resolved)==0 ); assert 71002 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 71026 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Aggregate)==0 ); assert 71214 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 71258 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->flags&EP_xIsSelect ); assert 71263 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 71274 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pTab && j<pExpr->pTab->nCol ); assert 71371 ext/sqlite3/libsqlite/sqlite3.c assert( aff1==0 || aff2==0 ); assert 71382 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_EQ || pExpr->op==TK_IN || pExpr->op==TK_LT || assert 71385 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft ); assert 71443 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft ); assert 71445 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft->pColl ); assert 71448 ext/sqlite3/libsqlite/sqlite3.c assert( pRight->pColl ); assert 71614 ext/sqlite3/libsqlite/sqlite3.c assert( iValue>=0 ); assert 71672 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 71739 ext/sqlite3/libsqlite/sqlite3.c assert( pToken ); assert 71746 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pNew, EP_xIsSelect) ); assert 71772 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(pExpr, EP_IntValue|EP_Reduced|EP_TokenOnly) ); assert 71774 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 ); assert 71775 ext/sqlite3/libsqlite/sqlite3.c assert( z[0]!=0 ); assert 71778 ext/sqlite3/libsqlite/sqlite3.c assert( z[0]=='?' ); assert 71841 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_IntValue) || p->u.iValue>=0 ); assert 71906 ext/sqlite3/libsqlite/sqlite3.c assert( flags==EXPRDUP_REDUCE || flags==0 ); /* Only one flag value allowed */ assert 71910 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(p, EP_TokenOnly|EP_Reduced) ); assert 71911 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_FromJoin) ); assert 71912 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags2 & EP2_MallocedToken)==0 ); assert 71913 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags2 & EP2_Irreducible)==0 ); assert 71975 ext/sqlite3/libsqlite/sqlite3.c assert( pzBuffer==0 || isReduced ); assert 72001 ext/sqlite3/libsqlite/sqlite3.c assert( ExprHasProperty(p, EP_Reduced)==0 ); assert 72187 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 ); assert 72212 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nAlloc==0 ); assert 72224 ext/sqlite3/libsqlite/sqlite3.c assert( pList->a!=0 ); assert 72253 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 || pParse->db->mallocFailed!=0 ); assert 72256 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr>0 ); assert 72258 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->zName==0 ); assert 72278 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 || db->mallocFailed!=0 ); assert 72281 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr>0 ); assert 72282 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed || pItem->pExpr==pSpan->pExpr ); assert 72313 ext/sqlite3/libsqlite/sqlite3.c assert( pList->a!=0 || (pList->nExpr==0 && pList->nAlloc==0) ); assert 72314 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr<=pList->nAlloc ); assert 72429 ext/sqlite3/libsqlite/sqlite3.c assert( p->op!=TK_INTEGER || (p->flags & EP_IntValue)!=0 assert 72532 ext/sqlite3/libsqlite/sqlite3.c assert( p->iTable>=0 ); /* p cannot be part of a CHECK constraint */ assert 72576 ext/sqlite3/libsqlite/sqlite3.c assert( p->pGroupBy==0 ); /* Has no GROUP BY clause */ assert 72578 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOffset==0 ); /* No LIMIT means no OFFSET */ assert 72581 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc!=0 ); assert 72586 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pSelect==0 ); /* FROM clause is not a view */ assert 72656 ext/sqlite3/libsqlite/sqlite3.c assert( pX->op==TK_IN ); assert 72680 ext/sqlite3/libsqlite/sqlite3.c assert(v); assert 72819 ext/sqlite3/libsqlite/sqlite3.c assert( testAddr>0 || pParse->db->mallocFailed ); assert 72873 ext/sqlite3/libsqlite/sqlite3.c assert( !isRowid ); assert 72876 ext/sqlite3/libsqlite/sqlite3.c assert( (pExpr->iTable&0x0000FFFF)==pExpr->iTable ); assert 72961 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_EXISTS || pExpr->op==TK_SELECT ); assert 72963 ext/sqlite3/libsqlite/sqlite3.c assert( ExprHasProperty(pExpr, EP_xIsSelect) ); assert 73031 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); /* OOM detected prior to this routine */ assert 73156 ext/sqlite3/libsqlite/sqlite3.c assert( !sqlite3IsNaN(value) ); /* The new AtoF never returns NaN */ assert 73175 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 ); assert 73182 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 ); assert 73222 ext/sqlite3/libsqlite/sqlite3.c assert( iReg>0 ); /* Register numbers are always positive */ assert 73223 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=-1 && iCol<32768 ); /* Finite column numbers */ assert 73247 ext/sqlite3/libsqlite/sqlite3.c assert( p->iReg==0 || p->iTable!=iTab || p->iColumn!=iCol ); assert 73319 ext/sqlite3/libsqlite/sqlite3.c assert( N>0 ); assert 73320 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->iCacheLevel>=N ); assert 73394 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 73491 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 && target<=pParse->nMem ); assert 73493 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->db->mallocFailed ); assert 73507 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->iMem>0 ); assert 73520 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->ckBase>0 ); assert 73534 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73540 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73553 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73554 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]=='x' || pExpr->u.zToken[0]=='X' ); assert 73555 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[1]=='\'' ); assert 73558 ext/sqlite3/libsqlite/sqlite3.c assert( z[n]=='\'' ); assert 73565 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73566 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken!=0 ); assert 73567 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]!=0 ); assert 73570 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]=='?' assert 73589 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73592 ext/sqlite3/libsqlite/sqlite3.c assert( to_op==OP_ToText || aff!=SQLITE_AFF_TEXT ); assert 73593 ext/sqlite3/libsqlite/sqlite3.c assert( to_op==OP_ToBlob || aff!=SQLITE_AFF_NONE ); assert 73594 ext/sqlite3/libsqlite/sqlite3.c assert( to_op==OP_ToNumeric || aff!=SQLITE_AFF_NUMERIC ); assert 73595 ext/sqlite3/libsqlite/sqlite3.c assert( to_op==OP_ToInt || aff!=SQLITE_AFF_INTEGER ); assert 73596 ext/sqlite3/libsqlite/sqlite3.c assert( to_op==OP_ToReal || aff!=SQLITE_AFF_REAL ); assert 73618 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT==OP_Lt ); assert 73619 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LE==OP_Le ); assert 73620 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT==OP_Gt ); assert 73621 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==OP_Ge ); assert 73622 ext/sqlite3/libsqlite/sqlite3.c assert( TK_EQ==OP_Eq ); assert 73623 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NE==OP_Ne ); assert 73663 ext/sqlite3/libsqlite/sqlite3.c assert( TK_AND==OP_And ); assert 73664 ext/sqlite3/libsqlite/sqlite3.c assert( TK_OR==OP_Or ); assert 73665 ext/sqlite3/libsqlite/sqlite3.c assert( TK_PLUS==OP_Add ); assert 73666 ext/sqlite3/libsqlite/sqlite3.c assert( TK_MINUS==OP_Subtract ); assert 73667 ext/sqlite3/libsqlite/sqlite3.c assert( TK_REM==OP_Remainder ); assert 73668 ext/sqlite3/libsqlite/sqlite3.c assert( TK_BITAND==OP_BitAnd ); assert 73669 ext/sqlite3/libsqlite/sqlite3.c assert( TK_BITOR==OP_BitOr ); assert 73670 ext/sqlite3/libsqlite/sqlite3.c assert( TK_SLASH==OP_Divide ); assert 73671 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LSHIFT==OP_ShiftLeft ); assert 73672 ext/sqlite3/libsqlite/sqlite3.c assert( TK_RSHIFT==OP_ShiftRight ); assert 73673 ext/sqlite3/libsqlite/sqlite3.c assert( TK_CONCAT==OP_Concat ); assert 73694 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft ); assert 73699 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73714 ext/sqlite3/libsqlite/sqlite3.c assert( TK_BITNOT==OP_BitNot ); assert 73715 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NOT==OP_Not ); assert 73727 ext/sqlite3/libsqlite/sqlite3.c assert( TK_ISNULL==OP_IsNull ); assert 73728 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NOTNULL==OP_NotNull ); assert 73742 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73761 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 73770 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 73785 ext/sqlite3/libsqlite/sqlite3.c assert( nFarg>=2 ); assert 73937 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->iTable==0 || pExpr->iTable==1 ); assert 73938 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->iColumn>=-1 && pExpr->iColumn<pTab->nCol ); assert 73939 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->iPKey<0 || pExpr->iColumn!=pTab->iPKey ); assert 73940 ext/sqlite3/libsqlite/sqlite3.c assert( p1>=0 && p1<(pTab->nCol*2+2) ); assert 73983 ext/sqlite3/libsqlite/sqlite3.c default: assert( op==TK_CASE ); { assert 73996 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) && pExpr->x.pList ); assert 73997 ext/sqlite3/libsqlite/sqlite3.c assert((pExpr->x.pList->nExpr % 2) == 0); assert 73998 ext/sqlite3/libsqlite/sqlite3.c assert(pExpr->x.pList->nExpr > 0); assert 74022 ext/sqlite3/libsqlite/sqlite3.c assert( pTest!=0 ); assert 74044 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed || pParse->nErr>0 assert 74051 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->affinity==OE_Rollback assert 74064 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 74110 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 && target<=pParse->nMem ); assert 74115 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pVdbe || pParse->db->mallocFailed ); assert 74139 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 ); assert 74237 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 74302 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); assert 74303 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 ); assert 74304 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pVdbe!=0 ); /* Never gets this far otherwise */ assert 74342 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 74394 ext/sqlite3/libsqlite/sqlite3.c assert( jumpIfNull==SQLITE_JUMPIFNULL || jumpIfNull==0 ); assert 74426 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT==OP_Lt ); assert 74427 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LE==OP_Le ); assert 74428 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT==OP_Gt ); assert 74429 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==OP_Ge ); assert 74430 ext/sqlite3/libsqlite/sqlite3.c assert( TK_EQ==OP_Eq ); assert 74431 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NE==OP_Ne ); assert 74462 ext/sqlite3/libsqlite/sqlite3.c assert( TK_ISNULL==OP_IsNull ); assert 74463 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NOTNULL==OP_NotNull ); assert 74514 ext/sqlite3/libsqlite/sqlite3.c assert( jumpIfNull==SQLITE_JUMPIFNULL || jumpIfNull==0 ); assert 74540 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_ISNULL || op==OP_NotNull ); assert 74541 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_NOTNULL || op==OP_IsNull ); assert 74542 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_NE || op==OP_Eq ); assert 74543 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_EQ || op==OP_Ne ); assert 74544 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_LT || op==OP_Ge ); assert 74545 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_LE || op==OP_Gt ); assert 74546 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_GT || op==OP_Le ); assert 74547 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_GE || op==OP_Lt ); assert 74663 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(pA, EP_TokenOnly|EP_Reduced) ); assert 74664 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(pB, EP_TokenOnly|EP_Reduced) ); assert 74774 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(pExpr, EP_TokenOnly|EP_Reduced) ); assert 74852 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 74856 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 74869 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(pExpr, EP_TokenOnly|EP_Reduced) ); assert 74904 ext/sqlite3/libsqlite/sqlite3.c assert( pNC->pSrcList!=0 ); assert 74964 ext/sqlite3/libsqlite/sqlite3.c assert( !usedAsColumnCache(pParse, i, i+n-1) ); assert 75058 ext/sqlite3/libsqlite/sqlite3.c assert( len>0 ); assert 75180 ext/sqlite3/libsqlite/sqlite3.c assert( len>0 ); assert 75323 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 75325 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 75331 ext/sqlite3/libsqlite/sqlite3.c assert( iTrigDb==iDb || iTrigDb==1 ); assert 75395 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->nSrc==1 ); assert 75396 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 75618 ext/sqlite3/libsqlite/sqlite3.c assert( pNew ); assert 75620 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 75627 ext/sqlite3/libsqlite/sqlite3.c assert( pTab ); assert 75738 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTable==0 ); assert 75739 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 75760 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->addColOffset>0 ); assert 75775 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nCol>0 ); assert 75777 ext/sqlite3/libsqlite/sqlite3.c assert( nAlloc>=pNew->nCol && nAlloc%8==0 && nAlloc-pNew->nCol<8 ); assert 75867 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 75868 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeDb(v)==db ); assert 75958 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 75960 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 75961 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 75986 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) ); assert 76059 ext/sqlite3/libsqlite/sqlite3.c assert( regTabname+1==regIdxname assert 76088 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->azColl!=0 ); assert 76089 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->azColl[i]!=0 ); assert 76203 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 76220 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 76221 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 76258 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 76263 ext/sqlite3/libsqlite/sqlite3.c assert( pName2!=0 || pName1==0 ); assert 76333 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 ); assert 76416 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 76417 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pBt!=0 ); assert 76420 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 76485 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->aSample ); assert 76635 ext/sqlite3/libsqlite/sqlite3.c assert( z && zName ); assert 76669 ext/sqlite3/libsqlite/sqlite3.c assert( pVfs ); assert 76743 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=2 ); assert 76881 ext/sqlite3/libsqlite/sqlite3.c assert( v || db->mallocFailed ); assert 76884 ext/sqlite3/libsqlite/sqlite3.c assert( pFunc->nArg==-1 || (pFunc->nArg&0xff)==pFunc->nArg ); assert 76964 ext/sqlite3/libsqlite/sqlite3.c assert( db->nDb>iDb ); assert 77244 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER ); assert 77248 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList ); assert 77260 ext/sqlite3/libsqlite/sqlite3.c assert( iCol<pTab->nCol ); assert 77263 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->iPKey<pTab->nCol ); assert 77268 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 77321 ext/sqlite3/libsqlite/sqlite3.c assert( pParse ); assert 77409 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 77443 ext/sqlite3/libsqlite/sqlite3.c assert( pVdbe!=0 ); /* sqlite3GetVdbe cannot fail: VDBE already allocated */ assert 77479 ext/sqlite3/libsqlite/sqlite3.c assert( !pParse->isMultiWrite assert 77499 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 77539 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->iCacheLevel==0 ); /* Disables and re-enables match */ assert 77578 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nested<10 ); /* Nesting should only be of limited depth */ assert 77611 ext/sqlite3/libsqlite/sqlite3.c assert( zName!=0 ); assert 77614 ext/sqlite3/libsqlite/sqlite3.c assert( zDatabase!=0 || sqlite3BtreeHoldsAllMutexes(db) ); assert 77618 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); assert 77679 ext/sqlite3/libsqlite/sqlite3.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); assert 77683 ext/sqlite3/libsqlite/sqlite3.c assert( pSchema ); assert 77685 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); assert 77714 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 77749 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 77754 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 77755 ext/sqlite3/libsqlite/sqlite3.c assert( pDb->pSchema!=0 ); assert 77764 ext/sqlite3/libsqlite/sqlite3.c assert( pDb->pSchema!=0 ); assert 77771 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<0 ); assert 77824 ext/sqlite3/libsqlite/sqlite3.c assert( pTable!=0 ); assert 77849 ext/sqlite3/libsqlite/sqlite3.c assert( !pTable || pTable->nRef>0 ); assert 77858 ext/sqlite3/libsqlite/sqlite3.c assert( pIndex->pSchema==pTable->pSchema ); assert 77864 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); assert 77865 ext/sqlite3/libsqlite/sqlite3.c assert( pOld==pIndex || pOld==0 ); assert 77896 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 77897 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 77898 ext/sqlite3/libsqlite/sqlite3.c assert( zTabName ); assert 77899 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 78021 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.iDb==0 || db->init.busy ); assert 78112 ext/sqlite3/libsqlite/sqlite3.c assert( (isTemp & 1)==isTemp ); assert 78155 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy ); assert 78178 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTable==0 ); assert 78187 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 78417 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->zType==0 ); assert 78515 ext/sqlite3/libsqlite/sqlite3.c assert( autoInc==0 || autoInc==1 ); assert 78580 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->nColumn==1 ); assert 78648 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 78755 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->affinity-SQLITE_AFF_TEXT >= 0 ); assert 78756 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->affinity-SQLITE_AFF_TEXT < ArraySize(azType) ); assert 78765 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->affinity==SQLITE_AFF_NONE assert 78769 ext/sqlite3/libsqlite/sqlite3.c assert( k<=n ); assert 78811 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy || !pSelect ); assert 78897 ext/sqlite3/libsqlite/sqlite3.c assert(pParse->nTab==1); assert 78907 ext/sqlite3/libsqlite/sqlite3.c assert( p->aCol==0 ); assert 78951 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 78972 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 78976 ext/sqlite3/libsqlite/sqlite3.c assert( p==pOld ); /* Malloc must have failed inside HashInsert() */ assert 78988 ext/sqlite3/libsqlite/sqlite3.c assert( !pSelect && pCons && pEnd ); assert 79089 ext/sqlite3/libsqlite/sqlite3.c assert( pTable ); assert 79123 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->nCol>=0 ); assert 79132 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->pSelect ); assert 79151 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->aCol==0 ); assert 79157 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pTable->pSchema) ); assert 79178 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, idx, 0) ); assert 79217 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 79307 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->pSchema==pTab->pSchema ); assert 79336 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 ); assert 79337 ext/sqlite3/libsqlite/sqlite3.c assert( pName->nSrc==1 ); assert 79348 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 79432 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->pSchema==pTab->pSchema || assert 79522 ext/sqlite3/libsqlite/sqlite3.c assert( pTo!=0 ); assert 79593 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); assert 79602 ext/sqlite3/libsqlite/sqlite3.c assert( pNextTo->pPrevTo==0 ); assert 79631 ext/sqlite3/libsqlite/sqlite3.c assert( isDeferred==0 || isDeferred==1 ); /* EV: R-30323-21917 */ assert 79761 ext/sqlite3/libsqlite/sqlite3.c assert( pStart==0 || pEnd!=0 ); /* pEnd must be non-NULL if pStart is */ assert 79762 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 ); /* Never called with prior errors */ assert 79779 ext/sqlite3/libsqlite/sqlite3.c assert( pName1 && pName2 ); assert 79801 ext/sqlite3/libsqlite/sqlite3.c assert(0); assert 79806 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pSchema==pTab->pSchema ); assert 79808 ext/sqlite3/libsqlite/sqlite3.c assert( pName==0 ); assert 79815 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 79816 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 ); assert 79864 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy ); assert 79952 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 79997 ext/sqlite3/libsqlite/sqlite3.c assert( nExtra>=nColl ); assert 80042 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->onError!=OE_None ); assert 80043 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->autoIndex ); assert 80044 ext/sqlite3/libsqlite/sqlite3.c assert( pIndex->onError!=OE_None ); assert 80082 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); assert 80087 ext/sqlite3/libsqlite/sqlite3.c assert( p==pIndex ); /* Malloc must have failed */ assert 80130 ext/sqlite3/libsqlite/sqlite3.c assert( pEnd!=0 ); assert 80223 ext/sqlite3/libsqlite/sqlite3.c assert( a!=0 ); assert 80246 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 ); /* Never called with prior errors */ assert 80250 ext/sqlite3/libsqlite/sqlite3.c assert( pName->nSrc==1 ); assert 80438 ext/sqlite3/libsqlite/sqlite3.c assert( iStart>=0 ); assert 80439 ext/sqlite3/libsqlite/sqlite3.c assert( nExtra>=1 ); assert 80440 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc!=0 ); assert 80441 ext/sqlite3/libsqlite/sqlite3.c assert( iStart<=pSrc->nSrc ); assert 80451 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 80518 ext/sqlite3/libsqlite/sqlite3.c assert( pDatabase==0 || pTable!=0 ); /* Cannot have C without B */ assert 80549 ext/sqlite3/libsqlite/sqlite3.c assert(pList || pParse->db->mallocFailed ); assert 80620 ext/sqlite3/libsqlite/sqlite3.c assert( pAlias!=0 ); assert 80630 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 ); assert 80642 ext/sqlite3/libsqlite/sqlite3.c assert( pIndexedBy!=0 ); assert 80645 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->notIndexed==0 && pItem->zIndex==0 ); assert 80689 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 80691 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 80714 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 80716 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 80734 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 80736 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 80757 ext/sqlite3/libsqlite/sqlite3.c assert( !SAVEPOINT_BEGIN && SAVEPOINT_RELEASE==1 && SAVEPOINT_ROLLBACK==2 ); assert 80791 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[1].pSchema ); assert 80834 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 80835 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pBt!=0 || iDb==1 ); assert 80836 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<SQLITE_MAX_ATTACHED+2 ); assert 80837 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 80937 ext/sqlite3/libsqlite/sqlite3.c assert( zColl!=0 ); assert 80940 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 ); assert 80980 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); /* Needed for schema access */ assert 80982 ext/sqlite3/libsqlite/sqlite3.c assert( pDb!=0 ); assert 81026 ext/sqlite3/libsqlite/sqlite3.c assert( pName1->z ); assert 81079 ext/sqlite3/libsqlite/sqlite3.c assert( &pKey->aSortOrder[nCol]==&(((u8 *)pKey)[nBytes]) ); assert 81082 ext/sqlite3/libsqlite/sqlite3.c assert( zColl ); assert 81120 ext/sqlite3/libsqlite/sqlite3.c assert( !db->xCollNeeded || !db->xCollNeeded16 ); assert 81200 ext/sqlite3/libsqlite/sqlite3.c assert( !p || p->xCmp ); assert 81225 ext/sqlite3/libsqlite/sqlite3.c assert( p==pColl ); assert 81272 ext/sqlite3/libsqlite/sqlite3.c assert( pDel==0 || pDel==pColl ); assert 81310 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_UTF8==1 && SQLITE_UTF16LE==2 && SQLITE_UTF16BE==3 ); assert 81311 ext/sqlite3/libsqlite/sqlite3.c assert( enc>=SQLITE_UTF8 && enc<=SQLITE_UTF16BE ); assert 81389 ext/sqlite3/libsqlite/sqlite3.c assert( pOther!=pDef && pOther->pNext!=pDef ); assert 81435 ext/sqlite3/libsqlite/sqlite3.c assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE ); assert 81589 ext/sqlite3/libsqlite/sqlite3.c assert( pItem && pSrc->nSrc==1 ); assert 81661 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->nSrc==1 ); assert 81664 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->a[0].pOn==0 ); assert 81665 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->a[0].pUsing==0 ); assert 81715 ext/sqlite3/libsqlite/sqlite3.c assert( pOffset == 0 ); assert 81808 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 81843 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 81846 ext/sqlite3/libsqlite/sqlite3.c assert( rcauth==SQLITE_OK || rcauth==SQLITE_DENY || rcauth==SQLITE_IGNORE ); assert 81850 ext/sqlite3/libsqlite/sqlite3.c assert(!isView || pTrigger); assert 81854 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 81909 ext/sqlite3/libsqlite/sqlite3.c assert( !isView ); assert 81913 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->pSchema==pTab->pSchema ); assert 82048 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 82248 ext/sqlite3/libsqlite/sqlite3.c assert( argc>1 ); assert 82251 ext/sqlite3/libsqlite/sqlite3.c assert( pColl ); assert 82252 ext/sqlite3/libsqlite/sqlite3.c assert( mask==-1 || mask==0 ); assert 82296 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 82330 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 82391 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 || argc==2 ); assert 82403 ext/sqlite3/libsqlite/sqlite3.c assert( len==sqlite3_value_bytes(argv[0]) ); assert 82442 ext/sqlite3/libsqlite/sqlite3.c assert( p1>=0 && p2>=0 ); assert 82469 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || argc==2 ); assert 82509 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 82535 ext/sqlite3/libsqlite/sqlite3.c assert( z2==(char*)sqlite3_value_text(argv[0]) ); assert 82555 ext/sqlite3/libsqlite/sqlite3.c assert( z2==(char*)sqlite3_value_text(argv[0]) ); assert 82633 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 82786 ext/sqlite3/libsqlite/sqlite3.c assert( esc==0 ); /* This is GLOB, not LIKE */ assert 82787 ext/sqlite3/libsqlite/sqlite3.c assert( matchSet<0x80 ); /* '[' is a single-byte character */ assert 82816 ext/sqlite3/libsqlite/sqlite3.c assert( esc==0 ); /* This only occurs for GLOB, not LIKE */ assert 82908 ext/sqlite3/libsqlite/sqlite3.c assert( zB==sqlite3_value_text(argv[0]) ); /* Encoding did not change */ assert 83008 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 83032 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 83061 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 83073 ext/sqlite3/libsqlite/sqlite3.c assert( zBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */ assert 83114 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(argv[0])==SQLITE_NULL ); assert 83133 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 83137 ext/sqlite3/libsqlite/sqlite3.c assert( pBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */ assert 83160 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 83194 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 ); assert 83199 ext/sqlite3/libsqlite/sqlite3.c assert( zStr==sqlite3_value_text(argv[0]) ); /* No encoding change */ assert 83202 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(argv[1])==SQLITE_NULL assert 83207 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(argv[1])!=SQLITE_NULL ); assert 83212 ext/sqlite3/libsqlite/sqlite3.c assert( zPattern==sqlite3_value_text(argv[1]) ); /* No encoding change */ assert 83216 ext/sqlite3/libsqlite/sqlite3.c assert( zRep==sqlite3_value_text(argv[2]) ); assert 83218 ext/sqlite3/libsqlite/sqlite3.c assert( nOut<SQLITE_MAX_LENGTH ); assert 83250 ext/sqlite3/libsqlite/sqlite3.c assert( j+nStr-i+1==nOut ); assert 83253 ext/sqlite3/libsqlite/sqlite3.c assert( j<=nOut ); assert 83282 ext/sqlite3/libsqlite/sqlite3.c assert( zIn==sqlite3_value_text(argv[0]) ); assert 83372 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 83452 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 83521 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || p==0 || p->n>0x7fffffff assert 83591 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || argc==2 ); assert 83637 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM || rc==SQLITE_OK ); assert 83691 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 83704 ext/sqlite3/libsqlite/sqlite3.c assert( (char*)&likeInfoAlt == (char*)&likeInfoAlt.matchAll ); assert 83705 ext/sqlite3/libsqlite/sqlite3.c assert( &((char*)&likeInfoAlt)[1] == (char*)&likeInfoAlt.matchOne ); assert 83706 ext/sqlite3/libsqlite/sqlite3.c assert( &((char*)&likeInfoAlt)[2] == (char*)&likeInfoAlt.matchSet ); assert 84007 ext/sqlite3/libsqlite/sqlite3.c assert( ppIdx && *ppIdx==0 ); assert 84008 ext/sqlite3/libsqlite/sqlite3.c assert( !paiCol || *paiCol==0 ); assert 84009 ext/sqlite3/libsqlite/sqlite3.c assert( pParse ); assert 84032 ext/sqlite3/libsqlite/sqlite3.c assert( nCol>1 ); assert 84214 ext/sqlite3/libsqlite/sqlite3.c assert( aiCol[i]!=pTab->iPKey ); assert 84239 ext/sqlite3/libsqlite/sqlite3.c assert( nIncr==1 ); assert 84300 ext/sqlite3/libsqlite/sqlite3.c assert( !pIdx || pIdx->pTable==pTab ); assert 84339 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 ); assert 84453 ext/sqlite3/libsqlite/sqlite3.c assert( v ); /* VDBE has already been allocated */ assert 84521 ext/sqlite3/libsqlite/sqlite3.c assert( (regOld==0)!=(regNew==0) ); assert 84553 ext/sqlite3/libsqlite/sqlite3.c assert( pFKey->nCol==1 || (aiFree && pIdx) ); assert 84606 ext/sqlite3/libsqlite/sqlite3.c assert( regOld==0 && regNew!=0 ); assert 84616 ext/sqlite3/libsqlite/sqlite3.c assert( aiCol || pFKey->nCol==1 ); assert 84793 ext/sqlite3/libsqlite/sqlite3.c assert( aiCol || pFKey->nCol==1 ); assert 84804 ext/sqlite3/libsqlite/sqlite3.c assert( iFromCol>=0 ); assert 84982 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pTab->pSchema) ); assert 85002 ext/sqlite3/libsqlite/sqlite3.c assert( pFKey->isDeferred==0 || pFKey->isDeferred==1 ); assert 85046 ext/sqlite3/libsqlite/sqlite3.c assert( opcode==OP_OpenWrite || opcode==OP_OpenRead ); assert 85162 ext/sqlite3/libsqlite/sqlite3.c assert( pOp!=0 ); assert 85177 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.pVtab!=0 ); assert 85178 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_VTAB ); assert 85249 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pTriggerTab==0 ); assert 85250 ext/sqlite3/libsqlite/sqlite3.c assert( pParse==sqlite3ParseToplevel(pParse) ); assert 85252 ext/sqlite3/libsqlite/sqlite3.c assert( v ); /* We failed long ago if this is not so */ assert 85256 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); assert 85299 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 85307 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); assert 85503 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 85511 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 85533 ext/sqlite3/libsqlite/sqlite3.c assert( (pTrigger && tmask) || (pTrigger==0 && tmask==0) ); assert 85569 ext/sqlite3/libsqlite/sqlite3.c assert( !pTrigger ); assert 85570 ext/sqlite3/libsqlite/sqlite3.c assert( pList==0 ); assert 85621 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 || rc ); assert 85632 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect->pEList ); assert 85634 ext/sqlite3/libsqlite/sqlite3.c assert( dest.nMem==nColumn ); assert 85688 ext/sqlite3/libsqlite/sqlite3.c assert( useTempTable==0 ); assert 85841 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect==0 ); /* Otherwise useTempTable is true */ assert 85853 ext/sqlite3/libsqlite/sqlite3.c assert( !IsVirtual(pTab) ); assert 85870 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect==0 ); /* Otherwise useTempTable is true */ assert 85958 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(pTab) ); assert 86179 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 86180 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pSelect==0 ); /* This table is not a VIEW */ assert 86200 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Rollback || onError==OE_Abort || onError==OE_Fail assert 86220 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Replace ); assert 86315 ext/sqlite3/libsqlite/sqlite3.c assert( seenReplace==0 ); assert 86376 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Rollback || onError==OE_Abort || onError==OE_Fail assert 86404 ext/sqlite3/libsqlite/sqlite3.c assert( seenReplace==0 ); assert 86410 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Replace ); assert 86459 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 86460 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pSelect==0 ); /* This table is not a VIEW */ assert 86514 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 86518 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->pSchema==pTab->pSchema ); assert 86568 ext/sqlite3/libsqlite/sqlite3.c assert( pDest && pSrc ); assert 86569 ext/sqlite3/libsqlite/sqlite3.c assert( pDest->pTable!=pSrc->pTable ); assert 86663 ext/sqlite3/libsqlite/sqlite3.c assert(pSelect->pSrc); /* allocated even if there is no FROM clause */ assert 86684 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect->pOffset==0 ); /* Must be so if pLimit==0 */ assert 86692 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 86696 ext/sqlite3/libsqlite/sqlite3.c assert( pEList->a[0].pExpr ); assert 86817 ext/sqlite3/libsqlite/sqlite3.c assert( (pDest->tabFlags & TF_Autoincrement)==0 ); assert 86828 ext/sqlite3/libsqlite/sqlite3.c assert( pSrcIdx ); assert 86916 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pStmt==0 ); assert 86946 ext/sqlite3/libsqlite/sqlite3.c assert( azCols[i]!=0 ); assert 87003 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&db->errMask)==rc ); assert 87919 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 88018 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xff)==rc ); assert 88294 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); /* Already allocated by sqlite3Pragma() */ assert 88339 ext/sqlite3/libsqlite/sqlite3.c assert( action==OE_None ); break; assert 88358 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_DELETE==0 ); assert 88359 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_PERSIST==1 ); assert 88360 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_OFF==2 ); assert 88361 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_TRUNCATE==3 ); assert 88362 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_MEMORY==4 ); assert 88363 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_WAL==5 ); assert 88364 ext/sqlite3/libsqlite/sqlite3.c assert( eMode>=0 && eMode<=ArraySize(azModeName) ); assert 88425 ext/sqlite3/libsqlite/sqlite3.c assert( pId2 ); assert 88475 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 88492 ext/sqlite3/libsqlite/sqlite3.c assert( pBt!=0 ); assert 88518 ext/sqlite3/libsqlite/sqlite3.c assert( pBt!=0 ); assert 88588 ext/sqlite3/libsqlite/sqlite3.c assert(pDb==&db->aDb[0]); assert 88599 ext/sqlite3/libsqlite/sqlite3.c assert(eMode==PAGER_LOCKINGMODE_NORMAL||eMode==PAGER_LOCKINGMODE_EXCLUSIVE); assert 88686 ext/sqlite3/libsqlite/sqlite3.c assert( pBt!=0 ); assert 88700 ext/sqlite3/libsqlite/sqlite3.c assert( eAuto>=0 && eAuto<=2 ); assert 88778 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 89002 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->nCol>cnum ); assert 89046 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[i].zName!=0 ); assert 89199 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 89350 ext/sqlite3/libsqlite/sqlite3.c assert( encnames[SQLITE_UTF8].enc==SQLITE_UTF8 ); assert 89351 ext/sqlite3/libsqlite/sqlite3.c assert( encnames[SQLITE_UTF16LE].enc==SQLITE_UTF16LE ); assert 89352 ext/sqlite3/libsqlite/sqlite3.c assert( encnames[SQLITE_UTF16BE].enc==SQLITE_UTF16BE ); assert 89667 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 ); assert 89669 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 89676 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 89690 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy ); assert 89696 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xFF)==(rcp&0xFF) ); assert 89700 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==1 ); assert 89783 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 89784 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pSchema ); assert 89785 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 89786 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); assert 89924 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy ); assert 89997 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 90037 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 90060 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->checkSchema ); assert 90061 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 90083 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 90116 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 90123 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<db->nDb ); assert 90152 ext/sqlite3/libsqlite/sqlite3.c assert( ppStmt && *ppStmt==0 ); assert 90153 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 90154 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 90182 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(pBt) ); assert 90218 ext/sqlite3/libsqlite/sqlite3.c assert( 1==(int)pParse->nQueryLoop ); assert 90258 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy==0 || saveSqlFlag==0 ); assert 90265 ext/sqlite3/libsqlite/sqlite3.c assert(!(*ppStmt)); assert 90288 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&db->errMask)==rc ); assert 90301 ext/sqlite3/libsqlite/sqlite3.c assert( ppStmt!=0 ); assert 90332 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(sqlite3VdbeDb(p)->mutex) ); assert 90334 ext/sqlite3/libsqlite/sqlite3.c assert( zSql!=0 ); /* Reprepare only called for prepare_v2() statements */ assert 90336 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 90342 ext/sqlite3/libsqlite/sqlite3.c assert( pNew==0 ); assert 90345 ext/sqlite3/libsqlite/sqlite3.c assert( pNew!=0 ); assert 90372 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 90384 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 90409 ext/sqlite3/libsqlite/sqlite3.c assert( ppStmt ); assert 90452 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 90464 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 90536 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed || !pOffset || pLimit ); /* OFFSET implies LIMIT */ assert 90554 ext/sqlite3/libsqlite/sqlite3.c assert( pOffset==0 || pLimit!=0 ); assert 90636 ext/sqlite3/libsqlite/sqlite3.c assert( pB!=0 ); assert 90681 ext/sqlite3/libsqlite/sqlite3.c assert( (piTab==0)==(piCol==0) ); /* Both or neither are NULL */ assert 90721 ext/sqlite3/libsqlite/sqlite3.c assert( iLeft<iRight ); assert 90722 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->nSrc>iRight ); assert 90723 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->a[iLeft].pTab ); assert 90724 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->a[iRight].pTab ); assert 90732 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(pEq, EP_TokenOnly|EP_Reduced) ); assert 90768 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasAnyProperty(p, EP_TokenOnly|EP_Reduced) ); assert 91016 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 91018 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 91036 ext/sqlite3/libsqlite/sqlite3.c assert( pDest->nMem==nResultCol ); assert 91057 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 91058 ext/sqlite3/libsqlite/sqlite3.c assert( pEList->nExpr==nColumn ); assert 91116 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn==1 ); assert 91147 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn==1 ); assert 91187 ext/sqlite3/libsqlite/sqlite3.c assert( eDest==SRT_Discard ); assert 91316 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_UNION || op==TK_EXCEPT || op==TK_INTERSECT || op==TK_ALL ); assert 91381 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn==1 ); assert 91388 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn==1 ); assert 91396 ext/sqlite3/libsqlite/sqlite3.c assert( eDest==SRT_Output || eDest==SRT_Coroutine ); assert 91400 ext/sqlite3/libsqlite/sqlite3.c assert( regRow!=pDest->iMem+i ); assert 91504 ext/sqlite3/libsqlite/sqlite3.c assert( pTab && pExpr->pTab==pTab ); assert 91524 ext/sqlite3/libsqlite/sqlite3.c assert( !pS ); assert 91526 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); assert 91551 ext/sqlite3/libsqlite/sqlite3.c assert( ExprHasProperty(pExpr, EP_xIsSelect) ); assert 91562 ext/sqlite3/libsqlite/sqlite3.c assert( pzOriginTab && pzOriginCol ); assert 91650 ext/sqlite3/libsqlite/sqlite3.c assert( j<pTabList->nSrc ); assert 91653 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); assert 91712 ext/sqlite3/libsqlite/sqlite3.c assert( p->pRight==0 || ExprHasProperty(p->pRight, EP_IntValue) assert 91729 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pColExpr, EP_IntValue) ); assert 91795 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect!=0 ); assert 91796 ext/sqlite3/libsqlite/sqlite3.c assert( (pSelect->selFlags & SF_Resolved)!=0 ); assert 91797 ext/sqlite3/libsqlite/sqlite3.c assert( nCol==pSelect->pEList->nExpr || db->mallocFailed ); assert 91836 ext/sqlite3/libsqlite/sqlite3.c assert( db->lookaside.bEnabled==0 ); assert 91900 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOffset==0 || p->pLimit!=0 ); assert 91953 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 ); assert 92020 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pPrior ); /* Calling function guarantees this much */ assert 92023 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior->pRightmost!=pPrior ); assert 92024 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior->pRightmost==p->pRightmost ); assert 92040 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); /* The VDBE already created by calling function */ assert 92045 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 92054 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList && pPrior->pEList ); assert 92074 ext/sqlite3/libsqlite/sqlite3.c assert( !pPrior->pLimit ); assert 92124 ext/sqlite3/libsqlite/sqlite3.c assert( p->pRightmost!=p ); /* Can only happen for leftward elements assert 92126 ext/sqlite3/libsqlite/sqlite3.c assert( p->pLimit==0 ); /* Not allowed on leftward elements */ assert 92127 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOffset==0 ); /* Not allowed on leftward elements */ assert 92134 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 ); assert 92136 ext/sqlite3/libsqlite/sqlite3.c assert( p->addrOpenEphm[0] == -1 ); assert 92139 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 92144 ext/sqlite3/libsqlite/sqlite3.c assert( !pPrior->pOrderBy ); assert 92157 ext/sqlite3/libsqlite/sqlite3.c assert( p->op==TK_UNION ); assert 92185 ext/sqlite3/libsqlite/sqlite3.c assert( unionTab==dest.iParm || dest.eDest!=priorOp ); assert 92188 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 92208 ext/sqlite3/libsqlite/sqlite3.c default: assert( p->op==TK_INTERSECT ); { assert 92222 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 ); assert 92225 ext/sqlite3/libsqlite/sqlite3.c assert( p->addrOpenEphm[0] == -1 ); assert 92228 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 92242 ext/sqlite3/libsqlite/sqlite3.c assert( p->addrOpenEphm[1] == -1 ); assert 92263 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 92306 ext/sqlite3/libsqlite/sqlite3.c assert( p->pRightmost==p ); assert 92331 ext/sqlite3/libsqlite/sqlite3.c assert( pLoop->addrOpenEphm[1]<0 ); assert 92431 ext/sqlite3/libsqlite/sqlite3.c assert( pIn->nMem==1 ); assert 92457 ext/sqlite3/libsqlite/sqlite3.c assert( pIn->nMem==1 ); assert 92486 ext/sqlite3/libsqlite/sqlite3.c assert( pDest->eDest==SRT_Output ); assert 92638 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy!=0 ); assert 92639 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyDup==0 ); /* "Managed" code needs this. Ticket #3382. */ assert 92642 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); /* Already thrown the error if VDBE alloc failed */ assert 92651 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior->pOrderBy==0 ); assert 92653 ext/sqlite3/libsqlite/sqlite3.c assert( pOrderBy ); assert 92664 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->iCol>0 ); assert 92689 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->iCol>0 && pItem->iCol<=p->pEList->nExpr ); assert 92729 ext/sqlite3/libsqlite/sqlite3.c assert( nOrderBy>=nExpr || db->mallocFailed ); assert 92973 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 && pExpr->iColumn<pEList->nExpr ); assert 92974 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft==0 && pExpr->pRight==0 ); assert 93022 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc ); /* Even for (SELECT 1) we have: pSrc!=0 but pSrc->nSrc==0 */ assert 93164 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 93165 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrior==0 ); /* Unable to flatten compound queries */ assert 93168 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc && iFrom>=0 && iFrom<pSrc->nSrc ); assert 93172 ext/sqlite3/libsqlite/sqlite3.c assert( pSub!=0 ); assert 93176 ext/sqlite3/libsqlite/sqlite3.c assert( pSubSrc ); assert 93393 ext/sqlite3/libsqlite/sqlite3.c assert( pParent==p ); /* First time through the loop */ assert 93396 ext/sqlite3/libsqlite/sqlite3.c assert( pParent!=p ); /* 2nd and subsequent times through the loop */ assert 93399 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 93463 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pOrderBy==0 ); assert 93475 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pHaving==0 ); assert 93481 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pGroupBy==0 ); assert 93536 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 93560 ext/sqlite3/libsqlite/sqlite3.c assert( !p->pGroupBy ); assert 93569 ext/sqlite3/libsqlite/sqlite3.c assert( pTab && !pTab->pSelect && pExpr ); assert 93661 ext/sqlite3/libsqlite/sqlite3.c assert( i==0 ); assert 93668 ext/sqlite3/libsqlite/sqlite3.c assert( pSel!=0 ); assert 93669 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pTab==0 ); assert 93683 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pTab==0 ); assert 93692 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pSelect==0 ); assert 93724 ext/sqlite3/libsqlite/sqlite3.c assert( pE->op!=TK_DOT || pE->pRight!=0 ); assert 93725 ext/sqlite3/libsqlite/sqlite3.c assert( pE->op!=TK_DOT || (pE->pLeft!=0 && pE->pLeft->op==TK_ID) ); assert 93742 ext/sqlite3/libsqlite/sqlite3.c assert( pE->op!=TK_DOT || pE->pRight!=0 ); assert 93760 ext/sqlite3/libsqlite/sqlite3.c assert( pE->pLeft!=0 ); assert 93761 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pE->pLeft, EP_IntValue) ); assert 93789 ext/sqlite3/libsqlite/sqlite3.c assert(IsVirtual(pTab)); assert 93904 ext/sqlite3/libsqlite/sqlite3.c assert( p->selFlags & SF_Resolved ); assert 93914 ext/sqlite3/libsqlite/sqlite3.c assert( pSel ); assert 93992 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pE, EP_xIsSelect) ); assert 94016 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pF->pExpr, EP_xIsSelect) ); assert 94039 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pF->pExpr, EP_xIsSelect) ); assert 94050 ext/sqlite3/libsqlite/sqlite3.c assert( nArg==1 ); assert 94057 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); /* pList!=0 if pF->pFunc has NEEDCOLL */ assert 94211 ext/sqlite3/libsqlite/sqlite3.c assert(pDest->eDest==SRT_Exists || pDest->eDest==SRT_Union || assert 94227 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 94273 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->isPopulated==0 ); assert 94323 ext/sqlite3/libsqlite/sqlite3.c assert( p->pGroupBy==0 || (p->selFlags & SF_Aggregate)!=0 ); assert 94377 ext/sqlite3/libsqlite/sqlite3.c assert( isAgg || pGroupBy ); assert 94407 ext/sqlite3/libsqlite/sqlite3.c assert(!isDistinct); assert 94465 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(sAggInfo.aFunc[i].pExpr, EP_xIsSelect) ); assert 94766 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p->pEList->a[0].pExpr, EP_xIsSelect) ); assert 95083 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(res.azResult[0])>= sizeof(res.nData) ); assert 95127 ext/sqlite3/libsqlite/sqlite3.c assert( azResult!=0 ); assert 95193 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(pParse->db, 0, pTmpSchema) ); assert 95237 ext/sqlite3/libsqlite/sqlite3.c assert( pName1!=0 ); /* pName1->z might be NULL, but not pName1 itself */ assert 95238 ext/sqlite3/libsqlite/sqlite3.c assert( pName2!=0 ); assert 95239 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_INSERT || op==TK_UPDATE || op==TK_DELETE ); assert 95240 ext/sqlite3/libsqlite/sqlite3.c assert( op>0 && op<0xff ); assert 95273 ext/sqlite3/libsqlite/sqlite3.c assert( pTableName->nSrc==1 ); assert 95305 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 95311 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy ); assert 95375 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==0 ); assert 95386 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==pTrigger ); assert 95447 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 95455 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 95463 ext/sqlite3/libsqlite/sqlite3.c assert( !pParse->pNewTrigger ); assert 95527 ext/sqlite3/libsqlite/sqlite3.c assert(pEList == 0 || pSelect == 0); assert 95528 ext/sqlite3/libsqlite/sqlite3.c assert(pEList != 0 || pSelect != 0 || db->mallocFailed); assert 95625 ext/sqlite3/libsqlite/sqlite3.c assert( pName->nSrc==1 ); assert 95629 ext/sqlite3/libsqlite/sqlite3.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); assert 95633 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); assert 95672 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 95674 ext/sqlite3/libsqlite/sqlite3.c assert( pTable ); assert 95675 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->pSchema==pTrigger->pSchema || iDb==1 ); assert 95691 ext/sqlite3/libsqlite/sqlite3.c assert( pTable!=0 ); assert 95727 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 95780 ext/sqlite3/libsqlite/sqlite3.c assert( pList==0 || IsVirtual(pTab)==0 ); assert 95811 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->nSrc>0 ); assert 95812 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->a!=0 ); assert 95816 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<pParse->db->nDb ); assert 95836 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pTriggerTab && pParse->pToplevel ); assert 95837 ext/sqlite3/libsqlite/sqlite3.c assert( pStepList ); assert 95838 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 95882 ext/sqlite3/libsqlite/sqlite3.c default: assert( pStep->op==TK_SELECT ); { assert 95923 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->zErrMsg==0 || pFrom->nErr ); assert 95924 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->zErrMsg==0 || pTo->nErr ); assert 95953 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); assert 95954 ext/sqlite3/libsqlite/sqlite3.c assert( pTop->pVdbe ); assert 96036 ext/sqlite3/libsqlite/sqlite3.c assert( !pSubParse->pAinc && !pSubParse->pZombieTab ); assert 96037 ext/sqlite3/libsqlite/sqlite3.c assert( !pSubParse->pTriggerPrg && !pSubParse->nMaxArg ); assert 96058 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); assert 96094 ext/sqlite3/libsqlite/sqlite3.c assert( pPrg || pParse->nErr || pParse->db->mallocFailed ); assert 96168 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_UPDATE || op==TK_INSERT || op==TK_DELETE ); assert 96169 ext/sqlite3/libsqlite/sqlite3.c assert( tr_tm==TRIGGER_BEFORE || tr_tm==TRIGGER_AFTER ); assert 96170 ext/sqlite3/libsqlite/sqlite3.c assert( (op==TK_UPDATE)==(pChanges!=0) ); assert 96177 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSchema!=0 ); assert 96178 ext/sqlite3/libsqlite/sqlite3.c assert( p->pTabSchema!=0 ); assert 96179 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSchema==p->pTabSchema assert 96230 ext/sqlite3/libsqlite/sqlite3.c assert( isNew==1 || isNew==0 ); assert 96310 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 96316 ext/sqlite3/libsqlite/sqlite3.c assert( i<pTab->nCol ); assert 96386 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 96400 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger || tmask==0 ); assert 96609 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nTab>iCur+i+1 ); assert 96632 ext/sqlite3/libsqlite/sqlite3.c assert( chngRowid || pTrigger || hasFK || regOldRowid==regNewRowid ); assert 96872 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->iPKey<0 ); assert 96886 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 96965 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_ROW ); assert 97072 ext/sqlite3/libsqlite/sqlite3.c assert( strcmp(pDb->zName,"vacuum_db")==0 ); assert 97208 ext/sqlite3/libsqlite/sqlite3.c assert( 1==sqlite3BtreeIsInTrans(pTemp) ); assert 97209 ext/sqlite3/libsqlite/sqlite3.c assert( 1==sqlite3BtreeIsInTrans(pMain) ); assert 97229 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 97382 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(pTab) ); assert 97394 ext/sqlite3/libsqlite/sqlite3.c assert( db ); assert 97395 ext/sqlite3/libsqlite/sqlite3.c assert( pVTab->nRef>0 ); assert 97396 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SafetyCheckOk(db) ); assert 97426 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); assert 97431 ext/sqlite3/libsqlite/sqlite3.c assert( db2 ); assert 97443 ext/sqlite3/libsqlite/sqlite3.c assert( !db || pRet ); assert 97472 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 97473 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 97554 ext/sqlite3/libsqlite/sqlite3.c assert( 0==pTable->pIndex ); assert 97558 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 97665 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pSchema) ); assert 97669 ext/sqlite3/libsqlite/sqlite3.c assert( pTab==pOld ); /* Malloc must have failed inside HashInsert() */ assert 97696 ext/sqlite3/libsqlite/sqlite3.c assert(pArg->z < p->z); assert 97734 ext/sqlite3/libsqlite/sqlite3.c assert( &db->pVtabCtx ); assert 97735 ext/sqlite3/libsqlite/sqlite3.c assert( xConstruct ); assert 97794 ext/sqlite3/libsqlite/sqlite3.c assert(zType[i-1]==' '); assert 97820 ext/sqlite3/libsqlite/sqlite3.c assert( pTab ); assert 97891 ext/sqlite3/libsqlite/sqlite3.c assert( pTab && (pTab->tabFlags & TF_Virtual)!=0 && !pTab->pVTable ); assert 97938 ext/sqlite3/libsqlite/sqlite3.c assert( (pTab->tabFlags & TF_Virtual)!=0 ); assert 97975 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xff)==rc ); assert 97996 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 98001 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pVTable==p && p->pNext==0 ); assert 98151 ext/sqlite3/libsqlite/sqlite3.c assert( op==SAVEPOINT_RELEASE||op==SAVEPOINT_ROLLBACK||op==SAVEPOINT_BEGIN ); assert 98152 ext/sqlite3/libsqlite/sqlite3.c assert( iSavepoint>=0 ); assert 98218 ext/sqlite3/libsqlite/sqlite3.c assert( pVtab!=0 ); assert 98219 ext/sqlite3/libsqlite/sqlite3.c assert( pVtab->pModule!=0 ); assert 98265 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(pTab) ); assert 98290 ext/sqlite3/libsqlite/sqlite3.c assert( OE_Rollback==1 && OE_Abort==2 && OE_Fail==3 ); assert 98291 ext/sqlite3/libsqlite/sqlite3.c assert( OE_Ignore==4 && OE_Replace==5 ); assert 98292 ext/sqlite3/libsqlite/sqlite3.c assert( db->vtabOnConflict>=1 && db->vtabOnConflict<=5 ); assert 98314 ext/sqlite3/libsqlite/sqlite3.c assert( p->pTab==0 || (p->pTab->tabFlags & TF_Virtual)!=0 ); assert 98734 ext/sqlite3/libsqlite/sqlite3.c assert( pMaskSet->n<=(int)sizeof(Bitmask)*8 ); assert 98752 ext/sqlite3/libsqlite/sqlite3.c assert( pMaskSet->n < ArraySize(pMaskSet->ix) ); assert 98824 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT>TK_EQ && TK_GT<TK_GE ); assert 98825 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT>TK_EQ && TK_LT<TK_GE ); assert 98826 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LE>TK_EQ && TK_LE<TK_GE ); assert 98827 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==TK_EQ+4 ); assert 98851 ext/sqlite3/libsqlite/sqlite3.c assert( allowedOp(pExpr->op) && pExpr->op!=TK_IN ); assert 98859 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT==TK_GT+2 ); assert 98860 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==TK_LE+2 ); assert 98861 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT>TK_EQ ); assert 98862 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT<TK_LE ); assert 98863 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op>=TK_GT && pExpr->op<=TK_GE ); assert 98873 ext/sqlite3/libsqlite/sqlite3.c assert( allowedOp(op) ); assert 98879 ext/sqlite3/libsqlite/sqlite3.c assert( (WO_EQ<<(op-TK_EQ)) < 0x7fff ); assert 98882 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_ISNULL || c==WO_ISNULL ); assert 98883 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_IN || c==WO_IN ); assert 98884 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_EQ || c==WO_EQ ); assert 98885 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_LT || c==WO_LT ); assert 98886 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_LE || c==WO_LE ); assert 98887 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_GT || c==WO_GT ); assert 98888 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_GE || c==WO_GE ); assert 98908 ext/sqlite3/libsqlite/sqlite3.c assert( iCur>=0 ); assert 98930 ext/sqlite3/libsqlite/sqlite3.c assert(pX->pLeft); assert 98932 ext/sqlite3/libsqlite/sqlite3.c assert(pColl || pParse->nErr); assert 99002 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft->iColumn!=(-1) ); /* Because IPK never has AFF_TEXT */ assert 99017 ext/sqlite3/libsqlite/sqlite3.c assert( pRight->op==TK_VARIABLE || pRight->op==TK_REGISTER ); assert 99197 ext/sqlite3/libsqlite/sqlite3.c assert( (pTerm->wtFlags & (TERM_DYNAMIC|TERM_ORINFO|TERM_ANDINFO))==0 ); assert 99198 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_OR ); assert 99207 ext/sqlite3/libsqlite/sqlite3.c assert( pOrWc->nTerm>=2 ); assert 99217 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->eOperator==0 ); assert 99218 ext/sqlite3/libsqlite/sqlite3.c assert( (pOrTerm->wtFlags & (TERM_ANDINFO|TERM_ORINFO))==0 ); assert 99236 ext/sqlite3/libsqlite/sqlite3.c assert( pAndTerm->pExpr ); assert 99306 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->eOperator==WO_EQ ); assert 99311 ext/sqlite3/libsqlite/sqlite3.c assert( j==1 ); assert 99321 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->wtFlags & (TERM_COPIED|TERM_VIRTUAL) ); assert 99331 ext/sqlite3/libsqlite/sqlite3.c assert( j==1 ); assert 99332 ext/sqlite3/libsqlite/sqlite3.c assert( (chngToIN&(chngToIN-1))==0 ); assert 99333 ext/sqlite3/libsqlite/sqlite3.c assert( chngToIN==getMask(pMaskSet, iCursor) ); assert 99342 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->eOperator==WO_EQ ); assert 99378 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->eOperator==WO_EQ ); assert 99379 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->leftCursor==iCursor ); assert 99380 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->u.leftColumn==iColumn ); assert 99385 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft!=0 ); assert 99391 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pNew, EP_xIsSelect) ); assert 99454 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pRight==0 ); assert 99536 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); assert 99537 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr==2 ); assert 99559 ext/sqlite3/libsqlite/sqlite3.c assert( pWC->op==TK_AND ); assert 99768 ext/sqlite3/libsqlite/sqlite3.c assert( pOrderBy!=0 ); assert 99770 ext/sqlite3/libsqlite/sqlite3.c assert( nTerm>0 ); assert 99775 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->zName || (pIdx->nColumn==1 && pIdx->aiColumn[0]==-1) ); assert 99832 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->aSortOrder!=0 || iColumn==-1 ); assert 99833 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->sortOrder==0 || pTerm->sortOrder==1 ); assert 99834 ext/sqlite3/libsqlite/sqlite3.c assert( iSortOrder==0 || iSortOrder==1 ); assert 100094 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nQueryLoop >= (double)1 ); assert 100159 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 100182 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn>0 ); assert 100235 ext/sqlite3/libsqlite/sqlite3.c assert( (u32)n==pLevel->plan.nEq ); assert 100253 ext/sqlite3/libsqlite/sqlite3.c assert( n==nColumn ); assert 100257 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->iIdxCur>=0 ); assert 100305 ext/sqlite3/libsqlite/sqlite3.c assert( (pTerm->eOperator&(pTerm->eOperator-1))==0 ); assert 100355 ext/sqlite3/libsqlite/sqlite3.c assert( (pTerm->eOperator&(pTerm->eOperator-1))==0 ); assert 100365 ext/sqlite3/libsqlite/sqlite3.c assert( WO_EQ==SQLITE_INDEX_CONSTRAINT_EQ ); assert 100366 ext/sqlite3/libsqlite/sqlite3.c assert( WO_LT==SQLITE_INDEX_CONSTRAINT_LT ); assert 100367 ext/sqlite3/libsqlite/sqlite3.c assert( WO_LE==SQLITE_INDEX_CONSTRAINT_LE ); assert 100368 ext/sqlite3/libsqlite/sqlite3.c assert( WO_GT==SQLITE_INDEX_CONSTRAINT_GT ); assert 100369 ext/sqlite3/libsqlite/sqlite3.c assert( WO_GE==SQLITE_INDEX_CONSTRAINT_GE ); assert 100370 ext/sqlite3/libsqlite/sqlite3.c assert( WO_MATCH==SQLITE_INDEX_CONSTRAINT_MATCH ); assert 100371 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->eOperator & (WO_EQ|WO_LT|WO_LE|WO_GT|WO_GE|WO_MATCH) ); assert 100494 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->azModuleArg && pTab->azModuleArg[0] ); assert 100495 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GetVTable(pParse->db, pTab) ); assert 100615 ext/sqlite3/libsqlite/sqlite3.c assert( roundUp==0 || roundUp==1 ); assert 100644 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_TEXT || eType==SQLITE_BLOB ); assert 100649 ext/sqlite3/libsqlite/sqlite3.c assert( pColl->enc==SQLITE_UTF8 ); assert 100661 ext/sqlite3/libsqlite/sqlite3.c assert( z && pColl && pColl->xCmp ); assert 100677 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 100691 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<=SQLITE_INDEX_SAMPLES ); assert 100799 ext/sqlite3/libsqlite/sqlite3.c assert( pLower->eOperator==WO_GT || pLower->eOperator==WO_GE ); assert 100805 ext/sqlite3/libsqlite/sqlite3.c assert( pUpper->eOperator==WO_LT || pUpper->eOperator==WO_LE ); assert 100829 ext/sqlite3/libsqlite/sqlite3.c assert( iEst<=SQLITE_INDEX_SAMPLES ); assert 100845 ext/sqlite3/libsqlite/sqlite3.c assert( pLower || pUpper ); assert 100882 ext/sqlite3/libsqlite/sqlite3.c assert( p->aSample!=0 ); assert 100945 ext/sqlite3/libsqlite/sqlite3.c assert( p->aSample!=0 ); assert 100964 ext/sqlite3/libsqlite/sqlite3.c assert( iLower>=0 && iUpper<=SQLITE_INDEX_SAMPLES ); assert 101457 ext/sqlite3/libsqlite/sqlite3.c assert( pOrderBy || (pCost->plan.wsFlags&WHERE_ORDERBY)==0 ); assert 101458 ext/sqlite3/libsqlite/sqlite3.c assert( pCost->plan.u.pIdx==0 || (pCost->plan.wsFlags&WHERE_ROWID_EQ)==0 ); assert 101459 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->pIndex==0 assert 101559 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->db->mallocFailed ); assert 101562 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 101606 ext/sqlite3/libsqlite/sqlite3.c assert( iTarget>0 ); assert 101618 ext/sqlite3/libsqlite/sqlite3.c assert( pX->op==TK_IN ); assert 101623 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->plan.wsFlags & WHERE_IN_ABLE ); assert 101708 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->plan.wsFlags & WHERE_INDEXED ); assert 101724 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->nColumn>=nEq ); assert 102028 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm!=0 ); assert 102029 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->pExpr!=0 ); assert 102030 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->leftCursor==iCur ); assert 102031 ext/sqlite3/libsqlite/sqlite3.c assert( omitTable==0 ); assert 102048 ext/sqlite3/libsqlite/sqlite3.c assert( omitTable==0 ); assert 102069 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LE==TK_GT+1 ); /* Make sure the ordering.. */ assert 102070 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT==TK_GT+2 ); /* ... of the TK_xx values... */ assert 102071 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==TK_GT+3 ); /* ... is correcct. */ assert 102075 ext/sqlite3/libsqlite/sqlite3.c assert( pX!=0 ); assert 102076 ext/sqlite3/libsqlite/sqlite3.c assert( pStart->leftCursor==iCur ); assert 102089 ext/sqlite3/libsqlite/sqlite3.c assert( pX!=0 ); assert 102090 ext/sqlite3/libsqlite/sqlite3.c assert( pEnd->leftCursor==iCur ); assert 102108 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->p5==0 ); assert 102270 ext/sqlite3/libsqlite/sqlite3.c assert( op!=0 ); assert 102410 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm!=0 ); assert 102411 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->eOperator==WO_OR ); assert 102412 ext/sqlite3/libsqlite/sqlite3.c assert( (pTerm->wtFlags & TERM_ORINFO)!=0 ); assert 102506 ext/sqlite3/libsqlite/sqlite3.c assert( bRev==0 || bRev==1 ); assert 102507 ext/sqlite3/libsqlite/sqlite3.c assert( omitTable==0 ); assert 102534 ext/sqlite3/libsqlite/sqlite3.c assert( pE!=0 ); assert 102555 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->untestedTerms ); assert 102558 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->pExpr ); assert 102800 ext/sqlite3/libsqlite/sqlite3.c assert( pWC->vmask==0 && pMaskSet->n==0 ); assert 102814 ext/sqlite3/libsqlite/sqlite3.c assert( (m-1)==toTheLeft ); assert 102927 ext/sqlite3/libsqlite/sqlite3.c assert( pTabItem->pTab ); assert 102939 ext/sqlite3/libsqlite/sqlite3.c assert( isOptimal || (sCost.used¬Ready)==0 ); assert 102943 ext/sqlite3/libsqlite/sqlite3.c assert( pTabItem->pIndex==0 assert 102990 ext/sqlite3/libsqlite/sqlite3.c assert( bestJ>=0 ); assert 102991 ext/sqlite3/libsqlite/sqlite3.c assert( notReady & getMask(pMaskSet, pTabList->a[bestJ].iCursor) ); assert 103027 ext/sqlite3/libsqlite/sqlite3.c assert( bestPlan.plan.u.pIdx==pIdx ); assert 103048 ext/sqlite3/libsqlite/sqlite3.c assert( (wctrlFlags & WHERE_ONEPASS_DESIRED)==0 || pWInfo->nLevel==1 ); assert 103091 ext/sqlite3/libsqlite/sqlite3.c assert( n<=pTab->nCol ); assert 103105 ext/sqlite3/libsqlite/sqlite3.c assert( pIx->pSchema==pTab->pSchema ); assert 103106 ext/sqlite3/libsqlite/sqlite3.c assert( iIdxCur>=0 ); assert 103229 ext/sqlite3/libsqlite/sqlite3.c assert( (pLevel->plan.wsFlags & WHERE_IDX_ONLY)==0 assert 103253 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->nLevel==1 || pWInfo->nLevel==pTabList->nSrc ); assert 103257 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 103289 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx!=0 ); assert 103302 ext/sqlite3/libsqlite/sqlite3.c assert( (pLevel->plan.wsFlags & WHERE_IDX_ONLY)==0 assert 104857 ext/sqlite3/libsqlite/sqlite3.c assert( iLookAhead!=YYNOCODE ); assert 104921 ext/sqlite3/libsqlite/sqlite3.c assert( stateno<=YY_REDUCE_COUNT ); assert 104924 ext/sqlite3/libsqlite/sqlite3.c assert( i!=YY_REDUCE_USE_DFLT ); assert 104925 ext/sqlite3/libsqlite/sqlite3.c assert( iLookAhead!=YYNOCODE ); assert 104932 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<YY_ACTTAB_COUNT ); assert 104933 ext/sqlite3/libsqlite/sqlite3.c assert( yy_lookahead[i]==iLookAhead ); assert 106314 ext/sqlite3/libsqlite/sqlite3.c assert( yymsp[-2].minor.yy203!=0 ); assert 106322 ext/sqlite3/libsqlite/sqlite3.c assert( yymsp[-1].minor.yy203!=0 ); assert 106517 ext/sqlite3/libsqlite/sqlite3.c assert( yyact == YYNSTATE + YYNRULE + 1 ); assert 106554 ext/sqlite3/libsqlite/sqlite3.c assert( TOKEN.z[0] ); /* The tokenizer always gives us a token */ assert 106640 ext/sqlite3/libsqlite/sqlite3.c assert( !yyendofinput ); /* Impossible to shift the $ token */ assert 106647 ext/sqlite3/libsqlite/sqlite3.c assert( yyact == YY_ERROR_ACTION ); assert 107426 ext/sqlite3/libsqlite/sqlite3.c assert( pzErrMsg!=0 ); assert 107432 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTable==0 ); assert 107433 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==0 ); assert 107434 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nVar==0 ); assert 107435 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nzVar==0 ); assert 107436 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->azVar==0 ); assert 107440 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 ); assert 107499 ext/sqlite3/libsqlite/sqlite3.c assert( pzErrMsg!=0 ); assert 108134 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.nRefInitMutex==0 ); assert 108151 ext/sqlite3/libsqlite/sqlite3.c assert(sizeof(x)==8); assert 108152 ext/sqlite3/libsqlite/sqlite3.c assert(sizeof(x)==sizeof(y)); assert 108154 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3IsNaN(y) ); assert 108411 ext/sqlite3/libsqlite/sqlite3.c assert( sz > (int)sizeof(LookasideSlot*) ); assert 108636 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SafetyCheckSickOrOk(db) ); assert 108668 ext/sqlite3/libsqlite/sqlite3.c assert( db->nDb<=2 ); assert 108669 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb==db->aDbStatic ); assert 108722 ext/sqlite3/libsqlite/sqlite3.c assert( db->lookaside.nOut==0 ); /* Fails on a lookaside memory leak */ assert 108736 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 108826 ext/sqlite3/libsqlite/sqlite3.c assert( count>=0 ); assert 108956 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 109003 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 109011 ext/sqlite3/libsqlite/sqlite3.c assert(p || db->mallocFailed); assert 109075 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK ); assert 109100 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 109326 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CHECKPOINT_FULL>SQLITE_CHECKPOINT_PASSIVE ); assert 109327 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CHECKPOINT_FULL<SQLITE_CHECKPOINT_RESTART ); assert 109328 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CHECKPOINT_PASSIVE+2==SQLITE_CHECKPOINT_RESTART ); assert 109385 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 109386 ext/sqlite3/libsqlite/sqlite3.c assert( !pnLog || *pnLog==-1 ); assert 109387 ext/sqlite3/libsqlite/sqlite3.c assert( !pnCkpt || *pnCkpt==-1 ); assert 109456 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 109552 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 109687 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_LENGTH]==SQLITE_MAX_LENGTH ); assert 109688 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_SQL_LENGTH]==SQLITE_MAX_SQL_LENGTH ); assert 109689 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_COLUMN]==SQLITE_MAX_COLUMN ); assert 109690 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_EXPR_DEPTH]==SQLITE_MAX_EXPR_DEPTH ); assert 109691 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_COMPOUND_SELECT]==SQLITE_MAX_COMPOUND_SELECT); assert 109692 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_VDBE_OP]==SQLITE_MAX_VDBE_OP ); assert 109693 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_FUNCTION_ARG]==SQLITE_MAX_FUNCTION_ARG ); assert 109694 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_ATTACHED]==SQLITE_MAX_ATTACHED ); assert 109695 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]== assert 109697 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_VARIABLE_NUMBER]==SQLITE_MAX_VARIABLE_NUMBER); assert 109698 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_TRIGGER_DEPTH]==SQLITE_MAX_TRIGGER_DEPTH ); assert 109699 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_LIMIT_TRIGGER_DEPTH==(SQLITE_N_LIMIT-1) ); assert 109754 ext/sqlite3/libsqlite/sqlite3.c assert( *pzErrMsg==0 ); assert 109808 ext/sqlite3/libsqlite/sqlite3.c assert( octet>=0 && octet<256 ); assert 109978 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OPEN_READONLY == 0x01 ); assert 109979 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OPEN_READWRITE == 0x02 ); assert 109980 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OPEN_CREATE == 0x04 ); assert 110041 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(db->aLimit)==sizeof(aHardLimit) ); assert 110081 ext/sqlite3/libsqlite/sqlite3.c assert( db->pDfltColl!=0 ); assert 110193 ext/sqlite3/libsqlite/sqlite3.c assert( db->mutex!=0 || isThreadsafe==0 || sqlite3GlobalConfig.bFullMutex==0 ); assert 110238 ext/sqlite3/libsqlite/sqlite3.c assert( zFilename ); assert 110239 ext/sqlite3/libsqlite/sqlite3.c assert( ppDb ); assert 110251 ext/sqlite3/libsqlite/sqlite3.c assert( *ppDb || rc==SQLITE_NOMEM ); assert 110276 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 110296 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 110317 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 110593 ext/sqlite3/libsqlite/sqlite3.c assert( pPager!=0 ); assert 110595 ext/sqlite3/libsqlite/sqlite3.c assert( fd!=0 ); assert 110716 ext/sqlite3/libsqlite/sqlite3.c assert( (x = va_arg(ap,int))!=0 ); assert 110898 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)) ) assert 110930 ext/sqlite3/libsqlite/sqlite3.c assert( p->pUnlockConnection || p->pBlockingConnection ); assert 110935 ext/sqlite3/libsqlite/sqlite3.c assert( p2->xUnlockNotify==p->xUnlockNotify || !seen ); assert 110936 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || p->pUnlockConnection!=db ); assert 110937 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || p->pBlockingConnection!=db ); assert 111052 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 111114 ext/sqlite3/libsqlite/sqlite3.c assert( p->xUnlockNotify ); assert 111121 ext/sqlite3/libsqlite/sqlite3.c assert( aArg==aDyn || (aDyn==0 && aArg==aStatic) ); assert 111122 ext/sqlite3/libsqlite/sqlite3.c assert( nArg<=(int)ArraySize(aStatic) || aArg==aDyn ); assert 112312 ext/sqlite3/libsqlite/sqlite3.c assert( q - (unsigned char *)p <= FTS3_VARINT_MAX ); assert 112440 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPendingData==0 ); assert 112441 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 112636 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPgsz>0 || rc!=SQLITE_OK ); assert 112906 ext/sqlite3/libsqlite/sqlite3.c assert( strlen(argv[0])==4 ); assert 112907 ext/sqlite3/libsqlite/sqlite3.c assert( (sqlite3_strnicmp(argv[0], "fts4", 4)==0 && isFts4) assert 113022 ext/sqlite3/libsqlite/sqlite3.c assert( nString==0 ); assert 113032 ext/sqlite3/libsqlite/sqlite3.c assert( pTokenizer ); assert 113036 ext/sqlite3/libsqlite/sqlite3.c assert( zPrefix ); assert 113092 ext/sqlite3/libsqlite/sqlite3.c assert( zCsr <= &((char *)p)[nByte] ); assert 113132 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 113234 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 113264 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 113270 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 113453 ext/sqlite3/libsqlite/sqlite3.c assert( piLeaf || piLeaf2 ); assert 113457 ext/sqlite3/libsqlite/sqlite3.c assert( !piLeaf2 || !piLeaf || rc!=SQLITE_OK || (*piLeaf<=*piLeaf2) ); assert 113494 ext/sqlite3/libsqlite/sqlite3.c assert( iVal-*piPrev > 0 || (*piPrev==0 && iVal==0) ); assert 113749 ext/sqlite3/libsqlite/sqlite3.c assert( isSaveLeft==0 || isExact==0 ); assert 113751 ext/sqlite3/libsqlite/sqlite3.c assert( *p1!=0 && *p2!=0 ); assert 113773 ext/sqlite3/libsqlite/sqlite3.c assert( *p1!=POS_END && *p1!=POS_COLUMN ); assert 113774 ext/sqlite3/libsqlite/sqlite3.c assert( *p2!=POS_END && *p2!=POS_COLUMN ); assert 113804 ext/sqlite3/libsqlite/sqlite3.c assert( pp && p ); assert 113810 ext/sqlite3/libsqlite/sqlite3.c assert( (*p1&0xFE)==0 && (*p2&0xFE)==0 ); assert 113942 ext/sqlite3/libsqlite/sqlite3.c assert( *pbFirst || *piPrev==0 ); assert 113943 ext/sqlite3/libsqlite/sqlite3.c assert( *pbFirst==0 || iWrite>0 ); assert 114017 ext/sqlite3/libsqlite/sqlite3.c assert( nDist>0 ); assert 114136 ext/sqlite3/libsqlite/sqlite3.c assert( iOut>0 ); assert 114270 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 114271 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel==FTS3_SEGCURSOR_ALL assert 114275 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel<FTS3_SEGDIR_MAXLEVEL ); assert 114276 ext/sqlite3/libsqlite/sqlite3.c assert( FTS3_SEGCURSOR_ALL<0 && FTS3_SEGCURSOR_PENDING<0 ); assert 114277 ext/sqlite3/libsqlite/sqlite3.c assert( isPrefix==0 || isScan==0 ); assert 114281 ext/sqlite3/libsqlite/sqlite3.c assert( isScan==0 || p->aIndex==0 ); assert 114477 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 114512 ext/sqlite3/libsqlite/sqlite3.c assert( idxNum>=0 && idxNum<=(FTS3_FULLTEXT_SEARCH+p->nColumn) ); assert 114513 ext/sqlite3/libsqlite/sqlite3.c assert( nVal==0 || nVal==1 ); assert 114514 ext/sqlite3/libsqlite/sqlite3.c assert( (nVal==0)==(idxNum==FTS3_FULLSCAN_SEARCH) ); assert 114515 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 114620 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 && iCol<=p->nColumn+1 ); assert 114639 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 114673 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 114674 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPendingData==0 ); assert 114675 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction!=1 ); assert 114689 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPendingData==0 ); assert 114690 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction!=0 ); assert 114691 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 114704 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction!=0 ); assert 114777 ext/sqlite3/libsqlite/sqlite3.c assert( nVal>=1 ); assert 114812 ext/sqlite3/libsqlite/sqlite3.c assert( nVal==1 ); assert 114814 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr ); assert 114840 ext/sqlite3/libsqlite/sqlite3.c assert( nVal==1 ); assert 114843 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 114869 ext/sqlite3/libsqlite/sqlite3.c assert( nVal==1 || nVal==2 ); assert 114961 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pVtab)->inTransaction ); assert 114962 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pVtab)->mxSavepoint < iSavepoint ); assert 114970 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction ); assert 114971 ext/sqlite3/libsqlite/sqlite3.c assert( p->mxSavepoint >= iSavepoint ); assert 114978 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction ); assert 114979 ext/sqlite3/libsqlite/sqlite3.c assert( p->mxSavepoint >= iSavepoint ); assert 115116 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK ); assert 115173 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pPhrase->iDoclistToken==0 ); assert 115190 ext/sqlite3/libsqlite/sqlite3.c assert( iToken!=p->iDoclistToken ); assert 115247 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pDeferred==0 || pToken->pSegcsr==0 ); assert 115257 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pSegcsr==0 ); assert 115272 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->doclist.bFreeList==0 ); assert 115299 ext/sqlite3/libsqlite/sqlite3.c assert( iPrev>=0 ); assert 115388 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || p->nToken<1 || p->aToken[0].pSegcsr==0 || p->bIncr ); assert 115407 ext/sqlite3/libsqlite/sqlite3.c assert( nDoclist>0 ); assert 115408 ext/sqlite3/libsqlite/sqlite3.c assert( *pbEof==0 ); assert 115409 ext/sqlite3/libsqlite/sqlite3.c assert( p || *piDocid==0 ); assert 115410 ext/sqlite3/libsqlite/sqlite3.c assert( !p || (p>aDoclist && p<&aDoclist[nDoclist]) ); assert 115468 ext/sqlite3/libsqlite/sqlite3.c assert( p->nToken==1 ); assert 115469 ext/sqlite3/libsqlite/sqlite3.c assert( pDL->pNextDocid==0 ); assert 115514 ext/sqlite3/libsqlite/sqlite3.c assert( pIter>=&pDL->aAll[pDL->nAll] || *pIter ); assert 115617 ext/sqlite3/libsqlite/sqlite3.c assert( a ); assert 115631 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nRowAvg>0 ); assert 115676 ext/sqlite3/libsqlite/sqlite3.c assert( pTC ); assert 115687 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pList==0 ); assert 115796 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->doclist.pList ); assert 115804 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->doclist.pList[nNew]=='\0' ); assert 115805 ext/sqlite3/libsqlite/sqlite3.c assert( nNew<=pPhrase->doclist.nList && nNew>0 ); assert 115898 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->bEof==0 ); assert 115906 ext/sqlite3/libsqlite/sqlite3.c assert( !pLeft->bDeferred || !pRight->bDeferred ); assert 115940 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft->bStart || pLeft->iDocid==pRight->iDocid ); assert 115941 ext/sqlite3/libsqlite/sqlite3.c assert( pRight->bStart || pLeft->iDocid==pRight->iDocid ); assert 115969 ext/sqlite3/libsqlite/sqlite3.c assert( *pRc!=SQLITE_OK || pRight->bStart ); assert 116060 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->bDeferred || pPhrase->doclist.bFreeList==0 ); assert 116112 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->isEof==0 ); assert 116120 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_data_count(pCsr->pStmt)==0 ); assert 116151 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->nToken==1 ); assert 116152 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->aToken[0].pSegcsr ); assert 116185 ext/sqlite3/libsqlite/sqlite3.c assert( *p ); assert 116227 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->eType==FTSQUERY_PHRASE ); assert 116244 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->bStart ); assert 116249 ext/sqlite3/libsqlite/sqlite3.c assert( pE->aMI==0 ); assert 116262 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_data_count(pCsr->pStmt)==0 ); assert 116295 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->bEof==0 ); assert 116343 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nDoc>0 ); assert 116351 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->aMI ); assert 116391 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 && iCol<pTab->nColumn ); assert 116400 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->doclist.nList>0 ); assert 116730 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==0 ); assert 116749 ext/sqlite3/libsqlite/sqlite3.c default: assert( eState==3 ); assert 116784 ext/sqlite3/libsqlite/sqlite3.c assert( idxStr==0 ); assert 116785 ext/sqlite3/libsqlite/sqlite3.c assert( idxNum==FTS4AUX_EQ_CONSTRAINT || idxNum==0 assert 116845 ext/sqlite3/libsqlite/sqlite3.c assert( p->isEof==0 ); assert 117186 ext/sqlite3/libsqlite/sqlite3.c assert( nToken==ii ); assert 117307 ext/sqlite3/libsqlite/sqlite3.c assert( nKey==4 ); assert 117426 ext/sqlite3/libsqlite/sqlite3.c assert( p->eType!=FTSQUERY_PHRASE ); assert 117434 ext/sqlite3/libsqlite/sqlite3.c assert( p->eType==FTSQUERY_AND ); assert 117457 ext/sqlite3/libsqlite/sqlite3.c assert( pSplit->pParent->pRight==pSplit ); assert 117533 ext/sqlite3/libsqlite/sqlite3.c assert( pRet && pPrev ); assert 117565 ext/sqlite3/libsqlite/sqlite3.c assert( pPrev && pPrev->pLeft && pPrev->pRight==0 ); assert 117576 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 117578 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || (nByte>0 && nByte<=nIn) ); assert 117679 ext/sqlite3/libsqlite/sqlite3.c assert( p->eType==FTSQUERY_PHRASE || p->pPhrase==0 ); assert 117823 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM || rc==SQLITE_OK ); assert 117932 ext/sqlite3/libsqlite/sqlite3.c assert( pNew!=0 ); assert 117933 ext/sqlite3/libsqlite/sqlite3.c assert( keyClass>=FTS3_HASH_STRING && keyClass<=FTS3_HASH_BINARY ); assert 117949 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 118016 ext/sqlite3/libsqlite/sqlite3.c assert( keyClass==FTS3_HASH_BINARY ); assert 118031 ext/sqlite3/libsqlite/sqlite3.c assert( keyClass==FTS3_HASH_BINARY ); assert 118073 ext/sqlite3/libsqlite/sqlite3.c assert( (new_size & (new_size-1))==0 ); assert 118148 ext/sqlite3/libsqlite/sqlite3.c assert( pH->first==0 ); assert 118149 ext/sqlite3/libsqlite/sqlite3.c assert( pH->count==0 ); assert 118164 ext/sqlite3/libsqlite/sqlite3.c assert( xHash!=0 ); assert 118166 ext/sqlite3/libsqlite/sqlite3.c assert( (pH->htsize & (pH->htsize-1))==0 ); assert 118209 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 118211 ext/sqlite3/libsqlite/sqlite3.c assert( xHash!=0 ); assert 118213 ext/sqlite3/libsqlite/sqlite3.c assert( (pH->htsize & (pH->htsize-1))==0 ); assert 118232 ext/sqlite3/libsqlite/sqlite3.c assert( pH->htsize>0 ); assert 118247 ext/sqlite3/libsqlite/sqlite3.c assert( pH->htsize>0 ); assert 118248 ext/sqlite3/libsqlite/sqlite3.c assert( (pH->htsize & (pH->htsize-1))==0 ); assert 118406 ext/sqlite3/libsqlite/sqlite3.c assert( x>='a' && x<='z' ); assert 118415 ext/sqlite3/libsqlite/sqlite3.c assert( x>='a' && x<='z' ); assert 118963 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || argc==2 ); assert 119091 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || *ppTok ); assert 119161 ext/sqlite3/libsqlite/sqlite3.c assert( argc==2 || argc==3 ); assert 119306 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 119307 ext/sqlite3/libsqlite/sqlite3.c assert( p1==p2 ); assert 119309 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_ERROR ); assert 119310 ext/sqlite3/libsqlite/sqlite3.c assert( p2==0 ); assert 119311 ext/sqlite3/libsqlite/sqlite3.c assert( 0==strcmp(sqlite3_errmsg(db), "unknown tokenizer: nosuchtokenizer") ); assert 119315 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 119317 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 119318 ext/sqlite3/libsqlite/sqlite3.c assert( p2==p1 ); assert 119909 ext/sqlite3/libsqlite/sqlite3.c assert( SizeofArray(azSql)==SizeofArray(p->aStmt) ); assert 119910 ext/sqlite3/libsqlite/sqlite3.c assert( eStmt<SizeofArray(azSql) && eStmt>=0 ); assert 119927 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pStmt==0 ); assert 119951 ext/sqlite3/libsqlite/sqlite3.c assert( eStmt==SQL_SELECT_DOCSIZE || eStmt==SQL_SELECT_DOCTOTAL ); assert 120069 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel==FTS3_SEGCURSOR_ALL || iLevel>=0 ); assert 120070 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel<FTS3_SEGDIR_MAXLEVEL ); assert 120071 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 120158 ext/sqlite3/libsqlite/sqlite3.c assert( !p || p->iLastDocid<=iDocid ); assert 120163 ext/sqlite3/libsqlite/sqlite3.c assert( p->nData<p->nSpace ); assert 120164 ext/sqlite3/libsqlite/sqlite3.c assert( p->aData[p->nData]==0 ); assert 120184 ext/sqlite3/libsqlite/sqlite3.c assert( iPos>p->iLastPos || (iPos==0 && p->iLastPos==0) ); assert 120230 ext/sqlite3/libsqlite/sqlite3.c assert( 0==fts3HashFind(pHash, zToken, nToken) ); assert 120269 ext/sqlite3/libsqlite/sqlite3.c assert( pTokenizer && pModule ); assert 120601 ext/sqlite3/libsqlite/sqlite3.c assert( pnBlob); assert 120676 ext/sqlite3/libsqlite/sqlite3.c assert( !pReader->pBlob assert 120721 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->aNode ); assert 120735 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->iCurrentBlock<=pReader->iLeafEndBlock ); assert 120745 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->pBlob==0 ); assert 120753 ext/sqlite3/libsqlite/sqlite3.c assert( !fts3SegReaderIsPending(pReader) ); assert 120806 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->aDoclist ); assert 120807 ext/sqlite3/libsqlite/sqlite3.c assert( !pReader->pOffsetList ); assert 120846 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 120881 ext/sqlite3/libsqlite/sqlite3.c assert( *p==0 ); assert 120935 ext/sqlite3/libsqlite/sqlite3.c assert( p->bHasStat ); assert 120936 ext/sqlite3/libsqlite/sqlite3.c assert( pgsz>0 ); assert 120989 ext/sqlite3/libsqlite/sqlite3.c assert( iStartLeaf<=iEndLeaf ); assert 121169 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=0 ); assert 121193 ext/sqlite3/libsqlite/sqlite3.c assert( pLhs->aNode && pRhs->aNode ); assert 121205 ext/sqlite3/libsqlite/sqlite3.c assert( pLhs->aNode && pRhs->aNode ); assert 121250 ext/sqlite3/libsqlite/sqlite3.c assert( nSuspect<=nSegment ); assert 121267 ext/sqlite3/libsqlite/sqlite3.c assert( xCmp(apSegment[i], apSegment[i+1])<0 ); assert 121378 ext/sqlite3/libsqlite/sqlite3.c assert( pTree->aData==(char *)&pTree[1] ); assert 121461 ext/sqlite3/libsqlite/sqlite3.c assert( iHeight>=1 && iHeight<128 ); assert 121512 ext/sqlite3/libsqlite/sqlite3.c assert( iNextLeaf==iFree ); assert 121534 ext/sqlite3/libsqlite/sqlite3.c assert( pRight==0 || p->zMalloc==0 ); assert 121621 ext/sqlite3/libsqlite/sqlite3.c assert( nPrefix<nTerm ); assert 121646 ext/sqlite3/libsqlite/sqlite3.c assert( nData+nReq<=pWriter->nSize ); assert 121672 ext/sqlite3/libsqlite/sqlite3.c assert( pWriter->zTerm==pWriter->zMalloc ); assert 121766 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 121823 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel>=0 || iLevel==FTS3_SEGCURSOR_ALL ); assert 121865 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 ); assert 121966 ext/sqlite3/libsqlite/sqlite3.c assert( (pMsr->aBuffer[nList] & 0xFE)==0x00 ); assert 122030 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->pFilter==0 ); assert 122031 ext/sqlite3/libsqlite/sqlite3.c assert( zTerm && nTerm>0 ); assert 122053 ext/sqlite3/libsqlite/sqlite3.c assert( iCol<0 || iCol<p->nColumn ); assert 122074 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->zTerm==0 ); assert 122075 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nTerm==0 ); assert 122076 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->aDoclist==0 ); assert 122077 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nDoclist==0 ); assert 122127 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 122158 ext/sqlite3/libsqlite/sqlite3.c assert( isIgnoreEmpty || (isRequirePos && !isColFilter) ); assert 122213 ext/sqlite3/libsqlite/sqlite3.c assert( iDelta>0 || (nDoclist==0 && iDelta==iDocid) ); assert 122214 ext/sqlite3/libsqlite/sqlite3.c assert( nDoclist>0 || iDelta==iDocid ); assert 122287 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel==FTS3_SEGCURSOR_ALL assert 122291 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel<FTS3_SEGDIR_MAXLEVEL ); assert 122292 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 122321 ext/sqlite3/libsqlite/sqlite3.c assert( csr.nSegment>0 ); assert 122322 ext/sqlite3/libsqlite/sqlite3.c assert( iNewLevel>=(iIndex*FTS3_SEGDIR_MAXLEVEL) ); assert 122323 ext/sqlite3/libsqlite/sqlite3.c assert( iNewLevel<((iIndex+1)*FTS3_SEGDIR_MAXLEVEL) ); assert 122337 ext/sqlite3/libsqlite/sqlite3.c assert( pWriter ); assert 122396 ext/sqlite3/libsqlite/sqlite3.c assert(j<=nBuf); assert 122609 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->isRequireSeek==0 ); assert 122695 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pDeferred==0 ); assert 122755 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 122829 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER ); assert 123033 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft && pExpr->pRight ); assert 123215 ext/sqlite3/libsqlite/sqlite3.c assert( iCsr>=iStart ); assert 123261 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->pList==0 && pPhrase->pHead==0 && pPhrase->pTail==0 ); assert 123345 ext/sqlite3/libsqlite/sqlite3.c assert( iScore>=0 ); assert 123467 ext/sqlite3/libsqlite/sqlite3.c assert( nShift<=nDesired ); assert 123709 ext/sqlite3/libsqlite/sqlite3.c assert( cArg==FTS3_MATCHINFO_HITS ); assert 123732 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_data_count(pStmt)==1 ); assert 123962 ext/sqlite3/libsqlite/sqlite3.c assert( zArg[i]==FTS3_MATCHINFO_HITS ); assert 124008 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->aMatchinfo ); assert 124135 ext/sqlite3/libsqlite/sqlite3.c assert( (mCovered&mSeen)==mCovered ); assert 124139 ext/sqlite3/libsqlite/sqlite3.c assert( nFToken>0 ); assert 124190 ext/sqlite3/libsqlite/sqlite3.c assert( iPos>=0 ); assert 124226 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->isRequireSeek==0 ); assert 124299 ext/sqlite3/libsqlite/sqlite3.c assert( iCurrent<=iMinPos ); assert 124329 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 124740 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(RtreeCoord)==4 ); assert 124741 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u32)==4 ); assert 124804 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->pNext==0 ); assert 124817 ext/sqlite3/libsqlite/sqlite3.c for( ; (*pp)!=pNode; pp = &(*pp)->pNext){ assert(*pp); } assert 124861 ext/sqlite3/libsqlite/sqlite3.c assert( !pParent || !pNode->pParent || pNode->pParent==pParent ); assert 124980 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<=nMaxCell ); assert 125023 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->nRef>0 ); assert 125052 ext/sqlite3/libsqlite/sqlite3.c assert( iCell<NCELL(pNode) ); assert 125257 ext/sqlite3/libsqlite/sqlite3.c assert( pConstraint->op==RTREE_MATCH ); assert 125258 ext/sqlite3/libsqlite/sqlite3.c assert( pConstraint->pGeom ); assert 125287 ext/sqlite3/libsqlite/sqlite3.c assert(p->op==RTREE_LE || p->op==RTREE_LT || p->op==RTREE_GE assert 125305 ext/sqlite3/libsqlite/sqlite3.c assert( p->op==RTREE_MATCH ); assert 125339 ext/sqlite3/libsqlite/sqlite3.c assert(p->op==RTREE_LE || p->op==RTREE_LT || p->op==RTREE_GE assert 125350 ext/sqlite3/libsqlite/sqlite3.c assert( p->op==RTREE_MATCH ); assert 125389 ext/sqlite3/libsqlite/sqlite3.c assert( iHeight>=0 ); assert 125418 ext/sqlite3/libsqlite/sqlite3.c assert( pCursor->pNode==pChild ); assert 125476 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->pNode ); assert 125516 ext/sqlite3/libsqlite/sqlite3.c assert(pCsr->pNode); assert 125538 ext/sqlite3/libsqlite/sqlite3.c assert( pRtree->eCoordType==RTREE_COORD_INT32 ); assert 125640 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 125654 ext/sqlite3/libsqlite/sqlite3.c assert( (idxStr==0 && argc==0) || (int)strlen(idxStr)==argc*2 ); assert 125684 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->pNode==pRoot ); assert 125691 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->pNode==pRoot ); assert 125695 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || !pCsr->pNode || pCsr->iCell<NCELL(pCsr->pNode) ); assert 125746 ext/sqlite3/libsqlite/sqlite3.c assert( pIdxInfo->idxStr==0 ); assert 125779 ext/sqlite3/libsqlite/sqlite3.c assert( p->op==SQLITE_INDEX_CONSTRAINT_MATCH ); assert 125795 ext/sqlite3/libsqlite/sqlite3.c assert( iIdx>=0 ); assert 125888 ext/sqlite3/libsqlite/sqlite3.c assert( iExclude==-1 ); assert 126294 ext/sqlite3/libsqlite/sqlite3.c assert( left<=right ); assert 126361 ext/sqlite3/libsqlite/sqlite3.c assert( xleft1<=xright1 && (xleft1<xright1 || xleft2<=xright2) ); assert 126729 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->nRef==1 ); assert 126818 ext/sqlite3/libsqlite/sqlite3.c assert( pParent || pNode->iNode==1 ); assert 127110 ext/sqlite3/libsqlite/sqlite3.c assert(nData>=1); assert 127127 ext/sqlite3/libsqlite/sqlite3.c assert( nData==(pRtree->nDim*2 + 3) ); assert 127749 ext/sqlite3/libsqlite/sqlite3.c assert(uPattern!=0); assert 127933 ext/sqlite3/libsqlite/sqlite3.c assert(!pExpr); assert 127999 ext/sqlite3/libsqlite/sqlite3.c assert(nArg==1 || nArg==2); assert 128058 ext/sqlite3/libsqlite/sqlite3.c assert(!"Unexpected return value from ucol_strcoll()"); assert 128087 ext/sqlite3/libsqlite/sqlite3.c assert(nArg==2); assert 128100 ext/sqlite3/libsqlite/sqlite3.c assert(p); assert 128367 ext/sqlite3/libsqlite/sqlite3.c assert(iStart<=iEnd); assert 98 ext/standard/assert.c ZEND_INIT_MODULE_GLOBALS(assert, php_assert_init_globals, NULL); assert 3370 ext/standard/basic_functions.c PHP_FE(assert, arginfo_assert) assert 3669 ext/standard/basic_functions.c BASIC_MINIT_SUBMODULE(assert) assert 3720 ext/standard/basic_functions.c BASIC_MSHUTDOWN_SUBMODULE(assert) assert 3817 ext/standard/basic_functions.c BASIC_RSHUTDOWN_SUBMODULE(assert) assert 3845 ext/standard/basic_functions.c BASIC_MINFO_SUBMODULE(assert) assert 234 ext/standard/filters.c assert(thisfilter->abstract != NULL); assert 387 ext/standard/filters.c assert(inst != NULL); assert 767 ext/standard/filters.c assert(inst != NULL); assert 1012 ext/standard/filters.c assert(inst != NULL); assert 1791 ext/standard/filters.c assert(thisfilter->abstract != NULL); assert 100 ext/standard/html.c assert(pos <= str_len); assert 494 ext/standard/html.c assert(k <= 0xFFFFU); assert 512 ext/standard/html.c assert(k <= 0xFFFFFFU); assert 893 ext/standard/html.c assert(code <= 0xFFU); assert 904 ext/standard/html.c assert(code <= 0xFFU); assert 911 ext/standard/html.c assert(0); assert 940 ext/standard/html.c assert(*lim == '\0'); assert 1000 ext/standard/html.c assert(*next == ';'); assert 1068 ext/standard/html.c assert(!(doctype == ENT_HTML_DOC_XML1 && all)); assert 180 ext/standard/proc_open.c assert((uint)(p - env.envp) <= sizeenv); assert 2848 ext/standard/string.c assert((long long) m - (long long) j - B >= 0); assert 2965 ext/standard/string.c assert(res->m > 0); assert 61 ext/zlib/zlib_fopen_wrapper.c assert(self != NULL); assert 187 main/getopt.c assert(0); assert 223 main/php_open_temporary_file.c assert(0 < len); /* should *never* fail! */ assert 45 main/php_variables.c assert(strval != NULL); assert 67 main/php_variables.c assert(var_name != NULL); assert 52 main/streams/memory.c assert(ms != NULL); assert 75 main/streams/memory.c assert(buf!= NULL); assert 88 main/streams/memory.c assert(ms != NULL); assert 95 main/streams/memory.c assert(ms->data!= NULL); assert 96 main/streams/memory.c assert(buf!= NULL); assert 109 main/streams/memory.c assert(ms != NULL); assert 133 main/streams/memory.c assert(ms != NULL); assert 204 main/streams/memory.c assert(ms != NULL); assert 323 main/streams/memory.c assert(buf != NULL); assert 338 main/streams/memory.c assert(ms != NULL); assert 339 main/streams/memory.c assert(length != 0); assert 362 main/streams/memory.c assert(ts != NULL); assert 390 main/streams/memory.c assert(ts != NULL); assert 411 main/streams/memory.c assert(ts != NULL); assert 434 main/streams/memory.c assert(ts != NULL); assert 447 main/streams/memory.c assert(ts != NULL); assert 470 main/streams/memory.c assert(ts != NULL); assert 579 main/streams/memory.c assert(buf != NULL); assert 584 main/streams/memory.c assert(ts != NULL); assert 723 main/streams/memory.c assert(ts != NULL); assert 324 main/streams/plain_wrapper.c assert(data != NULL); assert 348 main/streams/plain_wrapper.c assert(data != NULL); assert 381 main/streams/plain_wrapper.c assert(data != NULL); assert 441 main/streams/plain_wrapper.c assert(data != NULL); assert 459 main/streams/plain_wrapper.c assert(data != NULL); assert 488 main/streams/plain_wrapper.c assert(data != NULL); assert 546 main/streams/plain_wrapper.c assert(data != NULL); assert 981 main/streams/streams.c assert(bufstart == NULL); assert 631 main/streams/userspace.c assert(us != NULL); assert 680 main/streams/userspace.c assert(us != NULL); assert 750 main/streams/userspace.c assert(us != NULL); assert 777 main/streams/userspace.c assert(us != NULL); assert 807 main/streams/userspace.c assert(us != NULL); assert 1549 main/streams/userspace.c assert(us != NULL); assert 113 sapi/apache_hooks/sapi_apache.c assert(0); assert 929 sapi/cli/php_cli_server.c assert(n < entries + FD_SETSIZE * 2); assert 1912 sapi/cli/php_cli_server.c assert(status_string && content_template); assert 1170 sapi/cli/php_http_parser.c assert(0 && "Unknown header_state"); assert 1281 sapi/cli/php_http_parser.c assert(0 && "Shouldn't get here."); assert 1457 sapi/cli/php_http_parser.c assert(parser->flags & F_CHUNKED); assert 1468 sapi/cli/php_http_parser.c assert(parser->flags & F_CHUNKED); assert 1492 sapi/cli/php_http_parser.c assert(parser->flags & F_CHUNKED); assert 1503 sapi/cli/php_http_parser.c assert(parser->flags & F_CHUNKED); assert 1517 sapi/cli/php_http_parser.c assert(parser->flags & F_CHUNKED); assert 1535 sapi/cli/php_http_parser.c assert(parser->flags & F_CHUNKED); assert 1541 sapi/cli/php_http_parser.c assert(parser->flags & F_CHUNKED); assert 1547 sapi/cli/php_http_parser.c assert(0 && "unhandled state"); assert 72 sapi/isapi/stresstest/getopt.c assert((argv[ap_optind][0] == '-') && argv[ap_optind][1]); assert 78 sapi/isapi/stresstest/getopt.c assert(dash); assert 128 sapi/isapi/stresstest/getopt.c assert(0); assert 70 sapi/milter/getopt.c assert((argv[ap_php_optind][0] == '-') && argv[ap_php_optind][1]); assert 76 sapi/milter/getopt.c assert(dash); assert 126 sapi/milter/getopt.c assert(0); assert 110 sapi/thttpd/thttpd.c assert(nvec <= IOV_MAX);