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 24705 ext/date/lib/parse_date.c assert(time != NULL); assert 24717 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 238 ext/ereg/regex/regcomp.c assert(!MORE() || SEE(stop)); assert 256 ext/ereg/regex/regcomp.c assert(MORE()); /* caller should have ensured this */ assert 272 ext/ereg/regex/regcomp.c assert(p->pend[subno] != 0); assert 463 ext/ereg/regex/regcomp.c assert(MORE()); /* caller should have ensured this */ assert 493 ext/ereg/regex/regcomp.c assert(p->pend[subno] != 0); assert 512 ext/ereg/regex/regcomp.c assert(i < NPAREN); assert 514 ext/ereg/regex/regcomp.c assert(i <= p->g->nsub); assert 516 ext/ereg/regex/regcomp.c assert(p->pbegin[i] != 0); assert 517 ext/ereg/regex/regcomp.c assert(OP(p->strip[p->pbegin[i]]) == OLPAREN); assert 518 ext/ereg/regex/regcomp.c assert(OP(p->strip[p->pend[i]]) == ORPAREN); assert 650 ext/ereg/regex/regcomp.c assert(cs->multis == NULL); /* xxx */ assert 833 ext/ereg/regex/regcomp.c assert(isalpha(ch)); assert 857 ext/ereg/regex/regcomp.c assert(othercase(ch) != ch); /* p_bracket() would recurse */ assert 864 ext/ereg/regex/regcomp.c assert(p->next == bracket+2); assert 910 ext/ereg/regex/regcomp.c assert(p->next == bracket+3); assert 936 ext/ereg/regex/regcomp.c assert(from <= to); assert 966 ext/ereg/regex/regcomp.c assert(copy == finish+4); assert 1021 ext/ereg/regex/regcomp.c assert(nc % CHAR_BIT == 0); assert 1047 ext/ereg/regex/regcomp.c assert(p->g->sets != NULL); /* xxx */ assert 1132 ext/ereg/regex/regcomp.c assert(never); assert 1195 ext/ereg/regex/regcomp.c assert(fp != NULL); assert 1207 ext/ereg/regex/regcomp.c assert(cs->multis != NULL); assert 1255 ext/ereg/regex/regcomp.c assert(cs->multis == NULL); /* xxx */ assert 1270 ext/ereg/regex/regcomp.c assert(cs->multis == NULL); /* xxx */ assert 1360 ext/ereg/regex/regcomp.c assert(finish >= start); assert 1364 ext/ereg/regex/regcomp.c assert(p->ssize >= p->slen + len); assert 1390 ext/ereg/regex/regcomp.c assert(opnd < 1<<OPSHIFT); assert 1395 ext/ereg/regex/regcomp.c assert(p->slen < p->ssize); assert 1422 ext/ereg/regex/regcomp.c assert(HERE() == sn+1); assert 1426 ext/ereg/regex/regcomp.c assert(pos > 0); assert 1455 ext/ereg/regex/regcomp.c assert(value < 1<<OPSHIFT); assert 1584 ext/ereg/regex/regcomp.c assert(cp < g->must + g->mlen); assert 1587 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 2225 ext/fileinfo/libmagic/apprentice.c assert(file_nformats == file_nnames); assert 2787 ext/fileinfo/libmagic/apprentice.c assert(nm + sizeof(ar) < m); assert 359 ext/fileinfo/libmagic/cdf.c assert(ss == len); assert 369 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 512 ext/openssl/openssl.c assert(pkey != NULL); assert 3015 ext/openssl/openssl.c assert(pkey != NULL); assert 3021 ext/openssl/openssl.c assert(pkey->pkey.rsa != NULL); assert 3033 ext/openssl/openssl.c assert(pkey->pkey.dsa != NULL); assert 3042 ext/openssl/openssl.c assert(pkey->pkey.dh != NULL); assert 3051 ext/openssl/openssl.c assert(pkey->pkey.ec != NULL); assert 257 ext/pcre/pcrelib/pcre_jit_compile.c assert_backtrack *assert; assert 6959 ext/pcre/pcrelib/pcre_jit_compile.c assert_backtrack *assert; assert 7326 ext/pcre/pcrelib/pcre_jit_compile.c assert = sljit_alloc_memory(compiler, sizeof(assert_backtrack)); assert 7329 ext/pcre/pcrelib/pcre_jit_compile.c memset(assert, 0, sizeof(assert_backtrack)); assert 7330 ext/pcre/pcrelib/pcre_jit_compile.c assert->common.cc = matchingpath; assert 7331 ext/pcre/pcrelib/pcre_jit_compile.c BACKTRACK_AS(bracket_backtrack)->u.assert = assert; assert 7332 ext/pcre/pcrelib/pcre_jit_compile.c matchingpath = compile_assert_matchingpath(common, matchingpath, assert, TRUE); assert 8831 ext/pcre/pcrelib/pcre_jit_compile.c assert_backtrack *assert; assert 9026 ext/pcre/pcrelib/pcre_jit_compile.c assert = CURRENT_AS(bracket_backtrack)->u.assert; assert 9027 ext/pcre/pcrelib/pcre_jit_compile.c if (assert->framesize >= 0 && (ccbegin[1 + LINK_SIZE] == OP_ASSERT || ccbegin[1 + LINK_SIZE] == OP_ASSERTBACK)) assert 9029 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, STACK_TOP, 0, SLJIT_MEM1(SLJIT_SP), assert->private_data_ptr); assert 9031 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), assert->private_data_ptr, SLJIT_MEM1(STACK_TOP), assert->framesize * sizeof(sljit_sw)); assert 9034 ext/pcre/pcrelib/pcre_jit_compile.c set_jumps(CURRENT_AS(bracket_backtrack)->u.assert->condfailed, LABEL()); assert 9167 ext/pcre/pcrelib/pcre_jit_compile.c assert = CURRENT_AS(bracket_backtrack)->u.assert; assert 9168 ext/pcre/pcrelib/pcre_jit_compile.c if ((ccbegin[1 + LINK_SIZE] == OP_ASSERT_NOT || ccbegin[1 + LINK_SIZE] == OP_ASSERTBACK_NOT) && assert->framesize >= 0) assert 9170 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, STACK_TOP, 0, SLJIT_MEM1(SLJIT_SP), assert->private_data_ptr); assert 9172 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), assert->private_data_ptr, SLJIT_MEM1(STACK_TOP), assert->framesize * sizeof(sljit_sw)); 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 5384 ext/pgsql/pgsql.c assert(Z_TYPE_P(src) == IS_STRING); assert 5385 ext/pgsql/pgsql.c assert(should_free == 1 || should_free == 0); assert 5431 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 5432 ext/pgsql/pgsql.c assert(Z_TYPE_P(values) == IS_ARRAY); assert 5433 ext/pgsql/pgsql.c assert(Z_TYPE_P(result) == IS_ARRAY); assert 5434 ext/pgsql/pgsql.c assert(!(opt & ~PGSQL_CONV_OPTS)); assert 6184 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6185 ext/pgsql/pgsql.c assert(table != NULL); assert 6186 ext/pgsql/pgsql.c assert(Z_TYPE_P(var_array) == IS_ARRAY); assert 6369 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6370 ext/pgsql/pgsql.c assert(table != NULL); assert 6371 ext/pgsql/pgsql.c assert(Z_TYPE_P(var_array) == IS_ARRAY); assert 6372 ext/pgsql/pgsql.c assert(Z_TYPE_P(ids_array) == IS_ARRAY); assert 6373 ext/pgsql/pgsql.c assert(!(opt & ~(PGSQL_CONV_OPTS|PGSQL_DML_NO_CONV|PGSQL_DML_EXEC|PGSQL_DML_STRING))); assert 6478 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6479 ext/pgsql/pgsql.c assert(table != NULL); assert 6480 ext/pgsql/pgsql.c assert(Z_TYPE_P(ids_array) == IS_ARRAY); assert 6481 ext/pgsql/pgsql.c assert(!(opt & ~(PGSQL_CONV_FORCE_NULL|PGSQL_DML_EXEC|PGSQL_DML_STRING))); assert 6571 ext/pgsql/pgsql.c assert(Z_TYPE_P(ret_array) == IS_ARRAY); assert 6613 ext/pgsql/pgsql.c assert(pg_link != NULL); assert 6614 ext/pgsql/pgsql.c assert(table != NULL); assert 6615 ext/pgsql/pgsql.c assert(Z_TYPE_P(ids_array) == IS_ARRAY); assert 6616 ext/pgsql/pgsql.c assert(Z_TYPE_P(ret_array) == IS_ARRAY); assert 6617 ext/pgsql/pgsql.c assert(!(opt & ~(PGSQL_CONV_OPTS|PGSQL_DML_NO_CONV|PGSQL_DML_EXEC|PGSQL_DML_ASYNC|PGSQL_DML_STRING))); assert 3789 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 8505 ext/sqlite3/libsqlite/sqlite3.c # define ALWAYS(X) ((X)?1:(assert(0),0)) assert 8506 ext/sqlite3/libsqlite/sqlite3.c # define NEVER(X) ((X)?(assert(0),1):0) assert 15053 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); assert 15054 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(statMutex) ); assert 15055 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(statMutex[op] ? sqlite3Pcache1Mutex() assert 15073 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); assert 15074 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(statMutex) ); assert 15075 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(statMutex[op] ? sqlite3Pcache1Mutex() assert 15084 ext/sqlite3/libsqlite/sqlite3.c assert( N>=0 ); assert 15085 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(statMutex) ); assert 15086 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(statMutex[op] ? sqlite3Pcache1Mutex() assert 15088 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); assert 15098 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); assert 15099 ext/sqlite3/libsqlite/sqlite3.c assert( op>=0 && op<ArraySize(statMutex) ); assert 15100 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(statMutex[op] ? sqlite3Pcache1Mutex() assert 15183 ext/sqlite3/libsqlite/sqlite3.c assert( (op-SQLITE_DBSTATUS_LOOKASIDE_HIT)>=0 ); assert 15184 ext/sqlite3/libsqlite/sqlite3.c assert( (op-SQLITE_DBSTATUS_LOOKASIDE_HIT)<3 ); assert 15290 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_DBSTATUS_CACHE_MISS==SQLITE_DBSTATUS_CACHE_HIT+1 ); assert 15291 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_DBSTATUS_CACHE_WRITE==SQLITE_DBSTATUS_CACHE_HIT+2 ); assert 16661 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pFile->pMethods==0 ); assert 16666 ext/sqlite3/libsqlite/sqlite3.c assert( dirSync==0 || dirSync==1 ); assert 16748 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 16802 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)) ); assert 16843 ext/sqlite3/libsqlite/sqlite3.c assert(vfsList); assert 17147 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 17174 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 ); assert 17218 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 && nByte>0 ); assert 17219 ext/sqlite3/libsqlite/sqlite3.c assert( nByte==ROUND8(nByte) ); /* EV: R-46199-30249 */ assert 17450 ext/sqlite3/libsqlite/sqlite3.c assert( mem.nCurrent[i]>=0 ); assert 17468 ext/sqlite3/libsqlite/sqlite3.c assert( p->iForeGuard==(int)FOREGUARD ); assert 17472 ext/sqlite3/libsqlite/sqlite3.c assert( pInt[nReserve/sizeof(int)]==(int)REARGUARD ); assert 17477 ext/sqlite3/libsqlite/sqlite3.c while( nReserve-- > p->iSize ) assert( pU8[nReserve]==0x65 ); assert 17498 ext/sqlite3/libsqlite/sqlite3.c assert( (sizeof(struct MemBlockHdr)&7) == 0 ); assert 17559 ext/sqlite3/libsqlite/sqlite3.c assert( mem.disallow==0 ); assert 17584 ext/sqlite3/libsqlite/sqlite3.c assert(pBt[0]); assert 17613 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.bMemstat || sqlite3GlobalConfig.bCoreMutex==0 assert 17620 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->pPrev->pNext==pHdr ); assert 17623 ext/sqlite3/libsqlite/sqlite3.c assert( mem.pFirst==pHdr ); assert 17627 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->pNext->pPrev==pHdr ); assert 17630 ext/sqlite3/libsqlite/sqlite3.c assert( mem.pLast==pHdr ); assert 17654 ext/sqlite3/libsqlite/sqlite3.c assert( mem.disallow==0 ); assert 17655 ext/sqlite3/libsqlite/sqlite3.c assert( (nByte & 7)==0 ); /* EV: R-46199-30249 */ assert 17693 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->iForeGuard==FOREGUARD ); assert 17712 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->iForeGuard==FOREGUARD ); /* Allocation is valid */ assert 17734 ext/sqlite3/libsqlite/sqlite3.c assert( pHdr->iForeGuard==FOREGUARD ); /* Allocation is valid */ assert 17988 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18007 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18008 ext/sqlite3/libsqlite/sqlite3.c assert( (mem3.aPool[i-1].u.hdr.size4x & 1)==0 ); assert 18009 ext/sqlite3/libsqlite/sqlite3.c assert( i>=1 ); assert 18011 ext/sqlite3/libsqlite/sqlite3.c assert( size==mem3.aPool[i+size-1].u.hdr.prevSize ); assert 18012 ext/sqlite3/libsqlite/sqlite3.c assert( size>=2 ); assert 18026 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18041 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18042 ext/sqlite3/libsqlite/sqlite3.c assert( i>=1 ); assert 18043 ext/sqlite3/libsqlite/sqlite3.c assert( (mem3.aPool[i-1].u.hdr.size4x & 1)==0 ); assert 18045 ext/sqlite3/libsqlite/sqlite3.c assert( size==mem3.aPool[i+size-1].u.hdr.prevSize ); assert 18046 ext/sqlite3/libsqlite/sqlite3.c assert( size>=2 ); assert 18076 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18092 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18093 ext/sqlite3/libsqlite/sqlite3.c assert( i>=1 ); assert 18094 ext/sqlite3/libsqlite/sqlite3.c assert( mem3.aPool[i-1].u.hdr.size4x/4==nBlock ); assert 18095 ext/sqlite3/libsqlite/sqlite3.c assert( mem3.aPool[i+nBlock-1].u.hdr.prevSize==nBlock ); assert 18109 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18110 ext/sqlite3/libsqlite/sqlite3.c assert( mem3.szMaster>=nBlock ); assert 18122 ext/sqlite3/libsqlite/sqlite3.c assert( newi > mem3.iMaster+1 ); assert 18156 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18160 ext/sqlite3/libsqlite/sqlite3.c assert( (size&1)==0 ); assert 18163 ext/sqlite3/libsqlite/sqlite3.c assert( i > mem3.aPool[i-1].u.hdr.prevSize ); assert 18197 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18198 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(Mem3Block)==8 ); assert 18204 ext/sqlite3/libsqlite/sqlite3.c assert( nBlock>=2 ); assert 18278 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem3.mutex) ); assert 18279 ext/sqlite3/libsqlite/sqlite3.c assert( p>mem3.aPool && p<&mem3.aPool[mem3.nPool] ); assert 18281 ext/sqlite3/libsqlite/sqlite3.c assert( (mem3.aPool[i-1].u.hdr.size4x&1)==1 ); assert 18283 ext/sqlite3/libsqlite/sqlite3.c assert( i+size<=mem3.nPool+1 ); assert 18319 ext/sqlite3/libsqlite/sqlite3.c assert( (pBlock[-1].u.hdr.size4x&1)!=0 ); assert 18339 ext/sqlite3/libsqlite/sqlite3.c assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */ assert 18350 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior ); assert 18397 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(Mem3Block)==8 ); assert 18448 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 18453 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 18458 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 18676 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<mem5.nBlock ); assert 18677 ext/sqlite3/libsqlite/sqlite3.c assert( iLogsize>=0 && iLogsize<=LOGMAX ); assert 18678 ext/sqlite3/libsqlite/sqlite3.c assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize ); assert 18698 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem5.mutex) ); assert 18699 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<mem5.nBlock ); assert 18700 ext/sqlite3/libsqlite/sqlite3.c assert( iLogsize>=0 && iLogsize<=LOGMAX ); assert 18701 ext/sqlite3/libsqlite/sqlite3.c assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize ); assert 18706 ext/sqlite3/libsqlite/sqlite3.c assert( x<mem5.nBlock ); assert 18733 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<mem5.nBlock ); assert 18756 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 18828 ext/sqlite3/libsqlite/sqlite3.c assert( iBlock>=0 && iBlock<mem5.nBlock ); assert 18829 ext/sqlite3/libsqlite/sqlite3.c assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 ); assert 18830 ext/sqlite3/libsqlite/sqlite3.c assert( (mem5.aCtrl[iBlock] & CTRL_FREE)==0 ); assert 18834 ext/sqlite3/libsqlite/sqlite3.c assert( iBlock+size-1<(u32)mem5.nBlock ); assert 18838 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentCount>0 ); assert 18839 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentOut>=(size*mem5.szAtom) ); assert 18842 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentOut>0 || mem5.currentCount==0 ); assert 18843 ext/sqlite3/libsqlite/sqlite3.c assert( mem5.currentCount>0 || mem5.currentOut==0 ); assert 18853 ext/sqlite3/libsqlite/sqlite3.c assert( iBuddy>=0 ); assert 18898 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 ); assert 18919 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior!=0 ); assert 18920 ext/sqlite3/libsqlite/sqlite3.c assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */ assert 18921 ext/sqlite3/libsqlite/sqlite3.c assert( nBytes>=0 ); assert 18992 ext/sqlite3/libsqlite/sqlite3.c assert( (sizeof(Mem5Link)&(sizeof(Mem5Link)-1))==0 ); assert 18996 ext/sqlite3/libsqlite/sqlite3.c assert( zByte!=0 ); /* sqlite3_config() does not allow otherwise */ assert 19021 ext/sqlite3/libsqlite/sqlite3.c assert((iOffset+nAlloc)>mem5.nBlock); assert 19199 ext/sqlite3/libsqlite/sqlite3.c assert( GLOBAL(int, mutexIsInit) ); assert 19403 ext/sqlite3/libsqlite/sqlite3.c assert( p->cnt==0 ); assert 19426 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || debugMutexNotheld(pX) ); assert 19431 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || debugMutexNotheld(pX) ); assert 19444 ext/sqlite3/libsqlite/sqlite3.c assert( debugMutexHeld(pX) ); assert 19446 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || debugMutexNotheld(pX) ); assert 19675 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 ); assert 19702 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || pthreadMutexNotheld(p) ); assert 19721 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 ); assert 19731 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 || p->owner==0 ); assert 19745 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || pthreadMutexNotheld(p) ); assert 19764 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 ); assert 19801 ext/sqlite3/libsqlite/sqlite3.c assert( pthreadMutexHeld(p) ); assert 19806 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); assert 20374 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 20375 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 && p->owner==0 ); assert 20402 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 20403 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld2(p, tid) ); assert 20405 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 20407 ext/sqlite3/libsqlite/sqlite3.c assert( winMutex_isInit==1 ); assert 20410 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 || p->owner==0 ); assert 20425 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 20426 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld2(p, tid) ); assert 20439 ext/sqlite3/libsqlite/sqlite3.c assert( winMutex_isInit==1 ); assert 20440 ext/sqlite3/libsqlite/sqlite3.c assert( winMutex_isNt>=-1 && winMutex_isNt<=1 ); assert 20444 ext/sqlite3/libsqlite/sqlite3.c assert( winMutex_isNt==0 || winMutex_isNt==1 ); assert 20474 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 20476 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 20477 ext/sqlite3/libsqlite/sqlite3.c assert( p->owner==tid ); assert 20480 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); assert 20482 ext/sqlite3/libsqlite/sqlite3.c assert( winMutex_isInit==1 ); assert 20789 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mem0.mutex) ); assert 20837 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(p) ); /* IMP: R-11148-40995 */ assert 20880 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 ); assert 20900 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(mem0.mutex) ); assert 20909 ext/sqlite3/libsqlite/sqlite3.c assert( scratchAllocOut==0 ); assert 20923 ext/sqlite3/libsqlite/sqlite3.c assert( scratchAllocOut>=1 && scratchAllocOut<=2 ); assert 20935 ext/sqlite3/libsqlite/sqlite3.c assert( mem0.nScratchFree <= (u32)sqlite3GlobalConfig.nScratch ); assert 20940 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_SCRATCH) ); assert 20941 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, (u8)~MEMTYPE_SCRATCH) ); assert 20974 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_HEAP) ); assert 20979 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, (u8)~MEMTYPE_HEAP) ); assert 20980 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_HEAP) ); assert 20983 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 20987 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, (MEMTYPE_LOOKASIDE|MEMTYPE_HEAP)) ); assert 20988 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, (u8)~(MEMTYPE_LOOKASIDE|MEMTYPE_HEAP)) ); assert 20994 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, (u8)~MEMTYPE_HEAP) ); assert 20995 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_HEAP) ); assert 21004 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_HEAP) ); assert 21005 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, (u8)~MEMTYPE_HEAP) ); assert 21030 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); assert 21049 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, (MEMTYPE_LOOKASIDE|MEMTYPE_HEAP)) ); assert 21050 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, (u8)~(MEMTYPE_LOOKASIDE|MEMTYPE_HEAP)) ); assert 21051 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 || sqlite3MemdebugNoType(p, MEMTYPE_LOOKASIDE) ); assert 21062 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(pOld, MEMTYPE_HEAP) ); assert 21063 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(pOld, (u8)~MEMTYPE_HEAP) ); assert 21103 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pNew) ); /* IMP: R-11148-40995 */ assert 21169 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3_mutex_held(db->mutex) ); assert 21170 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || db->pnBytesFreed==0 ); assert 21213 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 21214 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 21229 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, (MEMTYPE_LOOKASIDE|MEMTYPE_HEAP)) ); assert 21230 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugNoType(p, (u8)~(MEMTYPE_LOOKASIDE|MEMTYPE_HEAP)) ); assert 21270 ext/sqlite3/libsqlite/sqlite3.c assert( (n&0x7fffffff)==n ); assert 21282 ext/sqlite3/libsqlite/sqlite3.c assert( (n&0x7fffffff)==n ); assert 21334 ext/sqlite3/libsqlite/sqlite3.c assert( !db || sqlite3_mutex_held(db->mutex) ); assert 21483 ext/sqlite3/libsqlite/sqlite3.c assert( eError==STRACCUM_NOMEM || eError==STRACCUM_TOOBIG ); assert 21889 ext/sqlite3/libsqlite/sqlite3.c assert( precision>0 ); assert 21899 ext/sqlite3/libsqlite/sqlite3.c assert( bufpt>zOut ); assert 22041 ext/sqlite3/libsqlite/sqlite3.c assert( bArgList==0 ); assert 22052 ext/sqlite3/libsqlite/sqlite3.c assert( bArgList==0 ); assert 22053 ext/sqlite3/libsqlite/sqlite3.c assert( k>=0 && k<pSrc->nSrc ); assert 22063 ext/sqlite3/libsqlite/sqlite3.c assert( xtype==etINVALID ); assert 22093 ext/sqlite3/libsqlite/sqlite3.c assert( p->nChar+(i64)N >= p->nAlloc ); /* Only called if really needed */ assert 22125 ext/sqlite3/libsqlite/sqlite3.c assert( p->zText!=0 || p->nChar==0 ); assert 22170 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 || N==0 ); assert 22171 ext/sqlite3/libsqlite/sqlite3.c assert( p->zText!=0 || p->nChar==0 || p->accError ); assert 22172 ext/sqlite3/libsqlite/sqlite3.c assert( N>=0 ); assert 22173 ext/sqlite3/libsqlite/sqlite3.c assert( p->accError==0 || p->nAlloc==0 ); assert 22177 ext/sqlite3/libsqlite/sqlite3.c assert( p->zText ); assert 22252 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 22444 ext/sqlite3/libsqlite/sqlite3.c assert( moreToFollow==0 || moreToFollow==1 ); assert 22589 ext/sqlite3/libsqlite/sqlite3.c assert( N>0 ); assert 22687 ext/sqlite3/libsqlite/sqlite3.c assert( ppThread!=0 ); assert 22688 ext/sqlite3/libsqlite/sqlite3.c assert( xTask!=0 ); assert 22690 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.bCoreMutex!=0 ); assert 22715 ext/sqlite3/libsqlite/sqlite3.c assert( ppOut!=0 ); assert 22752 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 22760 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==GetCurrentThreadId() ); assert 22762 ext/sqlite3/libsqlite/sqlite3.c assert( p->xTask!=0 ); assert 22777 ext/sqlite3/libsqlite/sqlite3.c assert( ppThread!=0 ); assert 22778 ext/sqlite3/libsqlite/sqlite3.c assert( xTask!=0 ); assert 22807 ext/sqlite3/libsqlite/sqlite3.c assert( ppOut!=0 ); assert 22810 ext/sqlite3/libsqlite/sqlite3.c assert( p->id==GetCurrentThreadId() ); assert 22812 ext/sqlite3/libsqlite/sqlite3.c assert( p->tid==0 ); assert 22814 ext/sqlite3/libsqlite/sqlite3.c assert( p->id!=0 && p->id!=GetCurrentThreadId() ); assert 22816 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=WAIT_IO_COMPLETION ); assert 22818 ext/sqlite3/libsqlite/sqlite3.c assert( bRc ); assert 22852 ext/sqlite3/libsqlite/sqlite3.c assert( ppThread!=0 ); assert 22853 ext/sqlite3/libsqlite/sqlite3.c assert( xTask!=0 ); assert 22871 ext/sqlite3/libsqlite/sqlite3.c assert( ppOut!=0 ); assert 23104 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 23105 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags&MEM_Str ); assert 23106 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->enc!=desiredEnc ); assert 23107 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->enc!=0 ); assert 23108 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n>=0 ); assert 23127 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM ); assert 23182 ext/sqlite3/libsqlite/sqlite3.c assert( desiredEnc==SQLITE_UTF16BE ); assert 23192 ext/sqlite3/libsqlite/sqlite3.c assert( desiredEnc==SQLITE_UTF8 ); assert 23209 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->n+(desiredEnc==SQLITE_UTF8?1:2))<=len ); assert 23243 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n>=0 ); assert 23286 ext/sqlite3/libsqlite/sqlite3.c assert( z<=zTerm ); assert 23341 ext/sqlite3/libsqlite/sqlite3.c assert( (m.flags & MEM_Term)!=0 || db->mallocFailed ); assert 23342 ext/sqlite3/libsqlite/sqlite3.c assert( (m.flags & MEM_Str)!=0 || db->mallocFailed ); assert 23343 ext/sqlite3/libsqlite/sqlite3.c assert( m.z || db->mallocFailed ); assert 23388 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && n<=4 ); assert 23395 ext/sqlite3/libsqlite/sqlite3.c assert( c==t ); assert 23396 ext/sqlite3/libsqlite/sqlite3.c assert( (z-zBuf)==n ); assert 23403 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && n<=4 ); assert 23407 ext/sqlite3/libsqlite/sqlite3.c assert( c==i ); assert 23408 ext/sqlite3/libsqlite/sqlite3.c assert( (z-zBuf)==n ); assert 23415 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && n<=4 ); assert 23419 ext/sqlite3/libsqlite/sqlite3.c assert( c==i ); assert 23420 ext/sqlite3/libsqlite/sqlite3.c assert( (z-zBuf)==n ); assert 23544 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 23571 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 23649 ext/sqlite3/libsqlite/sqlite3.c assert( z[i] ); assert 23740 ext/sqlite3/libsqlite/sqlite3.c assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE ); assert 23748 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_UTF16LE==2 && SQLITE_UTF16BE==3 ); assert 23951 ext/sqlite3/libsqlite/sqlite3.c assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE ); assert 23956 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_UTF16LE==2 && SQLITE_UTF16BE==3 ); assert 23992 ext/sqlite3/libsqlite/sqlite3.c assert( u<=LARGEST_INT64 ); assert 23999 ext/sqlite3/libsqlite/sqlite3.c assert( u<=LARGEST_INT64 ); assert 24007 ext/sqlite3/libsqlite/sqlite3.c assert( u-1==LARGEST_INT64 ); assert 24166 ext/sqlite3/libsqlite/sqlite3.c assert( n<=9 ); assert 24226 ext/sqlite3/libsqlite/sqlite3.c assert( SLOT_2_0 == ((0x7f<<14) | (0x7f)) ); assert 24227 ext/sqlite3/libsqlite/sqlite3.c assert( SLOT_4_2_0 == ((0xfU<<28) | (0x7f<<14) | (0x7f)) ); assert 24432 ext/sqlite3/libsqlite/sqlite3.c assert( n>3 && n<=9 ); assert 24484 ext/sqlite3/libsqlite/sqlite3.c assert( n>5 && n<=9 ); assert 24527 ext/sqlite3/libsqlite/sqlite3.c assert( (h>='0' && h<='9') || (h>='a' && h<='f') || (h>='A' && h<='F') ); assert 24778 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(x)==8 && sizeof(a)==8 ); assert 24827 ext/sqlite3/libsqlite/sqlite3.c assert( pNew!=0 ); assert 24841 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 24967 ext/sqlite3/libsqlite/sqlite3.c assert( elem!=0 ); assert 24999 ext/sqlite3/libsqlite/sqlite3.c assert( pEntry->count>=0 ); assert 25004 ext/sqlite3/libsqlite/sqlite3.c assert( pH->first==0 ); assert 25005 ext/sqlite3/libsqlite/sqlite3.c assert( pH->count==0 ); assert 25018 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 25019 ext/sqlite3/libsqlite/sqlite3.c assert( pKey!=0 ); assert 25043 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 25044 ext/sqlite3/libsqlite/sqlite3.c assert( pKey!=0 ); assert 25064 ext/sqlite3/libsqlite/sqlite3.c assert( pH->htsize>0 ); assert 26135 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 26137 ext/sqlite3/libsqlite/sqlite3.c assert( p->l_whence==SEEK_SET ); assert 26154 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 26349 ext/sqlite3/libsqlite/sqlite3.c assert( zAbsoluteName[0]=='/' ); assert 26388 ext/sqlite3/libsqlite/sqlite3.c assert( pId->nRef>0 ); assert 26393 ext/sqlite3/libsqlite/sqlite3.c assert( *pp==pId ); assert 26661 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 26665 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->pShmNode==0 ); assert 26668 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->pPrev->pNext==pInode ); assert 26671 ext/sqlite3/libsqlite/sqlite3.c assert( inodeList==pInode ); assert 26675 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->pNext->pPrev==pInode ); assert 26703 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 26841 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 26896 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 26897 ext/sqlite3/libsqlite/sqlite3.c assert( pInode!=0 ); assert 26903 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nLock==0 ); assert 26990 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27011 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock!=NO_LOCK || eFileLock==SHARED_LOCK ); assert 27012 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=PENDING_LOCK ); assert 27013 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=RESERVED_LOCK || pFile->eFileLock==SHARED_LOCK ); assert 27036 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==SHARED_LOCK ); assert 27037 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock==0 ); assert 27038 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared>0 ); assert 27072 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared==0 ); assert 27073 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==0 ); assert 27074 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 27113 ext/sqlite3/libsqlite/sqlite3.c assert( 0!=pFile->eFileLock ); assert 27116 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==RESERVED_LOCK || eFileLock==EXCLUSIVE_LOCK ); assert 27199 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27204 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 27210 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared!=0 ); assert 27212 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==pFile->eFileLock ); assert 27238 ext/sqlite3/libsqlite/sqlite3.c assert( handleNFSUnlock==0 ); assert 27304 ext/sqlite3/libsqlite/sqlite3.c lock.l_len = 2L; assert( PENDING_BYTE+1==RESERVED_BYTE ); assert 27338 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nLock>=0 ); assert 27359 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==SHARED_LOCK || ((unixFile *)id)->nFetchOut==0 ); assert 27424 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pInode->nLock>0 || pFile->pInode->bProcessLock==0 ); assert 27528 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27627 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27630 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 27646 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==NO_LOCK ); assert 27723 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27802 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27845 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 27848 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 27915 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 28012 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 28013 ext/sqlite3/libsqlite/sqlite3.c assert( pSem ); assert 28016 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 28049 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 28158 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 28226 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 28246 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock!=NO_LOCK || eFileLock==SHARED_LOCK ); assert 28247 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=PENDING_LOCK ); assert 28248 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock!=RESERVED_LOCK || pFile->eFileLock==SHARED_LOCK ); assert 28271 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock==SHARED_LOCK ); assert 28272 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->eFileLock==0 ); assert 28273 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared>0 ); assert 28302 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared==0 ); assert 28303 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==0 ); assert 28342 ext/sqlite3/libsqlite/sqlite3.c assert( 0!=pFile->eFileLock ); assert 28412 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 28417 ext/sqlite3/libsqlite/sqlite3.c assert( eFileLock<=SHARED_LOCK ); assert 28423 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nShared!=0 ); assert 28425 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->eFileLock==pFile->eFileLock ); assert 28439 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->inNormalWrite==0 assert 28490 ext/sqlite3/libsqlite/sqlite3.c assert( pInode->nLock>=0 ); assert 28591 ext/sqlite3/libsqlite/sqlite3.c assert( cnt==(cnt&0x1ffff) ); assert 28592 ext/sqlite3/libsqlite/sqlite3.c assert( id->h>2 ); assert 28646 ext/sqlite3/libsqlite/sqlite3.c assert( id ); assert 28647 ext/sqlite3/libsqlite/sqlite3.c assert( offset>=0 ); assert 28648 ext/sqlite3/libsqlite/sqlite3.c assert( amt>0 ); assert 28653 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pUnused==0 assert 28706 ext/sqlite3/libsqlite/sqlite3.c assert( nBuf==(nBuf&0x1ffff) ); assert 28707 ext/sqlite3/libsqlite/sqlite3.c assert( fd>2 ); assert 28760 ext/sqlite3/libsqlite/sqlite3.c assert( id ); assert 28761 ext/sqlite3/libsqlite/sqlite3.c assert( amt>0 ); assert 28766 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pUnused==0 assert 29019 ext/sqlite3/libsqlite/sqlite3.c assert((flags&0x0F)==SQLITE_SYNC_NORMAL assert 29028 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 29063 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 29113 ext/sqlite3/libsqlite/sqlite3.c assert( id ); assert 29182 ext/sqlite3/libsqlite/sqlite3.c assert( iWrite>=buf.st_size ); assert 29183 ext/sqlite3/libsqlite/sqlite3.c assert( (iWrite/nBlk)==((buf.st_size+nBlk-1)/nBlk) ); assert 29184 ext/sqlite3/libsqlite/sqlite3.c assert( ((iWrite+1)%nBlk)==0 ); assert 29564 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 ); assert 29567 ext/sqlite3/libsqlite/sqlite3.c assert( n==1 || lockType!=F_RDLCK ); assert 29570 ext/sqlite3/libsqlite/sqlite3.c assert( n>=1 && n<SQLITE_SHM_NLOCK ); assert 29602 ext/sqlite3/libsqlite/sqlite3.c assert( lockType==F_WRLCK ); assert 29613 ext/sqlite3/libsqlite/sqlite3.c assert( lockType==F_WRLCK ); assert 29637 ext/sqlite3/libsqlite/sqlite3.c assert( ((pgsz-1)&pgsz)==0 ); /* Page size must be a power of 2 */ assert 29650 ext/sqlite3/libsqlite/sqlite3.c assert( unixMutexHeld() ); assert 29654 ext/sqlite3/libsqlite/sqlite3.c assert( p->pInode==pFd->pInode ); assert 29720 ext/sqlite3/libsqlite/sqlite3.c assert( pDbFd->pShm==0 ); assert 29878 ext/sqlite3/libsqlite/sqlite3.c assert( szRegion==pShmNode->szRegion || pShmNode->nRegion==0 ); assert 29879 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->pInode==pDbFd->pInode ); assert 29880 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h>=0 || pDbFd->pInode->bProcessLock==1 ); assert 29881 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h<0 || pDbFd->pInode->bProcessLock==0 ); assert 29923 ext/sqlite3/libsqlite/sqlite3.c assert( (nByte % pgsz)==0 ); assert 30005 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode==pDbFd->pInode->pShmNode ); assert 30006 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->pInode==pDbFd->pInode ); assert 30007 ext/sqlite3/libsqlite/sqlite3.c assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK ); assert 30008 ext/sqlite3/libsqlite/sqlite3.c assert( n>=1 ); assert 30009 ext/sqlite3/libsqlite/sqlite3.c assert( flags==(SQLITE_SHM_LOCK | SQLITE_SHM_SHARED) assert 30013 ext/sqlite3/libsqlite/sqlite3.c assert( n==1 || (flags & SQLITE_SHM_EXCLUSIVE)!=0 ); assert 30014 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h>=0 || pDbFd->pInode->bProcessLock==1 ); assert 30015 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->h<0 || pDbFd->pInode->bProcessLock==0 ); assert 30018 ext/sqlite3/libsqlite/sqlite3.c assert( n>1 || mask==(1<<ofst) ); assert 30026 ext/sqlite3/libsqlite/sqlite3.c assert( (pX->exclMask & (p->exclMask|p->sharedMask))==0 ); assert 30087 ext/sqlite3/libsqlite/sqlite3.c assert( (p->sharedMask & mask)==0 ); assert 30133 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode==pDbFd->pInode->pShmNode ); assert 30134 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->pInode==pDbFd->pInode ); assert 30150 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->nRef>0 ); assert 30176 ext/sqlite3/libsqlite/sqlite3.c assert( pFd->nFetchOut==0 ); assert 30211 ext/sqlite3/libsqlite/sqlite3.c assert( pFd->nFetchOut==0 ); assert 30212 ext/sqlite3/libsqlite/sqlite3.c assert( nNew>pFd->mmapSize ); assert 30213 ext/sqlite3/libsqlite/sqlite3.c assert( nNew<=pFd->mmapSizeMax ); assert 30214 ext/sqlite3/libsqlite/sqlite3.c assert( nNew>0 ); assert 30215 ext/sqlite3/libsqlite/sqlite3.c assert( pFd->mmapSizeActual>=pFd->mmapSize ); assert 30216 ext/sqlite3/libsqlite/sqlite3.c assert( MAP_FAILED!=0 ); assert 30294 ext/sqlite3/libsqlite/sqlite3.c assert( nMap>=0 || pFd->nFetchOut==0 ); assert 30372 ext/sqlite3/libsqlite/sqlite3.c assert( (p==0)==(pFd->nFetchOut==0) ); assert 30375 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 || p==&((u8 *)pFd->pMapRegion)[iOff] ); assert 30383 ext/sqlite3/libsqlite/sqlite3.c assert( pFd->nFetchOut>=0 ); assert 30705 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->pInode==NULL ); assert 30712 ext/sqlite3/libsqlite/sqlite3.c assert( zFilename==0 || zFilename[0]=='/' assert 30715 ext/sqlite3/libsqlite/sqlite3.c assert( zFilename==0 || zFilename[0]=='/' ); assert 30719 ext/sqlite3/libsqlite/sqlite3.c assert( zFilename!=0 || (ctrlFlags & UNIXFILE_NOLOCK)!=0 ); assert 30823 ext/sqlite3/libsqlite/sqlite3.c assert( zFilename!=0 ); assert 31072 ext/sqlite3/libsqlite/sqlite3.c assert( nDb>0 ); assert 31073 ext/sqlite3/libsqlite/sqlite3.c assert( zPath[nDb]!='\n' ); assert 31165 ext/sqlite3/libsqlite/sqlite3.c assert((isReadonly==0 || isReadWrite==0) && (isReadWrite || isReadonly)); assert 31166 ext/sqlite3/libsqlite/sqlite3.c assert(isCreate==0 || isReadWrite); assert 31167 ext/sqlite3/libsqlite/sqlite3.c assert(isExclusive==0 || isCreate); assert 31168 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete==0 || isCreate); assert 31172 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_DB ); assert 31173 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_JOURNAL ); assert 31174 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MASTER_JOURNAL ); assert 31175 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_WAL ); assert 31178 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_OPEN_MAIN_DB || eType==SQLITE_OPEN_TEMP_DB assert 31212 ext/sqlite3/libsqlite/sqlite3.c assert( (flags & SQLITE_OPEN_URI) || zName[strlen(zName)+1]==0 ); assert 31216 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete && !syncDir); assert 31225 ext/sqlite3/libsqlite/sqlite3.c assert( zName[strlen(zName)+1]==0 ); assert 31244 ext/sqlite3/libsqlite/sqlite3.c assert( !p->pUnused ); assert 31245 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_OPEN_WAL || eType==SQLITE_OPEN_MAIN_JOURNAL ); assert 31272 ext/sqlite3/libsqlite/sqlite3.c assert( fd>=0 ); assert 31445 ext/sqlite3/libsqlite/sqlite3.c assert(!"Invalid flags argument"); assert 31481 ext/sqlite3/libsqlite/sqlite3.c assert( pVfs->mxPathname==MAX_PATHNAME ); assert 31566 ext/sqlite3/libsqlite/sqlite3.c assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int))); assert 31591 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(t)+sizeof(randomnessPid)<=(size_t)nBuf ); assert 31936 ext/sqlite3/libsqlite/sqlite3.c assert(lockPath!=NULL); assert 32069 ext/sqlite3/libsqlite/sqlite3.c assert(PROXY_HOSTIDLEN == sizeof(uuid_t)); assert 32198 ext/sqlite3/libsqlite/sqlite3.c assert( nTries>1 ); assert 32224 ext/sqlite3/libsqlite/sqlite3.c assert( nTries==3 ); assert 32526 ext/sqlite3/libsqlite/sqlite3.c assert( (int)strlen(conchPath) == len+7 ); assert 32576 ext/sqlite3/libsqlite/sqlite3.c assert( (int)strlen((char*)pFile->lockingContext)<=MAXPATHLEN ); assert 32588 ext/sqlite3/libsqlite/sqlite3.c assert( strlen((char*)pFile->lockingContext)<=MAXPATHLEN ); assert 32742 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); /* The call assures that only valid opcodes are sent */ assert 32989 ext/sqlite3/libsqlite/sqlite3.c assert( ArraySize(aSyscall)==25 ); assert 33594 ext/sqlite3/libsqlite/sqlite3.c #define winMemAssertMagic1() assert( win_mem_data.magic1==WINMEM_MAGIC1 ) assert 33595 ext/sqlite3/libsqlite/sqlite3.c #define winMemAssertMagic2() assert( win_mem_data.magic2==WINMEM_MAGIC2 ) assert 34405 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=0 ); assert 34406 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=INVALID_HANDLE_VALUE ); assert 34408 ext/sqlite3/libsqlite/sqlite3.c assert( osHeapValidate(hHeap, SQLITE_WIN32_HEAP_FLAGS, NULL) ); assert 34455 ext/sqlite3/libsqlite/sqlite3.c assert( winMemGetHeap()!=NULL ); assert 34456 ext/sqlite3/libsqlite/sqlite3.c assert( winMemGetOwned() ); assert 34457 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_memory_used()==0 ); assert 34459 ext/sqlite3/libsqlite/sqlite3.c assert( winMemGetHeap()==NULL ); assert 34460 ext/sqlite3/libsqlite/sqlite3.c assert( !winMemGetOwned() ); assert 34461 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_memory_used()==0 ); assert 34463 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || winMemGetHeap()!=NULL ); assert 34464 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || winMemGetOwned() ); assert 34465 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || sqlite3_memory_used()==0 ); assert 34487 ext/sqlite3/libsqlite/sqlite3.c assert( nMin==-1 || nMin==0 || nMin<SQLITE_WIN32_DBG_BUF_SIZE ); assert 34529 ext/sqlite3/libsqlite/sqlite3.c assert( sleepObj!=NULL ); assert 34617 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=0 ); assert 34618 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=INVALID_HANDLE_VALUE ); assert 34620 ext/sqlite3/libsqlite/sqlite3.c assert( osHeapValidate(hHeap, SQLITE_WIN32_HEAP_FLAGS, NULL) ); assert 34622 ext/sqlite3/libsqlite/sqlite3.c assert( nBytes>=0 ); assert 34639 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=0 ); assert 34640 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=INVALID_HANDLE_VALUE ); assert 34642 ext/sqlite3/libsqlite/sqlite3.c assert( osHeapValidate(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior) ); assert 34660 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=0 ); assert 34661 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=INVALID_HANDLE_VALUE ); assert 34663 ext/sqlite3/libsqlite/sqlite3.c assert( osHeapValidate(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior) ); assert 34665 ext/sqlite3/libsqlite/sqlite3.c assert( nBytes>=0 ); assert 34688 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=0 ); assert 34689 ext/sqlite3/libsqlite/sqlite3.c assert( hHeap!=INVALID_HANDLE_VALUE ); assert 34691 ext/sqlite3/libsqlite/sqlite3.c assert( osHeapValidate(hHeap, SQLITE_WIN32_HEAP_FLAGS, p) ); assert 34717 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->magic1==WINMEM_MAGIC1 ); assert 34718 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->magic2==WINMEM_MAGIC2 ); assert 34739 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->bOwned ); assert 34749 ext/sqlite3/libsqlite/sqlite3.c assert( !pWinMemData->bOwned ); assert 34751 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->hHeap!=0 ); assert 34752 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->hHeap!=INVALID_HANDLE_VALUE ); assert 34754 ext/sqlite3/libsqlite/sqlite3.c assert( osHeapValidate(pWinMemData->hHeap, SQLITE_WIN32_HEAP_FLAGS, NULL) ); assert 34766 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->magic1==WINMEM_MAGIC1 ); assert 34767 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->magic2==WINMEM_MAGIC2 ); assert 34770 ext/sqlite3/libsqlite/sqlite3.c assert( pWinMemData->hHeap!=INVALID_HANDLE_VALUE ); assert 34772 ext/sqlite3/libsqlite/sqlite3.c assert( osHeapValidate(pWinMemData->hHeap, SQLITE_WIN32_HEAP_FLAGS, NULL) ); assert 34974 ext/sqlite3/libsqlite/sqlite3.c assert( !ppDirectory || type==SQLITE_WIN32_DATA_DIRECTORY_TYPE assert 34977 ext/sqlite3/libsqlite/sqlite3.c assert( !ppDirectory || sqlite3MemdebugHasType(*ppDirectory, MEMTYPE_HEAP) ); assert 35101 ext/sqlite3/libsqlite/sqlite3.c assert( errcode!=SQLITE_OK ); assert 35464 ext/sqlite3/libsqlite/sqlite3.c assert(nNumberOfBytesToUnlockLow == (DWORD)SHARED_SIZE); assert 35472 ext/sqlite3/libsqlite/sqlite3.c assert(nNumberOfBytesToUnlockLow == (DWORD)SHARED_SIZE assert 35667 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 35669 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->pShm==0 ); assert 35671 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->h!=NULL && pFile->h!=INVALID_HANDLE_VALUE ); assert 35727 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 35728 ext/sqlite3/libsqlite/sqlite3.c assert( amt>0 ); assert 35729 ext/sqlite3/libsqlite/sqlite3.c assert( offset>=0 ); assert 35804 ext/sqlite3/libsqlite/sqlite3.c assert( amt>0 ); assert 35805 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 35861 ext/sqlite3/libsqlite/sqlite3.c assert( nWrite==0 || nWrite<=(DWORD)nRem ); assert 35908 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 35978 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 35980 ext/sqlite3/libsqlite/sqlite3.c assert((flags&0x0F)==SQLITE_SYNC_NORMAL assert 36049 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 36050 ext/sqlite3/libsqlite/sqlite3.c assert( pSize!=0 ); assert 36213 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 36228 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype!=NO_LOCK || locktype==SHARED_LOCK ); assert 36229 ext/sqlite3/libsqlite/sqlite3.c assert( locktype!=PENDING_LOCK ); assert 36230 ext/sqlite3/libsqlite/sqlite3.c assert( locktype!=RESERVED_LOCK || pFile->locktype==SHARED_LOCK ); assert 36271 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype==NO_LOCK ); assert 36283 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype==SHARED_LOCK ); assert 36302 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->locktype>=SHARED_LOCK ); assert 36350 ext/sqlite3/libsqlite/sqlite3.c assert( id!=0 ); assert 36383 ext/sqlite3/libsqlite/sqlite3.c assert( pFile!=0 ); assert 36384 ext/sqlite3/libsqlite/sqlite3.c assert( locktype<=SHARED_LOCK ); assert 36702 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 ); assert 36744 ext/sqlite3/libsqlite/sqlite3.c assert( winShmMutexHeld() ); assert 36797 ext/sqlite3/libsqlite/sqlite3.c assert( pDbFd->pShm==0 ); /* Not previously opened */ assert 36929 ext/sqlite3/libsqlite/sqlite3.c assert( pShmNode->nRef>0 ); assert 36955 ext/sqlite3/libsqlite/sqlite3.c assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK ); assert 36956 ext/sqlite3/libsqlite/sqlite3.c assert( n>=1 ); assert 36957 ext/sqlite3/libsqlite/sqlite3.c assert( flags==(SQLITE_SHM_LOCK | SQLITE_SHM_SHARED) assert 36961 ext/sqlite3/libsqlite/sqlite3.c assert( n==1 || (flags & SQLITE_SHM_EXCLUSIVE)!=0 ); assert 36964 ext/sqlite3/libsqlite/sqlite3.c assert( n>1 || mask==(1<<ofst) ); assert 36972 ext/sqlite3/libsqlite/sqlite3.c assert( (pX->exclMask & (p->exclMask|p->sharedMask))==0 ); assert 37033 ext/sqlite3/libsqlite/sqlite3.c assert( (p->sharedMask & mask)==0 ); assert 37099 ext/sqlite3/libsqlite/sqlite3.c assert( szRegion==pShmNode->szRegion || pShmNode->nRegion==0 ); assert 37220 ext/sqlite3/libsqlite/sqlite3.c assert( pFile!=0 ); assert 37273 ext/sqlite3/libsqlite/sqlite3.c assert( nMap>=0 || pFd->nFetchOut==0 ); assert 37325 ext/sqlite3/libsqlite/sqlite3.c assert( (nMap % winSysInfo.dwPageSize)==0 ); assert 37326 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(SIZE_T)==sizeof(sqlite3_int64) || nMap<=0xffffffff ); assert 37414 ext/sqlite3/libsqlite/sqlite3.c assert( (p==0)==(pFd->nFetchOut==0) ); assert 37417 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 || p==&((u8 *)pFd->pMapRegion)[iOff] ); assert 37432 ext/sqlite3/libsqlite/sqlite3.c assert( pFd->nFetchOut>=0 ); assert 37576 ext/sqlite3/libsqlite/sqlite3.c assert( nDir>0 ); assert 37858 ext/sqlite3/libsqlite/sqlite3.c assert((isReadonly==0 || isReadWrite==0) && (isReadWrite || isReadonly)); assert 37859 ext/sqlite3/libsqlite/sqlite3.c assert(isCreate==0 || isReadWrite); assert 37860 ext/sqlite3/libsqlite/sqlite3.c assert(isExclusive==0 || isCreate); assert 37861 ext/sqlite3/libsqlite/sqlite3.c assert(isDelete==0 || isCreate); assert 37865 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_DB ); assert 37866 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_JOURNAL ); assert 37867 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MASTER_JOURNAL ); assert 37868 ext/sqlite3/libsqlite/sqlite3.c assert( (!isDelete && zName) || eType!=SQLITE_OPEN_WAL ); assert 37871 ext/sqlite3/libsqlite/sqlite3.c assert( eType==SQLITE_OPEN_MAIN_DB || eType==SQLITE_OPEN_TEMP_DB assert 37877 ext/sqlite3/libsqlite/sqlite3.c assert( pFile!=0 ); assert 37892 ext/sqlite3/libsqlite/sqlite3.c assert( isDelete && !isOpenJournal ); assert 37905 ext/sqlite3/libsqlite/sqlite3.c assert( (eType!=SQLITE_OPEN_MAIN_DB) || (flags & SQLITE_OPEN_URI) || assert 38268 ext/sqlite3/libsqlite/sqlite3.c assert(!"Invalid flags argument"); assert 38338 ext/sqlite3/libsqlite/sqlite3.c assert( nFull>=pVfs->mxPathname ); assert 38811 ext/sqlite3/libsqlite/sqlite3.c assert( ArraySize(aSyscall)==80 ); assert 38820 ext/sqlite3/libsqlite/sqlite3.c assert( winSysInfo.dwAllocationGranularity>0 ); assert 38821 ext/sqlite3/libsqlite/sqlite3.c assert( winSysInfo.dwPageSize>0 ); assert 38960 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(*p)==BITVEC_SZ ); assert 39012 ext/sqlite3/libsqlite/sqlite3.c assert( i>0 ); assert 39013 ext/sqlite3/libsqlite/sqlite3.c assert( i<=p->iSize ); assert 39082 ext/sqlite3/libsqlite/sqlite3.c assert( i>0 ); assert 39304 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyNext || pPage==p->pDirtyTail ); assert 39305 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyPrev || pPage==p->pDirty ); assert 39319 ext/sqlite3/libsqlite/sqlite3.c assert( pPage==p->pDirtyTail ); assert 39325 ext/sqlite3/libsqlite/sqlite3.c assert( pPage==p->pDirty ); assert 39328 ext/sqlite3/libsqlite/sqlite3.c assert( p->eCreate==1 ); assert 39336 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyNext==0 && pPage->pDirtyPrev==0 && p->pDirty!=pPage ); assert 39340 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDirtyNext->pDirtyPrev==0 ); assert 39345 ext/sqlite3/libsqlite/sqlite3.c assert( p->eCreate==2 ); assert 39444 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nRef==0 && pCache->pDirty==0 ); assert 39494 ext/sqlite3/libsqlite/sqlite3.c assert( pCache!=0 ); assert 39495 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->pCache!=0 ); assert 39496 ext/sqlite3/libsqlite/sqlite3.c assert( createFlag==3 || createFlag==0 ); assert 39497 ext/sqlite3/libsqlite/sqlite3.c assert( pgno>0 ); assert 39507 ext/sqlite3/libsqlite/sqlite3.c assert( eCreate==0 || eCreate==1 || eCreate==2 ); assert 39508 ext/sqlite3/libsqlite/sqlite3.c assert( createFlag==0 || pCache->eCreate==eCreate ); assert 39509 ext/sqlite3/libsqlite/sqlite3.c assert( createFlag==0 || eCreate==1+(!pCache->bPurgeable||!pCache->pDirty) ); assert 39579 ext/sqlite3/libsqlite/sqlite3.c assert( pPage!=0 ); assert 39581 ext/sqlite3/libsqlite/sqlite3.c assert( pPgHdr->pPage==0 ); assert 39626 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 39643 ext/sqlite3/libsqlite/sqlite3.c assert(p->nRef>0); assert 39653 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==1 ); assert 39670 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 39717 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 39718 ext/sqlite3/libsqlite/sqlite3.c assert( newPgno>0 ); assert 39745 ext/sqlite3/libsqlite/sqlite3.c assert( p->pgno>0 ); assert 39747 ext/sqlite3/libsqlite/sqlite3.c assert( p->flags&PGHDR_DIRTY ); assert 39763 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->pCache!=0 ); assert 39873 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->pCache!=0 ); assert 39890 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->pCache!=0 ); assert 39900 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->pCache!=0 ); assert 40122 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pcache1.grp.mutex) ); assert 40130 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.nFreeSlot>=0 ); assert 40170 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.nFreeSlot<=pcache1.nSlot ); assert 40173 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_PCACHE) ); assert 40195 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3MemdebugHasType(p, MEMTYPE_PCACHE) ); assert 40214 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCache->pGroup->mutex) ); assert 40251 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pCache->pGroup->mutex) ); assert 40317 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pGroup->mutex) ); assert 40357 ext/sqlite3/libsqlite/sqlite3.c assert( pPage!=0 ); assert 40358 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isPinned==0 ); assert 40361 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pLruNext || pPage==pGroup->pLruTail ); assert 40362 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pLruPrev || pPage==pGroup->pLruHead ); assert 40363 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pGroup->mutex) ); assert 40392 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCache->pGroup->mutex) ); assert 40405 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pGroup->mutex) ); assert 40408 ext/sqlite3/libsqlite/sqlite3.c assert( p->pCache->pGroup==pGroup ); assert 40409 ext/sqlite3/libsqlite/sqlite3.c assert( p->isPinned==0 ); assert 40429 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCache->pGroup->mutex) ); assert 40445 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nPage==nPage ); assert 40456 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.isInit==0 ); assert 40474 ext/sqlite3/libsqlite/sqlite3.c assert( pcache1.isInit!=0 ); assert 40509 ext/sqlite3/libsqlite/sqlite3.c assert( (szPage & (szPage-1))==0 && szPage>=512 && szPage<=65536 ); assert 40510 ext/sqlite3/libsqlite/sqlite3.c assert( szExtra < 300 ); assert 40610 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nPage >= pCache->nRecyclable ); assert 40612 ext/sqlite3/libsqlite/sqlite3.c assert( pGroup->mxPinned == pGroup->nMaxPage + 10 - pGroup->nMinPage ); assert 40613 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->n90pct == pCache->nMax*9/10 ); assert 40623 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nHash>0 && pCache->apHash ); assert 40633 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isPinned==0 ); assert 40640 ext/sqlite3/libsqlite/sqlite3.c assert( (pCache->szPage & (pCache->szPage-1))==0 && pCache->szPage>=512 ); assert 40641 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->szExtra<512 ); assert 40642 ext/sqlite3/libsqlite/sqlite3.c assert( (pOther->szPage & (pOther->szPage-1))==0 && pOther->szPage>=512 ); assert 40643 ext/sqlite3/libsqlite/sqlite3.c assert( pOther->szExtra<512 ); assert 40742 ext/sqlite3/libsqlite/sqlite3.c assert( offsetof(PgHdr1,page)==0 ); assert 40743 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable || createFlag!=1 ); assert 40744 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable || pCache->nMin==0 ); assert 40745 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable==0 || pCache->nMin==10 ); assert 40746 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nMin==0 || pCache->bPurgeable ); assert 40747 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->nHash>0 ); assert 40761 ext/sqlite3/libsqlite/sqlite3.c assert( pPage==0 || pCache->iMaxKey>=iKey ); assert 40781 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pCache==pCache ); assert 40787 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pLruPrev==0 && pPage->pLruNext==0 ); assert 40788 ext/sqlite3/libsqlite/sqlite3.c assert( pGroup->pLruHead!=pPage && pGroup->pLruTail!=pPage ); assert 40789 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isPinned==1 ); assert 40824 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->iKey==iOld ); assert 40825 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pCache==pCache ); assert 40872 ext/sqlite3/libsqlite/sqlite3.c assert( pCache->bPurgeable || (pCache->nMax==0 && pCache->nMin==0) ); assert 40875 ext/sqlite3/libsqlite/sqlite3.c assert( pGroup->nMaxPage >= pCache->nMax ); assert 40877 ext/sqlite3/libsqlite/sqlite3.c assert( pGroup->nMinPage >= pCache->nMin ); assert 40935 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pcache1.grp.mutex) ); assert 40936 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pcache1.mutex) ); assert 40945 ext/sqlite3/libsqlite/sqlite3.c assert( p->isPinned==0 ); assert 40970 ext/sqlite3/libsqlite/sqlite3.c assert( p->isPinned==0 ); assert 41119 ext/sqlite3/libsqlite/sqlite3.c assert( N >= ROUND8(sizeof(*p)) ); assert 41161 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 41188 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 && (p->rsFlags & ROWSET_NEXT)==0 ); assert 41221 ext/sqlite3/libsqlite/sqlite3.c assert( pA->pRight==0 || pA->v<=pA->pRight->v ); assert 41222 ext/sqlite3/libsqlite/sqlite3.c assert( pB->pRight==0 || pB->v<=pB->pRight->v ); assert 41236 ext/sqlite3/libsqlite/sqlite3.c assert( pA->pRight==0 || pA->v<=pA->pRight->v ); assert 41239 ext/sqlite3/libsqlite/sqlite3.c assert( pB==0 || pB->pRight==0 || pB->v<=pB->pRight->v ); assert 41282 ext/sqlite3/libsqlite/sqlite3.c assert( pIn!=0 ); assert 41295 ext/sqlite3/libsqlite/sqlite3.c assert( (*ppLast)->pRight==0 ); assert 41347 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); assert 41370 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 && (p->rsFlags & ROWSET_NEXT)==0 ); assert 41380 ext/sqlite3/libsqlite/sqlite3.c assert( p->pForest==0 ); assert 41404 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 41434 ext/sqlite3/libsqlite/sqlite3.c assert( pRowSet!=0 && (pRowSet->rsFlags & ROWSET_NEXT)==0 ); assert 42472 ext/sqlite3/libsqlite/sqlite3.c assert( p->eState==PAGER_OPEN assert 42485 ext/sqlite3/libsqlite/sqlite3.c assert( p->tempFile==0 || p->eLock==EXCLUSIVE_LOCK ); assert 42486 ext/sqlite3/libsqlite/sqlite3.c assert( p->tempFile==0 || pPager->changeCountDone ); assert 42491 ext/sqlite3/libsqlite/sqlite3.c assert( p->journalMode==PAGER_JOURNALMODE_OFF || p->useJournal ); assert 42492 ext/sqlite3/libsqlite/sqlite3.c assert( p->journalMode!=PAGER_JOURNALMODE_OFF || !isOpen(p->jfd) ); assert 42503 ext/sqlite3/libsqlite/sqlite3.c assert( p->noSync ); assert 42504 ext/sqlite3/libsqlite/sqlite3.c assert( p->journalMode==PAGER_JOURNALMODE_OFF assert 42507 ext/sqlite3/libsqlite/sqlite3.c assert( p->eState!=PAGER_ERROR && p->eState!=PAGER_OPEN ); assert 42508 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(p)==0 ); assert 42514 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->changeCountDone==0 || pPager->eLock>=RESERVED_LOCK ); assert 42515 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=PENDING_LOCK ); assert 42519 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 42520 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 42521 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PcacheRefCount(pPager->pPCache)==0 || pPager->tempFile ); assert 42525 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 42526 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=UNKNOWN_LOCK ); assert 42527 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=SHARED_LOCK ); assert 42531 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=UNKNOWN_LOCK ); assert 42532 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 42534 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=RESERVED_LOCK ); assert 42536 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbSize==pPager->dbOrigSize ); assert 42537 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbFileSize ); assert 42538 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbHintSize ); assert 42539 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->setMaster==0 ); assert 42543 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock!=UNKNOWN_LOCK ); assert 42544 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 42551 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=RESERVED_LOCK ); assert 42552 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(p->jfd) assert 42557 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbFileSize ); assert 42558 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize==pPager->dbHintSize ); assert 42562 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock==EXCLUSIVE_LOCK ); assert 42563 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 42564 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 42565 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock>=EXCLUSIVE_LOCK ); assert 42566 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(p->jfd) assert 42570 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbOrigSize<=pPager->dbHintSize ); assert 42574 ext/sqlite3/libsqlite/sqlite3.c assert( p->eLock==EXCLUSIVE_LOCK ); assert 42575 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==SQLITE_OK ); assert 42576 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 42577 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(p->jfd) assert 42588 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode!=SQLITE_OK ); assert 42589 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PcacheRefCount(pPager->pPCache)>0 ); assert 42722 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->exclusiveMode || pPager->eLock==eLock ); assert 42723 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==NO_LOCK || eLock==SHARED_LOCK ); assert 42724 ext/sqlite3/libsqlite/sqlite3.c assert( eLock!=NO_LOCK || pagerUseWal(pPager)==0 ); assert 42726 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock>=eLock ); assert 42749 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==SHARED_LOCK || eLock==RESERVED_LOCK || eLock==EXCLUSIVE_LOCK ); assert 42779 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 42785 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); assert 42790 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC512==(512>>8)); assert 42791 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC64K==(65536>>8)); assert 42833 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 42834 ext/sqlite3/libsqlite/sqlite3.c assert( (pPg->flags&PGHDR_DIRTY) || pPg->pageHash==pager_pagehash(pPg) ); assert 42929 ext/sqlite3/libsqlite/sqlite3.c assert( offset%JOURNAL_HDR_SZ(pPager)==0 ); assert 42930 ext/sqlite3/libsqlite/sqlite3.c assert( offset>=c ); assert 42931 ext/sqlite3/libsqlite/sqlite3.c assert( (offset-c)<JOURNAL_HDR_SZ(pPager) ); assert 42958 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); assert 43012 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); /* Journal file must be open. */ assert 43050 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->noSync ); assert 43099 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalHdr <= pPager->journalOff ); assert 43134 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); /* Journal file must be open. */ assert 43255 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->setMaster==0 ); assert 43256 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 43265 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalHdr <= pPager->journalOff ); assert 43325 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>PAGER_OPEN ); assert 43362 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_NOMEM ); assert 43387 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER assert 43397 ext/sqlite3/libsqlite/sqlite3.c assert( !isOpen(pPager->jfd) ); assert 43409 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_MEMORY & 5)!=1 ); assert 43410 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_OFF & 5)!=1 ); assert 43411 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_WAL & 5)!=1 ); assert 43412 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_DELETE & 5)!=1 ); assert 43413 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_TRUNCATE & 5)==1 ); assert 43414 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_PERSIST & 5)==1 ); assert 43435 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode || pPager->eState!=PAGER_ERROR ); assert 43446 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 43480 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || !MEMDB ); assert 43481 ext/sqlite3/libsqlite/sqlite3.c assert( assert 43565 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 43566 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 43572 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) || pPager->pInJournal==0 ); assert 43574 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 43578 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalMode==PAGER_JOURNALMODE_MEMORY ); assert 43607 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalMode==PAGER_JOURNALMODE_DELETE assert 43641 ext/sqlite3/libsqlite/sqlite3.c assert( rc2==SQLITE_OK ); assert 43649 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==EXCLUSIVE_LOCK ); assert 43689 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 43695 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER ); assert 43798 ext/sqlite3/libsqlite/sqlite3.c assert( (isMainJrnl&~1)==0 ); /* isMainJrnl is 0 or 1 */ assert 43799 ext/sqlite3/libsqlite/sqlite3.c assert( (isSavepnt&~1)==0 ); /* isSavepnt is 0 or 1 */ assert 43800 ext/sqlite3/libsqlite/sqlite3.c assert( isMainJrnl || pDone ); /* pDone always used on sub-journals */ assert 43801 ext/sqlite3/libsqlite/sqlite3.c assert( isSavepnt || pDone==0 ); /* pDone never used on non-savepoint */ assert 43804 ext/sqlite3/libsqlite/sqlite3.c assert( aData ); /* Temp storage must have already been allocated */ assert 43805 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager)==0 || (!isMainJrnl && isSavepnt) ); assert 43813 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD assert 43816 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD || isMainJrnl ); assert 43834 ext/sqlite3/libsqlite/sqlite3.c assert( !isSavepnt ); assert 43902 ext/sqlite3/libsqlite/sqlite3.c assert( pPg || !MEMDB ); assert 43903 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_OPEN || pPg==0 ); assert 43919 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 43946 ext/sqlite3/libsqlite/sqlite3.c assert( isSavepnt ); assert 43947 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->doNotSpill & SPILLFLAG_ROLLBACK)==0 ); assert 43950 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->doNotSpill & SPILLFLAG_ROLLBACK)!=0 ); assert 43987 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 44131 ext/sqlite3/libsqlite/sqlite3.c assert( !isOpen(pJournal) ); assert 44160 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 44161 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_READER ); assert 44168 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==EXCLUSIVE_LOCK ); assert 44199 ext/sqlite3/libsqlite/sqlite3.c assert( MAX_SECTOR_SIZE>=512 ); assert 44229 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); assert 44316 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); assert 44369 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalOff==JOURNAL_HDR_SZ(pPager) ); assert 44438 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 44515 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER && !MEMDB ); assert 44516 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); assert 44603 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager) ); assert 44679 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pWal ); assert 44680 ext/sqlite3/libsqlite/sqlite3.c assert( pList ); assert 44684 ext/sqlite3/libsqlite/sqlite3.c assert( p->pgno < p->pDirty->pgno ); assert 44688 ext/sqlite3/libsqlite/sqlite3.c assert( pList->pDirty==0 || isCommit ); assert 44702 ext/sqlite3/libsqlite/sqlite3.c assert( pList ); assert 44740 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager) ); assert 44741 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER ); assert 44778 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 44779 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock>=SHARED_LOCK ); assert 44790 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); assert 44833 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 44834 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock>=SHARED_LOCK ); assert 44906 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 44907 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_LOCKED ); assert 44933 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager)==0 || szJ==0 ); assert 44948 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 44963 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 44978 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 44980 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pPager->journalOff>=szJ ); assert 44994 ext/sqlite3/libsqlite/sqlite3.c assert( offset==(i64)ii*(4+pPager->pageSize) ); assert 44997 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 45097 ext/sqlite3/libsqlite/sqlite3.c assert( level>=1 && level<=3 ); assert 45163 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pFile) ); assert 45198 ext/sqlite3/libsqlite/sqlite3.c assert( ((int(*)(void *))(ap[0]))==xBusyHandler ); assert 45199 ext/sqlite3/libsqlite/sqlite3.c assert( ap[1]==pBusyHandlerArg ); assert 45248 ext/sqlite3/libsqlite/sqlite3.c assert( pageSize==0 || (pageSize>=512 && pageSize<=SQLITE_MAX_PAGE_SIZE) ); assert 45281 ext/sqlite3/libsqlite/sqlite3.c assert( nReserve>=0 && nReserve<1000 ); assert 45312 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_OPEN ); /* Called only by OP_MaxPgcnt */ assert 45313 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->mxPgno>=pPager->dbSize ); /* OP_MaxPgcnt enforces this */ assert 45358 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); assert 45364 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 45384 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER ); assert 45385 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_WRITER_FINISHED ); assert 45412 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->eLock>=locktype) assert 45447 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->flags&PGHDR_DIRTY ); assert 45448 ext/sqlite3/libsqlite/sqlite3.c assert( !subjRequiresPage(pPg) || pPg->pgno<=pPg->pPager->dbSize ); assert 45469 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbSize>=nPage ); assert 45470 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD ); assert 45545 ext/sqlite3/libsqlite/sqlite3.c assert( p->pExtra==(void *)&p[1] ); assert 45546 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPage==0 ); assert 45547 ext/sqlite3/libsqlite/sqlite3.c assert( p->flags==PGHDR_MMAP ); assert 45548 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPager==pPager ); assert 45549 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef==1 ); assert 45568 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->fd->pMethods->iVersion>=3 ); assert 45602 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 45645 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->aSavepoint && !pPager->pInJournal ); assert 45646 ext/sqlite3/libsqlite/sqlite3.c assert( !isOpen(pPager->jfd) && !isOpen(pPager->sjfd) ); assert 45706 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 45709 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 45710 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 45716 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->tempFile ); assert 45719 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) ); assert 45810 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 45850 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 45851 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_DBMOD ); assert 45852 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==EXCLUSIVE_LOCK ); assert 45859 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->tempFile && rc==SQLITE_OK ); assert 45866 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->fd) ); assert 45891 ext/sqlite3/libsqlite/sqlite3.c assert( (pList->flags&PGHDR_NEED_SYNC)==0 ); assert 45968 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->useJournal ); assert 45969 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) || pagerUseWal(pPager) ); assert 45970 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->sjfd) || pPager->nSubRec==0 ); assert 45971 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager) assert 45994 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->nSavepoint>0 ); assert 46023 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pPager==pPager ); assert 46024 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->flags&PGHDR_DIRTY ); assert 46106 ext/sqlite3/libsqlite/sqlite3.c assert( (pPg->flags&PGHDR_NEED_SYNC)==0 ); assert 46224 ext/sqlite3/libsqlite/sqlite3.c assert( nUri>=0 ); assert 46263 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(SQLITE_INT_TO_PTR(journalFileSize)) ); assert 46274 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pPager->jfd) ); assert 46278 ext/sqlite3/libsqlite/sqlite3.c assert( nPathname>0 ); assert 46301 ext/sqlite3/libsqlite/sqlite3.c assert( !memDb ); assert 46316 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_DEFAULT_PAGE_SIZE<=SQLITE_MAX_DEFAULT_PAGE_SIZE); assert 46327 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC512==(512>>8)); assert 46328 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_IOCAP_ATOMIC64K==(65536>>8)); assert 46329 ext/sqlite3/libsqlite/sqlite3.c assert(SQLITE_MAX_DEFAULT_PAGE_SIZE<=65536); assert 46368 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->memDb==0 ); assert 46375 ext/sqlite3/libsqlite/sqlite3.c assert( nExtra<1000 ); assert 46404 ext/sqlite3/libsqlite/sqlite3.c assert( tempFile==PAGER_LOCKINGMODE_NORMAL assert 46406 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_LOCKINGMODE_EXCLUSIVE==1 ); assert 46411 ext/sqlite3/libsqlite/sqlite3.c assert( useJournal || pPager->tempFile ); assert 46414 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->fullSync==0 ); assert 46415 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->syncFlags==0 ); assert 46416 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->walSyncFlags==0 ); assert 46417 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->ckptSyncFlags==0 ); assert 46429 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || tempFile ); assert 46458 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->zFilename && pPager->zFilename[0] ); assert 46509 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->useJournal ); assert 46510 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); assert 46511 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 46513 ext/sqlite3/libsqlite/sqlite3.c assert( jrnlOpen==0 || ( sqlite3OsDeviceCharacteristics(pPager->jfd) & assert 46630 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PcacheRefCount(pPager->pPCache)==0 ); assert 46631 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 46632 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN || pPager->eState==PAGER_READER ); assert 46638 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 46642 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==NO_LOCK || pPager->eLock==UNKNOWN_LOCK ); assert 46702 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->tempFile ); assert 46704 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->jfd) ); assert 46721 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 46752 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 46753 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->eLock==SHARED_LOCK) assert 46811 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pWal==0 || rc==SQLITE_OK ); assert 46816 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 46826 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 46828 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN ); assert 46921 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER ); assert 46922 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 46923 ext/sqlite3/libsqlite/sqlite3.c assert( noContent==0 || bMmapOk==0 ); assert 46957 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 46986 ext/sqlite3/libsqlite/sqlite3.c assert( (*ppPage)->pgno==pgno ); assert 46987 ext/sqlite3/libsqlite/sqlite3.c assert( (*ppPage)->pPager==pPager || (*ppPage)->pPager==0 ); assert 46992 ext/sqlite3/libsqlite/sqlite3.c assert( pgno<=PAGER_MAX_PGNO && pgno!=PAGER_MJ_PGNO(pPager) ); assert 47038 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pPager==pPager ); assert 47051 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK ); assert 47074 ext/sqlite3/libsqlite/sqlite3.c assert( pPager!=0 ); assert 47075 ext/sqlite3/libsqlite/sqlite3.c assert( pgno!=0 ); assert 47076 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pPCache!=0 ); assert 47078 ext/sqlite3/libsqlite/sqlite3.c assert( pPage==0 || pPager->hasBeenUsed ); assert 47092 ext/sqlite3/libsqlite/sqlite3.c assert( pPg!=0 ); assert 47131 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED ); assert 47132 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47133 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pInJournal==0 ); assert 47171 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->jfd) ); assert 47192 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED ); assert 47220 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER && pPager->eState<PAGER_ERROR ); assert 47224 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pInJournal==0 ); assert 47273 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pPager->eState==PAGER_READER ); assert 47274 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pPager->eState==PAGER_WRITER_LOCKED ); assert 47275 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47298 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED assert 47302 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47303 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->errCode==0 ); assert 47304 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->readOnly==0 ); assert 47321 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_CACHEMOD ); assert 47322 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47330 ext/sqlite3/libsqlite/sqlite3.c assert( !pagerUseWal(pPager) ); assert 47338 ext/sqlite3/libsqlite/sqlite3.c assert( pagerUseWal(pPager)==0 ); assert 47347 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pgno!=PAGER_MJ_PGNO(pPager) ); assert 47349 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalHdr<=pPager->journalOff ); assert 47378 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pInJournal!=0 ); assert 47381 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_NOMEM ); assert 47384 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM ); assert 47440 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 47441 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->doNotSpill & SPILLFLAG_NOSYNC)==0 ); assert 47458 ext/sqlite3/libsqlite/sqlite3.c assert(nPage>0); assert 47459 ext/sqlite3/libsqlite/sqlite3.c assert(pg1<=pPg->pgno); assert 47460 ext/sqlite3/libsqlite/sqlite3.c assert((pg1+nPage)>pPg->pgno); assert 47491 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 47501 ext/sqlite3/libsqlite/sqlite3.c assert( (pPager->doNotSpill & SPILLFLAG_NOSYNC)!=0 ); assert 47521 ext/sqlite3/libsqlite/sqlite3.c assert( (pPg->flags & PGHDR_MMAP)==0 ); assert 47522 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pPager->eState>=PAGER_WRITER_LOCKED ); assert 47523 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pPager->eState!=PAGER_ERROR ); assert 47524 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPg->pPager) ); assert 47592 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 47595 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47609 ext/sqlite3/libsqlite/sqlite3.c assert( isDirectMode==0 ); assert 47618 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->tempFile && isOpen(pPager->fd) ); assert 47622 ext/sqlite3/libsqlite/sqlite3.c assert( pPgHdr==0 || rc==SQLITE_OK ); assert 47640 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->dbFileSize>0 ); assert 47681 ext/sqlite3/libsqlite/sqlite3.c assert( !MEMDB ); assert 47700 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 47704 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47744 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED assert 47749 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47777 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 47811 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->jfd) assert 47861 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_IOERR_BLOCKED ); assert 47874 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_DBMOD ); assert 47918 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_LOCKED assert 47922 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 47939 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalOff==JOURNAL_HDR_SZ(pPager) || !pPager->journalOff ); assert 47984 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 48009 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER || rc!=SQLITE_OK ); assert 48010 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_FULL || rc==SQLITE_CORRUPT assert 48085 ext/sqlite3/libsqlite/sqlite3.c assert( eStat==SQLITE_DBSTATUS_CACHE_HIT assert 48090 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_DBSTATUS_CACHE_HIT+1==SQLITE_DBSTATUS_CACHE_MISS ); assert 48091 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_DBSTATUS_CACHE_HIT+2==SQLITE_DBSTATUS_CACHE_WRITE ); assert 48092 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_STAT_HIT==0 && PAGER_STAT_MISS==1 && PAGER_STAT_WRITE==2 ); assert 48121 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_WRITER_LOCKED ); assert 48122 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 48159 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->nSavepoint==nSavepoint ); assert 48199 ext/sqlite3/libsqlite/sqlite3.c assert( op==SAVEPOINT_RELEASE || op==SAVEPOINT_ROLLBACK ); assert 48200 ext/sqlite3/libsqlite/sqlite3.c assert( iSavepoint>=0 || op==SAVEPOINT_ROLLBACK ); assert 48223 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 48236 ext/sqlite3/libsqlite/sqlite3.c assert(rc!=SQLITE_DONE); assert 48363 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->nRef>0 ); assert 48364 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_WRITER_CACHEMOD assert 48367 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 48415 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalMode==PAGER_JOURNALMODE_OFF || assert 48417 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->flags&PGHDR_DIRTY ); assert 48427 ext/sqlite3/libsqlite/sqlite3.c assert( !pPgOld || pPgOld->nRef==1 ); assert 48448 ext/sqlite3/libsqlite/sqlite3.c assert( pPgOld ); assert 48472 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pTmpSpace!=0 ); assert 48493 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->pgno!=iNew ); assert 48502 ext/sqlite3/libsqlite/sqlite3.c assert( pPg->nRef>0 || pPg->pPager->memDb ); assert 48525 ext/sqlite3/libsqlite/sqlite3.c assert( eMode==PAGER_LOCKINGMODE_QUERY assert 48528 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_LOCKINGMODE_QUERY<0 ); assert 48529 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_LOCKINGMODE_NORMAL>=0 && PAGER_LOCKINGMODE_EXCLUSIVE>=0 ); assert 48530 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->exclusiveMode || 0==sqlite3WalHeapMemory(pPager->pWal) ); assert 48568 ext/sqlite3/libsqlite/sqlite3.c assert( eMode==PAGER_JOURNALMODE_DELETE assert 48579 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->tempFile==0 || eMode!=PAGER_JOURNALMODE_WAL ); assert 48585 ext/sqlite3/libsqlite/sqlite3.c assert( eOld==PAGER_JOURNALMODE_MEMORY || eOld==PAGER_JOURNALMODE_OFF ); assert 48594 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState!=PAGER_ERROR ); assert 48601 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_TRUNCATE & 5)==1 ); assert 48602 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_PERSIST & 5)==1 ); assert 48603 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_DELETE & 5)==0 ); assert 48604 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_MEMORY & 5)==4 ); assert 48605 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_OFF & 5)==0 ); assert 48606 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_JOURNALMODE_WAL & 5)==5 ); assert 48608 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->exclusiveMode ); assert 48625 ext/sqlite3/libsqlite/sqlite3.c assert( state==PAGER_OPEN || state==PAGER_READER ); assert 48630 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 48641 ext/sqlite3/libsqlite/sqlite3.c assert( state==pPager->eState ); assert 48665 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 48745 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK ); assert 48765 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->pWal==0 && pPager->tempFile==0 ); assert 48766 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eLock==SHARED_LOCK || pPager->eLock==EXCLUSIVE_LOCK ); assert 48813 ext/sqlite3/libsqlite/sqlite3.c assert( assert_pager_state(pPager) ); assert 48814 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_OPEN || pbOpen ); assert 48815 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState==PAGER_READER || !pbOpen ); assert 48816 ext/sqlite3/libsqlite/sqlite3.c assert( pbOpen==0 || *pbOpen==0 ); assert 48817 ext/sqlite3/libsqlite/sqlite3.c assert( pbOpen!=0 || (!pPager->tempFile && !pPager->pWal) ); assert 48849 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->journalMode==PAGER_JOURNALMODE_WAL ); assert 48894 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->eState>=PAGER_READER ); assert 49455 ext/sqlite3/libsqlite/sqlite3.c assert( iPage==0 || *ppPage || rc!=SQLITE_OK ); assert 49463 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>0 && pWal->apWiData[0] ); assert 49471 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>0 && pWal->apWiData[0] ); assert 49514 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>=8 ); assert 49515 ext/sqlite3/libsqlite/sqlite3.c assert( (nByte&0x00000007)==0 ); assert 49549 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 49580 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_FRAME_HDRSIZE==24 ); assert 49608 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_FRAME_HDRSIZE==24 ); assert 49718 ext/sqlite3/libsqlite/sqlite3.c assert( iPage>0 ); assert 49719 ext/sqlite3/libsqlite/sqlite3.c assert( (HASHTABLE_NSLOT & (HASHTABLE_NSLOT-1))==0 ); assert 49751 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || iHash>0 ); assert 49780 ext/sqlite3/libsqlite/sqlite3.c assert( (iHash==0 || iFrame>HASHTABLE_NPAGE_ONE) assert 49820 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 49831 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>walFramePage(pWal->hdr.mxFrame) ); assert 49832 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->apWiData[walFramePage(pWal->hdr.mxFrame)] ); assert 49839 ext/sqlite3/libsqlite/sqlite3.c assert( iLimit>0 ); assert 49863 ext/sqlite3/libsqlite/sqlite3.c assert( aHash[iKey]==i ); assert 49891 ext/sqlite3/libsqlite/sqlite3.c assert( idx <= HASHTABLE_NSLOT/2 + 1 ); assert 49909 ext/sqlite3/libsqlite/sqlite3.c assert( !aPgno[idx] ); assert 49928 ext/sqlite3/libsqlite/sqlite3.c assert( nEntry==idx ); assert 49942 ext/sqlite3/libsqlite/sqlite3.c assert( aHash[iKey]==i ); assert 49976 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->ckptLock==1 || pWal->ckptLock==0 ); assert 49977 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_ALL_BUT_WRITE==WAL_WRITE_LOCK+1 ); assert 49978 ext/sqlite3/libsqlite/sqlite3.c assert( WAL_CKPT_LOCK==WAL_ALL_BUT_WRITE ); assert 49979 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 50168 ext/sqlite3/libsqlite/sqlite3.c assert( zWalName && zWalName[0] ); assert 50169 ext/sqlite3/libsqlite/sqlite3.c assert( pDbFd ); assert 50176 ext/sqlite3/libsqlite/sqlite3.c assert( WIN_SHM_BASE==WALINDEX_LOCK_OFFSET ); assert 50179 ext/sqlite3/libsqlite/sqlite3.c assert( UNIX_SHM_BASE==WALINDEX_LOCK_OFFSET ); assert 50250 ext/sqlite3/libsqlite/sqlite3.c assert( iMin<0xffffffff ); assert 50307 ext/sqlite3/libsqlite/sqlite3.c assert( nLeft>0 && nRight>0 ); assert 50324 ext/sqlite3/libsqlite/sqlite3.c assert( iLeft>=nLeft || aContent[aLeft[iLeft]]>dbpage ); assert 50325 ext/sqlite3/libsqlite/sqlite3.c assert( iRight>=nRight || aContent[aRight[iRight]]>dbpage ); assert 50369 ext/sqlite3/libsqlite/sqlite3.c assert( nList<=HASHTABLE_NPAGE && nList>0 ); assert 50370 ext/sqlite3/libsqlite/sqlite3.c assert( HASHTABLE_NPAGE==(1<<(ArraySize(aSub)-1)) ); assert 50377 ext/sqlite3/libsqlite/sqlite3.c assert( p->aList && p->nList<=(1<<iSub) ); assert 50378 ext/sqlite3/libsqlite/sqlite3.c assert( p->aList==&aList[iList&~((2<<iSub)-1)] ); assert 50388 ext/sqlite3/libsqlite/sqlite3.c assert( p->nList<=(1<<iSub) ); assert 50389 ext/sqlite3/libsqlite/sqlite3.c assert( p->aList==&aList[nList&~((2<<iSub)-1)] ); assert 50393 ext/sqlite3/libsqlite/sqlite3.c assert( aMerge==aList ); assert 50400 ext/sqlite3/libsqlite/sqlite3.c assert( aContent[aList[i]] > aContent[aList[i-1]] ); assert 50437 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->ckptLock && pWal->hdr.mxFrame>0 ); assert 50558 ext/sqlite3/libsqlite/sqlite3.c assert( pInfo->aReadMark[0]==0 ); assert 50621 ext/sqlite3/libsqlite/sqlite3.c assert( pIter ); assert 50625 ext/sqlite3/libsqlite/sqlite3.c assert( eMode!=SQLITE_CHECKPOINT_PASSIVE || xBusy==0 ); assert 50645 ext/sqlite3/libsqlite/sqlite3.c assert( y<=pWal->hdr.mxFrame ); assert 50685 ext/sqlite3/libsqlite/sqlite3.c assert( walFramePgno(pWal, iFrame)==iDbpage ); assert 50731 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 50737 ext/sqlite3/libsqlite/sqlite3.c assert( pInfo->nBackfill==pWal->hdr.mxFrame ); assert 50873 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->nWiData>0 && pWal->apWiData[0] ); assert 50933 ext/sqlite3/libsqlite/sqlite3.c assert( pChanged ); assert 50938 ext/sqlite3/libsqlite/sqlite3.c assert( page0 || pWal->writeLock==0 ); assert 50950 ext/sqlite3/libsqlite/sqlite3.c assert( badHdr==0 || pWal->writeLock==0 ); assert 51049 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock<0 ); /* Not currently locked */ assert 51152 ext/sqlite3/libsqlite/sqlite3.c assert( thisMark!=READMARK_NOT_USED ); assert 51175 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_BUSY || (pWal->readOnly & WAL_SHM_RDONLY)!=0 ); assert 51210 ext/sqlite3/libsqlite/sqlite3.c assert( mxReadMark<=pWal->hdr.mxFrame ); assert 51275 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 || pWal->lockError ); assert 51329 ext/sqlite3/libsqlite/sqlite3.c assert( iFrame>iRead || CORRUPT_DB ); assert 51351 ext/sqlite3/libsqlite/sqlite3.c assert( iRead==iRead2 ); assert 51410 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 ); assert 51489 ext/sqlite3/libsqlite/sqlite3.c assert( walFramePgno(pWal, iFrame)!=1 ); assert 51504 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 51520 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 51521 ext/sqlite3/libsqlite/sqlite3.c assert( aWalData[3]!=pWal->nCkpt || aWalData[0]<=pWal->hdr.mxFrame ); assert 51560 ext/sqlite3/libsqlite/sqlite3.c assert( pInfo->nBackfill==pWal->hdr.mxFrame ); assert 51588 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xff)!=SQLITE_BUSY ); /* BUSY not possible when useWal==1 */ assert 51631 ext/sqlite3/libsqlite/sqlite3.c assert( p->syncFlags & (SQLITE_SYNC_NORMAL|SQLITE_SYNC_FULL) ); assert 51685 ext/sqlite3/libsqlite/sqlite3.c assert( pList ); assert 51686 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock ); assert 51690 ext/sqlite3/libsqlite/sqlite3.c assert( (isCommit!=0)==(nTruncate!=0) ); assert 51749 ext/sqlite3/libsqlite/sqlite3.c assert( (int)pWal->szPage==szPage ); assert 51764 ext/sqlite3/libsqlite/sqlite3.c assert( iOffset==walFrameOffset(iFrame, szPage) ); assert 51877 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->ckptLock==0 ); assert 51878 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock==0 ); assert 51882 ext/sqlite3/libsqlite/sqlite3.c assert( eMode!=SQLITE_CHECKPOINT_PASSIVE || xBusy==0 ); assert 52004 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->writeLock==0 ); assert 52005 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->exclusiveMode!=WAL_HEAPMEMORY_MODE || op==-1 ); assert 52013 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 || pWal->lockError ); assert 52014 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) ); assert 52028 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->exclusiveMode==0 ); assert 52029 ext/sqlite3/libsqlite/sqlite3.c assert( pWal->readLock>=0 ); assert 52055 ext/sqlite3/libsqlite/sqlite3.c assert( pWal==0 || pWal->readLock>=0 ); assert 52715 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->inTransaction!=TRANS_NONE || p->pBt->nTransaction==0 ); \ assert 52716 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->inTransaction>=p->inTrans ); assert 52776 ext/sqlite3/libsqlite/sqlite3.c assert( p->locked==0 ); assert 52777 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(p->pBt->mutex) ); assert 52778 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 52791 ext/sqlite3/libsqlite/sqlite3.c assert( p->locked==1 ); assert 52792 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 52793 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 52794 ext/sqlite3/libsqlite/sqlite3.c assert( p->db==pBt->db ); assert 52824 ext/sqlite3/libsqlite/sqlite3.c assert( p->pNext==0 || p->pNext->pBt>p->pBt ); assert 52825 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrev==0 || p->pPrev->pBt<p->pBt ); assert 52826 ext/sqlite3/libsqlite/sqlite3.c assert( p->pNext==0 || p->pNext->db==p->db ); assert 52827 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrev==0 || p->pPrev->db==p->db ); assert 52828 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable || (p->pNext==0 && p->pPrev==0) ); assert 52831 ext/sqlite3/libsqlite/sqlite3.c assert( !p->locked || p->wantToLock>0 ); assert 52832 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable || p->wantToLock==0 ); assert 52835 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 52839 ext/sqlite3/libsqlite/sqlite3.c assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db ); assert 52872 ext/sqlite3/libsqlite/sqlite3.c assert( pLater->sharable ); assert 52873 ext/sqlite3/libsqlite/sqlite3.c assert( pLater->pNext==0 || pLater->pNext->pBt>pLater->pBt ); assert 52874 ext/sqlite3/libsqlite/sqlite3.c assert( !pLater->locked || pLater->wantToLock>0 ); assert 52892 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 52894 ext/sqlite3/libsqlite/sqlite3.c assert( p->wantToLock>0 ); assert 52910 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || p->wantToLock>0 ); assert 52911 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || p->db==p->pBt->db ); assert 52912 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->pBt->mutex) ); assert 52913 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->db->mutex) ); assert 52952 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 52961 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 53014 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 53016 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 53020 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 53302 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 53303 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || eLock==WRITE_LOCK ); assert 53304 ext/sqlite3/libsqlite/sqlite3.c assert( p->db!=0 ); assert 53305 ext/sqlite3/libsqlite/sqlite3.c assert( !(p->db->flags&SQLITE_ReadUncommitted)||eLock==WRITE_LOCK||iTab==1 ); assert 53311 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || (p==pBt->pWriter && p->inTrans==TRANS_WRITE) ); assert 53312 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || pBt->inTransaction==TRANS_WRITE ); assert 53337 ext/sqlite3/libsqlite/sqlite3.c assert( pIter->eLock==READ_LOCK || pIter->eLock==WRITE_LOCK ); assert 53338 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || pIter->pBtree==p || pIter->eLock==READ_LOCK); assert 53342 ext/sqlite3/libsqlite/sqlite3.c assert( p==pBt->pWriter ); assert 53375 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 53376 ext/sqlite3/libsqlite/sqlite3.c assert( eLock==READ_LOCK || eLock==WRITE_LOCK ); assert 53377 ext/sqlite3/libsqlite/sqlite3.c assert( p->db!=0 ); assert 53383 ext/sqlite3/libsqlite/sqlite3.c assert( 0==(p->db->flags&SQLITE_ReadUncommitted) || eLock==WRITE_LOCK ); assert 53387 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable ); assert 53388 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OK==querySharedCacheTableLock(p, iTable, eLock) ); assert 53416 ext/sqlite3/libsqlite/sqlite3.c assert( WRITE_LOCK>READ_LOCK ); assert 53438 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 53439 ext/sqlite3/libsqlite/sqlite3.c assert( p->sharable || 0==*ppIter ); assert 53440 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>0 ); assert 53444 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->btsFlags & BTS_EXCLUSIVE)==0 || pBt->pWriter==pLock->pBtree ); assert 53445 ext/sqlite3/libsqlite/sqlite3.c assert( pLock->pBtree->inTrans>=pLock->eLock ); assert 53448 ext/sqlite3/libsqlite/sqlite3.c assert( pLock->iTable!=1 || pLock==&p->lock ); assert 53457 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->btsFlags & BTS_PENDING)==0 || pBt->pWriter ); assert 53485 ext/sqlite3/libsqlite/sqlite3.c assert( pLock->eLock==READ_LOCK || pLock->pBtree==p ); assert 53518 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 53545 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(pBtree) ); assert 53598 ext/sqlite3/libsqlite/sqlite3.c assert( pgno<=pBt->nPage ); assert 53654 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_VALID==pCur->eState || CURSOR_SKIPNEXT==pCur->eState ); assert 53655 ext/sqlite3/libsqlite/sqlite3.c assert( 0==pCur->pKey ); assert 53656 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 53664 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* KeySize() cannot fail */ assert 53685 ext/sqlite3/libsqlite/sqlite3.c assert( !pCur->apPage[0]->intKey || !pCur->pKey ); assert 53713 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 53714 ext/sqlite3/libsqlite/sqlite3.c assert( pExcept==0 || pExcept->pBt==pBt ); assert 53752 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 53776 ext/sqlite3/libsqlite/sqlite3.c assert( nKey==(i64)(int)nKey ); assert 53806 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 53807 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState>=CURSOR_REQUIRESEEK ); assert 53816 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_INVALID ); assert 53862 ext/sqlite3/libsqlite/sqlite3.c assert( pCur!=0 ); assert 53863 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState!=CURSOR_VALID ); assert 53872 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext==0 ); assert 53891 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 53921 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 53923 ext/sqlite3/libsqlite/sqlite3.c assert( 0==PTRMAP_ISPAGE(pBt, PENDING_BYTE_PAGE(pBt)) ); assert 53925 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum ); assert 53941 ext/sqlite3/libsqlite/sqlite3.c assert( offset <= (int)pBt->usableSize-5 ); assert 53971 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 53985 ext/sqlite3/libsqlite/sqlite3.c assert( offset <= (int)pBt->usableSize-5 ); assert 53986 ext/sqlite3/libsqlite/sqlite3.c assert( pEType!=0 ); assert 54019 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54047 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54048 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf==0 || pPage->leaf==1 ); assert 54050 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->childPtrSize==0 ); assert 54054 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->childPtrSize==4 ); assert 54137 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->childPtrSize==4 ); assert 54171 ext/sqlite3/libsqlite/sqlite3.c assert( nSize==debuginfo.nSize || CORRUPT_DB ); assert 54192 ext/sqlite3/libsqlite/sqlite3.c assert( pCell!=0 ); assert 54229 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 54230 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt!=0 ); assert 54231 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt->usableSize <= SQLITE_MAX_PAGE_SIZE ); assert 54232 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow==0 ); assert 54233 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54239 ext/sqlite3/libsqlite/sqlite3.c assert( nCell==get2byte(&data[hdr+3]) ); assert 54258 ext/sqlite3/libsqlite/sqlite3.c assert( pc>=iCellFirst && pc<=iCellLast ); assert 54270 ext/sqlite3/libsqlite/sqlite3.c assert( cbrk+size<=usableSize && cbrk>=iCellFirst ); assert 54284 ext/sqlite3/libsqlite/sqlite3.c assert( cbrk>=iCellFirst ); assert 54290 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 54380 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 54381 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt ); assert 54382 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54383 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>=0 ); /* Minimum cell size is 4 */ assert 54384 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nFree>=nByte ); assert 54385 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow==0 ); assert 54386 ext/sqlite3/libsqlite/sqlite3.c assert( nByte < (int)(pPage->pBt->usableSize-8) ); assert 54388 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->cellOffset == hdr + 12 - 4*pPage->leaf ); assert 54390 ext/sqlite3/libsqlite/sqlite3.c assert( gap<=65536 ); assert 54412 ext/sqlite3/libsqlite/sqlite3.c assert( pSpace>=data && (pSpace - data)<65536 ); assert 54424 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nCell>0 || CORRUPT_DB ); assert 54428 ext/sqlite3/libsqlite/sqlite3.c assert( gap+nByte<=top ); assert 54440 ext/sqlite3/libsqlite/sqlite3.c assert( top+nByte <= (int)pPage->pBt->usableSize ); assert 54468 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt!=0 ); assert 54469 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 54470 ext/sqlite3/libsqlite/sqlite3.c assert( iStart>=pPage->hdrOffset+6+pPage->childPtrSize ); assert 54471 ext/sqlite3/libsqlite/sqlite3.c assert( CORRUPT_DB || iEnd <= pPage->pBt->usableSize ); assert 54472 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54473 ext/sqlite3/libsqlite/sqlite3.c assert( iSize>=4 ); /* Minimum cell size is 4 */ assert 54474 ext/sqlite3/libsqlite/sqlite3.c assert( iStart<=iLast ); assert 54495 ext/sqlite3/libsqlite/sqlite3.c assert( iFreeBlk>iPtr || iFreeBlk==0 ); assert 54559 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->hdrOffset==(pPage->pgno==1 ? 100 : 0) ); assert 54560 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54561 ext/sqlite3/libsqlite/sqlite3.c pPage->leaf = (u8)(flagByte>>3); assert( PTF_LEAF == 1<<3 ); assert 54568 ext/sqlite3/libsqlite/sqlite3.c assert( (PTF_LEAFDATA|PTF_INTKEY)==5 ); assert 54571 ext/sqlite3/libsqlite/sqlite3.c assert( (PTF_LEAFDATA|PTF_INTKEY|PTF_LEAF)==13 ); assert 54580 ext/sqlite3/libsqlite/sqlite3.c assert( (PTF_ZERODATA)==2 ); assert 54583 ext/sqlite3/libsqlite/sqlite3.c assert( (PTF_ZERODATA|PTF_LEAF)==10 ); assert 54609 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt!=0 ); assert 54610 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54611 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pgno==sqlite3PagerPagenumber(pPage->pDbPage) ); assert 54612 ext/sqlite3/libsqlite/sqlite3.c assert( pPage == sqlite3PagerGetExtra(pPage->pDbPage) ); assert 54613 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->aData == sqlite3PagerGetData(pPage->pDbPage) ); assert 54634 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pageSize>=512 && pBt->pageSize<=65536 ); assert 54657 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nCell>0 || top==usableSize || CORRUPT_DB ); assert 54744 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerPagenumber(pPage->pDbPage)==pPage->pgno ); assert 54745 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetExtra(pPage->pDbPage) == (void*)pPage ); assert 54746 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetData(pPage->pDbPage) == data ); assert 54747 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 54748 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 54763 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pageSize>=512 && pBt->pageSize<=65536 ); assert 54804 ext/sqlite3/libsqlite/sqlite3.c assert( flags==0 || flags==PAGER_GET_NOCONTENT || flags==PAGER_GET_READONLY ); assert 54805 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 54819 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 54835 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 54836 ext/sqlite3/libsqlite/sqlite3.c assert( ((p->pBt->nPage)&0x8000000)==0 ); assert 54855 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 54856 ext/sqlite3/libsqlite/sqlite3.c assert( bReadonly==PAGER_GET_READONLY || bReadonly==0 ); assert 54871 ext/sqlite3/libsqlite/sqlite3.c assert( pgno!=0 || rc==SQLITE_CORRUPT ); assert 54881 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->aData ); assert 54882 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pBt ); assert 54883 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->pDbPage!=0 ); assert 54884 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetExtra(pPage->pDbPage) == (void*)pPage ); assert 54885 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerGetData(pPage->pDbPage)==pPage->aData ); assert 54886 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54902 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerPageRefcount(pData)>0 ); assert 54904 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 54923 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->db ); assert 54924 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->db->mutex) ); assert 54978 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 54979 ext/sqlite3/libsqlite/sqlite3.c assert( pVfs!=0 ); assert 54980 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 54981 ext/sqlite3/libsqlite/sqlite3.c assert( (flags&0xff)==flags ); /* flags fit in 8 bits */ assert 54984 ext/sqlite3/libsqlite/sqlite3.c assert( (flags & BTREE_UNORDERED)==0 || (flags & BTREE_SINGLE)!=0 ); assert 54987 ext/sqlite3/libsqlite/sqlite3.c assert( (flags & BTREE_SINGLE)==0 || isTempDb ); assert 55041 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nRef>0 ); assert 55081 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(i64)==8 ); assert 55082 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u64)==8 ); assert 55083 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u32)==4 ); assert 55084 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u16)==2 ); assert 55085 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(Pgno)==4 ); assert 55146 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->pageSize & 7)==0 ); /* 8-byte alignment of pageSize */ assert 55222 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(mutexOpen) ); assert 55240 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_notheld(pBt->mutex) ); assert 55318 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55340 ext/sqlite3/libsqlite/sqlite3.c assert( p->wantToLock==0 && p->locked==0 ); assert 55347 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->pCursor ); assert 55358 ext/sqlite3/libsqlite/sqlite3.c assert( p->wantToLock==0 ); assert 55359 ext/sqlite3/libsqlite/sqlite3.c assert( p->locked==0 ); assert 55385 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55399 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55421 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55436 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 55438 ext/sqlite3/libsqlite/sqlite3.c assert( pBt && pBt->pPager ); assert 55467 ext/sqlite3/libsqlite/sqlite3.c assert( nReserve>=-1 && nReserve<=255 ); assert 55479 ext/sqlite3/libsqlite/sqlite3.c assert( nReserve>=0 && nReserve<=255 ); assert 55482 ext/sqlite3/libsqlite/sqlite3.c assert( (pageSize & 7)==0 ); assert 55483 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->pCursor ); assert 55514 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pBt->mutex) ); assert 55634 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 55635 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1==0 ); assert 55718 ext/sqlite3/libsqlite/sqlite3.c assert( (pageSize & 7)==0 ); assert 55782 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->maxLeaf + 23 <= MX_CELL_SIZE(pBt) ); assert 55826 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 55827 ext/sqlite3/libsqlite/sqlite3.c assert( countValidCursors(pBt,0)==0 || pBt->inTransaction>TRANS_NONE ); assert 55830 ext/sqlite3/libsqlite/sqlite3.c assert( pPage1->aData ); assert 55831 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerRefcount(pBt->pPager)==1 ); assert 55847 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 55852 ext/sqlite3/libsqlite/sqlite3.c assert( pP1!=0 ); assert 55857 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(zMagicHeader)==16 ); assert 55862 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->usableSize<=pBt->pageSize && pBt->usableSize+255>=pBt->pageSize); assert 55871 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum==1 || pBt->autoVacuum==0 ); assert 55872 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->incrVacuum==1 || pBt->incrVacuum==0 ); assert 55945 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE || IfNotOmitAV(pBt->bDoTruncate)==0 ); assert 56018 ext/sqlite3/libsqlite/sqlite3.c assert( p->lock.pBtree==p && p->lock.iTable==1 ); assert 56032 ext/sqlite3/libsqlite/sqlite3.c assert( !pBt->pWriter ); assert 56083 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 56126 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 56127 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 56198 ext/sqlite3/libsqlite/sqlite3.c assert( eType==PTRMAP_OVERFLOW2 || eType==PTRMAP_OVERFLOW1 || assert 56200 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 56201 ext/sqlite3/libsqlite/sqlite3.c assert( pDbPage->pBt==pBt ); assert 56282 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 56283 ext/sqlite3/libsqlite/sqlite3.c assert( iLastPg>nFin ); assert 56315 ext/sqlite3/libsqlite/sqlite3.c assert( iFreePg==iLastPg ); assert 56349 ext/sqlite3/libsqlite/sqlite3.c assert( iFreePg<iLastPg ); assert 56405 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE && p->inTrans==TRANS_WRITE ); assert 56447 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 56449 ext/sqlite3/libsqlite/sqlite3.c assert(pBt->autoVacuum); assert 56487 ext/sqlite3/libsqlite/sqlite3.c assert( nRef>=sqlite3PagerRefcount(pPager) ); assert 56551 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 56622 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 56623 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nTransaction>0 ); assert 56683 ext/sqlite3/libsqlite/sqlite3.c assert( (writeOnly==0 || writeOnly==1) && BTCF_WriteFlag==1 ); assert 56727 ext/sqlite3/libsqlite/sqlite3.c assert( writeOnly==1 || writeOnly==0 ); assert 56728 ext/sqlite3/libsqlite/sqlite3.c assert( tripCode==SQLITE_ABORT_ROLLBACK || tripCode==SQLITE_OK ); assert 56738 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || (writeOnly==0 && rc2==SQLITE_OK) ); assert 56746 ext/sqlite3/libsqlite/sqlite3.c assert( TRANS_WRITE==pBt->inTransaction ); assert 56763 ext/sqlite3/libsqlite/sqlite3.c assert( countValidCursors(pBt, 1)==0 ); assert 56795 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 56796 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->btsFlags & BTS_READ_ONLY)==0 ); assert 56797 ext/sqlite3/libsqlite/sqlite3.c assert( iStatement>0 ); assert 56798 ext/sqlite3/libsqlite/sqlite3.c assert( iStatement>p->db->nSavepoint ); assert 56799 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 56826 ext/sqlite3/libsqlite/sqlite3.c assert( op==SAVEPOINT_RELEASE || op==SAVEPOINT_ROLLBACK ); assert 56827 ext/sqlite3/libsqlite/sqlite3.c assert( iSavepoint>=0 || (iSavepoint==-1 && op==SAVEPOINT_ROLLBACK) ); assert 56840 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nPage>0 ); assert 56888 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 56889 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 || wrFlag==1 ); assert 56895 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(p, iTable, pKeyInfo!=0, wrFlag+1) ); assert 56896 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 || !hasReadConflicts(p, iTable) ); assert 56899 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>TRANS_NONE ); assert 56900 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 || p->inTrans==TRANS_WRITE ); assert 56901 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1 && pBt->pPage1->aData ); assert 56911 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 ); assert 56922 ext/sqlite3/libsqlite/sqlite3.c assert( wrFlag==0 || wrFlag==BTCF_WriteFlag ); assert 57021 ext/sqlite3/libsqlite/sqlite3.c assert( CORRUPT_DB || memcmp(&info, &pCur->info, sizeof(info))==0 ); assert 57073 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57074 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57093 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57094 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57095 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>=0 ); assert 57096 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage<BTCURSOR_MAX_DEPTH ); assert 57097 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->intKeyLeaf==1 ); assert 57132 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 57133 ext/sqlite3/libsqlite/sqlite3.c assert(pPgnoNext); assert 57161 ext/sqlite3/libsqlite/sqlite3.c assert( next==0 || rc==SQLITE_DONE ); assert 57164 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pPage==0 ); assert 57258 ext/sqlite3/libsqlite/sqlite3.c assert( pPage ); assert 57259 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57260 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pPage->nCell ); assert 57261 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57262 ext/sqlite3/libsqlite/sqlite3.c assert( eOp!=2 || offset==0 ); /* Always start from beginning for eOp==2 */ assert 57269 ext/sqlite3/libsqlite/sqlite3.c assert( offset+amt <= pCur->info.nPayload ); assert 57340 ext/sqlite3/libsqlite/sqlite3.c assert(!pCur->aOverflow[iIdx] || pCur->aOverflow[iIdx]==nextPage); assert 57354 ext/sqlite3/libsqlite/sqlite3.c assert( eOp!=2 ); assert 57355 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->curFlags & BTCF_ValidOvfl ); assert 57356 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pBtree->db==pBt->db ); assert 57400 ext/sqlite3/libsqlite/sqlite3.c assert( aWrite>=pBufStart ); /* hence (7) */ assert 57446 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57447 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57448 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>=0 && pCur->apPage[pCur->iPage] ); assert 57449 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pCur->apPage[pCur->iPage]->nCell ); assert 57471 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57474 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57475 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>=0 && pCur->apPage[pCur->iPage] ); assert 57476 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pCur->apPage[pCur->iPage]->nCell ); assert 57506 ext/sqlite3/libsqlite/sqlite3.c assert( pCur!=0 && pCur->iPage>=0 && pCur->apPage[pCur->iPage]); assert 57507 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57508 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 57509 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57510 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pCur->apPage[pCur->iPage]->nCell ); assert 57511 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->info.nSize>0 ); assert 57512 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->info.pPayload>pCur->apPage[pCur->iPage]->aData || CORRUPT_DB ); assert 57513 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->info.pPayload<pCur->apPage[pCur->iPage]->aDataEnd ||CORRUPT_DB); assert 57558 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57559 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57560 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage<BTCURSOR_MAX_DEPTH ); assert 57561 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>=0 ); assert 57591 ext/sqlite3/libsqlite/sqlite3.c assert( iIdx<=pParent->nCell ); assert 57593 ext/sqlite3/libsqlite/sqlite3.c assert( get4byte(&pParent->aData[pParent->hdrOffset+8])==iChild ); assert 57595 ext/sqlite3/libsqlite/sqlite3.c assert( get4byte(findCell(pParent, iIdx))==iChild ); assert 57611 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57612 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57613 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>0 ); assert 57614 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage] ); assert 57653 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57654 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_INVALID < CURSOR_REQUIRESEEK ); assert 57655 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_VALID < CURSOR_REQUIRESEEK ); assert 57656 ext/sqlite3/libsqlite/sqlite3.c assert( CURSOR_FAULT > CURSOR_REQUIRESEEK ); assert 57659 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext!=SQLITE_OK ); assert 57680 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->pgno==pCur->pgnoRoot ); assert 57692 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->intKey==1 || pRoot->intKey==0 ); assert 57727 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57728 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57730 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pPage->nCell ); assert 57752 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57753 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57761 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->info.nSize==0 ); assert 57762 ext/sqlite3/libsqlite/sqlite3.c assert( (pCur->curFlags & BTCF_ValidNKey)==0 ); assert 57773 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57774 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 57778 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 ); assert 57781 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nCell>0 ); assert 57796 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57797 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 57806 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[ii]==pCur->apPage[ii]->nCell ); assert 57808 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]==pCur->apPage[pCur->iPage]->nCell-1 ); assert 57809 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->leaf ); assert 57817 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 ); assert 57820 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID ); assert 57872 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 57873 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) ); assert 57874 ext/sqlite3/libsqlite/sqlite3.c assert( pRes ); assert 57875 ext/sqlite3/libsqlite/sqlite3.c assert( (pIdxKey==0)==(pCur->pKeyInfo==0) ); assert 57895 ext/sqlite3/libsqlite/sqlite3.c assert( pIdxKey->default_rc==1 assert 57907 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage] ); assert 57908 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->isInit ); assert 57909 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_INVALID || pCur->apPage[pCur->iPage]->nCell>0 ); assert 57912 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pgnoRoot==0 || pCur->apPage[pCur->iPage]->nCell==0 ); assert 57915 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[0]->intKey || pIdxKey ); assert 57928 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nCell>0 ); assert 57929 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->intKey==(pIdxKey==0) ); assert 57932 ext/sqlite3/libsqlite/sqlite3.c assert( biasRight==0 || biasRight==1 ); assert 57952 ext/sqlite3/libsqlite/sqlite3.c assert( nCellKey==intKey ); assert 57965 ext/sqlite3/libsqlite/sqlite3.c assert( lwr+upr>=0 ); assert 58018 ext/sqlite3/libsqlite/sqlite3.c assert( assert 58027 ext/sqlite3/libsqlite/sqlite3.c assert( c==0 ); assert 58035 ext/sqlite3/libsqlite/sqlite3.c assert( lwr+upr>=0 ); assert 58039 ext/sqlite3/libsqlite/sqlite3.c assert( lwr==upr+1 || (pPage->intKey && !pPage->leaf) ); assert 58040 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 58042 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aiIdx[pCur->iPage]<pCur->apPage[pCur->iPage]->nCell ); assert 58106 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 58107 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID ); assert 58108 ext/sqlite3/libsqlite/sqlite3.c assert( *pRes==0 ); assert 58110 ext/sqlite3/libsqlite/sqlite3.c assert( (pCur->curFlags & BTCF_ValidOvfl)==0 ); assert 58120 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_SKIPNEXT ); assert 58132 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 58170 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 58171 ext/sqlite3/libsqlite/sqlite3.c assert( pRes!=0 ); assert 58172 ext/sqlite3/libsqlite/sqlite3.c assert( *pRes==0 || *pRes==1 ); assert 58173 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID ); assert 58215 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 58216 ext/sqlite3/libsqlite/sqlite3.c assert( pRes!=0 ); assert 58217 ext/sqlite3/libsqlite/sqlite3.c assert( *pRes==0 ); assert 58218 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID ); assert 58219 ext/sqlite3/libsqlite/sqlite3.c assert( (pCur->curFlags & (BTCF_AtLast|BTCF_ValidOvfl|BTCF_ValidNKey))==0 ); assert 58220 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->info.nSize==0 ); assert 58231 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID || pCur->eState==CURSOR_SKIPNEXT ); assert 58242 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 58257 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->info.nSize==0 ); assert 58258 ext/sqlite3/libsqlite/sqlite3.c assert( (pCur->curFlags & (BTCF_ValidNKey|BTCF_ValidOvfl))==0 ); assert 58271 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 58272 ext/sqlite3/libsqlite/sqlite3.c assert( pRes!=0 ); assert 58273 ext/sqlite3/libsqlite/sqlite3.c assert( *pRes==0 || *pRes==1 ); assert 58274 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext==0 || pCur->eState!=CURSOR_VALID ); assert 58326 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 58327 ext/sqlite3/libsqlite/sqlite3.c assert( eMode==BTALLOC_ANY || (nearby>0 && IfNotOmitAV(pBt->autoVacuum)) ); assert 58350 ext/sqlite3/libsqlite/sqlite3.c assert( nearby>0 ); assert 58351 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum ); assert 58398 ext/sqlite3/libsqlite/sqlite3.c assert( pTrunk!=0 ); assert 58399 ext/sqlite3/libsqlite/sqlite3.c assert( pTrunk->aData!=0 ); assert 58407 ext/sqlite3/libsqlite/sqlite3.c assert( pPrevTrunk==0 ); assert 58471 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage1->pDbPage) ); assert 58584 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->nPage!=PENDING_BYTE_PAGE(pBt) ); assert 58598 ext/sqlite3/libsqlite/sqlite3.c assert( *pPgno!=PENDING_BYTE_PAGE(pBt) ); assert 58608 ext/sqlite3/libsqlite/sqlite3.c assert( *pPgno!=PENDING_BYTE_PAGE(pBt) ); assert 58623 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || sqlite3PagerIswriteable((*ppPage)->pDbPage) ); assert 58647 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 58648 ext/sqlite3/libsqlite/sqlite3.c assert( iPage>1 ); assert 58649 ext/sqlite3/libsqlite/sqlite3.c assert( !pMemPage || pMemPage->pgno==iPage ); assert 58701 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->usableSize>32 ); assert 58789 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 58799 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->usableSize > 4 ); assert 58802 ext/sqlite3/libsqlite/sqlite3.c assert( ovflPgno==0 || nOvfl>0 ); assert 58876 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 58880 ext/sqlite3/libsqlite/sqlite3.c assert( pCell<pPage->aData || pCell>=&pPage->aData[pBt->pageSize] assert 58889 ext/sqlite3/libsqlite/sqlite3.c assert( nData==0 ); assert 58890 ext/sqlite3/libsqlite/sqlite3.c assert( nZero==0 ); assert 58943 ext/sqlite3/libsqlite/sqlite3.c assert( nHeader=(int)(info.pPayload - pCell) ); assert 58944 ext/sqlite3/libsqlite/sqlite3.c assert( info.nKey==nKey ); assert 58945 ext/sqlite3/libsqlite/sqlite3.c assert( *pnSize == info.nSize ); assert 58946 ext/sqlite3/libsqlite/sqlite3.c assert( spaceLeft == info.nLocal ); assert 58947 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior == &pCell[info.iOverflow] ); assert 58991 ext/sqlite3/libsqlite/sqlite3.c assert( pToRelease==0 || sqlite3PagerIswriteable(pToRelease->pDbPage) ); assert 58995 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior<pPage->aData || pPrior>=&pPage->aData[pBt->pageSize] assert 59011 ext/sqlite3/libsqlite/sqlite3.c assert( pToRelease==0 || sqlite3PagerIswriteable(pToRelease->pDbPage) ); assert 59015 ext/sqlite3/libsqlite/sqlite3.c assert( pPayload<pPage->aData || pPayload>=&pPage->aData[pBt->pageSize] assert 59020 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc ); assert 59056 ext/sqlite3/libsqlite/sqlite3.c assert( idx>=0 && idx<pPage->nCell ); assert 59057 ext/sqlite3/libsqlite/sqlite3.c assert( sz==cellSize(pPage, idx) ); assert 59058 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 59059 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 59119 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<=pPage->nCell+pPage->nOverflow ); assert 59120 ext/sqlite3/libsqlite/sqlite3.c assert( MX_CELL(pPage->pBt)<=10921 ); assert 59121 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nCell<=MX_CELL(pPage->pBt) || CORRUPT_DB ); assert 59122 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow<=ArraySize(pPage->apOvfl) ); assert 59123 ext/sqlite3/libsqlite/sqlite3.c assert( ArraySize(pPage->apOvfl)==ArraySize(pPage->aiOvfl) ); assert 59124 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 59130 ext/sqlite3/libsqlite/sqlite3.c assert( sz==cellSizePtr(pPage, pCell) || (sz==8 && iChild>0) ); assert 59140 ext/sqlite3/libsqlite/sqlite3.c assert( j<(int)(sizeof(pPage->apOvfl)/sizeof(pPage->apOvfl[0])) ); assert 59149 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pPage->pDbPage) ); assert 59158 ext/sqlite3/libsqlite/sqlite3.c assert( idx >= end+2 ); assert 59159 ext/sqlite3/libsqlite/sqlite3.c assert( idx+sz <= (int)pPage->pBt->usableSize ); assert 59221 ext/sqlite3/libsqlite/sqlite3.c assert( szCell[i]==cellSizePtr(pPg, pCell) ); assert 59272 ext/sqlite3/libsqlite/sqlite3.c assert( CORRUPT_DB || pPg->hdrOffset==0 ); /* Never called on page 1 */ assert 59319 ext/sqlite3/libsqlite/sqlite3.c assert( pFree>aData && (pFree - aData)<65536 ); assert 59333 ext/sqlite3/libsqlite/sqlite3.c assert( pFree>aData && (pFree - aData)<65536 ); assert 59394 ext/sqlite3/libsqlite/sqlite3.c assert( (iOld-iNew)<nNew || nCell==0 || CORRUPT_DB ); assert 59438 ext/sqlite3/libsqlite/sqlite3.c assert( 0==memcmp(pCell, &aData[iOff], szCell[i+iNew]) ); assert 59494 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pPage->pBt->mutex) ); assert 59495 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 59496 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->nOverflow==1 ); assert 59514 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pNew->pDbPage) ); assert 59515 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->aData[0]==(PTF_INTKEY|PTF_LEAFDATA|PTF_LEAF) ); assert 59583 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 59594 ext/sqlite3/libsqlite/sqlite3.c assert( n==pPage->pgno && e==PTRMAP_OVERFLOW1 ); assert 59599 ext/sqlite3/libsqlite/sqlite3.c assert( n==pPage->pgno && e==PTRMAP_BTREE ); assert 59605 ext/sqlite3/libsqlite/sqlite3.c assert( n==pPage->pgno && e==PTRMAP_BTREE ); assert 59640 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->isInit ); assert 59641 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->nFree>=iToHdr ); assert 59642 ext/sqlite3/libsqlite/sqlite3.c assert( get2byte(&aFrom[iFromHdr+5]) <= (int)pBt->usableSize ); assert 59754 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 59755 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 59766 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->nOverflow==0 || pParent->nOverflow==1 ); assert 59767 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->nOverflow==0 || pParent->aiOvfl[0]==iParentIdx ); assert 59788 ext/sqlite3/libsqlite/sqlite3.c assert( bBulk==0 || bBulk==1 ); assert 59867 ext/sqlite3/libsqlite/sqlite3.c assert( szScratch<=6*(int)pBt->pageSize ); assert 59875 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(aSpace1) ); assert 59902 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<nMaxCells ); assert 59912 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<nMaxCells ); assert 59922 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<nMaxCells ); assert 59926 ext/sqlite3/libsqlite/sqlite3.c assert( sz<=pBt->maxLocal+23 ); assert 59927 ext/sqlite3/libsqlite/sqlite3.c assert( iSpace1 <= (int)pBt->pageSize ); assert 59930 ext/sqlite3/libsqlite/sqlite3.c assert( leafCorrection==0 || leafCorrection==4 ); assert 59933 ext/sqlite3/libsqlite/sqlite3.c assert( leafCorrection==0 ); assert 59934 ext/sqlite3/libsqlite/sqlite3.c assert( pOld->hdrOffset==0 ); assert 59939 ext/sqlite3/libsqlite/sqlite3.c assert( leafCorrection==4 ); assert 59943 ext/sqlite3/libsqlite/sqlite3.c assert( szCell[nCell]==3 ); assert 59944 ext/sqlite3/libsqlite/sqlite3.c assert( apCell[nCell]==&aSpace1[iSpace1-3] ); assert 59971 ext/sqlite3/libsqlite/sqlite3.c assert( i<nMaxCells ); assert 60005 ext/sqlite3/libsqlite/sqlite3.c assert( d<nMaxCells ); assert 60006 ext/sqlite3/libsqlite/sqlite3.c assert( r<nMaxCells ); assert 60027 ext/sqlite3/libsqlite/sqlite3.c assert( cntNew[0]>0 || (pParent->pgno==1 && pParent->nCell==0) || CORRUPT_DB); assert 60051 ext/sqlite3/libsqlite/sqlite3.c assert( i>0 ); assert 60092 ext/sqlite3/libsqlite/sqlite3.c assert( CORRUPT_DB ); assert 60127 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 60203 ext/sqlite3/libsqlite/sqlite3.c assert( j<nMaxCells ); assert 60235 ext/sqlite3/libsqlite/sqlite3.c assert(leafCorrection==4); assert 60240 ext/sqlite3/libsqlite/sqlite3.c assert( sz<=pBt->maxLocal+23 ); assert 60241 ext/sqlite3/libsqlite/sqlite3.c assert( iOvflSpace <= (int)pBt->pageSize ); assert 60244 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pParent->pDbPage) ); assert 60271 ext/sqlite3/libsqlite/sqlite3.c assert( iPg>=0 && iPg<nNew ); assert 60282 ext/sqlite3/libsqlite/sqlite3.c assert( iPg==0 || cntOld[iPg-1]>=cntNew[iPg-1] || abDone[iPg-1] ); assert 60286 ext/sqlite3/libsqlite/sqlite3.c assert( cntNew[iPg]>=cntOld[iPg] || abDone[iPg+1] ); assert 60300 ext/sqlite3/libsqlite/sqlite3.c assert( apNew[iPg]->nOverflow==0 ); assert 60301 ext/sqlite3/libsqlite/sqlite3.c assert( apNew[iPg]->nCell==nNewCell ); assert 60306 ext/sqlite3/libsqlite/sqlite3.c assert( memcmp(abDone, "\01\01\01\01\01", nNew)==0 ); assert 60308 ext/sqlite3/libsqlite/sqlite3.c assert( nOld>0 ); assert 60309 ext/sqlite3/libsqlite/sqlite3.c assert( nNew>0 ); assert 60327 ext/sqlite3/libsqlite/sqlite3.c assert( nNew==1 ); assert 60330 ext/sqlite3/libsqlite/sqlite3.c assert( apNew[0]->nFree == assert 60346 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->isInit ); assert 60411 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->nOverflow>0 ); assert 60412 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 60431 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pChild->pDbPage) ); assert 60432 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pRoot->pDbPage) ); assert 60433 ext/sqlite3/libsqlite/sqlite3.c assert( pChild->nCell==pRoot->nCell ); assert 60482 ext/sqlite3/libsqlite/sqlite3.c assert( (balance_deeper_called++)==0 ); assert 60488 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[1]->nOverflow ); assert 60521 ext/sqlite3/libsqlite/sqlite3.c assert( (balance_quick_called++)==0 ); assert 60566 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iPage>=0 ); assert 60618 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->skipNext!=SQLITE_OK ); assert 60622 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 60623 ext/sqlite3/libsqlite/sqlite3.c assert( (pCur->curFlags & BTCF_WriteFlag)!=0 assert 60626 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) ); assert 60633 ext/sqlite3/libsqlite/sqlite3.c assert( (pKey==0)==(pCur->pKeyInfo==0) ); assert 60667 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->eState==CURSOR_VALID || (pCur->eState==CURSOR_INVALID && loc) ); assert 60670 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->intKey || nKey>=0 ); assert 60671 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf || !pPage->intKey ); assert 60676 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->isInit ); assert 60678 ext/sqlite3/libsqlite/sqlite3.c assert( newCell!=0 ); assert 60681 ext/sqlite3/libsqlite/sqlite3.c assert( szNew==cellSizePtr(pPage, newCell) ); assert 60682 ext/sqlite3/libsqlite/sqlite3.c assert( szNew <= MX_CELL_SIZE(pBt) ); assert 60686 ext/sqlite3/libsqlite/sqlite3.c assert( idx<pPage->nCell ); assert 60699 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf ); assert 60702 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->leaf ); assert 60705 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pPage->nCell>0 || pPage->nOverflow>0 ); assert 60739 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->apPage[pCur->iPage]->nOverflow==0 ); assert 60759 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCur) ); assert 60760 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 60761 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->btsFlags & BTS_READ_ONLY)==0 ); assert 60762 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->curFlags & BTCF_WriteFlag ); assert 60763 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(p, pCur->pgnoRoot, pCur->pKeyInfo!=0, 2) ); assert 60764 ext/sqlite3/libsqlite/sqlite3.c assert( !hasReadConflicts(p, pCur->pgnoRoot) ); assert 60823 ext/sqlite3/libsqlite/sqlite3.c assert( MX_CELL_SIZE(pBt) >= nCell ); assert 60825 ext/sqlite3/libsqlite/sqlite3.c assert( pTmp!=0 ); assert 60879 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 60880 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->inTransaction==TRANS_WRITE ); assert 60881 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->btsFlags & BTS_READ_ONLY)==0 ); assert 60914 ext/sqlite3/libsqlite/sqlite3.c assert( pgnoRoot>=3 ); assert 60957 ext/sqlite3/libsqlite/sqlite3.c assert( eType!=PTRMAP_ROOTPAGE ); assert 60958 ext/sqlite3/libsqlite/sqlite3.c assert( eType!=PTRMAP_FREEPAGE ); assert 60990 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pBt->pPage1->pDbPage) ); assert 61002 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3PagerIswriteable(pRoot->pDbPage) ); assert 61010 ext/sqlite3/libsqlite/sqlite3.c assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 ); assert 61039 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pBt->mutex) ); assert 61064 ext/sqlite3/libsqlite/sqlite3.c assert( pPage->intKey ); assert 61096 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 61145 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p) ); assert 61146 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 61225 ext/sqlite3/libsqlite/sqlite3.c assert( maxRootPgno!=PENDING_BYTE_PAGE(pBt) ); assert 61276 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>TRANS_NONE ); assert 61277 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OK==querySharedCacheTableLock(p, MASTER_ROOT, READ_LOCK) ); assert 61278 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1 ); assert 61279 ext/sqlite3/libsqlite/sqlite3.c assert( idx>=0 && idx<=15 ); assert 61306 ext/sqlite3/libsqlite/sqlite3.c assert( idx>=1 && idx<=15 ); assert 61308 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans==TRANS_WRITE ); assert 61309 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->pPage1!=0 ); assert 61316 ext/sqlite3/libsqlite/sqlite3.c assert( pBt->autoVacuum || iMeta==0 ); assert 61317 ext/sqlite3/libsqlite/sqlite3.c assert( iMeta==0 || iMeta==1 ); assert 61446 ext/sqlite3/libsqlite/sqlite3.c assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 ); assert 61454 ext/sqlite3/libsqlite/sqlite3.c assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 ); assert 61692 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_CORRUPT ); /* The only possible error from InitPage */ assert 61817 ext/sqlite3/libsqlite/sqlite3.c assert( contentOffset<=usableSize ); /* Enforced by btreeInitPage() */ assert 61848 ext/sqlite3/libsqlite/sqlite3.c assert( i<=usableSize-4 ); /* Enforced by btreeInitPage() */ assert 61850 ext/sqlite3/libsqlite/sqlite3.c assert( i+size<=usableSize ); /* Enforced by btreeInitPage() */ assert 61859 ext/sqlite3/libsqlite/sqlite3.c assert( j==0 || j>i+size ); /* Enforced by btreeInitPage() */ assert 61860 ext/sqlite3/libsqlite/sqlite3.c assert( j<=usableSize-4 ); /* Enforced by btreeInitPage() */ assert 61864 ext/sqlite3/libsqlite/sqlite3.c assert( heap[0]>0 ); assert 61865 ext/sqlite3/libsqlite/sqlite3.c assert( (heap[1]>>16)==0 ); assert 61928 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans>TRANS_NONE && pBt->inTransaction>TRANS_NONE ); assert 62032 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->pPager!=0 ); assert 62045 ext/sqlite3/libsqlite/sqlite3.c assert( p->pBt->pPager!=0 ); assert 62053 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 || sqlite3_mutex_held(p->db->mutex) ); assert 62086 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 62087 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 62092 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 62093 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 62135 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->db->mutex) ); assert 62138 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_LOCKED_SHAREDCACHE ); assert 62152 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTrans!=TRANS_NONE ); assert 62155 ext/sqlite3/libsqlite/sqlite3.c assert( READ_LOCK+1==WRITE_LOCK ); assert 62156 ext/sqlite3/libsqlite/sqlite3.c assert( isWriteLock==0 || isWriteLock==1 ); assert 62182 ext/sqlite3/libsqlite/sqlite3.c assert( cursorHoldsMutex(pCsr) ); assert 62183 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCsr->pBtree->db->mutex) ); assert 62184 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->curFlags & BTCF_Incrblob ); assert 62190 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->eState!=CURSOR_REQUIRESEEK ); assert 62204 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 62216 ext/sqlite3/libsqlite/sqlite3.c assert( (pCsr->pBt->btsFlags & BTS_READ_ONLY)==0 assert 62218 ext/sqlite3/libsqlite/sqlite3.c assert( hasSharedCacheTableLock(pCsr->pBtree, pCsr->pgnoRoot, 0, 2) ); assert 62219 ext/sqlite3/libsqlite/sqlite3.c assert( !hasReadConflicts(pCsr->pBtree, pCsr->pgnoRoot) ); assert 62220 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->apPage[pCsr->iPage]->intKey ); assert 62242 ext/sqlite3/libsqlite/sqlite3.c assert( iVersion==1 || iVersion==2 ); assert 62273 ext/sqlite3/libsqlite/sqlite3.c assert( mask==BTREE_BULKLOAD || mask==BTREE_SEEK_EQ || mask==0 ); assert 62553 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeGetReserveNoMutex(p->pSrc)>=0 ); assert 62554 ext/sqlite3/libsqlite/sqlite3.c assert( p->bDestLocked ); assert 62555 ext/sqlite3/libsqlite/sqlite3.c assert( !isFatalError(p->rc) ); assert 62556 ext/sqlite3/libsqlite/sqlite3.c assert( iSrcPg!=PENDING_BYTE_PAGE(p->pSrc->pBt) ); assert 62557 ext/sqlite3/libsqlite/sqlite3.c assert( zSrcData ); assert 62643 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(p->pSrc) ); assert 62715 ext/sqlite3/libsqlite/sqlite3.c assert( nSrcPage>=0 ); assert 62774 ext/sqlite3/libsqlite/sqlite3.c assert( pgszSrc==sqlite3BtreeGetPageSize(p->pSrc) ); assert 62775 ext/sqlite3/libsqlite/sqlite3.c assert( pgszDest==sqlite3BtreeGetPageSize(p->pDest) ); assert 62785 ext/sqlite3/libsqlite/sqlite3.c assert( nDestTruncate>0 ); assert 62804 ext/sqlite3/libsqlite/sqlite3.c assert( pFile ); assert 62805 ext/sqlite3/libsqlite/sqlite3.c assert( nDestTruncate==0 assert 62879 ext/sqlite3/libsqlite/sqlite3.c assert( rc2==SQLITE_OK ); assert 62989 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) ); assert 62996 ext/sqlite3/libsqlite/sqlite3.c assert( p->pDestDb ); assert 63000 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_BUSY && rc!=SQLITE_LOCKED ); assert 63022 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) ); assert 63043 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeIsInTrans(pTo) ); assert 63071 ext/sqlite3/libsqlite/sqlite3.c assert( b.rc!=SQLITE_OK ); assert 63079 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeIsInTrans(pTo)==0 ); assert 63118 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags & MEM_Dyn)==0 || p->xDel!=0 ); assert 63124 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags & MEM_Dyn)==0 || p->szMalloc==0 ); assert 63127 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags & (MEM_Int|MEM_Real))!=(MEM_Int|MEM_Real) ); assert 63130 ext/sqlite3/libsqlite/sqlite3.c assert( p->szMalloc==0 assert 63142 ext/sqlite3/libsqlite/sqlite3.c assert( assert 63171 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 63172 ext/sqlite3/libsqlite/sqlite3.c assert( desiredEnc==SQLITE_UTF8 || desiredEnc==SQLITE_UTF16LE assert 63177 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63186 ext/sqlite3/libsqlite/sqlite3.c assert(rc==SQLITE_OK || rc==SQLITE_NOMEM); assert 63187 ext/sqlite3/libsqlite/sqlite3.c assert(rc==SQLITE_OK || pMem->enc!=desiredEnc); assert 63188 ext/sqlite3/libsqlite/sqlite3.c assert(rc==SQLITE_NOMEM || pMem->enc==desiredEnc); assert 63203 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCheckMemInvariants(pMem) ); assert 63204 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 63208 ext/sqlite3/libsqlite/sqlite3.c assert( bPreserve==0 || pMem->flags&(MEM_Blob|MEM_Str) ); assert 63211 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->szMalloc==0 assert 63236 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->xDel!=0 && pMem->xDel!=SQLITE_DYNAMIC ); assert 63259 ext/sqlite3/libsqlite/sqlite3.c assert( szNew>0 ); assert 63260 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Dyn)==0 || pMem->szMalloc==0 ); assert 63264 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Dyn)==0 ); assert 63278 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63279 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 63306 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags&MEM_Blob ); assert 63307 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 63308 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63345 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63373 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63374 ext/sqlite3/libsqlite/sqlite3.c assert( !(fg&MEM_Zero) ); assert 63375 ext/sqlite3/libsqlite/sqlite3.c assert( !(fg&(MEM_Str|MEM_Blob)) ); assert 63376 ext/sqlite3/libsqlite/sqlite3.c assert( fg&(MEM_Int|MEM_Real) ); assert 63377 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags&MEM_RowSet)==0 ); assert 63378 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 63394 ext/sqlite3/libsqlite/sqlite3.c assert( fg & MEM_Real ); assert 63418 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Null)!=0 || pFunc==pMem->u.pDef ); assert 63419 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63428 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Dyn)==0 ); assert 63446 ext/sqlite3/libsqlite/sqlite3.c assert( p->db==0 || sqlite3_mutex_held(p->db->mutex) ); assert 63447 ext/sqlite3/libsqlite/sqlite3.c assert( VdbeMemDynamic(p) ); assert 63450 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags & MEM_Agg)==0 ); assert 63454 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags&MEM_RowSet)==0 ); assert 63455 ext/sqlite3/libsqlite/sqlite3.c assert( p->xDel!=SQLITE_DYNAMIC && p->xDel!=0 ); assert 63497 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCheckMemInvariants(p) ); assert 63546 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63547 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 63555 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->z || pMem->n==0 ); assert 63570 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63571 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 63593 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags & MEM_Real ); assert 63594 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 63595 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63596 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 63620 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63621 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 63622 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 63634 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63635 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 63652 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & (MEM_Blob|MEM_Str))!=0 ); assert 63653 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63662 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & (MEM_Int|MEM_Real|MEM_Null))!=0 ); assert 63680 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags & MEM_Str || pMem->db->mallocFailed ); assert 63700 ext/sqlite3/libsqlite/sqlite3.c assert( aff==SQLITE_AFF_TEXT ); assert 63701 ext/sqlite3/libsqlite/sqlite3.c assert( MEM_Str==(MEM_Blob>>3) ); assert 63704 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags & MEM_Str || pMem->db->mallocFailed ); assert 63717 ext/sqlite3/libsqlite/sqlite3.c assert( (flags & ~MEM_TypeMask)==0 ); assert 63805 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 63806 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 63813 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->zMalloc ); assert 63816 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->u.pRowSet!=0 ); assert 63826 ext/sqlite3/libsqlite/sqlite3.c assert( p->db!=0 ); assert 63871 ext/sqlite3/libsqlite/sqlite3.c assert( (pFrom->flags & MEM_RowSet)==0 ); assert 63872 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->db==pFrom->db ); assert 63877 ext/sqlite3/libsqlite/sqlite3.c assert( srcType==MEM_Ephem || srcType==MEM_Static ); assert 63889 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->db==pFrom->db ); assert 63890 ext/sqlite3/libsqlite/sqlite3.c assert( (pFrom->flags & MEM_RowSet)==0 ); assert 63911 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->db==0 || sqlite3_mutex_held(pFrom->db->mutex) ); assert 63912 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) ); assert 63913 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db ); assert 63947 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); assert 63948 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 63963 ext/sqlite3/libsqlite/sqlite3.c assert( enc!=0 ); assert 64047 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCur) ); assert 64048 ext/sqlite3/libsqlite/sqlite3.c assert( !VdbeMemDynamic(pMem) ); assert 64052 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_RowSet)==0 ); assert 64058 ext/sqlite3/libsqlite/sqlite3.c assert( zData!=0 ); assert 64092 ext/sqlite3/libsqlite/sqlite3.c assert( pVal!=0 ); assert 64093 ext/sqlite3/libsqlite/sqlite3.c assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) ); assert 64094 ext/sqlite3/libsqlite/sqlite3.c assert( (enc&3)==(enc&~SQLITE_UTF16_ALIGNED) ); assert 64095 ext/sqlite3/libsqlite/sqlite3.c assert( (pVal->flags & MEM_RowSet)==0 ); assert 64096 ext/sqlite3/libsqlite/sqlite3.c assert( (pVal->flags & (MEM_Null))==0 ); assert 64106 ext/sqlite3/libsqlite/sqlite3.c assert( (pVal->flags & (MEM_Ephem|MEM_Static))!=0 ); assert 64114 ext/sqlite3/libsqlite/sqlite3.c assert( 0==(1&SQLITE_PTR_TO_INT(pVal->z)) ); assert 64116 ext/sqlite3/libsqlite/sqlite3.c assert(pVal->enc==(enc & ~SQLITE_UTF16_ALIGNED) || pVal->db==0 assert 64137 ext/sqlite3/libsqlite/sqlite3.c assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) ); assert 64138 ext/sqlite3/libsqlite/sqlite3.c assert( (enc&3)==(enc&~SQLITE_UTF16_ALIGNED) ); assert 64139 ext/sqlite3/libsqlite/sqlite3.c assert( (pVal->flags & MEM_RowSet)==0 ); assert 64199 ext/sqlite3/libsqlite/sqlite3.c assert( pRec->pKeyInfo->nField+pRec->pKeyInfo->nXField==nCol ); assert 64200 ext/sqlite3/libsqlite/sqlite3.c assert( pRec->pKeyInfo->enc==ENC(db) ); assert 64263 ext/sqlite3/libsqlite/sqlite3.c assert( pCtx!=0 ); assert 64264 ext/sqlite3/libsqlite/sqlite3.c assert( (p->flags & EP_TokenOnly)==0 ); assert 64269 ext/sqlite3/libsqlite/sqlite3.c assert( pFunc ); assert 64294 ext/sqlite3/libsqlite/sqlite3.c assert( pCtx->pParse->rc==SQLITE_OK ); assert 64304 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 64367 ext/sqlite3/libsqlite/sqlite3.c assert( (pExpr->flags & EP_TokenOnly)==0 || pCtx==0 ); assert 64433 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]=='x' || pExpr->u.zToken[0]=='X' ); assert 64434 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[1]=='\'' ); assert 64439 ext/sqlite3/libsqlite/sqlite3.c assert( zVal[nVal]=='\'' ); assert 64457 ext/sqlite3/libsqlite/sqlite3.c assert( *ppVal==0 ); assert 64461 ext/sqlite3/libsqlite/sqlite3.c assert( pCtx==0 ); sqlite3ValueFree(pVal); assert 64599 ext/sqlite3/libsqlite/sqlite3.c assert( pVal==0 || pVal->db==db ); assert 64653 ext/sqlite3/libsqlite/sqlite3.c assert( pVal==0 || pVal->db==pParse->db ); assert 64701 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>0 ); assert 64817 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->aLabel==0 ); assert 64818 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nLabel==0 ); assert 64819 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nOpAlloc==0 ); assert 64827 ext/sqlite3/libsqlite/sqlite3.c assert( isPrepareV2==1 || isPrepareV2==0 ); assert 64832 ext/sqlite3/libsqlite/sqlite3.c assert( p->zSql==0 ); assert 64894 ext/sqlite3/libsqlite/sqlite3.c assert( nOp<=(1024/sizeof(Op)) ); assert 64895 ext/sqlite3/libsqlite/sqlite3.c assert( nNew>=(p->nOpAlloc+nOp) ); assert 64936 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 64937 ext/sqlite3/libsqlite/sqlite3.c assert( op>0 && op<0xff ); assert 65055 ext/sqlite3/libsqlite/sqlite3.c assert( v->magic==VDBE_MAGIC_INIT ); assert 65074 ext/sqlite3/libsqlite/sqlite3.c assert( v->magic==VDBE_MAGIC_INIT ); assert 65075 ext/sqlite3/libsqlite/sqlite3.c assert( j<p->nLabel ); assert 65130 ext/sqlite3/libsqlite/sqlite3.c assert( p->iAddr<nOp ); assert 65270 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp - i >= 3 ); assert 65271 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[-1].opcode==OP_Integer ); assert 65294 ext/sqlite3/libsqlite/sqlite3.c assert( -1-pOp->p2<pParse->nLabel ); assert 65302 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader!=0 || DbMaskAllZero(p->btreeMask) ); assert 65309 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 65326 ext/sqlite3/libsqlite/sqlite3.c assert( aOp && !p->db->mallocFailed ); assert 65329 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskAllZero(p->btreeMask) ); assert 65343 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 65357 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3OpcodeProperty[pOut->opcode] & OPFLG_JUMP ); assert 65420 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 65431 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 65441 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 65452 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 65454 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 65486 ext/sqlite3/libsqlite/sqlite3.c assert( db ); assert 65600 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 65602 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 65609 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 65610 ext/sqlite3/libsqlite/sqlite3.c assert( addr<p->nOp ); assert 65615 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_NOTUSED assert 65635 ext/sqlite3/libsqlite/sqlite3.c assert( ((VTable *)zP4)->db==p->db ); assert 65652 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 65653 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx!=0 ); assert 65666 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 || p->aOp==0 ); assert 65667 ext/sqlite3/libsqlite/sqlite3.c assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed ); assert 65669 ext/sqlite3/libsqlite/sqlite3.c assert( p->aOp ); assert 65719 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 65723 ext/sqlite3/libsqlite/sqlite3.c assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed ); assert 65830 ext/sqlite3/libsqlite/sqlite3.c assert( nTemp>=20 ); assert 65835 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->aSortOrder!=0 ); assert 65859 ext/sqlite3/libsqlite/sqlite3.c assert( i<nTemp ); assert 65895 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->flags & MEM_Blob ); assert 65927 ext/sqlite3/libsqlite/sqlite3.c assert( zP4!=0 ); assert 65941 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<p->db->nDb && i<(int)sizeof(yDbMask)*8 ); assert 65942 ext/sqlite3/libsqlite/sqlite3.c assert( i<(int)sizeof(p->btreeMask)*8 ); assert 66051 ext/sqlite3/libsqlite/sqlite3.c assert( (&p[1])==pEnd || p[0].db==p[1].db ); assert 66052 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCheckMemInvariants(p) ); assert 66126 ext/sqlite3/libsqlite/sqlite3.c assert( p->explain ); assert 66127 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); assert 66128 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc==SQLITE_OK || p->rc==SQLITE_BUSY || p->rc==SQLITE_NOMEM ); assert 66157 ext/sqlite3/libsqlite/sqlite3.c assert( p->nMem>9 ); assert 66204 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->z!=0 ); assert 66242 ext/sqlite3/libsqlite/sqlite3.c assert( p->db->mallocFailed ); assert 66250 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->z!=0 ); assert 66258 ext/sqlite3/libsqlite/sqlite3.c assert( p->db->mallocFailed ); assert 66269 ext/sqlite3/libsqlite/sqlite3.c assert( p->db->mallocFailed ); assert 66366 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(*ppFrom) ); assert 66386 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 66387 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 66391 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 66398 ext/sqlite3/libsqlite/sqlite3.c assert( p->aMem[i].db==p->db ); assert 66451 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 66452 ext/sqlite3/libsqlite/sqlite3.c assert( p->nOp>0 ); assert 66453 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 66454 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); assert 66455 ext/sqlite3/libsqlite/sqlite3.c assert( pParse==p->pParse ); assert 66457 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed==0 ); assert 66489 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(zCsr) ); assert 66567 ext/sqlite3/libsqlite/sqlite3.c assert( pVtabCursor->pVtab->nRef>0 ); assert 66631 ext/sqlite3/libsqlite/sqlite3.c assert( p->nFrame==0 ); assert 66644 ext/sqlite3/libsqlite/sqlite3.c assert( p->pAuxData==0 ); assert 66657 ext/sqlite3/libsqlite/sqlite3.c if( p->apCsr ) for(i=0; i<p->nCursor; i++) assert( p->apCsr[i]==0 ); assert 66659 ext/sqlite3/libsqlite/sqlite3.c for(i=1; i<=p->nMem; i++) assert( p->aMem[i].flags==MEM_Undefined ); assert 66711 ext/sqlite3/libsqlite/sqlite3.c assert( idx<p->nResColumn ); assert 66712 ext/sqlite3/libsqlite/sqlite3.c assert( var<COLNAME_N ); assert 66714 ext/sqlite3/libsqlite/sqlite3.c assert( !zName || xDel!=SQLITE_DYNAMIC ); assert 66717 ext/sqlite3/libsqlite/sqlite3.c assert( p->aColName!=0 ); assert 66720 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=0 || !zName || (pColName->flags&MEM_Term)!=0 ); assert 66851 ext/sqlite3/libsqlite/sqlite3.c assert( zMaster[sqlite3Strlen30(zMaster)-3]=='9' ); assert 66880 ext/sqlite3/libsqlite/sqlite3.c assert( zFile[0]!=0 ); assert 66925 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_BUSY ); assert 66991 ext/sqlite3/libsqlite/sqlite3.c assert( cnt==db->nVdbeActive ); assert 66992 ext/sqlite3/libsqlite/sqlite3.c assert( nWrite==db->nVdbeWrite ); assert 66993 ext/sqlite3/libsqlite/sqlite3.c assert( nRead==db->nVdbeRead ); assert 67022 ext/sqlite3/libsqlite/sqlite3.c assert( eOp==SAVEPOINT_ROLLBACK || eOp==SAVEPOINT_RELEASE); assert 67023 ext/sqlite3/libsqlite/sqlite3.c assert( db->nStatement>0 ); assert 67024 ext/sqlite3/libsqlite/sqlite3.c assert( p->iStatement==(db->nStatement+db->nSavepoint) ); assert 67277 ext/sqlite3/libsqlite/sqlite3.c assert( db->nVdbeActive>=db->nVdbeRead ); assert 67278 ext/sqlite3/libsqlite/sqlite3.c assert( db->nVdbeRead>=db->nVdbeWrite ); assert 67279 ext/sqlite3/libsqlite/sqlite3.c assert( db->nVdbeWrite>=0 ); assert 67295 ext/sqlite3/libsqlite/sqlite3.c assert( db->nVdbeActive>0 || db->autoCommit==0 || db->nStatement==0 ); assert 67341 ext/sqlite3/libsqlite/sqlite3.c assert( v->db->init.busy==0 ); assert 67449 ext/sqlite3/libsqlite/sqlite3.c assert( (rc & p->db->errMask)==rc ); assert 67501 ext/sqlite3/libsqlite/sqlite3.c assert( p->db==0 || p->db==db ); assert 67530 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 67535 ext/sqlite3/libsqlite/sqlite3.c assert( db->pVdbe==p ); assert 67556 ext/sqlite3/libsqlite/sqlite3.c assert( p->deferredMoveto ); assert 67557 ext/sqlite3/libsqlite/sqlite3.c assert( p->isTable ); assert 67578 ext/sqlite3/libsqlite/sqlite3.c assert( p->pCursor!=0 ); assert 67579 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorHasMoved(p->pCursor) ); assert 67694 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) ); assert 67695 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n>=0 ); assert 67789 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(v)==sizeof(pMem->u.r) ); assert 67796 ext/sqlite3/libsqlite/sqlite3.c assert( i>0 ); assert 67806 ext/sqlite3/libsqlite/sqlite3.c assert( pMem->n + ((pMem->flags & MEM_Zero)?pMem->u.nZero:0) assert 67862 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(r1)==sizeof(t2) && memcmp(&r1, &t2, sizeof(r1))==0 ); assert 67864 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(x)==8 && sizeof(pMem->u.r)==8 ); assert 67992 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->aSortOrder!=0 ); assert 68017 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pMem) ); assert 68033 ext/sqlite3/libsqlite/sqlite3.c assert( u<=pKeyInfo->nField + 1 ); assert 68081 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->nField+pKeyInfo->nXField>=pPKey2->nField || CORRUPT_DB ); assert 68082 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->aSortOrder!=0 ); assert 68083 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->nField>0 ); assert 68084 ext/sqlite3/libsqlite/sqlite3.c assert( idx1<=szHdr1 || CORRUPT_DB ); assert 68111 ext/sqlite3/libsqlite/sqlite3.c assert( mem1.szMalloc==0 ); /* See comment below */ assert 68124 ext/sqlite3/libsqlite/sqlite3.c assert( mem1.szMalloc==0 ); assert 68165 ext/sqlite3/libsqlite/sqlite3.c assert( nKey>=0 ); assert 68166 ext/sqlite3/libsqlite/sqlite3.c assert( szHdr<=(u32)nKey ); assert 68171 ext/sqlite3/libsqlite/sqlite3.c assert( nField <= pKeyInfo->nField+pKeyInfo->nXField ); assert 68243 ext/sqlite3/libsqlite/sqlite3.c assert( (combined_flags & MEM_RowSet)==0 ); assert 68293 ext/sqlite3/libsqlite/sqlite3.c assert( pMem1->enc==pMem2->enc ); assert 68294 ext/sqlite3/libsqlite/sqlite3.c assert( pMem1->enc==SQLITE_UTF8 || assert 68301 ext/sqlite3/libsqlite/sqlite3.c assert( !pColl || pColl->xCmp ); assert 68324 ext/sqlite3/libsqlite/sqlite3.c assert( CORRUPT_DB || (serial_type>=1 && serial_type<=9 && serial_type!=7) ); assert 68413 ext/sqlite3/libsqlite/sqlite3.c assert( pPKey2->pKeyInfo->nField+pPKey2->pKeyInfo->nXField>=pPKey2->nField assert 68415 ext/sqlite3/libsqlite/sqlite3.c assert( pPKey2->pKeyInfo->aSortOrder!=0 ); assert 68416 ext/sqlite3/libsqlite/sqlite3.c assert( pPKey2->pKeyInfo->nField>0 ); assert 68417 ext/sqlite3/libsqlite/sqlite3.c assert( idx1<=szHdr1 || CORRUPT_DB ); assert 68534 ext/sqlite3/libsqlite/sqlite3.c assert( vdbeRecordCompareDebug(nKey1, pKey1, pPKey2, rc) ); assert 68535 ext/sqlite3/libsqlite/sqlite3.c assert( mem1.szMalloc==0 ); /* See comment below */ assert 68548 ext/sqlite3/libsqlite/sqlite3.c assert( mem1.szMalloc==0 ); assert 68553 ext/sqlite3/libsqlite/sqlite3.c assert( CORRUPT_DB assert 68589 ext/sqlite3/libsqlite/sqlite3.c assert( (*(u8*)pKey1)<=0x3F || CORRUPT_DB ); assert 68658 ext/sqlite3/libsqlite/sqlite3.c assert( vdbeRecordCompareDebug(nKey1, pKey1, pPKey2, res) ); assert 68715 ext/sqlite3/libsqlite/sqlite3.c assert( vdbeRecordCompareDebug(nKey1, pKey1, pPKey2, res) assert 68757 ext/sqlite3/libsqlite/sqlite3.c assert( flags & MEM_Str ); assert 68786 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCur) ); assert 68788 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* pCur is always valid so KeySize cannot fail */ assert 68789 ext/sqlite3/libsqlite/sqlite3.c assert( (nCellKey & SQLITE_MAX_U32)==(u64)nCellKey ); assert 68862 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCur) ); assert 68864 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* pCur is always valid so KeySize cannot fail */ assert 68886 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 68932 ext/sqlite3/libsqlite/sqlite3.c assert( iVar>0 ); assert 68953 ext/sqlite3/libsqlite/sqlite3.c assert( iVar>0 ); assert 69075 ext/sqlite3/libsqlite/sqlite3.c assert( (rc & (v->db->errMask))==rc ); assert 69217 ext/sqlite3/libsqlite/sqlite3.c assert( xDel!=SQLITE_DYNAMIC ); assert 69234 ext/sqlite3/libsqlite/sqlite3.c assert( n>=0 ); assert 69235 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69244 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69245 ext/sqlite3/libsqlite/sqlite3.c assert( xDel!=SQLITE_DYNAMIC ); assert 69253 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69257 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69264 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69271 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69275 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69279 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69288 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69298 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69299 ext/sqlite3/libsqlite/sqlite3.c assert( xDel!=SQLITE_DYNAMIC ); assert 69314 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69323 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69332 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69337 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69341 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69358 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69367 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69411 ext/sqlite3/libsqlite/sqlite3.c assert(p); assert 69461 ext/sqlite3/libsqlite/sqlite3.c assert( db->nVdbeWrite>0 || db->autoCommit==0 assert 69501 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc==SQLITE_OK ); assert 69520 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_ROW || rc==SQLITE_DONE || rc==SQLITE_ERROR assert 69523 ext/sqlite3/libsqlite/sqlite3.c assert( (p->rc!=SQLITE_ROW && p->rc!=SQLITE_DONE) || p->rc==p->rcApp ); assert 69559 ext/sqlite3/libsqlite/sqlite3.c assert( v->expired==0 ); assert 69591 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pFunc ); assert 69606 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pFunc ); assert 69621 ext/sqlite3/libsqlite/sqlite3.c assert( p->pVdbe!=0 ); assert 69661 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Agg)==0 ); assert 69682 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pFunc && p->pFunc->xStep ); assert 69683 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(p->pOut->db->mutex) ); assert 69699 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69703 ext/sqlite3/libsqlite/sqlite3.c assert( pCtx->pVdbe!=0 ); assert 69726 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); assert 69731 ext/sqlite3/libsqlite/sqlite3.c assert( pVdbe!=0 ); assert 69773 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pMem && p->pFunc && p->pFunc->xStep ); assert 69989 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 69994 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed==0 ); assert 70209 ext/sqlite3/libsqlite/sqlite3.c assert( xDel!=SQLITE_DYNAMIC ); assert 70265 ext/sqlite3/libsqlite/sqlite3.c assert( xDel!=SQLITE_DYNAMIC ); assert 70380 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->db==pFrom->db ); assert 70381 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->nVar==pFrom->nVar ); assert 70591 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && tokenType!=TK_ILLEGAL ); assert 70648 ext/sqlite3/libsqlite/sqlite3.c assert( (zRawSql - zStart) > 0 ); assert 70656 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 ); assert 70659 ext/sqlite3/libsqlite/sqlite3.c assert( zRawSql[0] || nToken==0 ); assert 70663 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3Isdigit(zRawSql[1]) ); assert 70669 ext/sqlite3/libsqlite/sqlite3.c assert( zRawSql[0]==':' || zRawSql[0]=='$' || assert 70676 ext/sqlite3/libsqlite/sqlite3.c assert( idx>0 ); assert 70680 ext/sqlite3/libsqlite/sqlite3.c assert( idx>0 && idx<=p->nVar ); assert 70721 ext/sqlite3/libsqlite/sqlite3.c assert( pVar->flags & MEM_Blob ); assert 70878 ext/sqlite3/libsqlite/sqlite3.c assert( (M & I)==I ); assert 70950 ext/sqlite3/libsqlite/sqlite3.c assert( iCur<p->nCursor ); assert 70989 ext/sqlite3/libsqlite/sqlite3.c assert( (pRec->flags & (MEM_Str|MEM_Int|MEM_Real))==MEM_Str ); assert 71025 ext/sqlite3/libsqlite/sqlite3.c assert( affinity==SQLITE_AFF_INTEGER || affinity==SQLITE_AFF_REAL assert 71081 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & (MEM_Int|MEM_Real))==0 ); assert 71082 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & (MEM_Str|MEM_Blob))!=0 ); assert 71125 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Ephem))==0 ); assert 71128 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Dyn|MEM_Ephem))==0 ); assert 71131 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Dyn))==0 ); assert 71162 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Ephem))==0 ); assert 71165 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Dyn|MEM_Ephem))==0 ); assert 71168 ext/sqlite3/libsqlite/sqlite3.c assert( (f & (MEM_Static|MEM_Dyn))==0 ); assert 71345 ext/sqlite3/libsqlite/sqlite3.c assert( n==(db->nSavepoint + db->isTransactionSavepoint) ); assert 71356 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 71357 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<=(p->nMem-p->nCursor) ); assert 71399 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); /* sqlite3_step() verifies this */ assert 71406 ext/sqlite3/libsqlite/sqlite3.c assert( p->rc==SQLITE_OK || p->rc==SQLITE_BUSY ); assert 71407 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader || p->readOnly!=0 ); assert 71410 ext/sqlite3/libsqlite/sqlite3.c assert( p->explain==0 ); assert 71417 ext/sqlite3/libsqlite/sqlite3.c assert( 0 < db->nProgressOps ); assert 71454 ext/sqlite3/libsqlite/sqlite3.c assert( pOp>=aOp && pOp<&aOp[p->nOp]); assert 71487 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opflags==sqlite3OpcodeProperty[pOp->opcode] ); assert 71489 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 ); assert 71490 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1<=(p->nMem-p->nCursor) ); assert 71491 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p1]) ); assert 71492 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCheckMemInvariants(&aMem[pOp->p1]) ); assert 71496 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 71497 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<=(p->nMem-p->nCursor) ); assert 71498 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p2]) ); assert 71499 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCheckMemInvariants(&aMem[pOp->p2]) ); assert 71503 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 71504 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=(p->nMem-p->nCursor) ); assert 71505 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p3]) ); assert 71506 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCheckMemInvariants(&aMem[pOp->p3]) ); assert 71510 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 71511 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<=(p->nMem-p->nCursor) ); assert 71515 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 71516 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=(p->nMem-p->nCursor) ); assert 71597 ext/sqlite3/libsqlite/sqlite3.c assert( db->nProgressOps!=0 ); assert 71615 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) ); assert 71617 ext/sqlite3/libsqlite/sqlite3.c assert( VdbeMemDynamic(pIn1)==0 ); assert 71637 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags==MEM_Int ); assert 71655 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) ); assert 71656 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>=0 && pOp->p2<p->nOp ); assert 71657 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>=0 && pOp->p3<p->nOp ); assert 71659 ext/sqlite3/libsqlite/sqlite3.c assert( !VdbeMemDynamic(pOut) ); assert 71677 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags==MEM_Int ); assert 71678 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->u.i>=0 && pIn1->u.i<p->nOp ); assert 71680 ext/sqlite3/libsqlite/sqlite3.c assert( pCaller->opcode==OP_Yield ); assert 71681 ext/sqlite3/libsqlite/sqlite3.c assert( pCaller->p2>=0 && pCaller->p2<p->nOp ); assert 71703 ext/sqlite3/libsqlite/sqlite3.c assert( VdbeMemDynamic(pIn1)==0 ); assert 71791 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5>=1 && pOp->p5<=4 ); assert 71800 ext/sqlite3/libsqlite/sqlite3.c assert( zType!=0 || pOp->p4.z!=0 ); assert 71813 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_BUSY || rc==SQLITE_OK || rc==SQLITE_ERROR ); assert 71817 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || (p->rc&0xff)==SQLITE_CONSTRAINT ); assert 71818 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || db->nDeferredCons>0 || db->nDeferredImmCons>0 ); assert 71843 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.pI64!=0 ); assert 71858 ext/sqlite3/libsqlite/sqlite3.c assert( !sqlite3IsNaN(*pOp->p4.pReal) ); assert 71873 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.z!=0 ); assert 71883 ext/sqlite3/libsqlite/sqlite3.c assert( pOut->szMalloc>0 && pOut->zMalloc==pOut->z ); assert 71884 ext/sqlite3/libsqlite/sqlite3.c assert( VdbeMemDynamic(pOut)==0 ); assert 71912 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.z!=0 ); assert 71920 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 71921 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=(p->nMem-p->nCursor) ); assert 71923 ext/sqlite3/libsqlite/sqlite3.c assert( pIn3->flags & MEM_Int ); assert 71946 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=(p->nMem-p->nCursor) ); assert 71967 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) ); assert 71980 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1 <= SQLITE_MAX_LENGTH ); assert 71999 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 && pOp->p1<=p->nVar ); assert 72000 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.z==0 || pOp->p4.z==p->azVar[pOp->p1-1] ); assert 72028 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 && p1>0 && p2>0 ); assert 72029 ext/sqlite3/libsqlite/sqlite3.c assert( p1+n<=p2 || p2+n<=p1 ); assert 72034 ext/sqlite3/libsqlite/sqlite3.c assert( pOut<=&aMem[(p->nMem-p->nCursor)] ); assert 72035 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1<=&aMem[(p->nMem-p->nCursor)] ); assert 72036 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pIn1) ); assert 72066 ext/sqlite3/libsqlite/sqlite3.c assert( pOut!=pIn1 ); assert 72097 ext/sqlite3/libsqlite/sqlite3.c assert( pOut!=pIn1 ); assert 72117 ext/sqlite3/libsqlite/sqlite3.c assert( p->nResColumn==pOp->p2 ); assert 72118 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 ); assert 72119 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1+pOp->p2<=(p->nMem-p->nCursor)+1 ); assert 72137 ext/sqlite3/libsqlite/sqlite3.c assert( db->flags&SQLITE_CountRows ); assert 72138 ext/sqlite3/libsqlite/sqlite3.c assert( p->usesStmtJournal ); assert 72157 ext/sqlite3/libsqlite/sqlite3.c assert( p->iStatement==0 || db->flags&SQLITE_CountRows ); assert 72172 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&pMem[i]) ); assert 72174 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem[i].flags & MEM_Ephem)==0 assert 72207 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1!=pOut ); assert 72379 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_COLLSEQ ); assert 72412 ext/sqlite3/libsqlite/sqlite3.c assert( apVal || n==0 ); assert 72413 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) ); assert 72417 ext/sqlite3/libsqlite/sqlite3.c assert( n==0 || (pOp->p2>0 && pOp->p2+n<=(p->nMem-p->nCursor)+1) ); assert 72418 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<pOp->p2 || pOp->p3>=pOp->p2+n ); assert 72421 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pArg) ); assert 72427 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_FUNCDEF ); assert 72511 ext/sqlite3/libsqlite/sqlite3.c assert( op==OP_ShiftRight || op==OP_ShiftLeft ); assert 72515 ext/sqlite3/libsqlite/sqlite3.c assert( OP_ShiftRight==OP_ShiftLeft+1 ); assert 72616 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>=SQLITE_AFF_NONE && pOp->p2<=SQLITE_AFF_REAL ); assert 72735 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_Eq || pOp->opcode==OP_Ne ); assert 72736 ext/sqlite3/libsqlite/sqlite3.c assert( (flags1 & MEM_Cleared)==0 ); assert 72737 ext/sqlite3/libsqlite/sqlite3.c assert( (pOp->p5 & SQLITE_JUMPIFNULL)==0 ); assert 72789 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_COLLSEQ || pOp->p4.pColl==0 ); assert 72811 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn1->flags & MEM_Dyn) == (flags1 & MEM_Dyn) ); assert 72813 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn3->flags & MEM_Dyn) == (flags3 & MEM_Dyn) ); assert 72841 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INTARRAY ); assert 72842 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.ai ); assert 72880 ext/sqlite3/libsqlite/sqlite3.c assert( n>0 ); assert 72881 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo!=0 ); assert 72888 ext/sqlite3/libsqlite/sqlite3.c assert( p1>0 && p1+mx<=(p->nMem-p->nCursor)+1 ); assert 72889 ext/sqlite3/libsqlite/sqlite3.c assert( p2>0 && p2+mx<=(p->nMem-p->nCursor)+1 ); assert 72891 ext/sqlite3/libsqlite/sqlite3.c assert( p1>0 && p1+n<=(p->nMem-p->nCursor)+1 ); assert 72892 ext/sqlite3/libsqlite/sqlite3.c assert( p2>0 && p2+n<=(p->nMem-p->nCursor)+1 ); assert 72897 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[p1+idx]) ); assert 72898 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[p2+idx]) ); assert 72901 ext/sqlite3/libsqlite/sqlite3.c assert( i<pKeyInfo->nField ); assert 73033 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1<p->nOnceFlag ); assert 73150 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) ); assert 73153 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 73155 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 73156 ext/sqlite3/libsqlite/sqlite3.c assert( p2<pC->nField ); assert 73159 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pVtabCursor==0 ); /* OP_Column never called on virtual table */ assert 73162 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr!=0 || pC->pseudoTableReg>0 ); /* pCrsr NULL on PseudoTables */ assert 73163 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr!=0 || pC->nullRow ); /* pC->nullRow on PseudoTables */ assert 73171 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pseudoTableReg>0 ); assert 73173 ext/sqlite3/libsqlite/sqlite3.c assert( pReg->flags & MEM_Blob ); assert 73174 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pReg) ); assert 73182 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr ); assert 73184 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCrsr) ); assert 73186 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* True because of CursorMoveto() call above */ assert 73190 ext/sqlite3/libsqlite/sqlite3.c assert( (payloadSize64 & SQLITE_MAX_U32)==(u64)payloadSize64 ); assert 73194 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCrsr) ); assert 73196 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* DataSize() cannot fail */ assert 73199 ext/sqlite3/libsqlite/sqlite3.c assert( avail<=65536 ); /* Maximum page size is 64KiB */ assert 73241 ext/sqlite3/libsqlite/sqlite3.c assert( pC->nHdrParsed<=p2 ); /* Conditional skipped */ assert 73272 ext/sqlite3/libsqlite/sqlite3.c assert( i<=p2 && zHdr<zEndHdr ); assert 73331 ext/sqlite3/libsqlite/sqlite3.c assert( p2<pC->nHdrParsed ); assert 73332 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 73333 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCheckMemInvariants(pDest) ); assert 73374 ext/sqlite3/libsqlite/sqlite3.c assert( fx!=0 ); assert 73403 ext/sqlite3/libsqlite/sqlite3.c assert( zAffinity!=0 ); assert 73404 ext/sqlite3/libsqlite/sqlite3.c assert( zAffinity[pOp->p2]==0 ); assert 73407 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1 <= &p->aMem[(p->nMem-p->nCursor)] ); assert 73408 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pIn1) ); assert 73469 ext/sqlite3/libsqlite/sqlite3.c assert( nField>0 && pOp->p2>0 && pOp->p2+nField<=(p->nMem-p->nCursor)+1 ); assert 73476 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<pOp->p1 || pOp->p3>=pOp->p1+pOp->p2 ); assert 73482 ext/sqlite3/libsqlite/sqlite3.c assert( pData0<=pLast ); assert 73487 ext/sqlite3/libsqlite/sqlite3.c assert( zAffinity[0]==0 || pRec<=pLast ); assert 73496 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pRec) ); assert 73546 ext/sqlite3/libsqlite/sqlite3.c assert( pData0<=pLast ); assert 73557 ext/sqlite3/libsqlite/sqlite3.c assert( i==nHdr ); assert 73558 ext/sqlite3/libsqlite/sqlite3.c assert( j==nByte ); assert 73560 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) ); assert 73585 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr ); assert 73616 ext/sqlite3/libsqlite/sqlite3.c assert( db->pSavepoint==0 || db->autoCommit==0 ); assert 73617 ext/sqlite3/libsqlite/sqlite3.c assert( p1==SAVEPOINT_BEGIN||p1==SAVEPOINT_RELEASE||p1==SAVEPOINT_ROLLBACK ); assert 73618 ext/sqlite3/libsqlite/sqlite3.c assert( db->pSavepoint || db->isTransactionSavepoint==0 ); assert 73619 ext/sqlite3/libsqlite/sqlite3.c assert( checkSavepointCount(db) ); assert 73620 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader ); assert 73638 ext/sqlite3/libsqlite/sqlite3.c assert( db->autoCommit==0 || db->nVTrans==0 ); assert 73750 ext/sqlite3/libsqlite/sqlite3.c assert( pSavepoint==db->pSavepoint ); assert 73788 ext/sqlite3/libsqlite/sqlite3.c assert( desiredAutoCommit==1 || desiredAutoCommit==0 ); assert 73789 ext/sqlite3/libsqlite/sqlite3.c assert( desiredAutoCommit==1 || iRollback==0 ); assert 73790 ext/sqlite3/libsqlite/sqlite3.c assert( db->nVdbeActive>0 ); /* At least this one VM is active */ assert 73791 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader ); assert 73813 ext/sqlite3/libsqlite/sqlite3.c assert( desiredAutoCommit==1 ); assert 73827 ext/sqlite3/libsqlite/sqlite3.c assert( db->nStatement==0 ); assert 73885 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader ); assert 73886 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 || pOp->p2==0 ); assert 73887 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 73888 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, pOp->p1) ); assert 73909 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeIsInTrans(pBt) ); assert 73911 ext/sqlite3/libsqlite/sqlite3.c assert( db->nStatement>=0 && db->nSavepoint>=0 ); assert 73939 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5==0 || pOp->p4type==P4_INT32 ); assert 73982 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader ); assert 73985 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<SQLITE_N_BTREE_META ); assert 73986 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 73987 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pBt!=0 ); assert 73988 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, iDb) ); assert 74008 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2<SQLITE_N_BTREE_META ); assert 74009 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 74010 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, pOp->p1) ); assert 74011 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 74013 ext/sqlite3/libsqlite/sqlite3.c assert( pDb->pBt!=0 ); assert 74014 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, pOp->p1, 0) ); assert 74111 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5==0 || pOp->p5==OPFLAG_SEEKEQ ); assert 74112 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_KEYINFO ); assert 74115 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->iDb==pOp->p3 ); /* Guaranteed by the code generator */ assert 74123 ext/sqlite3/libsqlite/sqlite3.c assert( (pOp->p5&(OPFLAG_P2ISREG|OPFLAG_BULKCSR|OPFLAG_SEEKEQ))==pOp->p5 ); assert 74124 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_OpenWrite || pOp->p5==0 || pOp->p5==OPFLAG_SEEKEQ ); assert 74125 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader ); assert 74126 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_OpenRead || pOp->opcode==OP_ReopenIdx assert 74138 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 74139 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, iDb) ); assert 74142 ext/sqlite3/libsqlite/sqlite3.c assert( pX!=0 ); assert 74145 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 74153 ext/sqlite3/libsqlite/sqlite3.c assert( p2>0 ); assert 74154 ext/sqlite3/libsqlite/sqlite3.c assert( p2<=(p->nMem-p->nCursor) ); assert 74156 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pIn2) ); assert 74157 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn2->flags & MEM_Int)!=0 ); assert 74171 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->enc==ENC(db) ); assert 74172 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->db==db ); assert 74177 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 ); assert 74178 ext/sqlite3/libsqlite/sqlite3.c assert( nField>=0 ); assert 74194 ext/sqlite3/libsqlite/sqlite3.c assert( OPFLAG_BULKCSR==BTREE_BULKLOAD ); assert 74195 ext/sqlite3/libsqlite/sqlite3.c assert( OPFLAG_SEEKEQ==BTREE_SEEK_EQ ); assert 74238 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 ); assert 74239 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>=0 ); assert 74257 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_KEYINFO ); assert 74260 ext/sqlite3/libsqlite/sqlite3.c assert( pgno==MASTER_ROOT+1 ); assert 74261 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->db==db ); assert 74262 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo->enc==ENC(db) ); assert 74289 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 ); assert 74290 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>=0 ); assert 74294 ext/sqlite3/libsqlite/sqlite3.c assert( pCx->pKeyInfo->db==db ); assert 74295 ext/sqlite3/libsqlite/sqlite3.c assert( pCx->pKeyInfo->enc==ENC(db) ); assert 74309 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74311 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pSorter ); assert 74337 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 ); assert 74338 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>=0 ); assert 74344 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5==0 ); assert 74354 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74443 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74444 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2!=0 ); assert 74446 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 74447 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pseudoTableReg==0 ); assert 74448 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekLE == OP_SeekLT+1 ); assert 74449 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekGE == OP_SeekLT+2 ); assert 74450 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekGT == OP_SeekLT+3 ); assert 74451 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isOrdered ); assert 74452 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0 ); assert 74465 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_SeekGE || pOp->opcode==OP_SeekLE ); assert 74466 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[1].opcode==OP_IdxLT || pOp[1].opcode==OP_IdxGT ); assert 74467 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[1].p1==pOp[0].p1 ); assert 74468 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[1].p2==pOp[0].p2 ); assert 74469 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[1].p3==pOp[0].p3 ); assert 74470 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[1].p4.i==pOp[0].p4.i ); assert 74502 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekGE==(OP_SeekGT-1) ); assert 74503 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekLT==(OP_SeekLE-1) ); assert 74504 ext/sqlite3/libsqlite/sqlite3.c assert( (OP_SeekLE & 0x0001)==(OP_SeekGT & 0x0001) ); assert 74511 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekLE==(OP_SeekLT+1) ); assert 74512 ext/sqlite3/libsqlite/sqlite3.c assert( OP_SeekGT==(OP_SeekGE+1) ); assert 74513 ext/sqlite3/libsqlite/sqlite3.c assert( (OP_SeekLT & 0x0001)==(OP_SeekGE & 0x0001) ); assert 74524 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 74525 ext/sqlite3/libsqlite/sqlite3.c assert( nField>0 ); assert 74537 ext/sqlite3/libsqlite/sqlite3.c assert( oc!=OP_SeekGT || r.default_rc==-1 ); assert 74538 ext/sqlite3/libsqlite/sqlite3.c assert( oc!=OP_SeekLE || r.default_rc==-1 ); assert 74539 ext/sqlite3/libsqlite/sqlite3.c assert( oc!=OP_SeekGE || r.default_rc==+1 ); assert 74540 ext/sqlite3/libsqlite/sqlite3.c assert( oc!=OP_SeekLT || r.default_rc==+1 ); assert 74544 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<r.nField; i++) assert( memIsValid(&r.aMem[i]) ); } assert 74557 ext/sqlite3/libsqlite/sqlite3.c if( oc>=OP_SeekGE ){ assert( oc==OP_SeekGE || oc==OP_SeekGT ); assert 74566 ext/sqlite3/libsqlite/sqlite3.c assert( oc==OP_SeekLT || oc==OP_SeekLE ); assert 74578 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 ); assert 74599 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74601 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 74602 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0 ); assert 74603 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable ); assert 74688 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74689 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 74691 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 74696 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0 ); assert 74697 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable==0 ); assert 74704 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&r.aMem[ii]) ); assert 74716 ext/sqlite3/libsqlite/sqlite3.c assert( pIn3->flags & MEM_Blob ); assert 74778 ext/sqlite3/libsqlite/sqlite3.c assert( pIn3->flags & MEM_Int ); assert 74779 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74781 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 74785 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable ); assert 74786 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pseudoTableReg==0 ); assert 74788 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr!=0 ); assert 74811 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74812 ext/sqlite3/libsqlite/sqlite3.c assert( p->apCsr[pOp->p1]!=0 ); assert 74845 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 74847 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 74864 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable ); assert 74884 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pC->pCursor) ); assert 74886 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* Cannot fail following BtreeLast() */ assert 74898 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 74902 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=pFrame->nMem ); assert 74906 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3<=(p->nMem-p->nCursor) ); assert 74910 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pMem) ); assert 74914 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & MEM_Int)!=0 ); /* mem(P3) holds an integer */ assert 74930 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3==0 ); /* We cannot be in random rowid mode if this is assert 74944 ext/sqlite3/libsqlite/sqlite3.c assert( v>0 ); /* EV: R-40812-03570 */ assert 75012 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75013 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pData) ); assert 75015 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75016 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0 ); assert 75017 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pseudoTableReg==0 ); assert 75018 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable ); assert 75023 ext/sqlite3/libsqlite/sqlite3.c assert( pKey->flags & MEM_Int ); assert 75024 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pKey) ); assert 75028 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_InsertInt ); assert 75038 ext/sqlite3/libsqlite/sqlite3.c assert( pData->flags & (MEM_Blob|MEM_Str) ); assert 75058 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable ); assert 75060 ext/sqlite3/libsqlite/sqlite3.c assert( pC->iDb>=0 ); assert 75088 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75090 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75091 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0 ); /* Only valid for real tables, no pseudotables */ assert 75092 ext/sqlite3/libsqlite/sqlite3.c assert( pC->deferredMoveto==0 ); assert 75101 ext/sqlite3/libsqlite/sqlite3.c assert( pC->movetoTarget==iKey ); assert 75112 ext/sqlite3/libsqlite/sqlite3.c assert( pC->iDb>=0 ); assert 75151 ext/sqlite3/libsqlite/sqlite3.c assert( isSorter(pC) ); assert 75152 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 75179 ext/sqlite3/libsqlite/sqlite3.c assert( isSorter(pC) ); assert 75181 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || (pOut->flags & MEM_Blob) ); assert 75182 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75220 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75222 ext/sqlite3/libsqlite/sqlite3.c assert( isSorter(pC)==0 ); assert 75223 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable || pOp->opcode!=OP_RowData ); assert 75224 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable==0 || pOp->opcode==OP_RowData ); assert 75225 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75226 ext/sqlite3/libsqlite/sqlite3.c assert( pC->nullRow==0 ); assert 75227 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pseudoTableReg==0 ); assert 75228 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0 ); assert 75238 ext/sqlite3/libsqlite/sqlite3.c assert( pC->deferredMoveto==0 ); assert 75239 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeCursorIsValid(pCrsr) ); assert 75246 ext/sqlite3/libsqlite/sqlite3.c assert( !pC->isTable ); assert 75248 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* True because of CursorMoveto() call above */ assert 75255 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* DataSize() cannot fail */ assert 75294 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75296 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75297 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pseudoTableReg==0 || pC->nullRow ); assert 75307 ext/sqlite3/libsqlite/sqlite3.c assert( pModule->xRowid ); assert 75312 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0 ); assert 75320 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); /* Always so because of CursorRestore() above */ assert 75335 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75337 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75363 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75365 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75368 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr!=0 ); assert 75423 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75425 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75426 ext/sqlite3/libsqlite/sqlite3.c assert( isSorter(pC)==(pOp->opcode==OP_SorterSort) ); assert 75435 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr ); assert 75441 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 && pOp->p2<p->nOp ); assert 75515 ext/sqlite3/libsqlite/sqlite3.c assert( isSorter(pC) ); assert 75525 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75526 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5<ArraySize(p->aCounter) ); assert 75529 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75530 ext/sqlite3/libsqlite/sqlite3.c assert( pC->deferredMoveto==0 ); assert 75531 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor ); assert 75532 ext/sqlite3/libsqlite/sqlite3.c assert( res==0 || (res==1 && pC->isTable==0) ); assert 75534 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode!=OP_Next || pOp->p4.xAdvance==sqlite3BtreeNext ); assert 75535 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode!=OP_Prev || pOp->p4.xAdvance==sqlite3BtreePrevious ); assert 75536 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode!=OP_NextIfOpen || pOp->p4.xAdvance==sqlite3BtreeNext ); assert 75537 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode!=OP_PrevIfOpen || pOp->p4.xAdvance==sqlite3BtreePrevious); assert 75541 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode!=OP_Next || pOp->opcode!=OP_NextIfOpen assert 75544 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode!=OP_Prev || pOp->opcode!=OP_PrevIfOpen assert 75593 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75595 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75596 ext/sqlite3/libsqlite/sqlite3.c assert( isSorter(pC)==(pOp->opcode==OP_SorterInsert) ); assert 75598 ext/sqlite3/libsqlite/sqlite3.c assert( pIn2->flags & MEM_Blob ); assert 75601 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr!=0 ); assert 75602 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable==0 ); assert 75613 ext/sqlite3/libsqlite/sqlite3.c assert( pC->deferredMoveto==0 ); assert 75633 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 ); assert 75634 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2>0 && pOp->p2+pOp->p3<=(p->nMem-p->nCursor)+1 ); assert 75635 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75637 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75639 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr!=0 ); assert 75640 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5==0 ); assert 75646 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<r.nField; i++) assert( memIsValid(&r.aMem[i]) ); } assert 75652 ext/sqlite3/libsqlite/sqlite3.c assert( pC->deferredMoveto==0 ); assert 75672 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75674 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75676 ext/sqlite3/libsqlite/sqlite3.c assert( pCrsr!=0 ); assert 75678 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isTable==0 ); assert 75679 ext/sqlite3/libsqlite/sqlite3.c assert( pC->deferredMoveto==0 ); assert 75752 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75754 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75755 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isOrdered ); assert 75756 ext/sqlite3/libsqlite/sqlite3.c assert( pC->pCursor!=0); assert 75757 ext/sqlite3/libsqlite/sqlite3.c assert( pC->deferredMoveto==0 ); assert 75758 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5==0 || pOp->p5==1 ); assert 75759 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 75763 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_IdxLE || pOp->opcode==OP_IdxGT ); assert 75766 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_IdxGE || pOp->opcode==OP_IdxLT ); assert 75771 ext/sqlite3/libsqlite/sqlite3.c { int i; for(i=0; i<r.nField; i++) assert( memIsValid(&r.aMem[i]) ); } assert 75775 ext/sqlite3/libsqlite/sqlite3.c assert( (OP_IdxLE&1)==(OP_IdxLT&1) && (OP_IdxGE&1)==(OP_IdxGT&1) ); assert 75777 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_IdxLE || pOp->opcode==OP_IdxLT ); assert 75780 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_IdxGE || pOp->opcode==OP_IdxGT ); assert 75812 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 75820 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, iDb) ); assert 75829 ext/sqlite3/libsqlite/sqlite3.c assert( resetSchemaOnFault==0 || resetSchemaOnFault==iDb+1 ); assert 75859 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 75860 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, pOp->p2) ); assert 75867 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(&aMem[pOp->p3]) ); assert 75886 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<p->nCursor ); assert 75888 ext/sqlite3/libsqlite/sqlite3.c assert( pC!=0 ); assert 75892 ext/sqlite3/libsqlite/sqlite3.c assert( pC->isEphemeral ); assert 75930 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 75931 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, pOp->p1) ); assert 75932 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 75934 ext/sqlite3/libsqlite/sqlite3.c assert( pDb->pBt!=0 ); assert 75966 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); assert 75971 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 75972 ext/sqlite3/libsqlite/sqlite3.c assert( DbHasProperty(db, iDb, DB_SchemaLoaded) ); assert 75984 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy==0 ); assert 75987 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 76009 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 76084 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader ); assert 76086 ext/sqlite3/libsqlite/sqlite3.c assert( nRoot>0 ); assert 76089 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) ); assert 76091 ext/sqlite3/libsqlite/sqlite3.c assert( (pnErr->flags & MEM_Int)!=0 ); assert 76092 ext/sqlite3/libsqlite/sqlite3.c assert( (pnErr->flags & (MEM_Str|MEM_Blob))==0 ); assert 76098 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p5<db->nDb ); assert 76099 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, pOp->p5) ); assert 76106 ext/sqlite3/libsqlite/sqlite3.c assert( z==0 ); assert 76129 ext/sqlite3/libsqlite/sqlite3.c assert( (pIn2->flags & MEM_Int)!=0 ); assert 76195 ext/sqlite3/libsqlite/sqlite3.c assert( pIn3->flags&MEM_Int ); assert 76205 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_INT32 ); assert 76206 ext/sqlite3/libsqlite/sqlite3.c assert( iSet==-1 || iSet>=0 ); assert 76248 ext/sqlite3/libsqlite/sqlite3.c assert( pProgram->nOp>0 ); assert 76320 ext/sqlite3/libsqlite/sqlite3.c assert( pProgram->nMem+pProgram->nCsr==pFrame->nChildMem ); assert 76321 ext/sqlite3/libsqlite/sqlite3.c assert( pProgram->nCsr==pFrame->nChildCsr ); assert 76322 ext/sqlite3/libsqlite/sqlite3.c assert( (int)(pOp - aOp)==pFrame->pc ); assert 76437 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pIn1) ); assert 76460 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 76474 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 76490 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 76507 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 76524 ext/sqlite3/libsqlite/sqlite3.c assert( pIn1->flags&MEM_Int ); assert 76551 ext/sqlite3/libsqlite/sqlite3.c assert( n>=0 ); assert 76554 ext/sqlite3/libsqlite/sqlite3.c assert( apVal || n==0 ); assert 76556 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pRec) ); assert 76561 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) ); assert 76576 ext/sqlite3/libsqlite/sqlite3.c assert( pOp[-1].opcode==OP_CollSeq ); assert 76599 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>0 && pOp->p1<=(p->nMem-p->nCursor) ); assert 76601 ext/sqlite3/libsqlite/sqlite3.c assert( (pMem->flags & ~(MEM_Null|MEM_Agg))==0 ); assert 76631 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 76634 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2==SQLITE_CHECKPOINT_PASSIVE assert 76674 ext/sqlite3/libsqlite/sqlite3.c assert( eNew==PAGER_JOURNALMODE_DELETE assert 76682 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 76683 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 76735 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeIsInTrans(pBt)==0 ); assert 76765 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 76781 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p1>=0 && pOp->p1<db->nDb ); assert 76782 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, pOp->p1) ); assert 76783 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 76834 ext/sqlite3/libsqlite/sqlite3.c assert( p1>=0 && p1<db->nDb ); assert 76835 ext/sqlite3/libsqlite/sqlite3.c assert( DbMaskTest(p->btreeMask, p1) ); assert 76836 ext/sqlite3/libsqlite/sqlite3.c assert( isWriteLock==0 || isWriteLock==1 ); assert 76880 ext/sqlite3/libsqlite/sqlite3.c assert( (aMem[pOp->p2].flags & MEM_Str)!=0 ); assert 76881 ext/sqlite3/libsqlite/sqlite3.c assert( (aMem[pOp->p2].flags & MEM_Static)!=0 ); assert 76883 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 76885 ext/sqlite3/libsqlite/sqlite3.c assert( zTab || db->mallocFailed ); assert 76921 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIsReader ); assert 76942 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 76987 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pQuery) ); assert 76989 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pVtabCursor ); assert 76995 ext/sqlite3/libsqlite/sqlite3.c assert( (pQuery->flags&MEM_Int)!=0 && pArgc->flags==MEM_Int ); assert 77032 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pVtabCursor ); assert 77033 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p3>0 && pOp->p3<=(p->nMem-p->nCursor) ); assert 77042 ext/sqlite3/libsqlite/sqlite3.c assert( pModule->xColumn ); assert 77077 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->pVtabCursor ); assert 77083 ext/sqlite3/libsqlite/sqlite3.c assert( pModule->xNext ); assert 77118 ext/sqlite3/libsqlite/sqlite3.c assert( pVtab->pModule->xRename ); assert 77119 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pName) ); assert 77120 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 77122 ext/sqlite3/libsqlite/sqlite3.c assert( pName->flags & MEM_Str ); assert 77173 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p2==1 || pOp->p5==OE_Fail || pOp->p5==OE_Rollback assert 77176 ext/sqlite3/libsqlite/sqlite3.c assert( p->readOnly==0 ); assert 77184 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_VTAB ); assert 77190 ext/sqlite3/libsqlite/sqlite3.c assert( memIsValid(pX) ); assert 77200 ext/sqlite3/libsqlite/sqlite3.c assert( nArg>1 && apArg[0] && (apArg[0]->flags&MEM_Null) ); assert 77316 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_Noop || pOp->opcode==OP_Explain ); assert 77342 ext/sqlite3/libsqlite/sqlite3.c assert( pOp>=&aOp[-1] && pOp<&aOp[p->nOp-1] ); assert 77362 ext/sqlite3/libsqlite/sqlite3.c assert( rc ); assert 77404 ext/sqlite3/libsqlite/sqlite3.c assert( p->zErrMsg==0 ); assert 77415 ext/sqlite3/libsqlite/sqlite3.c assert( db->u1.isInterrupted ); assert 77484 ext/sqlite3/libsqlite/sqlite3.c assert( v->aVar[0].flags&MEM_Int ); assert 77519 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || zErr==0 ); assert 77520 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_ROW && rc!=SQLITE_DONE ); assert 77687 ext/sqlite3/libsqlite/sqlite3.c assert( pBlob->pStmt || db->mallocFailed ); assert 77815 ext/sqlite3/libsqlite/sqlite3.c assert( db == v->db ); assert 77888 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_SCHEMA ); assert 77892 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || p->pStmt==0 ); assert 78398 ext/sqlite3/libsqlite/sqlite3.c assert( p->aBuffer ); assert 78414 ext/sqlite3/libsqlite/sqlite3.c assert( nRead>0 ); assert 78418 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_IOERR_SHORT_READ ); assert 78463 ext/sqlite3/libsqlite/sqlite3.c assert( aNext!=p->aAlloc ); assert 78536 ext/sqlite3/libsqlite/sqlite3.c assert( pReadr->pIncr==0 || pReadr->pIncr->bEof==0 ); assert 78631 ext/sqlite3/libsqlite/sqlite3.c assert( pFile->iEof>iStart ); assert 78632 ext/sqlite3/libsqlite/sqlite3.c assert( pReadr->aAlloc==0 && pReadr->nAlloc==0 ); assert 78633 ext/sqlite3/libsqlite/sqlite3.c assert( pReadr->aBuffer==0 ); assert 78634 ext/sqlite3/libsqlite/sqlite3.c assert( pReadr->aMap==0 ); assert 78756 ext/sqlite3/libsqlite/sqlite3.c assert( (s1>0 && s1<7) || s1==8 || s1==9 ); assert 78757 ext/sqlite3/libsqlite/sqlite3.c assert( (s2>0 && s2<7) || s2==8 || s2==9 ); assert 78783 ext/sqlite3/libsqlite/sqlite3.c assert( res!=0 ); assert 78861 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->pKeyInfo && pCsr->pBt==0 ); assert 78899 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->iMemory==0 ); assert 78943 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->list.aMemory==0 ); assert 79009 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->bDone==1 ); assert 79024 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->pThread==0 && pTask->bDone==0 ); assert 79067 ext/sqlite3/libsqlite/sqlite3.c assert( nReader<=SORTER_MAX_MERGE_COUNT ); assert 79119 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->bUseThreads || pSorter->pReader==0 ); assert 79221 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->pUnpacked==(UnpackedRecord*)pFree ); assert 79306 ext/sqlite3/libsqlite/sqlite3.c assert( p->u.iNext<sqlite3MallocSize(pList->aMemory) ); assert 79329 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->pUnpacked->errCode==SQLITE_OK assert 79378 ext/sqlite3/libsqlite/sqlite3.c assert( p->iBufEnd<p->nBuffer ); assert 79446 ext/sqlite3/libsqlite/sqlite3.c assert( pList->szPMA>0 ); assert 79451 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pTask->file.pFd ); assert 79452 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->file.iEof==0 ); assert 79453 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->nPMA==0 ); assert 79485 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pList->pList==0 ); assert 79486 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pTask->file.iEof==iSz ); assert 79571 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->bDone==0 ); assert 79622 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->pThread==0 && pTask->bDone==0 ); assert 79623 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->list.pList==0 ); assert 79624 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->list.aMemory==0 || pSorter->list.aMemory!=0 ); assert 79671 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter ); assert 79704 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pSorter->list.pList==0 ); assert 79763 ext/sqlite3/libsqlite/sqlite3.c assert( pIncr->bEof==0 ); assert 79782 ext/sqlite3/libsqlite/sqlite3.c assert( pIncr->pMerger->pTask==pTask ); assert 79809 ext/sqlite3/libsqlite/sqlite3.c assert( pIncr->bUseThread ); assert 79917 ext/sqlite3/libsqlite/sqlite3.c assert( iOut<pMerger->nTree && iOut>0 ); assert 79938 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->pUnpacked!=0 ); /* from vdbeSortSubtaskMain() */ assert 79999 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_MAX_WORKER_THREADS>0 || eMode==INCRINIT_NORMAL ); assert 80002 ext/sqlite3/libsqlite/sqlite3.c assert( pMerger->pTask==0 ); assert 80067 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_MAX_WORKER_THREADS>0 || eMode==INCRINIT_NORMAL ); assert 80086 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->file2.iEof>0 ); assert 80110 ext/sqlite3/libsqlite/sqlite3.c assert( eMode==INCRINIT_ROOT || eMode==INCRINIT_TASK ); assert 80153 ext/sqlite3/libsqlite/sqlite3.c assert( pIncr->bUseThread==0 || eMode==INCRINIT_TASK ); assert 80303 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->bUseThreads || pSorter->nTask==1 ); assert 80312 ext/sqlite3/libsqlite/sqlite3.c assert( pTask->nPMA>0 || SQLITE_MAX_WORKER_THREADS>0 ); assert 80344 ext/sqlite3/libsqlite/sqlite3.c assert( pMain==0 ); assert 80386 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->bUseThreads==0 || pSorter->nTask>1 ); assert 80405 ext/sqlite3/libsqlite/sqlite3.c assert( pIncr->pTask!=pLast ); assert 80419 ext/sqlite3/libsqlite/sqlite3.c assert( p->pIncr==0 || ( assert 80456 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter ); assert 80475 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->list.pList ); assert 80485 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->pReader==0 ); assert 80502 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->bUsePMA || (pSorter->pReader==0 && pSorter->pMerger==0) ); assert 80504 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->pReader==0 || pSorter->pMerger==0 ); assert 80505 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->bUseThreads==0 || pSorter->pReader ); assert 80506 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->bUseThreads==1 || pSorter->pMerger ); assert 80514 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->pMerger!=0 ); assert 80515 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->pMerger->pTask==(&pSorter->aTask[0]) ); assert 80606 ext/sqlite3/libsqlite/sqlite3.c assert( pSorter->pUnpacked==(UnpackedRecord*)p ); assert 80610 ext/sqlite3/libsqlite/sqlite3.c assert( r2->nField==nKeyCol ); assert 80684 ext/sqlite3/libsqlite/sqlite3.c assert(p->iSize<=p->nBuf); assert 80962 ext/sqlite3/libsqlite/sqlite3.c assert( iOfst+iAmt<=p->endpoint.iOffset ); assert 81007 ext/sqlite3/libsqlite/sqlite3.c assert( iOfst==p->endpoint.iOffset ); assert 81023 ext/sqlite3/libsqlite/sqlite3.c assert( p->pFirst ); assert 81026 ext/sqlite3/libsqlite/sqlite3.c assert( !p->pFirst ); assert 81047 ext/sqlite3/libsqlite/sqlite3.c assert(size==0); assert 81120 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(p) ); assert 81395 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 && iCol<pEList->nExpr ); assert 81397 ext/sqlite3/libsqlite/sqlite3.c assert( pOrig!=0 ); assert 81426 ext/sqlite3/libsqlite/sqlite3.c assert( (pExpr->flags & (EP_Reduced|EP_TokenOnly))==0 ); assert 81528 ext/sqlite3/libsqlite/sqlite3.c assert( pNC ); /* the name context cannot be NULL. */ assert 81529 ext/sqlite3/libsqlite/sqlite3.c assert( zCol ); /* The Z in X.Y.Z cannot be NULL */ assert 81530 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) ); assert 81552 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[i].zName ); assert 81569 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 && pTab->zName!=0 ); assert 81570 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->nCol>0 ); assert 81590 ext/sqlite3/libsqlite/sqlite3.c assert( zTabName!=0 ); assert 81620 ext/sqlite3/libsqlite/sqlite3.c assert( (pMatch->jointype & JT_RIGHT)==0 ); assert 81634 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_DELETE || op==TK_UPDATE || op==TK_INSERT ); assert 81719 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft==0 && pExpr->pRight==0 ); assert 81720 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->x.pList==0 ); assert 81721 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->x.pSelect==0 ); assert 81730 ext/sqlite3/libsqlite/sqlite3.c assert( zTab==0 && zDb==0 ); assert 81791 ext/sqlite3/libsqlite/sqlite3.c assert( pMatch->iCursor==pExpr->iTable ); assert 81804 ext/sqlite3/libsqlite/sqlite3.c assert( pNC!=0 ); assert 81811 ext/sqlite3/libsqlite/sqlite3.c assert( pTopNC!=0 ); assert 81886 ext/sqlite3/libsqlite/sqlite3.c assert( r>=0.0 ); assert 81907 ext/sqlite3/libsqlite/sqlite3.c assert( pNC!=0 ); assert 81909 ext/sqlite3/libsqlite/sqlite3.c assert( pParse==pWalker->pParse ); assert 81918 ext/sqlite3/libsqlite/sqlite3.c assert( pSrcList->a[i].iCursor>=0 && pSrcList->a[i].iCursor<pParse->nTab); assert 81932 ext/sqlite3/libsqlite/sqlite3.c assert( pSrcList && pSrcList->nSrc==1 ); assert 81966 ext/sqlite3/libsqlite/sqlite3.c assert( pRight->op==TK_DOT ); assert 81988 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 82063 ext/sqlite3/libsqlite/sqlite3.c assert( pDef!=0 ); assert 82065 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_FUNC_MINMAX==NC_MinMaxAgg ); assert 82088 ext/sqlite3/libsqlite/sqlite3.c assert( pNC->nRef>=nRef ); assert 82167 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3ExprIsInteger(pE, &i)==0 ); assert 82259 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 82275 ext/sqlite3/libsqlite/sqlite3.c assert(pDup); assert 82292 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->op==TK_COLLATE ); assert 82294 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pLeft==pE ); assert 82345 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); /* sqlite3SelectNew() guarantees this */ assert 82448 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 82473 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Expanded)!=0 ); assert 82474 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Resolved)==0 ); assert 82495 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSrc->nSrc==1 && p->pOrderBy ); assert 82496 ext/sqlite3/libsqlite/sqlite3.c assert( pSub->pPrior && pSub->pOrderBy==0 ); assert 82523 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->isCorrelated==0 && nRef<=0 ); assert 82537 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 82548 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Aggregate)==0 ); assert 82551 ext/sqlite3/libsqlite/sqlite3.c assert( NC_MinMaxAgg==SF_MinMaxAgg ); assert 82752 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 82783 ext/sqlite3/libsqlite/sqlite3.c assert( type==NC_IsCheck || type==NC_PartIdx ); assert 82842 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->flags&EP_xIsSelect ); assert 82847 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 82858 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pTab && j<pExpr->pTab->nCol ); assert 82890 ext/sqlite3/libsqlite/sqlite3.c assert( zC!=0 ); assert 82903 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 82904 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->x.pList->nExpr>0 ); assert 82905 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_FUNCTION ); assert 82908 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_COLLATE || pExpr->op==TK_AS ); assert 82958 ext/sqlite3/libsqlite/sqlite3.c assert( p->x.pList==0 || p->pRight==0 ); assert 83006 ext/sqlite3/libsqlite/sqlite3.c assert( aff1==0 || aff2==0 ); assert 83017 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_EQ || pExpr->op==TK_IN || pExpr->op==TK_LT || assert 83020 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft ); assert 83078 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft ); assert 83264 ext/sqlite3/libsqlite/sqlite3.c assert( iValue>=0 ); assert 83278 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->z!=0 || pToken->n==0 ); assert 83323 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 83425 ext/sqlite3/libsqlite/sqlite3.c assert( pToken ); assert 83432 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pNew, EP_xIsSelect) ); assert 83458 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue|EP_Reduced|EP_TokenOnly) ); assert 83460 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 ); assert 83461 ext/sqlite3/libsqlite/sqlite3.c assert( z[0]!=0 ); assert 83464 ext/sqlite3/libsqlite/sqlite3.c assert( z[0]=='?' ); assert 83527 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_IntValue) || p->u.iValue>=0 ); assert 83530 ext/sqlite3/libsqlite/sqlite3.c assert( p->x.pList==0 || p->pRight==0 ); assert 83592 ext/sqlite3/libsqlite/sqlite3.c assert( flags==EXPRDUP_REDUCE || flags==0 ); /* Only one flag value allowed */ assert 83593 ext/sqlite3/libsqlite/sqlite3.c assert( EXPR_FULLSIZE<=0xfff ); assert 83594 ext/sqlite3/libsqlite/sqlite3.c assert( (0xfff & (EP_Reduced|EP_TokenOnly))==0 ); assert 83598 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_TokenOnly|EP_Reduced) ); assert 83599 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_FromJoin) ); assert 83600 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_MemToken) ); assert 83601 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_NoReduce) ); assert 83605 ext/sqlite3/libsqlite/sqlite3.c assert( p->pRight==0 ); assert 83664 ext/sqlite3/libsqlite/sqlite3.c assert( pzBuffer==0 || isReduced ); assert 83690 ext/sqlite3/libsqlite/sqlite3.c assert( ExprHasProperty(p, EP_Reduced)==0 ); assert 83913 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 ); assert 83942 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr>0 ); assert 83949 ext/sqlite3/libsqlite/sqlite3.c assert( pList->a!=0 ); assert 83978 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 || pParse->db->mallocFailed!=0 ); assert 83981 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr>0 ); assert 83983 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->zName==0 ); assert 84003 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 || db->mallocFailed!=0 ); assert 84006 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr>0 ); assert 84007 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed || pItem->pExpr==pSpan->pExpr ); assert 84038 ext/sqlite3/libsqlite/sqlite3.c assert( pList->a!=0 || pList->nExpr==0 ); assert 84201 ext/sqlite3/libsqlite/sqlite3.c assert( isInit==0 || isInit==1 ); assert 84216 ext/sqlite3/libsqlite/sqlite3.c assert( p->op!=TK_INTEGER || (p->flags & EP_IntValue)!=0 assert 84231 ext/sqlite3/libsqlite/sqlite3.c assert( v!=(-2147483647-1) ); assert 84268 ext/sqlite3/libsqlite/sqlite3.c assert( p->pTab!=0 ); assert 84306 ext/sqlite3/libsqlite/sqlite3.c assert( p->iTable>=0 ); /* p cannot be part of a CHECK constraint */ assert 84350 ext/sqlite3/libsqlite/sqlite3.c assert( p->pGroupBy==0 ); /* Has no GROUP BY clause */ assert 84352 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOffset==0 ); /* No LIMIT means no OFFSET */ assert 84355 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc!=0 ); assert 84360 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pSelect==0 ); /* FROM clause is not a view */ assert 84403 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pIn, EP_xIsSelect) ); assert 84490 ext/sqlite3/libsqlite/sqlite3.c assert( pX->op==TK_IN ); assert 84505 ext/sqlite3/libsqlite/sqlite3.c assert( p ); /* Because of isCandidateForInOpt(p) */ assert 84506 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList!=0 ); /* Because of isCandidateForInOpt(p) */ assert 84507 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList->a[0].pExpr!=0 ); /* Because of isCandidateForInOpt(p) */ assert 84508 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSrc!=0 ); /* Because of isCandidateForInOpt(p) */ assert 84522 ext/sqlite3/libsqlite/sqlite3.c assert(v); assert 84554 ext/sqlite3/libsqlite/sqlite3.c assert( IN_INDEX_INDEX_DESC == IN_INDEX_INDEX_ASC+1 ); assert 84707 ext/sqlite3/libsqlite/sqlite3.c assert( !isRowid ); assert 84710 ext/sqlite3/libsqlite/sqlite3.c assert( (pExpr->iTable&0x0000FFFF)==pExpr->iTable ); assert 84719 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyInfo!=0 ); /* OOM will cause exit after sqlite3Select() */ assert 84720 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 84721 ext/sqlite3/libsqlite/sqlite3.c assert( pEList->nExpr>0 ); assert 84722 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3KeyInfoIsWriteable(pKeyInfo) ); assert 84742 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3KeyInfoIsWriteable(pKeyInfo) ); assert 84804 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_EXISTS || pExpr->op==TK_SELECT ); assert 84806 ext/sqlite3/libsqlite/sqlite3.c assert( ExprHasProperty(pExpr, EP_xIsSelect) ); assert 84880 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); /* OOM detected prior to this routine */ assert 84909 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 84926 ext/sqlite3/libsqlite/sqlite3.c assert( destIfNull==destIfFalse ); assert 84975 ext/sqlite3/libsqlite/sqlite3.c assert( destIfFalse!=destIfNull || rRhsHasNull==0 ); assert 85039 ext/sqlite3/libsqlite/sqlite3.c assert( !sqlite3IsNaN(value) ); /* The new AtoF never returns NaN */ assert 85058 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 ); assert 85065 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 ); assert 85113 ext/sqlite3/libsqlite/sqlite3.c assert( iReg>0 || pParse->nErr || pParse->db->mallocFailed ); assert 85114 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=-1 && iCol<32768 ); /* Finite column numbers */ assert 85129 ext/sqlite3/libsqlite/sqlite3.c assert( p->iReg==0 || p->iTable!=iTab || p->iColumn!=iCol ); assert 85206 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->iCacheLevel>=1 ); assert 85290 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 85333 ext/sqlite3/libsqlite/sqlite3.c assert( iFrom>=iTo+nReg || iFrom+nReg<=iTo ); assert 85388 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 && target<=pParse->nMem ); assert 85390 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->db->mallocFailed ); assert 85404 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->iMem>0 ); assert 85437 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 85443 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 85456 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 85457 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]=='x' || pExpr->u.zToken[0]=='X' ); assert 85458 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[1]=='\'' ); assert 85461 ext/sqlite3/libsqlite/sqlite3.c assert( z[n]=='\'' ); assert 85468 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 85469 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken!=0 ); assert 85470 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]!=0 ); assert 85473 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->u.zToken[0]=='?' assert 85512 ext/sqlite3/libsqlite/sqlite3.c assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt); assert 85513 ext/sqlite3/libsqlite/sqlite3.c assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le); assert 85514 ext/sqlite3/libsqlite/sqlite3.c assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt); assert 85515 ext/sqlite3/libsqlite/sqlite3.c assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge); assert 85516 ext/sqlite3/libsqlite/sqlite3.c assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq); assert 85517 ext/sqlite3/libsqlite/sqlite3.c assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne); assert 85549 ext/sqlite3/libsqlite/sqlite3.c assert( TK_AND==OP_And ); testcase( op==TK_AND ); assert 85550 ext/sqlite3/libsqlite/sqlite3.c assert( TK_OR==OP_Or ); testcase( op==TK_OR ); assert 85551 ext/sqlite3/libsqlite/sqlite3.c assert( TK_PLUS==OP_Add ); testcase( op==TK_PLUS ); assert 85552 ext/sqlite3/libsqlite/sqlite3.c assert( TK_MINUS==OP_Subtract ); testcase( op==TK_MINUS ); assert 85553 ext/sqlite3/libsqlite/sqlite3.c assert( TK_REM==OP_Remainder ); testcase( op==TK_REM ); assert 85554 ext/sqlite3/libsqlite/sqlite3.c assert( TK_BITAND==OP_BitAnd ); testcase( op==TK_BITAND ); assert 85555 ext/sqlite3/libsqlite/sqlite3.c assert( TK_BITOR==OP_BitOr ); testcase( op==TK_BITOR ); assert 85556 ext/sqlite3/libsqlite/sqlite3.c assert( TK_SLASH==OP_Divide ); testcase( op==TK_SLASH ); assert 85557 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LSHIFT==OP_ShiftLeft ); testcase( op==TK_LSHIFT ); assert 85558 ext/sqlite3/libsqlite/sqlite3.c assert( TK_RSHIFT==OP_ShiftRight ); testcase( op==TK_RSHIFT ); assert 85559 ext/sqlite3/libsqlite/sqlite3.c assert( TK_CONCAT==OP_Concat ); testcase( op==TK_CONCAT ); assert 85569 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft ); assert 85574 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 85591 ext/sqlite3/libsqlite/sqlite3.c assert( TK_BITNOT==OP_BitNot ); testcase( op==TK_BITNOT ); assert 85592 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NOT==OP_Not ); testcase( op==TK_NOT ); assert 85602 ext/sqlite3/libsqlite/sqlite3.c assert( TK_ISNULL==OP_IsNull ); testcase( op==TK_ISNULL ); assert 85603 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NOTNULL==OP_NotNull ); testcase( op==TK_NOTNULL ); assert 85617 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 85635 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 85642 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 85657 ext/sqlite3/libsqlite/sqlite3.c assert( nFarg>=2 ); assert 85675 ext/sqlite3/libsqlite/sqlite3.c assert( nFarg>=1 ); assert 85704 ext/sqlite3/libsqlite/sqlite3.c assert( nFarg==1 ); assert 85705 ext/sqlite3/libsqlite/sqlite3.c assert( pFarg->a[0].pExpr!=0 ); assert 85708 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_FUNC_LENGTH==OPFLAG_LENGTHARG ); assert 85709 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_FUNC_TYPEOF==OPFLAG_TYPEOFARG ); assert 85847 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->iTable==0 || pExpr->iTable==1 ); assert 85848 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->iColumn>=-1 && pExpr->iColumn<pTab->nCol ); assert 85849 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->iPKey<0 || pExpr->iColumn!=pTab->iPKey ); assert 85850 ext/sqlite3/libsqlite/sqlite3.c assert( p1>=0 && p1<(pTab->nCol*2+2) ); assert 85896 ext/sqlite3/libsqlite/sqlite3.c default: assert( op==TK_CASE ); { assert 85908 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) && pExpr->x.pList ); assert 85909 ext/sqlite3/libsqlite/sqlite3.c assert(pExpr->x.pList->nExpr > 0); assert 85931 ext/sqlite3/libsqlite/sqlite3.c assert( pTest!=0 ); assert 85952 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed || pParse->nErr>0 assert 85959 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->affinity==OE_Rollback assert 85972 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 86001 ext/sqlite3/libsqlite/sqlite3.c assert( ConstFactorOk(pParse) ); assert 86067 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 && target<=pParse->nMem ); assert 86072 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pVdbe || pParse->db->mallocFailed ); assert 86109 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 ); assert 86110 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_REGISTER ); assert 86400 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); assert 86401 ext/sqlite3/libsqlite/sqlite3.c assert( target>0 ); assert 86402 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pVdbe!=0 ); /* Never gets this far otherwise */ assert 86454 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 86505 ext/sqlite3/libsqlite/sqlite3.c assert( jumpIfNull==SQLITE_JUMPIFNULL || jumpIfNull==0 ); assert 86544 ext/sqlite3/libsqlite/sqlite3.c assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt); assert 86545 ext/sqlite3/libsqlite/sqlite3.c assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le); assert 86546 ext/sqlite3/libsqlite/sqlite3.c assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt); assert 86547 ext/sqlite3/libsqlite/sqlite3.c assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge); assert 86548 ext/sqlite3/libsqlite/sqlite3.c assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq); assert 86549 ext/sqlite3/libsqlite/sqlite3.c assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne); assert 86571 ext/sqlite3/libsqlite/sqlite3.c assert( TK_ISNULL==OP_IsNull ); testcase( op==TK_ISNULL ); assert 86572 ext/sqlite3/libsqlite/sqlite3.c assert( TK_NOTNULL==OP_NotNull ); testcase( op==TK_NOTNULL ); assert 86630 ext/sqlite3/libsqlite/sqlite3.c assert( jumpIfNull==SQLITE_JUMPIFNULL || jumpIfNull==0 ); assert 86656 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_ISNULL || op==OP_NotNull ); assert 86657 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_NOTNULL || op==OP_IsNull ); assert 86658 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_NE || op==OP_Eq ); assert 86659 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_EQ || op==OP_Ne ); assert 86660 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_LT || op==OP_Ge ); assert 86661 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_LE || op==OP_Gt ); assert 86662 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_GT || op==OP_Le ); assert 86663 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_GE || op==OP_Lt ); assert 86700 ext/sqlite3/libsqlite/sqlite3.c assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt); assert 86701 ext/sqlite3/libsqlite/sqlite3.c assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le); assert 86702 ext/sqlite3/libsqlite/sqlite3.c assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt); assert 86703 ext/sqlite3/libsqlite/sqlite3.c assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge); assert 86704 ext/sqlite3/libsqlite/sqlite3.c assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq); assert 86705 ext/sqlite3/libsqlite/sqlite3.c assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne); assert 86948 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_AGG_FUNCTION ); assert 87014 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) ); assert 87092 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 87096 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert 87109 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) ); assert 87142 ext/sqlite3/libsqlite/sqlite3.c assert( pNC->pSrcList!=0 ); assert 87202 ext/sqlite3/libsqlite/sqlite3.c assert( !usedAsColumnCache(pParse, i, i+n-1) ); assert 87304 ext/sqlite3/libsqlite/sqlite3.c assert( len>0 ); assert 87428 ext/sqlite3/libsqlite/sqlite3.c assert( len>0 ); assert 87571 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 87573 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 87579 ext/sqlite3/libsqlite/sqlite3.c assert( iTrigDb==iDb || iTrigDb==1 ); assert 87643 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->nSrc==1 ); assert 87644 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 87867 ext/sqlite3/libsqlite/sqlite3.c assert( pNew ); assert 87869 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 87876 ext/sqlite3/libsqlite/sqlite3.c assert( pTab ); assert 87923 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || rc==SQLITE_NOMEM ); assert 87990 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTable==0 ); assert 87991 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 88012 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->addColOffset>0 ); assert 88027 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nCol>0 ); assert 88029 ext/sqlite3/libsqlite/sqlite3.c assert( nAlloc>=pNew->nCol && nAlloc%8==0 && nAlloc-pNew->nCol<8 ); assert 88264 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 88265 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeDb(v)==db ); assert 88307 ext/sqlite3/libsqlite/sqlite3.c assert( i<ArraySize(aTable) ); assert 88363 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 88375 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 88391 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 88473 ext/sqlite3/libsqlite/sqlite3.c assert( nCol>0 ); assert 88476 ext/sqlite3/libsqlite/sqlite3.c assert( nKeyCol<=nCol ); assert 88477 ext/sqlite3/libsqlite/sqlite3.c assert( nKeyCol>0 ); assert 88523 ext/sqlite3/libsqlite/sqlite3.c assert( (pSpace - (u8*)p)==n ); assert 88569 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->iCol==pOld->iCol ); assert 88594 ext/sqlite3/libsqlite/sqlite3.c assert( pOld->isPSample==0 && pNew->isPSample==0 ); assert 88595 ext/sqlite3/libsqlite/sqlite3.c assert( IsStat4 || (pNew->iCol==0 && pOld->iCol==0) ); assert 88617 ext/sqlite3/libsqlite/sqlite3.c assert( IsStat4 || nEqZero==0 ); assert 88622 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->anEq[pNew->iCol]>0 ); assert 88633 ext/sqlite3/libsqlite/sqlite3.c assert( pOld->iCol>pNew->iCol ); assert 88634 ext/sqlite3/libsqlite/sqlite3.c assert( sampleIsBetter(p, pNew, pOld) ); assert 88668 ext/sqlite3/libsqlite/sqlite3.c assert( p->nSample==0 assert 88691 ext/sqlite3/libsqlite/sqlite3.c assert( iMin>=0 ); assert 88782 ext/sqlite3/libsqlite/sqlite3.c assert( p->nCol>0 ); assert 88783 ext/sqlite3/libsqlite/sqlite3.c assert( iChng<p->nCol ); assert 88879 ext/sqlite3/libsqlite/sqlite3.c assert( argc==2 ); assert 88880 ext/sqlite3/libsqlite/sqlite3.c assert( eCall==STAT_GET_STAT1 || eCall==STAT_GET_NEQ assert 88886 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 88926 ext/sqlite3/libsqlite/sqlite3.c assert( p->current.anEq[i] ); assert 88928 ext/sqlite3/libsqlite/sqlite3.c assert( z[0]=='\0' && z>zRet ); assert 88950 ext/sqlite3/libsqlite/sqlite3.c assert( p->iGet<p->nSample ); assert 88974 ext/sqlite3/libsqlite/sqlite3.c assert( z[0]=='\0' && z>zRet ); assert 88999 ext/sqlite3/libsqlite/sqlite3.c assert( regOut!=regStat4 && regOut!=regStat4+1 ); assert 89003 ext/sqlite3/libsqlite/sqlite3.c assert( iParam==STAT_GET_STAT1 ); assert 89058 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 89060 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 89061 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 89142 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) ); assert 89241 ext/sqlite3/libsqlite/sqlite3.c assert( regRowid==(regStat4+2) ); assert 89257 ext/sqlite3/libsqlite/sqlite3.c assert( regChng==(regStat4+1) ); assert 89265 ext/sqlite3/libsqlite/sqlite3.c assert( "BBB"[0]==SQLITE_AFF_TEXT ); assert 89329 ext/sqlite3/libsqlite/sqlite3.c assert( "BBB"[0]==SQLITE_AFF_TEXT ); assert 89367 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 89384 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 89385 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 89423 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(pParse->db) ); assert 89428 ext/sqlite3/libsqlite/sqlite3.c assert( pName2!=0 || pName1==0 ); assert 89501 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 ); assert 89513 ext/sqlite3/libsqlite/sqlite3.c assert( aOut==0 ); assert 89515 ext/sqlite3/libsqlite/sqlite3.c assert( aLog!=0 ); assert 89521 ext/sqlite3/libsqlite/sqlite3.c assert( pIndex!=0 ); { assert 89563 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 ); assert 89738 ext/sqlite3/libsqlite/sqlite3.c assert( db->lookaside.bEnabled==0 ); assert 89761 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx==0 || bStat3 || pIdx->nSample==0 ); assert 89766 ext/sqlite3/libsqlite/sqlite3.c assert( !HasRowid(pIdx->pTable) || pIdx->nColumn==pIdx->nKeyCol+1 ); assert 89790 ext/sqlite3/libsqlite/sqlite3.c assert( ((u8*)pSpace)-nByte==(u8*)(pIdx->aSample) ); assert 89852 ext/sqlite3/libsqlite/sqlite3.c assert( db->lookaside.bEnabled==0 ); assert 89899 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 89900 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pBt!=0 ); assert 89903 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 90056 ext/sqlite3/libsqlite/sqlite3.c assert( z && zName ); assert 90090 ext/sqlite3/libsqlite/sqlite3.c assert( pVfs ); assert 90178 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=2 ); assert 90315 ext/sqlite3/libsqlite/sqlite3.c assert( v || db->mallocFailed ); assert 90318 ext/sqlite3/libsqlite/sqlite3.c assert( pFunc->nArg==-1 || (pFunc->nArg&0xff)==pFunc->nArg ); assert 90392 ext/sqlite3/libsqlite/sqlite3.c assert( db->nDb>iDb ); assert 90703 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER ); assert 90707 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList ); assert 90719 ext/sqlite3/libsqlite/sqlite3.c assert( iCol<pTab->nCol ); assert 90722 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->iPKey<pTab->nCol ); assert 90727 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 90784 ext/sqlite3/libsqlite/sqlite3.c assert( pParse ); assert 90872 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 90906 ext/sqlite3/libsqlite/sqlite3.c assert( pVdbe!=0 ); /* sqlite3GetVdbe cannot fail: VDBE already allocated */ assert 90946 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pToplevel==0 ); assert 90958 ext/sqlite3/libsqlite/sqlite3.c assert( !pParse->isMultiWrite assert 90985 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeGetOp(v, 0)->opcode==OP_Init ); assert 91035 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->iCacheLevel==0 ); /* Disables and re-enables match */ assert 91073 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nested<10 ); /* Nesting should only be of limited depth */ assert 91117 ext/sqlite3/libsqlite/sqlite3.c assert( zDatabase!=0 || sqlite3BtreeHoldsAllMutexes(db) ); assert 91128 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); assert 91193 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSchema==0 || p->zDatabase==0 ); assert 91219 ext/sqlite3/libsqlite/sqlite3.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); assert 91223 ext/sqlite3/libsqlite/sqlite3.c assert( pSchema ); assert 91225 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); assert 91258 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 91316 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 91320 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 91321 ext/sqlite3/libsqlite/sqlite3.c assert( pDb->pSchema!=0 ); assert 91330 ext/sqlite3/libsqlite/sqlite3.c assert( pDb->pSchema!=0 ); assert 91369 ext/sqlite3/libsqlite/sqlite3.c assert( pTable!=0 ); assert 91401 ext/sqlite3/libsqlite/sqlite3.c assert( !pTable || pTable->nRef>0 ); assert 91416 ext/sqlite3/libsqlite/sqlite3.c assert( pIndex->pSchema==pTable->pSchema ); assert 91422 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); assert 91423 ext/sqlite3/libsqlite/sqlite3.c assert( pOld==pIndex || pOld==0 ); assert 91446 ext/sqlite3/libsqlite/sqlite3.c assert( nLookaside==0 || nLookaside==db->lookaside.nOut ); assert 91457 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 91458 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 91459 ext/sqlite3/libsqlite/sqlite3.c assert( zTabName ); assert 91460 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 91578 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.iDb==0 || db->init.busy ); assert 91690 ext/sqlite3/libsqlite/sqlite3.c assert( (isTemp & 1)==isTemp ); assert 91733 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy || CORRUPT_DB ); assert 91755 ext/sqlite3/libsqlite/sqlite3.c pTable->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) ); assert 91756 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTable==0 ); assert 91765 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 92022 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->zType==0 || CORRUPT_DB ); assert 92122 ext/sqlite3/libsqlite/sqlite3.c assert( autoInc==0 || autoInc==1 ); assert 92198 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->nKeyCol==1 ); assert 92263 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 92370 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->affinity-SQLITE_AFF_NONE >= 0 ); assert 92371 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->affinity-SQLITE_AFF_NONE < ArraySize(azType) ); assert 92380 ext/sqlite3/libsqlite/sqlite3.c assert( pCol->affinity==SQLITE_AFF_NONE assert 92384 ext/sqlite3/libsqlite/sqlite3.c assert( k<=n ); assert 92398 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->isResized==0 ); assert 92438 ext/sqlite3/libsqlite/sqlite3.c assert( x<pIdx->pTable->nCol ); assert 92487 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 92495 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 92509 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTable==pTab ); assert 92531 ext/sqlite3/libsqlite/sqlite3.c assert( pPk!=0 ); assert 92568 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->nColumn>=pIdx->nKeyCol+n ); assert 92569 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->nColumn>=j ); assert 92578 ext/sqlite3/libsqlite/sqlite3.c assert( j<pPk->nColumn ); assert 92584 ext/sqlite3/libsqlite/sqlite3.c assert( pPk->nColumn==j ); assert 92585 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->nCol==j ); assert 92629 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy || !pSelect ); assert 92722 ext/sqlite3/libsqlite/sqlite3.c assert(pParse->nTab==1); assert 92732 ext/sqlite3/libsqlite/sqlite3.c assert( p->aCol==0 ); assert 92778 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 92799 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 92802 ext/sqlite3/libsqlite/sqlite3.c assert( p==pOld ); /* Malloc must have failed inside HashInsert() */ assert 92813 ext/sqlite3/libsqlite/sqlite3.c assert( !pSelect && pCons && pEnd ); assert 92913 ext/sqlite3/libsqlite/sqlite3.c assert( pTable ); assert 92947 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->nCol>=0 ); assert 92956 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->pSelect ); assert 92975 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->aCol==0 ); assert 92981 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pTable->pSchema) ); assert 93002 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, idx, 0) ); assert 93041 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 93131 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->pSchema==pTab->pSchema ); assert 93140 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<pParse->db->nDb ); assert 93182 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 93197 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->pSchema==pTab->pSchema || assert 93255 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 ); assert 93256 ext/sqlite3/libsqlite/sqlite3.c assert( pName->nSrc==1 ); assert 93267 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 93378 ext/sqlite3/libsqlite/sqlite3.c assert( pTo!=0 ); assert 93449 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); assert 93458 ext/sqlite3/libsqlite/sqlite3.c assert( pNextTo->pPrevTo==0 ); assert 93487 ext/sqlite3/libsqlite/sqlite3.c assert( isDeferred==0 || isDeferred==1 ); /* EV: R-30323-21917 */ assert 93559 ext/sqlite3/libsqlite/sqlite3.c assert( pKey!=0 || db->mallocFailed || pParse->nErr ); assert 93681 ext/sqlite3/libsqlite/sqlite3.c assert( pName1 && pName2 ); assert 93684 ext/sqlite3/libsqlite/sqlite3.c assert( pName && pName->z ); assert 93703 ext/sqlite3/libsqlite/sqlite3.c assert(0); assert 93706 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed==0 || pTab==0 ); assert 93716 ext/sqlite3/libsqlite/sqlite3.c assert( pName==0 ); assert 93717 ext/sqlite3/libsqlite/sqlite3.c assert( pStart==0 ); assert 93724 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 93725 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 ); assert 93764 ext/sqlite3/libsqlite/sqlite3.c assert( pName->z!=0 ); assert 93778 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy ); assert 93827 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_COLLATE ); assert 93842 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pIndex->aiRowLogEst) ); assert 93843 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(pIndex->azColl) ); assert 93858 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 93892 ext/sqlite3/libsqlite/sqlite3.c assert( j<=0x7fff ); assert 93896 ext/sqlite3/libsqlite/sqlite3.c assert( pListItem->pExpr->op==TK_COLLATE ); assert 93899 ext/sqlite3/libsqlite/sqlite3.c assert( nExtra>=nColl ); assert 93928 ext/sqlite3/libsqlite/sqlite3.c assert( i==pIndex->nColumn ); assert 93961 ext/sqlite3/libsqlite/sqlite3.c assert( IsUniqueIndex(pIdx) ); assert 93962 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->idxType!=SQLITE_IDXTYPE_APPDEF ); assert 93963 ext/sqlite3/libsqlite/sqlite3.c assert( IsUniqueIndex(pIndex) ); assert 94002 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) ); assert 94006 ext/sqlite3/libsqlite/sqlite3.c assert( p==pIndex ); /* Malloc must have failed */ assert 94144 ext/sqlite3/libsqlite/sqlite3.c if( a[0]<33 ) a[0] = 33; assert( 33==sqlite3LogEst(10) ); assert 94150 ext/sqlite3/libsqlite/sqlite3.c a[i] = 23; assert( 23==sqlite3LogEst(5) ); assert 94153 ext/sqlite3/libsqlite/sqlite3.c assert( 0==sqlite3LogEst(1) ); assert 94167 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr==0 ); /* Never called with prior errors */ assert 94171 ext/sqlite3/libsqlite/sqlite3.c assert( pName->nSrc==1 ); assert 94348 ext/sqlite3/libsqlite/sqlite3.c assert( iStart>=0 ); assert 94349 ext/sqlite3/libsqlite/sqlite3.c assert( nExtra>=1 ); assert 94350 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc!=0 ); assert 94351 ext/sqlite3/libsqlite/sqlite3.c assert( iStart<=pSrc->nSrc ); assert 94361 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 94428 ext/sqlite3/libsqlite/sqlite3.c assert( pDatabase==0 || pTable!=0 ); /* Cannot have C without B */ assert 94459 ext/sqlite3/libsqlite/sqlite3.c assert(pList || pParse->db->mallocFailed ); assert 94530 ext/sqlite3/libsqlite/sqlite3.c assert( pAlias!=0 ); assert 94540 ext/sqlite3/libsqlite/sqlite3.c assert( p==0 ); assert 94552 ext/sqlite3/libsqlite/sqlite3.c assert( pIndexedBy!=0 ); assert 94555 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->notIndexed==0 && pItem->zIndex==0 ); assert 94599 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 94601 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 ); assert 94623 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 94624 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->db!=0 ); assert 94640 ext/sqlite3/libsqlite/sqlite3.c assert( pParse!=0 ); assert 94641 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->db!=0 ); assert 94661 ext/sqlite3/libsqlite/sqlite3.c assert( !SAVEPOINT_BEGIN && SAVEPOINT_RELEASE==1 && SAVEPOINT_ROLLBACK==2 ); assert 94695 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[1].pSchema ); assert 94714 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 94715 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pBt!=0 || iDb==1 ); assert 94716 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<SQLITE_MAX_ATTACHED+2 ); assert 94717 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 94809 ext/sqlite3/libsqlite/sqlite3.c assert( (errCode&0xff)==SQLITE_CONSTRAINT ); assert 94875 ext/sqlite3/libsqlite/sqlite3.c assert( zColl!=0 ); assert 94878 ext/sqlite3/libsqlite/sqlite3.c assert( z!=0 || pIndex->aiColumn[i]<0 ); assert 94918 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); /* Needed for schema access */ assert 94920 ext/sqlite3/libsqlite/sqlite3.c assert( pDb!=0 ); assert 94964 ext/sqlite3/libsqlite/sqlite3.c assert( pName1->z ); assert 95019 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3KeyInfoIsWriteable(pKey) ); assert 95022 ext/sqlite3/libsqlite/sqlite3.c assert( zColl!=0 ); assert 95069 ext/sqlite3/libsqlite/sqlite3.c assert( zName!=0 || pNew==0 ); assert 95070 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed==0 || pNew==0 ); assert 95129 ext/sqlite3/libsqlite/sqlite3.c assert( !db->xCollNeeded || !db->xCollNeeded16 ); assert 95210 ext/sqlite3/libsqlite/sqlite3.c assert( !p || p->xCmp ); assert 95236 ext/sqlite3/libsqlite/sqlite3.c assert( p==pColl ); assert 95283 ext/sqlite3/libsqlite/sqlite3.c assert( pDel==0 || pDel==pColl ); assert 95321 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_UTF8==1 && SQLITE_UTF16LE==2 && SQLITE_UTF16BE==3 ); assert 95322 ext/sqlite3/libsqlite/sqlite3.c assert( enc>=SQLITE_UTF8 && enc<=SQLITE_UTF16BE ); assert 95419 ext/sqlite3/libsqlite/sqlite3.c assert( pOther!=pDef && pOther->pNext!=pDef ); assert 95463 ext/sqlite3/libsqlite/sqlite3.c assert( nArg>=(-2) ); assert 95464 ext/sqlite3/libsqlite/sqlite3.c assert( nArg>=(-1) || createFlag==0 ); assert 95618 ext/sqlite3/libsqlite/sqlite3.c assert( pItem && pSrc->nSrc==1 ); assert 95687 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->nSrc==1 ); assert 95690 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->a[0].pOn==0 ); assert 95691 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->a[0].pUsing==0 ); assert 95737 ext/sqlite3/libsqlite/sqlite3.c assert( pOffset == 0 ); assert 95847 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 95882 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 95885 ext/sqlite3/libsqlite/sqlite3.c assert( rcauth==SQLITE_OK || rcauth==SQLITE_DENY || rcauth==SQLITE_IGNORE ); assert 95889 ext/sqlite3/libsqlite/sqlite3.c assert(!isView || pTrigger); assert 95893 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 95949 ext/sqlite3/libsqlite/sqlite3.c assert( !isView ); assert 95956 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->pSchema==pTab->pSchema ); assert 95972 ext/sqlite3/libsqlite/sqlite3.c assert( pPk!=0 ); assert 96056 ext/sqlite3/libsqlite/sqlite3.c assert( pPk || IsVirtual(pTab) || iDataCur==iTabCur ); assert 96057 ext/sqlite3/libsqlite/sqlite3.c assert( pPk || IsVirtual(pTab) || iIdxCur==iDataCur+1 ); assert 96065 ext/sqlite3/libsqlite/sqlite3.c assert( nKey==nPk ); /* OP_Found will use an unpacked key */ assert 96066 ext/sqlite3/libsqlite/sqlite3.c assert( !IsVirtual(pTab) ); assert 96068 ext/sqlite3/libsqlite/sqlite3.c assert( pPk!=0 || pTab->pSelect!=0 ); assert 96075 ext/sqlite3/libsqlite/sqlite3.c assert( nKey==0 ); /* OP_Found will use a composite key */ assert 96079 ext/sqlite3/libsqlite/sqlite3.c assert( nKey==1 ); assert 96191 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 96320 ext/sqlite3/libsqlite/sqlite3.c assert( iIdxCur+i!=iDataCur || pPk==pIdx ); assert 96450 ext/sqlite3/libsqlite/sqlite3.c assert( context->pVdbe!=0 ); assert 96452 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_CollSeq ); assert 96453 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_COLLSEQ ); assert 96478 ext/sqlite3/libsqlite/sqlite3.c assert( argc>1 ); assert 96481 ext/sqlite3/libsqlite/sqlite3.c assert( pColl ); assert 96482 ext/sqlite3/libsqlite/sqlite3.c assert( mask==-1 || mask==0 ); assert 96526 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 96560 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 96697 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 || argc==2 ); assert 96709 ext/sqlite3/libsqlite/sqlite3.c assert( len==sqlite3_value_bytes(argv[0]) ); assert 96756 ext/sqlite3/libsqlite/sqlite3.c assert( p1>=0 && p2>=0 ); assert 96784 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || argc==2 ); assert 96824 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 96850 ext/sqlite3/libsqlite/sqlite3.c assert( z2==(char*)sqlite3_value_text(argv[0]) ); assert 96869 ext/sqlite3/libsqlite/sqlite3.c assert( z2==(char*)sqlite3_value_text(argv[0]) ); assert 96927 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97098 ext/sqlite3/libsqlite/sqlite3.c assert( matchOther<0x80 ); /* '[' is a single-byte character */ assert 97238 ext/sqlite3/libsqlite/sqlite3.c assert( zB==sqlite3_value_text(argv[0]) ); /* Encoding did not change */ assert 97338 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97362 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97387 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97410 ext/sqlite3/libsqlite/sqlite3.c assert( zBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */ assert 97451 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(argv[0])==SQLITE_NULL ); assert 97526 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97530 ext/sqlite3/libsqlite/sqlite3.c assert( pBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */ assert 97553 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97587 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 ); assert 97592 ext/sqlite3/libsqlite/sqlite3.c assert( zStr==sqlite3_value_text(argv[0]) ); /* No encoding change */ assert 97595 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(argv[1])==SQLITE_NULL assert 97600 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(argv[1])!=SQLITE_NULL ); assert 97605 ext/sqlite3/libsqlite/sqlite3.c assert( zPattern==sqlite3_value_text(argv[1]) ); /* No encoding change */ assert 97609 ext/sqlite3/libsqlite/sqlite3.c assert( zRep==sqlite3_value_text(argv[2]) ); assert 97611 ext/sqlite3/libsqlite/sqlite3.c assert( nOut<SQLITE_MAX_LENGTH ); assert 97643 ext/sqlite3/libsqlite/sqlite3.c assert( j+nStr-i+1==nOut ); assert 97646 ext/sqlite3/libsqlite/sqlite3.c assert( j<=nOut ); assert 97675 ext/sqlite3/libsqlite/sqlite3.c assert( zIn==sqlite3_value_text(argv[0]) ); assert 97765 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97845 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 ); assert 97914 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || p==0 || p->n>0x7fffffff assert 97988 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || argc==2 ); assert 98033 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM || rc==SQLITE_OK ); assert 98092 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_xIsSelect) ); assert 98105 ext/sqlite3/libsqlite/sqlite3.c assert( (char*)&likeInfoAlt == (char*)&likeInfoAlt.matchAll ); assert 98106 ext/sqlite3/libsqlite/sqlite3.c assert( &((char*)&likeInfoAlt)[1] == (char*)&likeInfoAlt.matchOne ); assert 98107 ext/sqlite3/libsqlite/sqlite3.c assert( &((char*)&likeInfoAlt)[2] == (char*)&likeInfoAlt.matchSet ); assert 98423 ext/sqlite3/libsqlite/sqlite3.c assert( ppIdx && *ppIdx==0 ); assert 98424 ext/sqlite3/libsqlite/sqlite3.c assert( !paiCol || *paiCol==0 ); assert 98425 ext/sqlite3/libsqlite/sqlite3.c assert( pParse ); assert 98448 ext/sqlite3/libsqlite/sqlite3.c assert( nCol>1 ); assert 98634 ext/sqlite3/libsqlite/sqlite3.c assert( aiCol[i]!=pTab->iPKey ); assert 98662 ext/sqlite3/libsqlite/sqlite3.c assert( nIncr==1 ); assert 98782 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx==0 || pIdx->pTable==pTab ); assert 98783 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx==0 || pIdx->nKeyCol==pFKey->nCol ); assert 98784 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx!=0 || pFKey->nCol==1 ); assert 98785 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx!=0 || HasRowid(pTab) ); assert 98810 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 ); assert 98839 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx!=0 ); assert 98934 ext/sqlite3/libsqlite/sqlite3.c assert( v ); /* VDBE has already been allocated */ assert 99093 ext/sqlite3/libsqlite/sqlite3.c assert( (regOld==0)!=(regNew==0) ); assert 99129 ext/sqlite3/libsqlite/sqlite3.c assert( isIgnoreErrors==0 || (regOld!=0 && regNew==0) ); assert 99149 ext/sqlite3/libsqlite/sqlite3.c assert( pFKey->nCol==1 || (aiFree && pIdx) ); assert 99215 ext/sqlite3/libsqlite/sqlite3.c assert( regOld==0 && regNew!=0 ); assert 99225 ext/sqlite3/libsqlite/sqlite3.c assert( aiCol || pFKey->nCol==1 ); assert 99402 ext/sqlite3/libsqlite/sqlite3.c assert( aiCol || pFKey->nCol==1 ); assert 99413 ext/sqlite3/libsqlite/sqlite3.c assert( iFromCol>=0 ); assert 99414 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx!=0 || (pTab->iPKey>=0 && pTab->iPKey<pTab->nCol) ); assert 99532 ext/sqlite3/libsqlite/sqlite3.c assert( pStep!=0 ); assert 99596 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pTab->pSchema) ); assert 99616 ext/sqlite3/libsqlite/sqlite3.c assert( pFKey->isDeferred==0 || pFKey->isDeferred==1 ); assert 99664 ext/sqlite3/libsqlite/sqlite3.c assert( !IsVirtual(pTab) ); assert 99666 ext/sqlite3/libsqlite/sqlite3.c assert( opcode==OP_OpenWrite || opcode==OP_OpenRead ); assert 99674 ext/sqlite3/libsqlite/sqlite3.c assert( pPk!=0 ); assert 99675 ext/sqlite3/libsqlite/sqlite3.c assert( pPk->tnum=pTab->tnum ); assert 99795 ext/sqlite3/libsqlite/sqlite3.c assert( pOp!=0 ); assert 99810 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4.pVtab!=0 ); assert 99811 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->p4type==P4_VTAB ); assert 99882 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pTriggerTab==0 ); assert 99883 ext/sqlite3/libsqlite/sqlite3.c assert( pParse==sqlite3ParseToplevel(pParse) ); assert 99885 ext/sqlite3/libsqlite/sqlite3.c assert( v ); /* We failed long ago if this is not so */ assert 99889 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); assert 99933 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 99941 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) ); assert 100135 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 100143 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 100166 ext/sqlite3/libsqlite/sqlite3.c assert( (pTrigger && tmask) || (pTrigger==0 && tmask==0) ); assert 100199 ext/sqlite3/libsqlite/sqlite3.c assert( !pTrigger ); assert 100200 ext/sqlite3/libsqlite/sqlite3.c assert( pList==0 ); assert 100243 ext/sqlite3/libsqlite/sqlite3.c ipkColumn = i; assert( !withoutRowid ); assert 100285 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect->pEList ); assert 100337 ext/sqlite3/libsqlite/sqlite3.c assert( useTempTable==0 ); assert 100436 ext/sqlite3/libsqlite/sqlite3.c assert( !withoutRowid ); assert 100440 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect==0 ); /* Otherwise useTempTable is true */ assert 100452 ext/sqlite3/libsqlite/sqlite3.c assert( !IsVirtual(pTab) ); assert 100469 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect==0 ); /* Otherwise useTempTable is true */ assert 100555 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(pTab) ); assert 100792 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 100793 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pSelect==0 ); /* This table is not a VIEW */ assert 100828 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Rollback || onError==OE_Abort || onError==OE_Fail assert 100850 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Replace ); assert 101121 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Rollback || onError==OE_Abort || onError==OE_Fail assert 101136 ext/sqlite3/libsqlite/sqlite3.c assert( onError==OE_Replace ); assert 101189 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 101190 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pSelect==0 ); /* This table is not a VIEW */ assert 101202 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nested==0 ); assert 101268 ext/sqlite3/libsqlite/sqlite3.c assert( op==OP_OpenRead || op==OP_OpenWrite ); assert 101277 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 101289 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->pSchema==pTab->pSchema ); assert 101343 ext/sqlite3/libsqlite/sqlite3.c assert( pDest && pSrc ); assert 101344 ext/sqlite3/libsqlite/sqlite3.c assert( pDest->pTable!=pSrc->pTable ); assert 101439 ext/sqlite3/libsqlite/sqlite3.c assert(pSelect->pSrc); /* allocated even if there is no FROM clause */ assert 101460 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect->pOffset==0 ); /* Must be so if pLimit==0 */ assert 101468 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 101472 ext/sqlite3/libsqlite/sqlite3.c assert( pEList->a[0].pExpr ); assert 101574 ext/sqlite3/libsqlite/sqlite3.c assert( HasRowid(pDest) || destHasUniqueIdx ); assert 101615 ext/sqlite3/libsqlite/sqlite3.c assert( (pDest->tabFlags & TF_Autoincrement)==0 ); assert 101633 ext/sqlite3/libsqlite/sqlite3.c assert( pSrcIdx ); assert 101660 ext/sqlite3/libsqlite/sqlite3.c assert( zColl!=0 ); assert 101743 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pStmt==0 ); assert 101773 ext/sqlite3/libsqlite/sqlite3.c assert( azCols[i]!=0 ); assert 101830 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&db->errMask)==rc ); assert 102934 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 103033 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xff)==rc ); assert 103778 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_FullFSync==PAGER_FULLFSYNC ); assert 103779 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CkptFullFSync==PAGER_CKPT_FULLFSYNC ); assert 103780 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CacheSpill==PAGER_CACHESPILL ); assert 103781 ext/sqlite3/libsqlite/sqlite3.c assert( (PAGER_FULLFSYNC | PAGER_CKPT_FULLFSYNC | PAGER_CACHESPILL) assert 103783 ext/sqlite3/libsqlite/sqlite3.c assert( (pDb->safety_level & PAGER_SYNCHRONOUS_MASK)==pDb->safety_level ); assert 103810 ext/sqlite3/libsqlite/sqlite3.c assert( action==OE_None ); break; assert 103829 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_DELETE==0 ); assert 103830 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_PERSIST==1 ); assert 103831 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_OFF==2 ); assert 103832 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_TRUNCATE==3 ); assert 103833 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_MEMORY==4 ); assert 103834 ext/sqlite3/libsqlite/sqlite3.c assert( PAGER_JOURNALMODE_WAL==5 ); assert 103835 ext/sqlite3/libsqlite/sqlite3.c assert( eMode>=0 && eMode<=ArraySize(azModeName) ); assert 103901 ext/sqlite3/libsqlite/sqlite3.c assert( pId2 ); assert 104018 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 104038 ext/sqlite3/libsqlite/sqlite3.c assert( pBt!=0 ); assert 104065 ext/sqlite3/libsqlite/sqlite3.c assert( pBt!=0 ); assert 104139 ext/sqlite3/libsqlite/sqlite3.c assert(pDb==&db->aDb[0]); assert 104150 ext/sqlite3/libsqlite/sqlite3.c assert( eMode==PAGER_LOCKINGMODE_NORMAL assert 104235 ext/sqlite3/libsqlite/sqlite3.c assert( pBt!=0 ); assert 104240 ext/sqlite3/libsqlite/sqlite3.c assert( eAuto>=0 && eAuto<=2 ); assert 104312 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 104340 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 104761 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[i].zName!=0 ); assert 104897 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nErr>0 || pFK==0 ); assert 104907 ext/sqlite3/libsqlite/sqlite3.c assert( x==0 ); assert 104912 ext/sqlite3/libsqlite/sqlite3.c assert( iKey>=0 && iKey<pTab->nCol ); assert 105011 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 105012 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==0 || pId2->z ); assert 105050 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, i, 0) ); assert 105161 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 && iCol<pTab->nCol ); assert 105253 ext/sqlite3/libsqlite/sqlite3.c assert( encnames[SQLITE_UTF8].enc==SQLITE_UTF8 ); assert 105254 ext/sqlite3/libsqlite/sqlite3.c assert( encnames[SQLITE_UTF16LE].enc==SQLITE_UTF16LE ); assert 105255 ext/sqlite3/libsqlite/sqlite3.c assert( encnames[SQLITE_UTF16BE].enc==SQLITE_UTF16BE ); assert 105439 ext/sqlite3/libsqlite/sqlite3.c assert( pPragma->ePragTyp==PragTyp_BUSY_TIMEOUT ); assert 105629 ext/sqlite3/libsqlite/sqlite3.c assert( argc==3 ); assert 105631 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 105638 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 105652 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy ); assert 105658 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xFF)==(rcp&0xFF) ); assert 105662 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==1 ); assert 105747 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 105748 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb[iDb].pSchema ); assert 105749 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 105750 ext/sqlite3/libsqlite/sqlite3.c assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); assert 105895 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy ); assert 105968 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 105969 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(db->aDb[0].pBt) ); assert 105970 ext/sqlite3/libsqlite/sqlite3.c assert( db->init.busy==0 ); assert 105987 ext/sqlite3/libsqlite/sqlite3.c assert( db->nDb>1 ); assert 106011 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 106034 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->checkSchema ); assert 106035 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 106057 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 106090 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 106097 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<db->nDb ); assert 106137 ext/sqlite3/libsqlite/sqlite3.c assert( ppStmt && *ppStmt==0 ); assert 106138 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 106139 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 106167 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsMutex(pBt) ); assert 106203 ext/sqlite3/libsqlite/sqlite3.c assert( 0==pParse->nQueryLoop ); assert 106249 ext/sqlite3/libsqlite/sqlite3.c assert(!(*ppStmt)); assert 106273 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&db->errMask)==rc ); assert 106303 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || *ppStmt==0 ); assert 106321 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(sqlite3VdbeDb(p)->mutex) ); assert 106323 ext/sqlite3/libsqlite/sqlite3.c assert( zSql!=0 ); /* Reprepare only called for prepare_v2() statements */ assert 106325 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 106331 ext/sqlite3/libsqlite/sqlite3.c assert( pNew==0 ); assert 106334 ext/sqlite3/libsqlite/sqlite3.c assert( pNew!=0 ); assert 106361 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 106373 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 106449 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 106461 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); /* VERIFY: F13021 */ assert 106582 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 106600 ext/sqlite3/libsqlite/sqlite3.c assert( pOffset==0 || pLimit!=0 || pParse->nErr>0 || db->mallocFailed!=0 ); assert 106607 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->pSrc!=0 || pParse->nErr>0 ); assert 106609 ext/sqlite3/libsqlite/sqlite3.c assert( pNew!=&standin ); assert 106700 ext/sqlite3/libsqlite/sqlite3.c assert( pB!=0 ); assert 106745 ext/sqlite3/libsqlite/sqlite3.c assert( (piTab==0)==(piCol==0) ); /* Both or neither are NULL */ assert 106785 ext/sqlite3/libsqlite/sqlite3.c assert( iLeft<iRight ); assert 106786 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->nSrc>iRight ); assert 106787 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->a[iLeft].pTab ); assert 106788 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->a[iRight].pTab ); assert 106796 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pEq, EP_TokenOnly|EP_Reduced) ); assert 106832 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(p, EP_TokenOnly|EP_Reduced) ); assert 106971 ext/sqlite3/libsqlite/sqlite3.c assert( bSeq==0 || bSeq==1 ); assert 106973 ext/sqlite3/libsqlite/sqlite3.c assert( nPrefixReg==nExpr+bSeq ); assert 107143 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 107144 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 107148 ext/sqlite3/libsqlite/sqlite3.c assert( iContinue!=0 ); assert 107227 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeCurrentAddr(v)==iJump || pParse->db->mallocFailed ); assert 107238 ext/sqlite3/libsqlite/sqlite3.c assert( pDistinct->eTnctType==WHERE_DISTINCT_UNORDERED ); assert 107292 ext/sqlite3/libsqlite/sqlite3.c assert( pSort==0 ); assert 107314 ext/sqlite3/libsqlite/sqlite3.c assert( nResultCol==1 ); assert 107346 ext/sqlite3/libsqlite/sqlite3.c assert( nResultCol==1 ); assert 107350 ext/sqlite3/libsqlite/sqlite3.c assert( regResult==iParm ); assert 107386 ext/sqlite3/libsqlite/sqlite3.c assert( pSO ); assert 107428 ext/sqlite3/libsqlite/sqlite3.c assert( eDest==SRT_Discard ); assert 107468 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 107479 ext/sqlite3/libsqlite/sqlite3.c assert( p->nRef>0 ); assert 107524 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3KeyInfoIsWriteable(pInfo) ); assert 107608 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_UNION || op==TK_EXCEPT || op==TK_INTERSECT || op==TK_ALL ); assert 107707 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn==1 ); assert 107715 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn==1 ); assert 107722 ext/sqlite3/libsqlite/sqlite3.c assert( eDest==SRT_Output || eDest==SRT_Coroutine ); assert 107844 ext/sqlite3/libsqlite/sqlite3.c assert( pTab && pExpr->pTab==pTab ); assert 107864 ext/sqlite3/libsqlite/sqlite3.c assert( !pS ); assert 107866 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); assert 107901 ext/sqlite3/libsqlite/sqlite3.c assert( ExprHasProperty(pExpr, EP_xIsSelect) ); assert 107913 ext/sqlite3/libsqlite/sqlite3.c assert( pzOrigTab && pzOrigCol ); assert 108003 ext/sqlite3/libsqlite/sqlite3.c assert( j<pTabList->nSrc ); assert 108006 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); assert 108082 ext/sqlite3/libsqlite/sqlite3.c assert( pColExpr!=0 ); assert 108092 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pColExpr, EP_IntValue) ); assert 108161 ext/sqlite3/libsqlite/sqlite3.c assert( pSelect!=0 ); assert 108162 ext/sqlite3/libsqlite/sqlite3.c assert( (pSelect->selFlags & SF_Resolved)!=0 ); assert 108163 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->nCol==pSelect->pEList->nExpr || db->mallocFailed ); assert 108206 ext/sqlite3/libsqlite/sqlite3.c assert( db->lookaside.bEnabled==0 ); assert 108209 ext/sqlite3/libsqlite/sqlite3.c pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) ); assert 108277 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOffset==0 || p->pLimit!=0 ); assert 108281 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 108330 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 ); assert 108366 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3KeyInfoIsWriteable(pRet) ); assert 108523 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrior==0 ); assert 108579 ext/sqlite3/libsqlite/sqlite3.c assert( p->selFlags & SF_MultiValue ); assert 108581 ext/sqlite3/libsqlite/sqlite3.c assert( p->selFlags & SF_Values ); assert 108582 ext/sqlite3/libsqlite/sqlite3.c assert( p->op==TK_ALL || (p->op==TK_SELECT && p->pPrior==0) ); assert 108583 ext/sqlite3/libsqlite/sqlite3.c assert( p->pLimit==0 ); assert 108584 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOffset==0 ); assert 108590 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrior->pNext==p ); assert 108656 ext/sqlite3/libsqlite/sqlite3.c assert( p && p->pPrior ); /* Calling function guarantees this much */ assert 108657 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Recursive)==0 || p->op==TK_ALL || p->op==TK_UNION ); assert 108675 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); /* The VDBE already created by calling function */ assert 108680 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 108696 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList && pPrior->pEList ); assert 108721 ext/sqlite3/libsqlite/sqlite3.c assert( !pPrior->pLimit ); assert 108773 ext/sqlite3/libsqlite/sqlite3.c assert( p->pLimit==0 ); /* Not allowed on leftward elements */ assert 108774 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOffset==0 ); /* Not allowed on leftward elements */ assert 108781 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 ); assert 108783 ext/sqlite3/libsqlite/sqlite3.c assert( p->addrOpenEphm[0] == -1 ); assert 108786 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 108791 ext/sqlite3/libsqlite/sqlite3.c assert( !pPrior->pOrderBy ); assert 108804 ext/sqlite3/libsqlite/sqlite3.c assert( p->op==TK_UNION ); assert 108832 ext/sqlite3/libsqlite/sqlite3.c assert( unionTab==dest.iSDParm || dest.eDest!=priorOp ); assert 108835 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 108855 ext/sqlite3/libsqlite/sqlite3.c default: assert( p->op==TK_INTERSECT ); { assert 108869 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 ); assert 108872 ext/sqlite3/libsqlite/sqlite3.c assert( p->addrOpenEphm[0] == -1 ); assert 108875 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 108889 ext/sqlite3/libsqlite/sqlite3.c assert( p->addrOpenEphm[1] == -1 ); assert 108910 ext/sqlite3/libsqlite/sqlite3.c assert( p->pEList ); assert 108953 ext/sqlite3/libsqlite/sqlite3.c assert( p->pNext==0 ); assert 108973 ext/sqlite3/libsqlite/sqlite3.c assert( pLoop->addrOpenEphm[1]<0 ); assert 109073 ext/sqlite3/libsqlite/sqlite3.c assert( pIn->nSdst==1 || pParse->nErr>0 ); assert 109099 ext/sqlite3/libsqlite/sqlite3.c assert( pIn->nSdst==1 || pParse->nErr>0 ); testcase( pIn->nSdst!=1 ); assert 109128 ext/sqlite3/libsqlite/sqlite3.c assert( pDest->eDest==SRT_Output ); assert 109279 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy!=0 ); assert 109280 ext/sqlite3/libsqlite/sqlite3.c assert( pKeyDup==0 ); /* "Managed" code needs this. Ticket #3382. */ assert 109283 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); /* Already thrown the error if VDBE alloc failed */ assert 109292 ext/sqlite3/libsqlite/sqlite3.c assert( pPrior->pOrderBy==0 ); assert 109294 ext/sqlite3/libsqlite/sqlite3.c assert( pOrderBy ); assert 109305 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->u.x.iOrderByCol>0 ); assert 109330 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->u.x.iOrderByCol>0 ); assert 109354 ext/sqlite3/libsqlite/sqlite3.c assert( nOrderBy>=nExpr || db->mallocFailed ); assert 109360 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3KeyInfoIsWriteable(pKeyDup) ); assert 109577 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 && pExpr->iColumn<pEList->nExpr ); assert 109578 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft==0 && pExpr->pRight==0 ); assert 109623 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc ); /* Even for (SELECT 1) we have: pSrc!=0 but pSrc->nSrc==0 */ assert 109794 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); assert 109795 ext/sqlite3/libsqlite/sqlite3.c assert( p->pPrior==0 ); /* Unable to flatten compound queries */ assert 109798 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc && iFrom>=0 && iFrom<pSrc->nSrc ); assert 109802 ext/sqlite3/libsqlite/sqlite3.c assert( pSub!=0 ); assert 109815 ext/sqlite3/libsqlite/sqlite3.c assert( pSubSrc ); assert 109902 ext/sqlite3/libsqlite/sqlite3.c assert( pSub->pSrc!=0 ); assert 110053 ext/sqlite3/libsqlite/sqlite3.c assert( pParent==p ); /* First time through the loop */ assert 110056 ext/sqlite3/libsqlite/sqlite3.c assert( pParent!=p ); /* 2nd and subsequent times through the loop */ assert 110059 ext/sqlite3/libsqlite/sqlite3.c assert( db->mallocFailed ); assert 110136 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pOrderBy==0 ); assert 110137 ext/sqlite3/libsqlite/sqlite3.c assert( pSub->pPrior==0 ); assert 110149 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pHaving==0 ); assert 110155 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pGroupBy==0 ); assert 110218 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_AGG_FUNCTION ); assert 110231 ext/sqlite3/libsqlite/sqlite3.c assert( *ppMinMax==0 || (*ppMinMax)->nExpr==1 ); assert 110250 ext/sqlite3/libsqlite/sqlite3.c assert( !p->pGroupBy ); assert 110259 ext/sqlite3/libsqlite/sqlite3.c assert( pTab && !pTab->pSelect && pExpr ); assert 110357 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_Converted)==0 ); assert 110359 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->pPrior!=0 ); assert 110409 ext/sqlite3/libsqlite/sqlite3.c assert( bFree==0 || pParse->pWith==0 ); assert 110441 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pTab==0 ); assert 110461 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pTab==0 ); assert 110467 ext/sqlite3/libsqlite/sqlite3.c pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) ); assert 110471 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pSelect ); assert 110500 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->nRef==1 || ((pSel->selFlags&SF_Recursive) && pTab->nRef==2 )); assert 110550 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pWith==pWith ); assert 110616 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->isRecursive==0 || pFrom->pTab ); assert 110621 ext/sqlite3/libsqlite/sqlite3.c assert( i==0 ); assert 110635 ext/sqlite3/libsqlite/sqlite3.c assert( pSel!=0 ); assert 110636 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pTab==0 ); assert 110645 ext/sqlite3/libsqlite/sqlite3.c pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) ); assert 110650 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pTab==0 ); assert 110664 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->pSelect==0 ); assert 110697 ext/sqlite3/libsqlite/sqlite3.c assert( pE->op!=TK_DOT || pE->pRight!=0 ); assert 110698 ext/sqlite3/libsqlite/sqlite3.c assert( pE->op!=TK_DOT || (pE->pLeft!=0 && pE->pLeft->op==TK_ID) ); assert 110716 ext/sqlite3/libsqlite/sqlite3.c assert( (p->selFlags & SF_NestedFrom)==0 assert 110723 ext/sqlite3/libsqlite/sqlite3.c assert( pE->op!=TK_DOT || pRight!=0 ); assert 110741 ext/sqlite3/libsqlite/sqlite3.c assert( pE->pLeft!=0 ); assert 110742 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pE->pLeft, EP_IntValue) ); assert 110769 ext/sqlite3/libsqlite/sqlite3.c assert( zName ); assert 110781 ext/sqlite3/libsqlite/sqlite3.c assert(IsVirtual(pTab)); assert 110921 ext/sqlite3/libsqlite/sqlite3.c assert( p->selFlags & SF_Resolved ); assert 111007 ext/sqlite3/libsqlite/sqlite3.c assert( nReg==pAggInfo->mxReg-pAggInfo->mnReg+1 ); assert 111009 ext/sqlite3/libsqlite/sqlite3.c assert( pAggInfo->aCol[i].iMem>=pAggInfo->mnReg assert 111013 ext/sqlite3/libsqlite/sqlite3.c assert( pAggInfo->aFunc[i].iMem>=pAggInfo->mnReg assert 111021 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pE, EP_xIsSelect) ); assert 111045 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pF->pExpr, EP_xIsSelect) ); assert 111069 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pF->pExpr, EP_xIsSelect) ); assert 111088 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); /* pList!=0 if pF->pFunc has NEEDCOLL */ assert 111212 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 || pDest->eDest!=SRT_DistFifo ); assert 111213 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 || pDest->eDest!=SRT_Fifo ); assert 111214 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 || pDest->eDest!=SRT_DistQueue ); assert 111215 ext/sqlite3/libsqlite/sqlite3.c assert( p->pOrderBy==0 || pDest->eDest!=SRT_Queue ); assert 111217 ext/sqlite3/libsqlite/sqlite3.c assert(pDest->eDest==SRT_Exists || pDest->eDest==SRT_Union || assert 111236 ext/sqlite3/libsqlite/sqlite3.c assert( pEList!=0 ); assert 111329 ext/sqlite3/libsqlite/sqlite3.c assert( pItem->addrFillSub==0 ); assert 111406 ext/sqlite3/libsqlite/sqlite3.c assert( sDistinct.isTnct ); assert 111564 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(sAggInfo.aFunc[i].pExpr, EP_xIsSelect) ); assert 111893 ext/sqlite3/libsqlite/sqlite3.c assert( p->pGroupBy==0 ); assert 111894 ext/sqlite3/libsqlite/sqlite3.c assert( flag==0 ); assert 111898 ext/sqlite3/libsqlite/sqlite3.c assert( flag==0 || (pMinMax!=0 && pMinMax->nExpr==1) ); assert 111920 ext/sqlite3/libsqlite/sqlite3.c assert( pMinMax==0 || pMinMax->nExpr==1 ); assert 112224 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(res.azResult[0])>= sizeof(res.nData) ); assert 112268 ext/sqlite3/libsqlite/sqlite3.c assert( azResult!=0 ); assert 112334 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(pParse->db, 0, pTmpSchema) ); assert 112378 ext/sqlite3/libsqlite/sqlite3.c assert( pName1!=0 ); /* pName1->z might be NULL, but not pName1 itself */ assert 112379 ext/sqlite3/libsqlite/sqlite3.c assert( pName2!=0 ); assert 112380 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_INSERT || op==TK_UPDATE || op==TK_DELETE ); assert 112381 ext/sqlite3/libsqlite/sqlite3.c assert( op>0 && op<0xff ); assert 112427 ext/sqlite3/libsqlite/sqlite3.c assert( pTableName->nSrc==1 ); assert 112459 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 112464 ext/sqlite3/libsqlite/sqlite3.c assert( !db->init.busy ); assert 112527 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==0 ); assert 112538 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==pTrigger ); assert 112601 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 112608 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 112616 ext/sqlite3/libsqlite/sqlite3.c assert( !pParse->pNewTrigger ); assert 112679 ext/sqlite3/libsqlite/sqlite3.c assert(pSelect != 0 || db->mallocFailed); assert 112773 ext/sqlite3/libsqlite/sqlite3.c assert( pName->nSrc==1 ); assert 112776 ext/sqlite3/libsqlite/sqlite3.c assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); assert 112780 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, j, 0) ); assert 112818 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 && iDb<db->nDb ); assert 112820 ext/sqlite3/libsqlite/sqlite3.c assert( pTable ); assert 112821 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->pSchema==pTrigger->pSchema || iDb==1 ); assert 112837 ext/sqlite3/libsqlite/sqlite3.c assert( pTable!=0 ); assert 112874 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); assert 112927 ext/sqlite3/libsqlite/sqlite3.c assert( pList==0 || IsVirtual(pTab)==0 ); assert 112959 ext/sqlite3/libsqlite/sqlite3.c assert( pSrc->nSrc>0 ); assert 112963 ext/sqlite3/libsqlite/sqlite3.c assert( iDb<db->nDb ); assert 112983 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pTriggerTab && pParse->pToplevel ); assert 112984 ext/sqlite3/libsqlite/sqlite3.c assert( pStepList ); assert 112985 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 113001 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->okConstFactor==0 ); assert 113029 ext/sqlite3/libsqlite/sqlite3.c default: assert( pStep->op==TK_SELECT ); { assert 113070 ext/sqlite3/libsqlite/sqlite3.c assert( pFrom->zErrMsg==0 || pFrom->nErr ); assert 113071 ext/sqlite3/libsqlite/sqlite3.c assert( pTo->zErrMsg==0 || pTo->nErr ); assert 113101 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); assert 113102 ext/sqlite3/libsqlite/sqlite3.c assert( pTop->pVdbe ); assert 113185 ext/sqlite3/libsqlite/sqlite3.c assert( !pSubParse->pAinc && !pSubParse->pZombieTab ); assert 113186 ext/sqlite3/libsqlite/sqlite3.c assert( !pSubParse->pTriggerPrg && !pSubParse->nMaxArg ); assert 113208 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); assert 113244 ext/sqlite3/libsqlite/sqlite3.c assert( pPrg || pParse->nErr || pParse->db->mallocFailed ); assert 113318 ext/sqlite3/libsqlite/sqlite3.c assert( op==TK_UPDATE || op==TK_INSERT || op==TK_DELETE ); assert 113319 ext/sqlite3/libsqlite/sqlite3.c assert( tr_tm==TRIGGER_BEFORE || tr_tm==TRIGGER_AFTER ); assert 113320 ext/sqlite3/libsqlite/sqlite3.c assert( (op==TK_UPDATE)==(pChanges!=0) ); assert 113327 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSchema!=0 ); assert 113328 ext/sqlite3/libsqlite/sqlite3.c assert( p->pTabSchema!=0 ); assert 113329 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSchema==p->pTabSchema assert 113380 ext/sqlite3/libsqlite/sqlite3.c assert( isNew==1 || isNew==0 ); assert 113460 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 113466 ext/sqlite3/libsqlite/sqlite3.c assert( i<pTab->nCol ); assert 113547 ext/sqlite3/libsqlite/sqlite3.c assert( pTabList->nSrc==1 ); assert 113561 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger || tmask==0 ); assert 113659 ext/sqlite3/libsqlite/sqlite3.c assert( (chngRowid & chngPk)==0 ); assert 113660 ext/sqlite3/libsqlite/sqlite3.c assert( chngRowid==0 || chngRowid==1 ); assert 113661 ext/sqlite3/libsqlite/sqlite3.c assert( chngPk==0 || chngPk==1 ); assert 113768 ext/sqlite3/libsqlite/sqlite3.c assert( pPk!=0 ); assert 113833 ext/sqlite3/libsqlite/sqlite3.c assert( pPk ); assert 113859 ext/sqlite3/libsqlite/sqlite3.c assert( chngKey || pTrigger || hasFK || regOldRowid==regNewRowid ); assert 113966 ext/sqlite3/libsqlite/sqlite3.c assert( regOldRowid>0 ); assert 114034 ext/sqlite3/libsqlite/sqlite3.c assert( aRegIdx ); assert 114128 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->iPKey<0 ); assert 114142 ext/sqlite3/libsqlite/sqlite3.c assert( v ); assert 114221 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_ROW || (db->flags&SQLITE_CountRows) ); assert 114349 ext/sqlite3/libsqlite/sqlite3.c assert( strcmp(pDb->zName,"vacuum_db")==0 ); assert 114426 ext/sqlite3/libsqlite/sqlite3.c assert( (db->flags & SQLITE_Vacuum)==0 ); assert 114435 ext/sqlite3/libsqlite/sqlite3.c assert( (db->flags & SQLITE_Vacuum)!=0 ); assert 114492 ext/sqlite3/libsqlite/sqlite3.c assert( 1==sqlite3BtreeIsInTrans(pTemp) ); assert 114493 ext/sqlite3/libsqlite/sqlite3.c assert( 1==sqlite3BtreeIsInTrans(pMain) ); assert 114513 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 114610 ext/sqlite3/libsqlite/sqlite3.c assert( pDel==0 || pDel==pMod ); assert 114676 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(pTab) ); assert 114688 ext/sqlite3/libsqlite/sqlite3.c assert( db ); assert 114689 ext/sqlite3/libsqlite/sqlite3.c assert( pVTab->nRef>0 ); assert 114690 ext/sqlite3/libsqlite/sqlite3.c assert( db->magic==SQLITE_MAGIC_OPEN || db->magic==SQLITE_MAGIC_ZOMBIE ); assert 114720 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || sqlite3SchemaMutexHeld(db, 0, p->pSchema) ); assert 114725 ext/sqlite3/libsqlite/sqlite3.c assert( db2 ); assert 114737 ext/sqlite3/libsqlite/sqlite3.c assert( !db || pRet ); assert 114752 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(p) ); assert 114753 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 114754 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 114791 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3BtreeHoldsAllMutexes(db) ); assert 114792 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 114874 ext/sqlite3/libsqlite/sqlite3.c assert( 0==pTable->pIndex ); assert 114878 ext/sqlite3/libsqlite/sqlite3.c assert( iDb>=0 ); assert 114885 ext/sqlite3/libsqlite/sqlite3.c assert( (pParse->sNameToken.z==pName2->z && pName2->z!=0) assert 114992 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3SchemaMutexHeld(db, 0, pSchema) ); assert 114996 ext/sqlite3/libsqlite/sqlite3.c assert( pTab==pOld ); /* Malloc must have failed inside HashInsert() */ assert 115023 ext/sqlite3/libsqlite/sqlite3.c assert(pArg->z <= p->z); assert 115077 ext/sqlite3/libsqlite/sqlite3.c assert( &db->pVtabCtx ); assert 115078 ext/sqlite3/libsqlite/sqlite3.c assert( xConstruct ); assert 115087 ext/sqlite3/libsqlite/sqlite3.c assert( sCtx.pTab==pTab ); assert 115145 ext/sqlite3/libsqlite/sqlite3.c assert(zType[i-1]==' '); assert 115174 ext/sqlite3/libsqlite/sqlite3.c assert( pTab ); assert 115245 ext/sqlite3/libsqlite/sqlite3.c assert( pTab && (pTab->tabFlags & TF_Virtual)!=0 && !pTab->pVTable ); assert 115299 ext/sqlite3/libsqlite/sqlite3.c assert( (pTab->tabFlags & TF_Virtual)!=0 ); assert 115337 ext/sqlite3/libsqlite/sqlite3.c assert( (rc&0xff)==rc ); assert 115358 ext/sqlite3/libsqlite/sqlite3.c assert( p->pVtab ); assert 115367 ext/sqlite3/libsqlite/sqlite3.c assert( pTab->pVTable==p && p->pNext==0 ); assert 115514 ext/sqlite3/libsqlite/sqlite3.c assert( op==SAVEPOINT_RELEASE||op==SAVEPOINT_ROLLBACK||op==SAVEPOINT_BEGIN ); assert 115515 ext/sqlite3/libsqlite/sqlite3.c assert( iSavepoint>=-1 ); assert 115581 ext/sqlite3/libsqlite/sqlite3.c assert( pVtab!=0 ); assert 115582 ext/sqlite3/libsqlite/sqlite3.c assert( pVtab->pModule!=0 ); assert 115628 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(pTab) ); assert 115656 ext/sqlite3/libsqlite/sqlite3.c assert( OE_Rollback==1 && OE_Abort==2 && OE_Fail==3 ); assert 115657 ext/sqlite3/libsqlite/sqlite3.c assert( OE_Ignore==4 && OE_Replace==5 ); assert 115658 ext/sqlite3/libsqlite/sqlite3.c assert( db->vtabOnConflict>=1 && db->vtabOnConflict<=5 ); assert 115682 ext/sqlite3/libsqlite/sqlite3.c assert( p->pTab==0 || (p->pTab->tabFlags & TF_Virtual)!=0 ); assert 116224 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->iContinue!=0 ); assert 116454 ext/sqlite3/libsqlite/sqlite3.c assert( pMaskSet->n<=(int)sizeof(Bitmask)*8 ); assert 116472 ext/sqlite3/libsqlite/sqlite3.c assert( pMaskSet->n < ArraySize(pMaskSet->ix) ); assert 116536 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT>TK_EQ && TK_GT<TK_GE ); assert 116537 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT>TK_EQ && TK_LT<TK_GE ); assert 116538 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LE>TK_EQ && TK_LE<TK_GE ); assert 116539 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==TK_EQ+4 ); assert 116558 ext/sqlite3/libsqlite/sqlite3.c assert( allowedOp(pExpr->op) && pExpr->op!=TK_IN ); assert 116574 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT==TK_GT+2 ); assert 116575 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==TK_LE+2 ); assert 116576 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT>TK_EQ ); assert 116577 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GT<TK_LE ); assert 116578 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op>=TK_GT && pExpr->op<=TK_GE ); assert 116588 ext/sqlite3/libsqlite/sqlite3.c assert( allowedOp(op) ); assert 116594 ext/sqlite3/libsqlite/sqlite3.c assert( (WO_EQ<<(op-TK_EQ)) < 0x7fff ); assert 116597 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_ISNULL || c==WO_ISNULL ); assert 116598 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_IN || c==WO_IN ); assert 116599 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_EQ || c==WO_EQ ); assert 116600 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_LT || c==WO_LT ); assert 116601 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_LE || c==WO_LE ); assert 116602 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_GT || c==WO_GT ); assert 116603 ext/sqlite3/libsqlite/sqlite3.c assert( op!=TK_GE || c==WO_GE ); assert 116634 ext/sqlite3/libsqlite/sqlite3.c assert( pX->op==TK_COLUMN ); assert 116656 ext/sqlite3/libsqlite/sqlite3.c assert(pX->pLeft); assert 116844 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft->iColumn!=(-1) ); /* Because IPK never has AFF_TEXT */ assert 116856 ext/sqlite3/libsqlite/sqlite3.c assert( pRight->op==TK_VARIABLE || pRight->op==TK_REGISTER ); assert 116999 ext/sqlite3/libsqlite/sqlite3.c assert( pOne->pExpr->pLeft!=0 && pOne->pExpr->pRight!=0 ); assert 117000 ext/sqlite3/libsqlite/sqlite3.c assert( pTwo->pExpr->pLeft!=0 && pTwo->pExpr->pRight!=0 ); assert 117008 ext/sqlite3/libsqlite/sqlite3.c assert( eOp & (WO_GT|WO_GE) ); assert 117015 ext/sqlite3/libsqlite/sqlite3.c for(op=TK_EQ; eOp!=(WO_EQ<<(op-TK_EQ)); op++){ assert( op<TK_GE ); } assert 117131 ext/sqlite3/libsqlite/sqlite3.c assert( (pTerm->wtFlags & (TERM_DYNAMIC|TERM_ORINFO|TERM_ANDINFO))==0 ); assert 117132 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op==TK_OR ); assert 117141 ext/sqlite3/libsqlite/sqlite3.c assert( pOrWc->nTerm>=2 ); assert 117151 ext/sqlite3/libsqlite/sqlite3.c assert( (pOrTerm->wtFlags & (TERM_ANDINFO|TERM_ORINFO))==0 ); assert 117170 ext/sqlite3/libsqlite/sqlite3.c assert( pAndTerm->pExpr ); assert 117254 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->eOperator & WO_EQ ); assert 117259 ext/sqlite3/libsqlite/sqlite3.c assert( j==1 ); assert 117269 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->wtFlags & (TERM_COPIED|TERM_VIRTUAL) ); assert 117279 ext/sqlite3/libsqlite/sqlite3.c assert( j==1 ); assert 117280 ext/sqlite3/libsqlite/sqlite3.c assert( IsPowerOfTwo(chngToIN) ); assert 117281 ext/sqlite3/libsqlite/sqlite3.c assert( chngToIN==getMask(&pWInfo->sMaskSet, iCursor) ); assert 117290 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->eOperator & WO_EQ ); assert 117324 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->eOperator & WO_EQ ); assert 117325 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->leftCursor==iCursor ); assert 117326 ext/sqlite3/libsqlite/sqlite3.c assert( pOrTerm->u.leftColumn==iColumn ); assert 117331 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft!=0 ); assert 117337 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pNew, EP_xIsSelect) ); assert 117396 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->op!=TK_AS && pExpr->op!=TK_COLLATE ); assert 117400 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pRight==0 ); assert 117490 ext/sqlite3/libsqlite/sqlite3.c assert( pList!=0 ); assert 117491 ext/sqlite3/libsqlite/sqlite3.c assert( pList->nExpr==2 ); assert 117513 ext/sqlite3/libsqlite/sqlite3.c assert( pWC->op==TK_AND ); assert 117899 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 117911 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pExpr, EP_FromJoin) /* prereq always non-zero */ assert 117941 ext/sqlite3/libsqlite/sqlite3.c assert( nKeyCol>0 ); assert 117989 ext/sqlite3/libsqlite/sqlite3.c assert( (u32)n==pLoop->u.btree.nEq ); assert 118007 ext/sqlite3/libsqlite/sqlite3.c assert( n==nKeyCol ); assert 118012 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->iIdxCur>=0 ); assert 118070 ext/sqlite3/libsqlite/sqlite3.c assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) ); assert 118123 ext/sqlite3/libsqlite/sqlite3.c assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) ); assert 118137 ext/sqlite3/libsqlite/sqlite3.c assert( WO_EQ==SQLITE_INDEX_CONSTRAINT_EQ ); assert 118138 ext/sqlite3/libsqlite/sqlite3.c assert( WO_LT==SQLITE_INDEX_CONSTRAINT_LT ); assert 118139 ext/sqlite3/libsqlite/sqlite3.c assert( WO_LE==SQLITE_INDEX_CONSTRAINT_LE ); assert 118140 ext/sqlite3/libsqlite/sqlite3.c assert( WO_GT==SQLITE_INDEX_CONSTRAINT_GT ); assert 118141 ext/sqlite3/libsqlite/sqlite3.c assert( WO_GE==SQLITE_INDEX_CONSTRAINT_GE ); assert 118142 ext/sqlite3/libsqlite/sqlite3.c assert( WO_MATCH==SQLITE_INDEX_CONSTRAINT_MATCH ); assert 118143 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->eOperator & (WO_IN|WO_EQ|WO_LT|WO_LE|WO_GT|WO_GE|WO_MATCH) ); assert 118235 ext/sqlite3/libsqlite/sqlite3.c assert( pRec!=0 ); assert 118236 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->nSample>0 ); assert 118237 ext/sqlite3/libsqlite/sqlite3.c assert( pRec->nField>0 && pRec->nField<=pIdx->nSampleCol ); assert 118326 ext/sqlite3/libsqlite/sqlite3.c assert( i<pIdx->nSample ); assert 118327 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==nField-1 ); assert 118329 ext/sqlite3/libsqlite/sqlite3.c assert( 0==sqlite3VdbeRecordCompare(aSample[i].n, aSample[i].p, pRec) assert 118336 ext/sqlite3/libsqlite/sqlite3.c assert( i<=pIdx->nSample && i>=0 ); assert 118338 ext/sqlite3/libsqlite/sqlite3.c assert( i==pIdx->nSample assert 118348 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeRecordCompare(aSample[i].n, aSample[i].p, pRec)<=0 assert 118353 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3VdbeRecordCompare(aSample[i-1].n, aSample[i-1].p, pRec)<0 assert 118362 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==nField-1 ); assert 118413 ext/sqlite3/libsqlite/sqlite3.c nRet -= 20; assert( 20==sqlite3LogEst(4) ); assert 118517 ext/sqlite3/libsqlite/sqlite3.c assert( *pbDone==0 ); assert 118634 ext/sqlite3/libsqlite/sqlite3.c assert( pLower==0 || (pLower->eOperator & (WO_GT|WO_GE))!=0 ); assert 118635 ext/sqlite3/libsqlite/sqlite3.c assert( pUpper==0 || (pUpper->eOperator & (WO_LT|WO_LE))!=0 ); assert 118636 ext/sqlite3/libsqlite/sqlite3.c assert( p->aSortOrder!=0 ); assert 118680 ext/sqlite3/libsqlite/sqlite3.c if( iLwrIdx==iUprIdx ) nNew -= 20; assert( 20==sqlite3LogEst(4) ); assert 118682 ext/sqlite3/libsqlite/sqlite3.c nNew = 10; assert( 10==sqlite3LogEst(2) ); assert 118699 ext/sqlite3/libsqlite/sqlite3.c assert( pLower || pUpper ); assert 118701 ext/sqlite3/libsqlite/sqlite3.c assert( pUpper==0 || (pUpper->wtFlags & TERM_VNULL)==0 ); assert 118760 ext/sqlite3/libsqlite/sqlite3.c assert( nEq>=1 ); assert 118761 ext/sqlite3/libsqlite/sqlite3.c assert( nEq<=p->nColumn ); assert 118762 ext/sqlite3/libsqlite/sqlite3.c assert( p->aSample!=0 ); assert 118763 ext/sqlite3/libsqlite/sqlite3.c assert( p->nSample>0 ); assert 118764 ext/sqlite3/libsqlite/sqlite3.c assert( pBuilder->nRecValid<nEq ); assert 118825 ext/sqlite3/libsqlite/sqlite3.c assert( p->aSample!=0 ); assert 118838 ext/sqlite3/libsqlite/sqlite3.c assert( pBuilder->nRecValid==nRecValid ); assert 118919 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->db->mallocFailed ); assert 118922 ext/sqlite3/libsqlite/sqlite3.c assert( v!=0 ); assert 118968 ext/sqlite3/libsqlite/sqlite3.c assert( iTarget>0 ); assert 118989 ext/sqlite3/libsqlite/sqlite3.c assert( pX->op==TK_IN ); assert 119000 ext/sqlite3/libsqlite/sqlite3.c assert( (pLoop->wsFlags & WHERE_MULTI_OR)==0 ); assert 119094 ext/sqlite3/libsqlite/sqlite3.c assert( (pLoop->wsFlags & WHERE_VIRTUALTABLE)==0 ); assert 119098 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx!=0 ); assert 119125 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->aiColumn[j]>=0 ); assert 119132 ext/sqlite3/libsqlite/sqlite3.c assert( zAff==0 || (int)strlen(zAff)>=nEq ); assert 119136 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm!=0 ); assert 119295 ext/sqlite3/libsqlite/sqlite3.c assert( pLoop->u.btree.pIndex!=0 ); assert 119297 ext/sqlite3/libsqlite/sqlite3.c assert( !(flags&WHERE_AUTO_INDEX) || (flags&WHERE_IDX_ONLY) ); assert 119325 ext/sqlite3/libsqlite/sqlite3.c assert( flags&WHERE_TOP_LIMIT); assert 119403 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->iLikeRepCntr>0 ); assert 119405 ext/sqlite3/libsqlite/sqlite3.c assert( pOp!=0 ); assert 119406 ext/sqlite3/libsqlite/sqlite3.c assert( pOp->opcode==OP_String8 assert 119538 ext/sqlite3/libsqlite/sqlite3.c assert( pLoop->u.btree.nEq==1 ); assert 119540 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm!=0 ); assert 119541 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->pExpr!=0 ); assert 119542 ext/sqlite3/libsqlite/sqlite3.c assert( omitTable==0 ); assert 119565 ext/sqlite3/libsqlite/sqlite3.c assert( omitTable==0 ); assert 119570 ext/sqlite3/libsqlite/sqlite3.c assert( pStart!=0 || pEnd!=0 ); assert 119589 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LE==TK_GT+1 ); /* Make sure the ordering.. */ assert 119590 ext/sqlite3/libsqlite/sqlite3.c assert( TK_LT==TK_GT+2 ); /* ... of the TK_xx values... */ assert 119591 ext/sqlite3/libsqlite/sqlite3.c assert( TK_GE==TK_GT+3 ); /* ... is correcct. */ assert 119593 ext/sqlite3/libsqlite/sqlite3.c assert( (pStart->wtFlags & TERM_VNULL)==0 ); assert 119596 ext/sqlite3/libsqlite/sqlite3.c assert( pX!=0 ); assert 119616 ext/sqlite3/libsqlite/sqlite3.c assert( pX!=0 ); assert 119617 ext/sqlite3/libsqlite/sqlite3.c assert( (pEnd->wtFlags & TERM_VNULL)==0 ); assert 119633 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->p5==0 ); assert 119712 ext/sqlite3/libsqlite/sqlite3.c assert( nEq>=pLoop->nSkip ); assert 119722 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->pOrderBy==0 assert 119729 ext/sqlite3/libsqlite/sqlite3.c assert( pLoop->nSkip==0 ); assert 119742 ext/sqlite3/libsqlite/sqlite3.c assert( (pRangeStart->wtFlags & TERM_LIKEOPT)==0 || assert 119749 ext/sqlite3/libsqlite/sqlite3.c assert( pRangeStart!=0 ); /* LIKE opt constraints */ assert 119750 ext/sqlite3/libsqlite/sqlite3.c assert( pRangeStart->wtFlags & TERM_LIKEOPT ); /* occur in pairs */ assert 119767 ext/sqlite3/libsqlite/sqlite3.c assert( pRangeEnd==0 || (pRangeEnd->wtFlags & TERM_VNULL)==0 ); assert 119774 ext/sqlite3/libsqlite/sqlite3.c assert( zStartAff==0 || sqlite3Strlen30(zStartAff)>=nEq ); assert 119830 ext/sqlite3/libsqlite/sqlite3.c assert( op!=0 ); assert 119918 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->p5==0 ); assert 119984 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm!=0 ); assert 119985 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->eOperator & WO_OR ); assert 119986 ext/sqlite3/libsqlite/sqlite3.c assert( (pTerm->wtFlags & TERM_ORINFO)!=0 ); assert 120092 ext/sqlite3/libsqlite/sqlite3.c assert( pSubWInfo || pParse->nErr || db->mallocFailed ); assert 120177 ext/sqlite3/libsqlite/sqlite3.c assert( (pSubLoop->wsFlags & WHERE_AUTO_INDEX)==0 ); assert 120182 ext/sqlite3/libsqlite/sqlite3.c assert( pSubWInfo->a[0].iIdxCur==iCovCur ); assert 120215 ext/sqlite3/libsqlite/sqlite3.c assert( bRev==0 || bRev==1 ); assert 120250 ext/sqlite3/libsqlite/sqlite3.c assert( pE!=0 ); assert 120255 ext/sqlite3/libsqlite/sqlite3.c assert( pLevel->iLikeRepCntr>0 ); assert 120280 ext/sqlite3/libsqlite/sqlite3.c assert( !ExprHasProperty(pE, EP_FromJoin) ); assert 120281 ext/sqlite3/libsqlite/sqlite3.c assert( (pTerm->prereqRight & pLevel->notReady)!=0 ); assert 120310 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->untestedTerms ); assert 120313 ext/sqlite3/libsqlite/sqlite3.c assert( pTerm->pExpr ); assert 120601 ext/sqlite3/libsqlite/sqlite3.c assert( p->rSetup==0 || pTemplate->rSetup==0 assert 120607 ext/sqlite3/libsqlite/sqlite3.c assert( p->rSetup>=pTemplate->rSetup ); assert 120643 ext/sqlite3/libsqlite/sqlite3.c assert( p->rSetup>=pTemplate->rSetup ); /* SETUP-INVARIANT above */ assert 120807 ext/sqlite3/libsqlite/sqlite3.c assert( (pLoop->wsFlags & WHERE_AUTO_INDEX)==0 ); assert 120892 ext/sqlite3/libsqlite/sqlite3.c assert( (pNew->wsFlags & WHERE_VIRTUALTABLE)==0 ); assert 120893 ext/sqlite3/libsqlite/sqlite3.c assert( (pNew->wsFlags & WHERE_TOP_LIMIT)==0 ); assert 120903 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->u.btree.nEq<pProbe->nColumn ); assert 120943 ext/sqlite3/libsqlite/sqlite3.c assert( nInMul==0 assert 120954 ext/sqlite3/libsqlite/sqlite3.c nIn = 46; assert( 46==sqlite3LogEst(25) ); assert 120959 ext/sqlite3/libsqlite/sqlite3.c assert( nIn>0 ); /* RHS always has 2 or more terms... The parser assert 120983 ext/sqlite3/libsqlite/sqlite3.c assert( (pTop-(pTerm->pWC->a))<pTerm->pWC->nTerm ); assert 120984 ext/sqlite3/libsqlite/sqlite3.c assert( pTop->wtFlags & TERM_LIKEOPT ); assert 120985 ext/sqlite3/libsqlite/sqlite3.c assert( pTop->eOperator==WO_LT ); assert 120991 ext/sqlite3/libsqlite/sqlite3.c assert( eOp & (WO_LT|WO_LE) ); assert 121005 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nOut==saved_nOut ); assert 121012 ext/sqlite3/libsqlite/sqlite3.c assert( eOp & (WO_ISNULL|WO_EQ|WO_IN) ); assert 121014 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nOut==saved_nOut ); assert 121016 ext/sqlite3/libsqlite/sqlite3.c assert( (eOp & WO_IN) || nIn==0 ); assert 121108 ext/sqlite3/libsqlite/sqlite3.c assert( 42==sqlite3LogEst(18) ); assert 121263 ext/sqlite3/libsqlite/sqlite3.c assert( !IsVirtual(pSrc->pTab) ); assert 121337 ext/sqlite3/libsqlite/sqlite3.c pNew->nOut = 43; assert( 43==sqlite3LogEst(20) ); assert 121366 ext/sqlite3/libsqlite/sqlite3.c assert( (pWInfo->wctrlFlags & WHERE_ONEPASS_DESIRED)==0 || b==0 ); assert 121468 ext/sqlite3/libsqlite/sqlite3.c assert( IsVirtual(pTab) ); assert 121506 ext/sqlite3/libsqlite/sqlite3.c assert( seenIn ); assert 121510 ext/sqlite3/libsqlite/sqlite3.c assert( seenVar ); assert 121514 ext/sqlite3/libsqlite/sqlite3.c assert( seenVar && seenIn ); assert 121532 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nLSlot>=nConstraint ); assert 121552 ext/sqlite3/libsqlite/sqlite3.c assert( iTerm<pNew->nLSlot ); assert 121577 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->nLTerm<=pNew->nLSlot ); assert 121674 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || sCur.n==0 ); assert 121837 ext/sqlite3/libsqlite/sqlite3.c assert( pOrderBy!=0 ); assert 121892 ext/sqlite3/libsqlite/sqlite3.c assert( nColumn==nKeyCol+1 || !HasRowid(pIndex->pTable) ); assert 121893 ext/sqlite3/libsqlite/sqlite3.c assert( pIndex->aiColumn[nColumn-1]==(-1) || !HasRowid(pIndex->pTable)); assert 122046 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->wctrlFlags & WHERE_GROUPBY ); assert 122047 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->wctrlFlags & WHERE_SORTBYGROUP ); assert 122088 ext/sqlite3/libsqlite/sqlite3.c assert( nOrderBy>0 && 66==sqlite3LogEst(100) ); assert 122143 ext/sqlite3/libsqlite/sqlite3.c assert( nLoop<=pWInfo->pTabList->nSrc ); assert 122179 ext/sqlite3/libsqlite/sqlite3.c assert( aSortCost==0 || &pSpace[nSpace]==(char*)&aSortCost[nOrderBy] ); assert 122180 ext/sqlite3/libsqlite/sqlite3.c assert( aSortCost!=0 || &pSpace[nSpace]==(char*)pX ); assert 122187 ext/sqlite3/libsqlite/sqlite3.c aFrom[0].nRow = MIN(pParse->nQueryLoop, 48); assert( 48==sqlite3LogEst(28) ); assert 122189 ext/sqlite3/libsqlite/sqlite3.c assert( aFrom[0].isOrdered==0 ); assert 122394 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->nLevel==nLoop ); assert 122431 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->sorted==0 ); assert 122471 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->pTabList->nSrc>=1 ); assert 122491 ext/sqlite3/libsqlite/sqlite3.c assert( pLoop->aLTermSpace==pLoop->aLTerm ); assert 122701 ext/sqlite3/libsqlite/sqlite3.c assert( EIGHT_BYTE_ALIGNMENT(sWLB.pNew) ); assert 122758 ext/sqlite3/libsqlite/sqlite3.c assert( (m-1)==toTheLeft ); assert 122893 ext/sqlite3/libsqlite/sqlite3.c assert( (wctrlFlags & WHERE_ONEPASS_DESIRED)==0 || pWInfo->nLevel==1 ); assert 122935 ext/sqlite3/libsqlite/sqlite3.c assert( pTabItem->iCursor==pLevel->iTabCur ); assert 122944 ext/sqlite3/libsqlite/sqlite3.c assert( n<=pTab->nCol ); assert 122954 ext/sqlite3/libsqlite/sqlite3.c assert( iIdxCur!=0 || (pWInfo->wctrlFlags & WHERE_ONEPASS_DESIRED)==0 ); assert 122965 ext/sqlite3/libsqlite/sqlite3.c assert( wctrlFlags & WHERE_ONEPASS_DESIRED ); assert 122979 ext/sqlite3/libsqlite/sqlite3.c assert( pIx->pSchema==pTab->pSchema ); assert 122980 ext/sqlite3/libsqlite/sqlite3.c assert( iIndexCur>=0 ); assert 123102 ext/sqlite3/libsqlite/sqlite3.c assert( (pLoop->wsFlags & WHERE_IDX_ONLY)==0 assert 123126 ext/sqlite3/libsqlite/sqlite3.c assert( pWInfo->nLevel<=pTabList->nSrc ); assert 123133 ext/sqlite3/libsqlite/sqlite3.c assert( pTab!=0 ); assert 123205 ext/sqlite3/libsqlite/sqlite3.c assert( pIdx->pTable==pTab ); assert 123215 ext/sqlite3/libsqlite/sqlite3.c assert( (pLoop->wsFlags & WHERE_IDX_ONLY)==0 || x>=0 ); assert 124793 ext/sqlite3/libsqlite/sqlite3.c assert( iLookAhead!=YYNOCODE ); assert 124857 ext/sqlite3/libsqlite/sqlite3.c assert( stateno<=YY_REDUCE_COUNT ); assert 124860 ext/sqlite3/libsqlite/sqlite3.c assert( i!=YY_REDUCE_USE_DFLT ); assert 124861 ext/sqlite3/libsqlite/sqlite3.c assert( iLookAhead!=YYNOCODE ); assert 124868 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 && i<YY_ACTTAB_COUNT ); assert 124869 ext/sqlite3/libsqlite/sqlite3.c assert( yy_lookahead[i]==iLookAhead ); assert 126362 ext/sqlite3/libsqlite/sqlite3.c assert( yymsp[-2].minor.yy473!=0 ); assert 126370 ext/sqlite3/libsqlite/sqlite3.c assert( yymsp[-1].minor.yy473!=0 ); assert 126552 ext/sqlite3/libsqlite/sqlite3.c assert( yyruleno>=0 && yyruleno<sizeof(yyRuleInfo)/sizeof(yyRuleInfo[0]) ); assert 126575 ext/sqlite3/libsqlite/sqlite3.c assert( yyact == YYNSTATE + YYNRULE + 1 ); assert 126612 ext/sqlite3/libsqlite/sqlite3.c assert( TOKEN.z[0] ); /* The tokenizer always gives us a token */ assert 126707 ext/sqlite3/libsqlite/sqlite3.c assert( yyact == YY_ERROR_ACTION ); assert 127479 ext/sqlite3/libsqlite/sqlite3.c assert( zSql!=0 ); assert 127487 ext/sqlite3/libsqlite/sqlite3.c assert( pzErrMsg!=0 ); assert 127493 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTable==0 ); assert 127494 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==0 ); assert 127495 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nVar==0 ); assert 127496 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->nzVar==0 ); assert 127497 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->azVar==0 ); assert 127501 ext/sqlite3/libsqlite/sqlite3.c assert( i>=0 ); assert 127538 ext/sqlite3/libsqlite/sqlite3.c assert( nErr==0 ); assert 127563 ext/sqlite3/libsqlite/sqlite3.c assert( pzErrMsg!=0 ); assert 127607 ext/sqlite3/libsqlite/sqlite3.c assert( nErr==0 || pParse->rc!=SQLITE_OK ); assert 128137 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_PTRSIZE==sizeof(char*) ); assert 128235 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.nRefInitMutex==0 ); assert 128252 ext/sqlite3/libsqlite/sqlite3.c assert(sizeof(x)==8); assert 128253 ext/sqlite3/libsqlite/sqlite3.c assert(sizeof(x)==sizeof(y)); assert 128255 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3IsNaN(y) ); assert 128670 ext/sqlite3/libsqlite/sqlite3.c assert( sz > (int)sizeof(LookasideSlot*) ); assert 128948 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 129075 ext/sqlite3/libsqlite/sqlite3.c assert( db->nDb<=2 ); assert 129076 ext/sqlite3/libsqlite/sqlite3.c assert( db->aDb==db->aDbStatic ); assert 129137 ext/sqlite3/libsqlite/sqlite3.c assert( db->lookaside.nOut==0 ); /* Fails on a lookaside memory leak */ assert 129155 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 129376 ext/sqlite3/libsqlite/sqlite3.c assert( count>=0 ); assert 129526 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 129536 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_FUNC_CONSTANT==SQLITE_DETERMINISTIC ); assert 129577 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 129585 ext/sqlite3/libsqlite/sqlite3.c assert(p || db->mallocFailed); assert 129656 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK ); assert 129685 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 129964 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CHECKPOINT_PASSIVE==0 ); assert 129965 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CHECKPOINT_FULL==1 ); assert 129966 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CHECKPOINT_RESTART==2 ); assert 129967 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_CHECKPOINT_TRUNCATE==3 ); assert 130029 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 130030 ext/sqlite3/libsqlite/sqlite3.c assert( !pnLog || *pnLog==-1 ); assert 130031 ext/sqlite3/libsqlite/sqlite3.c assert( !pnCkpt || *pnCkpt==-1 ); assert 130101 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 130203 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(db->mutex) ); assert 130347 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_LENGTH]==SQLITE_MAX_LENGTH ); assert 130348 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_SQL_LENGTH]==SQLITE_MAX_SQL_LENGTH ); assert 130349 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_COLUMN]==SQLITE_MAX_COLUMN ); assert 130350 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_EXPR_DEPTH]==SQLITE_MAX_EXPR_DEPTH ); assert 130351 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_COMPOUND_SELECT]==SQLITE_MAX_COMPOUND_SELECT); assert 130352 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_VDBE_OP]==SQLITE_MAX_VDBE_OP ); assert 130353 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_FUNCTION_ARG]==SQLITE_MAX_FUNCTION_ARG ); assert 130354 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_ATTACHED]==SQLITE_MAX_ATTACHED ); assert 130355 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]== assert 130357 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_VARIABLE_NUMBER]==SQLITE_MAX_VARIABLE_NUMBER); assert 130358 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_TRIGGER_DEPTH]==SQLITE_MAX_TRIGGER_DEPTH ); assert 130359 ext/sqlite3/libsqlite/sqlite3.c assert( aHardLimit[SQLITE_LIMIT_WORKER_THREADS]==SQLITE_MAX_WORKER_THREADS ); assert 130360 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_LIMIT_WORKER_THREADS==(SQLITE_N_LIMIT-1) ); assert 130415 ext/sqlite3/libsqlite/sqlite3.c assert( *pzErrMsg==0 ); assert 130482 ext/sqlite3/libsqlite/sqlite3.c assert( octet>=0 && octet<256 ); assert 130658 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OPEN_READONLY == 0x01 ); assert 130659 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OPEN_READWRITE == 0x02 ); assert 130660 ext/sqlite3/libsqlite/sqlite3.c assert( SQLITE_OPEN_CREATE == 0x04 ); assert 130723 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(db->aLimit)==sizeof(aHardLimit) ); assert 130778 ext/sqlite3/libsqlite/sqlite3.c assert( db->pDfltColl!=0 ); assert 130898 ext/sqlite3/libsqlite/sqlite3.c assert( db->mutex!=0 || isThreadsafe==0 assert 130903 ext/sqlite3/libsqlite/sqlite3.c assert( db!=0 || rc==SQLITE_NOMEM ); assert 130967 ext/sqlite3/libsqlite/sqlite3.c assert( *ppDb || rc==SQLITE_NOMEM ); assert 131010 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 131035 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 131326 ext/sqlite3/libsqlite/sqlite3.c assert( pPager!=0 ); assert 131328 ext/sqlite3/libsqlite/sqlite3.c assert( fd!=0 ); assert 131470 ext/sqlite3/libsqlite/sqlite3.c assert( (x = va_arg(ap,int))!=0 ); assert 131804 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)) ) assert 131836 ext/sqlite3/libsqlite/sqlite3.c assert( p->pUnlockConnection || p->pBlockingConnection ); assert 131841 ext/sqlite3/libsqlite/sqlite3.c assert( p2->xUnlockNotify==p->xUnlockNotify || !seen ); assert 131842 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || p->pUnlockConnection!=db ); assert 131843 ext/sqlite3/libsqlite/sqlite3.c assert( db==0 || p->pBlockingConnection!=db ); assert 131958 ext/sqlite3/libsqlite/sqlite3.c assert( !db->mallocFailed ); assert 132020 ext/sqlite3/libsqlite/sqlite3.c assert( p->xUnlockNotify ); assert 132027 ext/sqlite3/libsqlite/sqlite3.c assert( aArg==aDyn || (aDyn==0 && aArg==aStatic) ); assert 132028 ext/sqlite3/libsqlite/sqlite3.c assert( nArg<=(int)ArraySize(aStatic) || aArg==aDyn ); assert 133311 ext/sqlite3/libsqlite/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3Always(int b) { assert( b ); return b; } assert 133312 ext/sqlite3/libsqlite/sqlite3.c SQLITE_PRIVATE int sqlite3Fts3Never(int b) { assert( !b ); return b; } assert 133329 ext/sqlite3/libsqlite/sqlite3.c assert( q - (unsigned char *)p <= FTS3_VARINT_MAX ); assert 133377 ext/sqlite3/libsqlite/sqlite3.c assert( a & 0x80 ); assert 133484 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPendingData==0 ); assert 133485 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 133683 ext/sqlite3/libsqlite/sqlite3.c assert( p->bHasStat==p->bFts4 ); assert 133717 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPgsz>0 || rc!=SQLITE_OK ); assert 133987 ext/sqlite3/libsqlite/sqlite3.c assert( nPrefix>=0 ); assert 134140 ext/sqlite3/libsqlite/sqlite3.c assert( strlen(argv[0])==4 ); assert 134141 ext/sqlite3/libsqlite/sqlite3.c assert( (sqlite3_strnicmp(argv[0], "fts4", 4)==0 && isFts4) assert 134261 ext/sqlite3/libsqlite/sqlite3.c assert( iOpt==6 ); assert 134319 ext/sqlite3/libsqlite/sqlite3.c assert( nString==0 ); assert 134329 ext/sqlite3/libsqlite/sqlite3.c assert( pTokenizer ); assert 134333 ext/sqlite3/libsqlite/sqlite3.c assert( zPrefix ); assert 134397 ext/sqlite3/libsqlite/sqlite3.c assert( zCsr <= &((char *)p)[nByte] ); assert 134469 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 134636 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 134666 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 134672 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 134815 ext/sqlite3/libsqlite/sqlite3.c assert( zBuffer ); assert 134885 ext/sqlite3/libsqlite/sqlite3.c assert( piLeaf || piLeaf2 ); assert 134889 ext/sqlite3/libsqlite/sqlite3.c assert( !piLeaf2 || !piLeaf || rc!=SQLITE_OK || (*piLeaf<=*piLeaf2) ); assert 134926 ext/sqlite3/libsqlite/sqlite3.c assert( iVal-*piPrev > 0 || (*piPrev==0 && iVal==0) ); assert 135181 ext/sqlite3/libsqlite/sqlite3.c assert( isSaveLeft==0 || isExact==0 ); assert 135183 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 && *p1!=0 && *p2!=0 ); assert 135205 ext/sqlite3/libsqlite/sqlite3.c assert( *p1!=POS_END && *p1!=POS_COLUMN ); assert 135206 ext/sqlite3/libsqlite/sqlite3.c assert( *p2!=POS_END && *p2!=POS_COLUMN ); assert 135218 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 135230 ext/sqlite3/libsqlite/sqlite3.c assert( pp && p ); assert 135236 ext/sqlite3/libsqlite/sqlite3.c assert( (*p1&0xFE)==0 && (*p2&0xFE)==0 ); assert 135395 ext/sqlite3/libsqlite/sqlite3.c assert( *pbFirst || *piPrev==0 ); assert 135396 ext/sqlite3/libsqlite/sqlite3.c assert( *pbFirst==0 || iWrite>0 ); assert 135504 ext/sqlite3/libsqlite/sqlite3.c assert( *pnOut<=n1+n2+FTS3_VARINT_MAX-1 ); assert 135538 ext/sqlite3/libsqlite/sqlite3.c assert( nDist>0 ); assert 135734 ext/sqlite3/libsqlite/sqlite3.c assert( iOut>0 ); assert 135879 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 135880 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel==FTS3_SEGCURSOR_ALL assert 135884 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel<FTS3_SEGDIR_MAXLEVEL ); assert 135885 ext/sqlite3/libsqlite/sqlite3.c assert( FTS3_SEGCURSOR_ALL<0 && FTS3_SEGCURSOR_PENDING<0 ); assert 135886 ext/sqlite3/libsqlite/sqlite3.c assert( isPrefix==0 || isScan==0 ); assert 136088 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 136158 ext/sqlite3/libsqlite/sqlite3.c assert( eSearch>=0 && eSearch<=(FTS3_FULLTEXT_SEARCH+p->nColumn) ); assert 136159 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 136167 ext/sqlite3/libsqlite/sqlite3.c assert( iIdx==nVal ); assert 136198 ext/sqlite3/libsqlite/sqlite3.c assert( p->base.zErrMsg==0 ); assert 136289 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 && iCol<=p->nColumn+2 ); assert 136320 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 ); assert 136376 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || mxLevel==0 ); assert 136418 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 136419 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPendingData==0 ); assert 136420 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction!=1 ); assert 136435 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPendingData==0 ); assert 136436 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction!=0 ); assert 136437 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 136450 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction!=0 ); assert 136475 ext/sqlite3/libsqlite/sqlite3.c assert( p==pStart || c==0 ); assert 136543 ext/sqlite3/libsqlite/sqlite3.c assert( nVal>=1 ); assert 136580 ext/sqlite3/libsqlite/sqlite3.c assert( nVal==1 ); assert 136582 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr ); assert 136608 ext/sqlite3/libsqlite/sqlite3.c assert( nVal==1 ); assert 136611 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 136637 ext/sqlite3/libsqlite/sqlite3.c assert( nVal==1 || nVal==2 ); assert 136705 ext/sqlite3/libsqlite/sqlite3.c assert( p->nPendingData==0 ); assert 136748 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pVtab)->inTransaction ); assert 136749 ext/sqlite3/libsqlite/sqlite3.c assert( ((Fts3Table *)pVtab)->mxSavepoint < iSavepoint ); assert 136766 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction ); assert 136767 ext/sqlite3/libsqlite/sqlite3.c assert( p->mxSavepoint >= iSavepoint ); assert 136780 ext/sqlite3/libsqlite/sqlite3.c assert( p->inTransaction ); assert 136781 ext/sqlite3/libsqlite/sqlite3.c assert( p->mxSavepoint >= iSavepoint ); assert 136936 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK ); assert 136981 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pPhrase->iDoclistToken==0 ); assert 137009 ext/sqlite3/libsqlite/sqlite3.c assert( iToken!=p->iDoclistToken ); assert 137075 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pDeferred==0 || pToken->pSegcsr==0 ); assert 137085 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pSegcsr==0 ); assert 137107 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->doclist.bFreeList==0 ); assert 137134 ext/sqlite3/libsqlite/sqlite3.c assert( iPrev>=0 ); assert 137257 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || p->nToken<1 || p->aToken[0].pSegcsr==0 || p->bIncr ); assert 137282 ext/sqlite3/libsqlite/sqlite3.c assert( nDoclist>0 ); assert 137283 ext/sqlite3/libsqlite/sqlite3.c assert( *pbEof==0 ); assert 137284 ext/sqlite3/libsqlite/sqlite3.c assert( p || *piDocid==0 ); assert 137285 ext/sqlite3/libsqlite/sqlite3.c assert( !p || (p>aDoclist && p<&aDoclist[nDoclist]) ); assert 137337 ext/sqlite3/libsqlite/sqlite3.c assert( nDoclist>0 ); assert 137338 ext/sqlite3/libsqlite/sqlite3.c assert( *pbEof==0 ); assert 137339 ext/sqlite3/libsqlite/sqlite3.c assert( p || *piDocid==0 ); assert 137340 ext/sqlite3/libsqlite/sqlite3.c assert( !p || (p>=aDoclist && p<=&aDoclist[nDoclist]) ); assert 137401 ext/sqlite3/libsqlite/sqlite3.c assert( pIter>=&pDL->aAll[pDL->nAll] || *pIter ); assert 137436 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIgnore==0 ); assert 137437 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->aToken[iToken].pSegcsr==0 ); assert 137444 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pDeferred==0 ); assert 137445 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pSegcsr || pPhrase->iDoclistToken>=0 ); assert 137447 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIgnore==0 ); assert 137490 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIncr==1 ); assert 137502 ext/sqlite3/libsqlite/sqlite3.c assert( p->nToken<=MAX_INCR_PHRASE_TOKENS ); assert 137503 ext/sqlite3/libsqlite/sqlite3.c assert( p->iDoclistToken<MAX_INCR_PHRASE_TOKENS ); assert 137518 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || (p->nToken>=1 && a[p->nToken-1].bIgnore==0) ); assert 137519 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || bMaxSet ); assert 137692 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->eType==FTSQUERY_OR assert 137696 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft && pExpr->pRight ); assert 137748 ext/sqlite3/libsqlite/sqlite3.c assert( a ); assert 137762 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nRowAvg>0 ); assert 137823 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || nDocSize>0 ); assert 137860 ext/sqlite3/libsqlite/sqlite3.c assert( pTC ); assert 137885 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pList==0 ); assert 138013 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->doclist.pList ); assert 138021 ext/sqlite3/libsqlite/sqlite3.c assert( pPhrase->doclist.pList[nNew]=='\0' ); assert 138022 ext/sqlite3/libsqlite/sqlite3.c assert( nNew<=pPhrase->doclist.nList && nNew>0 ); assert 138080 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->bEof==0 ); assert 138088 ext/sqlite3/libsqlite/sqlite3.c assert( !pLeft->bDeferred || !pRight->bDeferred ); assert 138142 ext/sqlite3/libsqlite/sqlite3.c assert( pLeft->bStart || pLeft->iDocid==pRight->iDocid ); assert 138143 ext/sqlite3/libsqlite/sqlite3.c assert( pRight->bStart || pLeft->iDocid==pRight->iDocid ); assert 138171 ext/sqlite3/libsqlite/sqlite3.c assert( *pRc!=SQLITE_OK || pRight->bStart ); assert 138273 ext/sqlite3/libsqlite/sqlite3.c assert( p->pParent && p->pParent->pLeft==p ); assert 138368 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->bDeferred || pPhrase->doclist.bFreeList==0 ); assert 138444 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->isEof==0 ); assert 138452 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_data_count(pCsr->pStmt)==0 ); assert 138496 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pDeferred==0 ); assert 138532 ext/sqlite3/libsqlite/sqlite3.c assert( *p ); assert 138574 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->eType==FTSQUERY_PHRASE ); assert 138591 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->bStart ); assert 138596 ext/sqlite3/libsqlite/sqlite3.c assert( pE->aMI==0 ); assert 138609 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_data_count(pCsr->pStmt)==0 ); assert 138642 ext/sqlite3/libsqlite/sqlite3.c assert( pRoot->bEof==0 ); assert 138690 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nDoc>0 ); assert 138698 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->aMI ); assert 138743 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 && iCol<pTab->nColumn ); assert 138782 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || pPhrase->bIncr==0 ); assert 139210 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==0 ); assert 139229 ext/sqlite3/libsqlite/sqlite3.c default: assert( eState==3 ); assert 139271 ext/sqlite3/libsqlite/sqlite3.c assert( idxStr==0 ); assert 139272 ext/sqlite3/libsqlite/sqlite3.c assert( idxNum==FTS4AUX_EQ_CONSTRAINT || idxNum==0 assert 139304 ext/sqlite3/libsqlite/sqlite3.c assert( (iEq==0 && iGe==-1) || (iEq==-1 && iGe==0) ); assert 139359 ext/sqlite3/libsqlite/sqlite3.c assert( p->isEof==0 ); assert 139382 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==4 ); assert 139583 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pCsr==0 ); assert 139767 ext/sqlite3/libsqlite/sqlite3.c assert( nToken==ii ); assert 139802 ext/sqlite3/libsqlite/sqlite3.c assert( nTemp==0 ); assert 139887 ext/sqlite3/libsqlite/sqlite3.c assert( nKey==4 ); assert 140000 ext/sqlite3/libsqlite/sqlite3.c assert( p->eType!=FTSQUERY_PHRASE ); assert 140008 ext/sqlite3/libsqlite/sqlite3.c assert( p->eType==FTSQUERY_AND ); assert 140031 ext/sqlite3/libsqlite/sqlite3.c assert( pSplit->pParent->pRight==pSplit ); assert 140070 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 || (rc!=SQLITE_OK && p==0) ); assert 140112 ext/sqlite3/libsqlite/sqlite3.c assert( pRet && pPrev ); assert 140144 ext/sqlite3/libsqlite/sqlite3.c assert( pPrev && pPrev->pLeft && pPrev->pRight==0 ); assert 140157 ext/sqlite3/libsqlite/sqlite3.c assert( nByte>0 ); assert 140159 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || (nByte>0 && nByte<=nIn) ); assert 140251 ext/sqlite3/libsqlite/sqlite3.c assert( p->pParent==0 || p->pParent->pLeft==p ); assert 140252 ext/sqlite3/libsqlite/sqlite3.c assert( p->pLeft && p->pRight ); assert 140260 ext/sqlite3/libsqlite/sqlite3.c assert( pParent==0 || pParent->pLeft==p ); assert 140275 ext/sqlite3/libsqlite/sqlite3.c assert( pFree ); assert 140300 ext/sqlite3/libsqlite/sqlite3.c assert( pParent->pParent==0 || pParent->pParent->pLeft==pParent ); assert 140305 ext/sqlite3/libsqlite/sqlite3.c assert( pParent==pRoot ); assert 140323 ext/sqlite3/libsqlite/sqlite3.c assert( pFree!=0 ); assert 140350 ext/sqlite3/libsqlite/sqlite3.c assert( pFree==0 ); assert 140403 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || *ppExpr==0 ); assert 140482 ext/sqlite3/libsqlite/sqlite3.c assert( p->eType==FTSQUERY_PHRASE || p->pPhrase==0 ); assert 140497 ext/sqlite3/libsqlite/sqlite3.c assert( pDel==0 || pDel->pParent==0 ); assert 140499 ext/sqlite3/libsqlite/sqlite3.c assert( p->pParent==0 || p==p->pParent->pRight || p==p->pParent->pLeft ); assert 140507 ext/sqlite3/libsqlite/sqlite3.c assert( p==p->pParent->pRight || p==p->pParent->pLeft ); assert 140655 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_NOMEM || rc==SQLITE_OK ); assert 140679 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pExpr==0 ); assert 140784 ext/sqlite3/libsqlite/sqlite3.c assert( pNew!=0 ); assert 140785 ext/sqlite3/libsqlite/sqlite3.c assert( keyClass>=FTS3_HASH_STRING && keyClass<=FTS3_HASH_BINARY ); assert 140801 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 140868 ext/sqlite3/libsqlite/sqlite3.c assert( keyClass==FTS3_HASH_BINARY ); assert 140883 ext/sqlite3/libsqlite/sqlite3.c assert( keyClass==FTS3_HASH_BINARY ); assert 140925 ext/sqlite3/libsqlite/sqlite3.c assert( (new_size & (new_size-1))==0 ); assert 141000 ext/sqlite3/libsqlite/sqlite3.c assert( pH->first==0 ); assert 141001 ext/sqlite3/libsqlite/sqlite3.c assert( pH->count==0 ); assert 141016 ext/sqlite3/libsqlite/sqlite3.c assert( xHash!=0 ); assert 141018 ext/sqlite3/libsqlite/sqlite3.c assert( (pH->htsize & (pH->htsize-1))==0 ); assert 141061 ext/sqlite3/libsqlite/sqlite3.c assert( pH!=0 ); assert 141063 ext/sqlite3/libsqlite/sqlite3.c assert( xHash!=0 ); assert 141065 ext/sqlite3/libsqlite/sqlite3.c assert( (pH->htsize & (pH->htsize-1))==0 ); assert 141084 ext/sqlite3/libsqlite/sqlite3.c assert( pH->htsize>0 ); assert 141099 ext/sqlite3/libsqlite/sqlite3.c assert( pH->htsize>0 ); assert 141100 ext/sqlite3/libsqlite/sqlite3.c assert( (pH->htsize & (pH->htsize-1))==0 ); assert 141262 ext/sqlite3/libsqlite/sqlite3.c assert( x>='a' && x<='z' ); assert 141271 ext/sqlite3/libsqlite/sqlite3.c assert( x>='a' && x<='z' ); assert 141834 ext/sqlite3/libsqlite/sqlite3.c assert( argc==1 || argc==2 ); assert 141939 ext/sqlite3/libsqlite/sqlite3.c assert( n==0 ); assert 141968 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || *ppTok ); assert 142187 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 142188 ext/sqlite3/libsqlite/sqlite3.c assert( p1==p2 ); assert 142190 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_ERROR ); assert 142191 ext/sqlite3/libsqlite/sqlite3.c assert( p2==0 ); assert 142192 ext/sqlite3/libsqlite/sqlite3.c assert( 0==strcmp(sqlite3_errmsg(db), "unknown tokenizer: nosuchtokenizer") ); assert 142196 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 142198 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 142199 ext/sqlite3/libsqlite/sqlite3.c assert( p2==p1 ); assert 142692 ext/sqlite3/libsqlite/sqlite3.c assert( (rc==SQLITE_OK)==(pMod!=0) ); assert 142757 ext/sqlite3/libsqlite/sqlite3.c assert( pInfo->estimatedCost>1000000.0 ); assert 142902 ext/sqlite3/libsqlite/sqlite3.c assert( iCol==4 ); assert 143352 ext/sqlite3/libsqlite/sqlite3.c assert( SizeofArray(azSql)==SizeofArray(p->aStmt) ); assert 143353 ext/sqlite3/libsqlite/sqlite3.c assert( eStmt<SizeofArray(azSql) && eStmt>=0 ); assert 143370 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pStmt==0 ); assert 143526 ext/sqlite3/libsqlite/sqlite3.c assert( iLangid>=0 ); assert 143527 ext/sqlite3/libsqlite/sqlite3.c assert( p->nIndex>0 ); assert 143528 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 143561 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel==FTS3_SEGCURSOR_ALL || iLevel>=0 ); assert 143562 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel<FTS3_SEGDIR_MAXLEVEL ); assert 143563 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 143652 ext/sqlite3/libsqlite/sqlite3.c assert( !p || p->iLastDocid<=iDocid ); assert 143657 ext/sqlite3/libsqlite/sqlite3.c assert( p->nData<p->nSpace ); assert 143658 ext/sqlite3/libsqlite/sqlite3.c assert( p->aData[p->nData]==0 ); assert 143678 ext/sqlite3/libsqlite/sqlite3.c assert( iPos>p->iLastPos || (iPos==0 && p->iLastPos==0) ); assert 143724 ext/sqlite3/libsqlite/sqlite3.c assert( 0==fts3HashFind(pHash, zToken, nToken) ); assert 143764 ext/sqlite3/libsqlite/sqlite3.c assert( pTokenizer && pModule ); assert 143825 ext/sqlite3/libsqlite/sqlite3.c assert( iLangid>=0 ); assert 143987 ext/sqlite3/libsqlite/sqlite3.c assert( p->zContentTbl==0 || bContent==0 ); assert 144024 ext/sqlite3/libsqlite/sqlite3.c assert( *pbFound==0 ); assert 144086 ext/sqlite3/libsqlite/sqlite3.c assert( iLangid>=0 ); assert 144087 ext/sqlite3/libsqlite/sqlite3.c assert( p->nIndex>=1 ); assert 144156 ext/sqlite3/libsqlite/sqlite3.c assert( pnBlob ); assert 144231 ext/sqlite3/libsqlite/sqlite3.c assert( !pReader->pBlob assert 144288 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->aNode ); assert 144297 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->iCurrentBlock<=pReader->iLeafEndBlock ); assert 144307 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->pBlob==0 ); assert 144315 ext/sqlite3/libsqlite/sqlite3.c assert( !fts3SegReaderIsPending(pReader) ); assert 144368 ext/sqlite3/libsqlite/sqlite3.c assert( pReader->aDoclist ); assert 144369 ext/sqlite3/libsqlite/sqlite3.c assert( !pReader->pOffsetList ); assert 144408 ext/sqlite3/libsqlite/sqlite3.c assert( p ); assert 144443 ext/sqlite3/libsqlite/sqlite3.c assert( *p==0 ); assert 144498 ext/sqlite3/libsqlite/sqlite3.c assert( p->bFts4 ); assert 144499 ext/sqlite3/libsqlite/sqlite3.c assert( pgsz>0 ); assert 144552 ext/sqlite3/libsqlite/sqlite3.c assert( iStartLeaf<=iEndLeaf ); assert 144737 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=0 ); assert 144761 ext/sqlite3/libsqlite/sqlite3.c assert( pLhs->aNode && pRhs->aNode ); assert 144773 ext/sqlite3/libsqlite/sqlite3.c assert( pLhs->aNode && pRhs->aNode ); assert 144818 ext/sqlite3/libsqlite/sqlite3.c assert( nSuspect<=nSegment ); assert 144835 ext/sqlite3/libsqlite/sqlite3.c assert( xCmp(apSegment[i], apSegment[i+1])<0 ); assert 144974 ext/sqlite3/libsqlite/sqlite3.c assert( pTree->aData==(char *)&pTree[1] ); assert 145057 ext/sqlite3/libsqlite/sqlite3.c assert( iHeight>=1 && iHeight<128 ); assert 145108 ext/sqlite3/libsqlite/sqlite3.c assert( iNextLeaf==iFree ); assert 145130 ext/sqlite3/libsqlite/sqlite3.c assert( pRight==0 || p->zMalloc==0 ); assert 145218 ext/sqlite3/libsqlite/sqlite3.c assert( nPrefix<nTerm ); assert 145246 ext/sqlite3/libsqlite/sqlite3.c assert( nData+nReq<=pWriter->nSize ); assert 145272 ext/sqlite3/libsqlite/sqlite3.c assert( pWriter->zTerm==pWriter->zMalloc ); assert 145378 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 145485 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel>=0 || iLevel==FTS3_SEGCURSOR_ALL ); assert 145535 ext/sqlite3/libsqlite/sqlite3.c assert( iCol>=0 ); assert 145633 ext/sqlite3/libsqlite/sqlite3.c assert( (pMsr->aBuffer[nList] & 0xFE)==0x00 ); assert 145708 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->pFilter==0 ); assert 145709 ext/sqlite3/libsqlite/sqlite3.c assert( zTerm && nTerm>0 ); assert 145731 ext/sqlite3/libsqlite/sqlite3.c assert( iCol<0 || iCol<p->nColumn ); assert 145752 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->zTerm==0 ); assert 145753 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nTerm==0 ); assert 145754 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->aDoclist==0 ); assert 145755 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nDoclist==0 ); assert 145811 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK ); assert 145842 ext/sqlite3/libsqlite/sqlite3.c assert( isIgnoreEmpty || (isRequirePos && !isColFilter) ); assert 145898 ext/sqlite3/libsqlite/sqlite3.c assert( iDelta>0 || (nDoclist==0 && iDelta==iDocid) ); assert 145899 ext/sqlite3/libsqlite/sqlite3.c assert( nDoclist>0 || iDelta==iDocid ); assert 146124 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel==FTS3_SEGCURSOR_ALL assert 146128 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel<FTS3_SEGDIR_MAXLEVEL ); assert 146129 ext/sqlite3/libsqlite/sqlite3.c assert( iIndex>=0 && iIndex<p->nIndex ); assert 146156 ext/sqlite3/libsqlite/sqlite3.c assert( FTS3_SEGCURSOR_PENDING==-1 ); assert 146163 ext/sqlite3/libsqlite/sqlite3.c assert( csr.nSegment>0 ); assert 146164 ext/sqlite3/libsqlite/sqlite3.c assert( iNewLevel>=getAbsoluteLevel(p, iLangid, iIndex, 0) ); assert 146165 ext/sqlite3/libsqlite/sqlite3.c assert( iNewLevel<getAbsoluteLevel(p, iLangid, iIndex,FTS3_SEGDIR_MAXLEVEL) ); assert 146179 ext/sqlite3/libsqlite/sqlite3.c assert( pWriter || bIgnoreEmpty ); assert 146269 ext/sqlite3/libsqlite/sqlite3.c assert(j<=nBuf); assert 146544 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->nSegment==0 ); assert 146664 ext/sqlite3/libsqlite/sqlite3.c assert( p->aNode ); assert 146688 ext/sqlite3/libsqlite/sqlite3.c assert( p->iOff<=p->nNode ); assert 146742 ext/sqlite3/libsqlite/sqlite3.c assert( nTerm>0 ); assert 146793 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->block.nAlloc>=p->nNodeSize ); assert 146806 ext/sqlite3/libsqlite/sqlite3.c assert( 0 ); assert 146849 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->n>0 ); assert 146850 ext/sqlite3/libsqlite/sqlite3.c assert( (pNode->a[0]=='\0')==(aDoclist!=0) ); assert 146873 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->n<=pNode->nAlloc ); assert 146986 ext/sqlite3/libsqlite/sqlite3.c assert( *pRc || pNode->block.nAlloc==0 ); assert 146987 ext/sqlite3/libsqlite/sqlite3.c assert( *pRc || pNode->key.nAlloc==0 ); assert 147169 ext/sqlite3/libsqlite/sqlite3.c assert( reader.aNode ); assert 147422 ext/sqlite3/libsqlite/sqlite3.c assert( p->bIgnoreSavepoint==0 ); assert 147441 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->nAlloc>=1+sqlite3Fts3VarintLen(iChild) ); assert 147444 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->nAlloc>=1 ); assert 147496 ext/sqlite3/libsqlite/sqlite3.c assert( pNew->n<=pNew->nAlloc ); assert 147617 ext/sqlite3/libsqlite/sqlite3.c assert( j<pCsr->nSegment && pSeg->iIdx==i ); assert 147834 ext/sqlite3/libsqlite/sqlite3.c assert( bUseHint==1 || bUseHint==0 ); assert 147946 ext/sqlite3/libsqlite/sqlite3.c assert( p->bFts4==0 ); assert 147976 ext/sqlite3/libsqlite/sqlite3.c assert( p->bFts4==0 ); assert 148034 ext/sqlite3/libsqlite/sqlite3.c assert( *pRc==SQLITE_OK ); assert 148311 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->isRequireSeek==0 ); assert 148399 ext/sqlite3/libsqlite/sqlite3.c assert( pToken->pDeferred==0 ); assert 148476 ext/sqlite3/libsqlite/sqlite3.c assert( p->bHasStat==0 || p->bHasStat==1 ); assert 148478 ext/sqlite3/libsqlite/sqlite3.c assert( p->pSegments==0 ); assert 148479 ext/sqlite3/libsqlite/sqlite3.c assert( assert 148564 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_value_type(apVal[0])==SQLITE_INTEGER ); assert 148582 ext/sqlite3/libsqlite/sqlite3.c assert( p->iPrevDocid==*pRowid ); assert 148774 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pLeft && pExpr->pRight ); assert 148956 ext/sqlite3/libsqlite/sqlite3.c assert( iCsr>=iStart ); assert 148993 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pCsr==0 ); assert 148998 ext/sqlite3/libsqlite/sqlite3.c assert( iFirst>=0 ); assert 149004 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || ( assert 149091 ext/sqlite3/libsqlite/sqlite3.c assert( iScore>=0 ); assert 149135 ext/sqlite3/libsqlite/sqlite3.c assert( pStr->z!=0 && (pStr->nAlloc >= pStr->n+nAppend+1) ); assert 149215 ext/sqlite3/libsqlite/sqlite3.c assert( nShift<=nDesired ); assert 149454 ext/sqlite3/libsqlite/sqlite3.c assert( pExpr->pPhrase ); assert 149473 ext/sqlite3/libsqlite/sqlite3.c assert( *pIter==0x00 || *pIter==0x01 ); assert 149524 ext/sqlite3/libsqlite/sqlite3.c assert( cArg==FTS3_MATCHINFO_HITS ); assert 149547 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3_data_count(pStmt)==1 ); assert 149783 ext/sqlite3/libsqlite/sqlite3.c assert( zArg[i]==FTS3_MATCHINFO_HITS ); assert 149829 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->aMatchinfo ); assert 149956 ext/sqlite3/libsqlite/sqlite3.c assert( (mCovered&mSeen)==mCovered ); assert 149960 ext/sqlite3/libsqlite/sqlite3.c assert( nFToken>0 ); assert 150012 ext/sqlite3/libsqlite/sqlite3.c assert( iPos>=0 ); assert 150046 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->isRequireSeek==0 ); assert 150122 ext/sqlite3/libsqlite/sqlite3.c assert( iCurrent<=iMinPos ); assert 150152 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_DONE ); assert 150350 ext/sqlite3/libsqlite/sqlite3.c assert( bAlnum==0 || bAlnum==1 ); assert 150354 ext/sqlite3/libsqlite/sqlite3.c assert( (sqlite3FtsUnicodeIsalnum(iCode) & 0xFFFFFFFE)==0 ); assert 150419 ext/sqlite3/libsqlite/sqlite3.c assert( (sqlite3FtsUnicodeIsalnum(iCode) & 0xFFFFFFFE)==0 ); assert 150750 ext/sqlite3/libsqlite/sqlite3.c assert( aEntry[0]<key ); assert 150751 ext/sqlite3/libsqlite/sqlite3.c assert( key>=aEntry[iRes] ); assert 150807 ext/sqlite3/libsqlite/sqlite3.c assert( key>=aDia[iRes] ); assert 150929 ext/sqlite3/libsqlite/sqlite3.c assert( c>=0 ); assert 150930 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(unsigned short)==2 && sizeof(unsigned char)==1 ); assert 150949 ext/sqlite3/libsqlite/sqlite3.c assert( iRes<0 || c>=aEntry[iRes].iCode ); assert 150955 ext/sqlite3/libsqlite/sqlite3.c assert( ret>0 ); assert 151374 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(RtreeCoord)==4 ); assert 151375 ext/sqlite3/libsqlite/sqlite3.c assert( sizeof(u32)==4 ); assert 151435 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->pNext==0 ); assert 151448 ext/sqlite3/libsqlite/sqlite3.c for( ; (*pp)!=pNode; pp = &(*pp)->pNext){ assert(*pp); } assert 151491 ext/sqlite3/libsqlite/sqlite3.c assert( !pParent || !pNode->pParent || pNode->pParent==pParent ); assert 151609 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<=nMaxCell ); assert 151650 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->nRef>0 ); assert 151679 ext/sqlite3/libsqlite/sqlite3.c assert( iCell<NCELL(pNode) ); assert 151932 ext/sqlite3/libsqlite/sqlite3.c assert( pConstraint->op==RTREE_MATCH || pConstraint->op==RTREE_QUERY ); assert 151933 ext/sqlite3/libsqlite/sqlite3.c assert( nCoord==2 || nCoord==4 || nCoord==6 || nCoord==8 || nCoord==10 ); assert 151979 ext/sqlite3/libsqlite/sqlite3.c assert(p->op==RTREE_LE || p->op==RTREE_LT || p->op==RTREE_GE assert 152018 ext/sqlite3/libsqlite/sqlite3.c assert(p->op==RTREE_LE || p->op==RTREE_LT || p->op==RTREE_GE assert 152044 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<200 ); assert 152093 ext/sqlite3/libsqlite/sqlite3.c assert( i<j ); assert 152122 ext/sqlite3/libsqlite/sqlite3.c assert( ii==0 || ii==1 ); assert 152123 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->bPoint || pCur->nPoint ); assert 152125 ext/sqlite3/libsqlite/sqlite3.c assert( pRC!=0 ); assert 152153 ext/sqlite3/libsqlite/sqlite3.c assert( iLevel<=RTREE_MAX_DEPTH ); assert 152188 ext/sqlite3/libsqlite/sqlite3.c assert( pCur->aNode[ii]==0 ); assert 152240 ext/sqlite3/libsqlite/sqlite3.c assert( i==0 || i==1 ); assert 152302 ext/sqlite3/libsqlite/sqlite3.c assert( nCell<200 ); assert 152404 ext/sqlite3/libsqlite/sqlite3.c assert( pRtree->eCoordType==RTREE_COORD_INT32 ); assert 152520 ext/sqlite3/libsqlite/sqlite3.c assert( p!=0 ); /* Always returns pCsr->sPoint */ assert 152543 ext/sqlite3/libsqlite/sqlite3.c assert( (idxStr==0 && argc==0) assert 152578 ext/sqlite3/libsqlite/sqlite3.c assert( pCsr->bPoint==1 ); assert 152648 ext/sqlite3/libsqlite/sqlite3.c assert( pIdxInfo->idxStr==0 ); assert 152683 ext/sqlite3/libsqlite/sqlite3.c assert( p->op==SQLITE_INDEX_CONSTRAINT_MATCH ); assert 152987 ext/sqlite3/libsqlite/sqlite3.c assert( left<=right ); assert 153054 ext/sqlite3/libsqlite/sqlite3.c assert( xleft1<=xright1 && (xleft1<xright1 || xleft2<=xright2) ); assert 153366 ext/sqlite3/libsqlite/sqlite3.c assert( pNode->nRef==1 ); assert 153455 ext/sqlite3/libsqlite/sqlite3.c assert( pParent || pNode->iNode==1 ); assert 153775 ext/sqlite3/libsqlite/sqlite3.c assert(nData>=1); assert 153801 ext/sqlite3/libsqlite/sqlite3.c assert( nData<=(pRtree->nDim*2 + 3) ); assert 154213 ext/sqlite3/libsqlite/sqlite3.c assert( *ppVtab==0 ); assert 154214 ext/sqlite3/libsqlite/sqlite3.c assert( pRtree->nBusy==1 ); assert 154533 ext/sqlite3/libsqlite/sqlite3.c assert(uPattern!=0); assert 154717 ext/sqlite3/libsqlite/sqlite3.c assert(!pExpr); assert 154783 ext/sqlite3/libsqlite/sqlite3.c assert(nArg==1 || nArg==2); assert 154842 ext/sqlite3/libsqlite/sqlite3.c assert(!"Unexpected return value from ucol_strcoll()"); assert 154871 ext/sqlite3/libsqlite/sqlite3.c assert(nArg==2); assert 154884 ext/sqlite3/libsqlite/sqlite3.c assert(p); assert 155161 ext/sqlite3/libsqlite/sqlite3.c assert(iStart<=iEnd); assert 155376 ext/sqlite3/libsqlite/sqlite3.c assert( rc==SQLITE_OK || pTab==0 ); assert 155579 ext/sqlite3/libsqlite/sqlite3.c assert( nLocal>=0 ); assert 155580 ext/sqlite3/libsqlite/sqlite3.c assert( nPayload>=(u32)nLocal ); assert 155581 ext/sqlite3/libsqlite/sqlite3.c assert( nLocal<=(nUsable-35) ); assert 155596 ext/sqlite3/libsqlite/sqlite3.c assert( pPg==0 ); assert 155715 ext/sqlite3/libsqlite/sqlite3.c assert( p==&pCsr->aPage[pCsr->iPage-1] ); assert 155823 ext/sqlite3/libsqlite/sqlite3.c assert( i==9 ); 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 3672 ext/standard/basic_functions.c BASIC_MINIT_SUBMODULE(assert) assert 3723 ext/standard/basic_functions.c BASIC_MSHUTDOWN_SUBMODULE(assert) assert 3820 ext/standard/basic_functions.c BASIC_RSHUTDOWN_SUBMODULE(assert) assert 3848 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 201 ext/standard/proc_open.c assert((uint)(p - env.envp) <= sizeenv); assert 2874 ext/standard/string.c assert((long long) m - (long long) j - B >= 0); assert 2991 ext/standard/string.c assert(res->m > 0); assert 61 ext/zlib/zlib_fopen_wrapper.c assert(self != NULL); assert 195 main/getopt.c assert(0); assert 231 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 98 main/streams/memory.c assert(ms->data!= NULL); assert 99 main/streams/memory.c assert(buf!= NULL); assert 113 main/streams/memory.c assert(ms != NULL); assert 137 main/streams/memory.c assert(ms != NULL); assert 208 main/streams/memory.c assert(ms != NULL); assert 327 main/streams/memory.c assert(buf != NULL); assert 342 main/streams/memory.c assert(ms != NULL); assert 343 main/streams/memory.c assert(length != 0); assert 366 main/streams/memory.c assert(ts != NULL); assert 398 main/streams/memory.c assert(ts != NULL); assert 419 main/streams/memory.c assert(ts != NULL); assert 442 main/streams/memory.c assert(ts != NULL); assert 455 main/streams/memory.c assert(ts != NULL); assert 478 main/streams/memory.c assert(ts != NULL); assert 587 main/streams/memory.c assert(buf != NULL); assert 592 main/streams/memory.c assert(ts != NULL); assert 731 main/streams/memory.c assert(ts != NULL); assert 325 main/streams/plain_wrapper.c assert(data != NULL); assert 349 main/streams/plain_wrapper.c assert(data != NULL); assert 410 main/streams/plain_wrapper.c assert(data != NULL); assert 470 main/streams/plain_wrapper.c assert(data != NULL); assert 488 main/streams/plain_wrapper.c assert(data != NULL); assert 517 main/streams/plain_wrapper.c assert(data != NULL); assert 575 main/streams/plain_wrapper.c assert(data != NULL); assert 985 main/streams/streams.c assert(bufstart == NULL); assert 631 main/streams/userspace.c assert(us != NULL); assert 685 main/streams/userspace.c assert(us != NULL); assert 760 main/streams/userspace.c assert(us != NULL); assert 787 main/streams/userspace.c assert(us != NULL); assert 817 main/streams/userspace.c assert(us != NULL); assert 1559 main/streams/userspace.c assert(us != NULL); assert 113 sapi/apache_hooks/sapi_apache.c assert(0); assert 938 sapi/cli/php_cli_server.c assert(n < entries + FD_SETSIZE * 2); assert 1925 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);