OpenCoverage

pcache1.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache1.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2typedef struct PCache1 PCache1;-
3typedef struct PgHdr1 PgHdr1;-
4typedef struct PgFreeslot PgFreeslot;-
5typedef struct PGroup PGroup;-
6-
7-
8-
9-
10-
11-
12-
13struct PgHdr1 {-
14 sqlite3_pcache_page page;-
15 unsigned int iKey;-
16 u8 isBulkLocal;-
17 u8 isAnchor;-
18 PgHdr1 *pNext;-
19 PCache1 *pCache;-
20 PgHdr1 *pLruNext;-
21 PgHdr1 *pLruPrev;-
22};-
23struct PGroup {-
24 sqlite3_mutex *mutex;-
25 unsigned int nMaxPage;-
26 unsigned int nMinPage;-
27 unsigned int mxPinned;-
28 unsigned int nPurgeable;-
29 PgHdr1 lru;-
30};-
31struct PCache1 {-
32-
33-
34-
35-
36-
37-
38 PGroup *pGroup;-
39 unsigned int *pnPurgeable;-
40 int szPage;-
41 int szExtra;-
42 int szAlloc;-
43 int bPurgeable;-
44 unsigned int nMin;-
45 unsigned int nMax;-
46 unsigned int n90pct;-
47 unsigned int iMaxKey;-
48-
49-
50-
51-
52 unsigned int nRecyclable;-
53 unsigned int nPage;-
54 unsigned int nHash;-
55 PgHdr1 **apHash;-
56 PgHdr1 *pFree;-
57 void *pBulk;-
58};-
59-
60-
61-
62-
63-
64struct PgFreeslot {-
65 PgFreeslot *pNext;-
66};-
67-
68-
69-
70-
71static struct PCacheGlobal {-
72 PGroup grp;-
73-
74-
75-
76-
77-
78-
79 int isInit;-
80 int separateCache;-
81 int nInitPage;-
82 int szSlot;-
83 int nSlot;-
84 int nReserve;-
85 void *pStart, *pEnd;-
86-
87 sqlite3_mutex *mutex;-
88 PgFreeslot *pFree;-
89 int nFreeSlot;-
90-
91-
92-
93-
94 int bUnderPressure;-
95} pcache1_g;-
96void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){-
97 if( (
(pcache1_g).isInitDescription
TRUEevaluated 529 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
pcache1_g).isInit
(pcache1_g).isInitDescription
TRUEevaluated 529 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
1-529
98 PgFreeslot *p;-
99 if( pBuf==0
pBuf==0Description
TRUEevaluated 523 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
) sz = n = 0;
executed 523 times by 438 tests: sz = n = 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
6-523
100 if( n==0
n==0Description
TRUEevaluated 523 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
) sz = 0;
executed 523 times by 438 tests: sz = 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
6-523
101 sz = ((sz)&~7);-
102 (pcache1_g).szSlot = sz;-
103 (pcache1_g).nSlot = (pcache1_g).nFreeSlot = n;-
104 (pcache1_g).nReserve = n>90
n>90Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 528 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
? 10 : (n/10 + 1);
1-528
105 (pcache1_g).pStart = pBuf;-
106 (pcache1_g).pFree = 0;-
107 (pcache1_g).bUnderPressure = 0;-
108 while( n--
n--Description
TRUEevaluated 260 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 529 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
260-529
109 p = (PgFreeslot*)pBuf;-
110 p->pNext = (pcache1_g).pFree;-
111 (pcache1_g).pFree = p;-
112 pBuf = (void*)&((char*)pBuf)[sz];-
113 }
executed 260 times by 1 test: end of block
Executed by:
  • Self test (438)
260
114 (pcache1_g).pEnd = pBuf;-
115 }
executed 529 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
529
116}
executed 530 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
530
117-
118-
119-
120-
121-
122static int pcache1InitBulk(PCache1 *pCache){-
123 i64 szBulk;-
124 char *zBulk;-
125 if( (
(pcache1_g).nInitPage==0Description
TRUEevaluated 419 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 81849 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pcache1_g).nInitPage==0
(pcache1_g).nInitPage==0Description
TRUEevaluated 419 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 81849 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
) return
executed 419 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 419 times by 1 test: return 0;
Executed by:
  • Self test (438)
419-81849
126-
127 if( pCache->nMax<3
pCache->nMax<3Description
TRUEevaluated 242 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 81607 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
) return
executed 242 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 242 times by 1 test: return 0;
Executed by:
  • Self test (438)
242-81607
128 sqlite3BeginBenignMalloc();-
129 if( (
(pcache1_g).nInitPage>0Description
TRUEevaluated 81607 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEnever evaluated
pcache1_g).nInitPage>0
(pcache1_g).nInitPage>0Description
TRUEevaluated 81607 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEnever evaluated
){
0-81607
130 szBulk = pCache->szAlloc * (i64)(pcache1_g).nInitPage;-
131 }
executed 81607 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
else{
81607
132 szBulk = -1024 * (i64)(pcache1_g).nInitPage;-
133 }
never executed: end of block
0
134 if( szBulk > pCache->szAlloc*(i64)pCache->nMax
szBulk > pCach...4)pCache->nMaxDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 81598 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
9-81598
135 szBulk = pCache->szAlloc*(i64)pCache->nMax;-
136 }
executed 9 times by 1 test: end of block
Executed by:
  • Self test (438)
9
137 zBulk = pCache->pBulk = sqlite3Malloc( szBulk );-
138 sqlite3EndBenignMalloc();-
139 if( zBulk
zBulkDescription
TRUEevaluated 81591 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
){
16-81591
140 int nBulk = sqlite3MallocSize(zBulk)/pCache->szAlloc;-
141 do{-
142 PgHdr1 *pX = (PgHdr1*)&zBulk[pCache->szPage];-
143 pX->page.pBuf = zBulk;-
144 pX->page.pExtra = &pX[1];-
145 pX->isBulkLocal = 1;-
146 pX->isAnchor = 0;-
147 pX->pNext = pCache->pFree;-
148 pCache->pFree = pX;-
149 zBulk += pCache->szAlloc;-
150 }
executed 1631730 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
while( --
--nBulkDescription
TRUEevaluated 1550139 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 81591 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
nBulk
--nBulkDescription
TRUEevaluated 1550139 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 81591 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
);
81591-1631730
151 }
executed 81591 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
81591
152 return
executed 81607 times by 435 tests: return pCache->pFree!=0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pCache->pFree!=0;
executed 81607 times by 435 tests: return pCache->pFree!=0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
81607
153}-
154static void *pcache1Alloc(int nByte){-
155 void *p = 0;-
156 -
157 ((void) (0))-
158 ;-
159 if( nByte<=(pcache1_g).szSlot
nByte<=(pcache1_g).szSlotDescription
TRUEevaluated 2132 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1754078 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
2132-1754078
160 sqlite3_mutex_enter((pcache1_g).mutex);-
161 p = (PgHdr1 *)(pcache1_g).pFree;-
162 if( p
pDescription
TRUEevaluated 2131 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
1-2131
163 (pcache1_g).pFree = (pcache1_g).pFree->pNext;-
164 (pcache1_g).nFreeSlot--;-
165 (pcache1_g).bUnderPressure = (pcache1_g).nFreeSlot<(pcache1_g).nReserve;-
166 -
167 ((void) (0))-
168 ;-
169 sqlite3StatusHighwater(7, nByte);-
170 sqlite3StatusUp(1, 1);-
171 }
executed 2131 times by 1 test: end of block
Executed by:
  • Self test (438)
2131
172 sqlite3_mutex_leave((pcache1_g).mutex);-
173 }
executed 2132 times by 1 test: end of block
Executed by:
  • Self test (438)
2132
174 if( p==0
p==0Description
TRUEevaluated 1754079 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2131 times by 1 test
Evaluated by:
  • Self test (438)
){
2131-1754079
175-
176-
177-
178 p = sqlite3Malloc(nByte);-
179-
180 if( p
pDescription
TRUEevaluated 1754049 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 30 times by 1 test
Evaluated by:
  • Self test (438)
){
30-1754049
181 int sz = sqlite3MallocSize(p);-
182 sqlite3_mutex_enter((pcache1_g).mutex);-
183 sqlite3StatusHighwater(7, nByte);-
184 sqlite3StatusUp(2, sz);-
185 sqlite3_mutex_leave((pcache1_g).mutex);-
186 }
executed 1754049 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
1754049
187-
188 ;-
189 }
executed 1754079 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
1754079
190 return
executed 1756210 times by 438 tests: return p;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
p;
executed 1756210 times by 438 tests: return p;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
1756210
191}-
192-
193-
194-
195-
196static void pcache1Free(void *p){-
197 if( p==0
p==0Description
TRUEevaluated 101802 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 1712084 times by 401 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (14)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • Self test (145)
  • Self test (146)
  • Self test (147)
  • Self test (148)
  • Self test (149)
  • Self test (15)
  • ...
) return;
executed 101802 times by 438 tests: return;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
101802-1712084
198 if( (((
((uptr)(p)>=(u...e1_g).pStart))Description
TRUEevaluated 1711155 times by 401 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (14)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • Self test (145)
  • Self test (146)
  • Self test (147)
  • Self test (148)
  • Self test (149)
  • Self test (15)
  • ...
FALSEevaluated 929 times by 1 test
Evaluated by:
  • Self test (438)
uptr)(p)>=(uptr)((pcache1_g).pStart))
((uptr)(p)>=(u...e1_g).pStart))Description
TRUEevaluated 1711155 times by 401 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (14)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • Self test (145)
  • Self test (146)
  • Self test (147)
  • Self test (148)
  • Self test (149)
  • Self test (15)
  • ...
FALSEevaluated 929 times by 1 test
Evaluated by:
  • Self test (438)
&&((
((uptr)(p)<(up...che1_g).pEnd))Description
TRUEevaluated 2131 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1709024 times by 401 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (14)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • Self test (145)
  • Self test (146)
  • Self test (147)
  • Self test (148)
  • Self test (149)
  • Self test (15)
  • ...
uptr)(p)<(uptr)((pcache1_g).pEnd))
((uptr)(p)<(up...che1_g).pEnd))Description
TRUEevaluated 2131 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1709024 times by 401 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (14)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • Self test (145)
  • Self test (146)
  • Self test (147)
  • Self test (148)
  • Self test (149)
  • Self test (15)
  • ...
) ){
929-1711155
199 PgFreeslot *pSlot;-
200 sqlite3_mutex_enter((pcache1_g).mutex);-
201 sqlite3StatusDown(1, 1);-
202 pSlot = (PgFreeslot*)p;-
203 pSlot->pNext = (pcache1_g).pFree;-
204 (pcache1_g).pFree = pSlot;-
205 (pcache1_g).nFreeSlot++;-
206 (pcache1_g).bUnderPressure = (pcache1_g).nFreeSlot<(pcache1_g).nReserve;-
207 -
208 ((void) (0))-
209 ;-
210 sqlite3_mutex_leave((pcache1_g).mutex);-
211 }
executed 2131 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
2131
212 -
213 ((void) (0))-
214 ;-
215 ;-
216-
217 {-
218 int nFreed = 0;-
219 nFreed = sqlite3MallocSize(p);-
220 sqlite3_mutex_enter((pcache1_g).mutex);-
221 sqlite3StatusDown(2, nFreed);-
222 sqlite3_mutex_leave((pcache1_g).mutex);-
223 }-
224-
225 sqlite3_free(p);-
226 }
executed 1709953 times by 401 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (14)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • Self test (145)
  • Self test (146)
  • Self test (147)
  • Self test (148)
  • Self test (149)
  • Self test (15)
  • ...
1709953
227}-
228static PgHdr1 *pcache1AllocPage(PCache1 *pCache, int benignMalloc){-
229 PgHdr1 *p = 0;-
230 void *pPg;-
231-
232 -
233 ((void) (0))-
234 ;-
235 if( pCache->pFree
pCache->pFreeDescription
TRUEevaluated 378860 times by 432 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 920876 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
|| (pCache->nPage==0
pCache->nPage==0Description
TRUEevaluated 82268 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 838608 times by 333 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • ...
&& pcache1InitBulk(pCache)
pcache1InitBulk(pCache)Description
TRUEevaluated 81591 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 677 times by 1 test
Evaluated by:
  • Self test (438)
) ){
677-920876
236 p = pCache->pFree;-
237 pCache->pFree = p->pNext;-
238 p->pNext = 0;-
239 }
executed 460451 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
else{
460451
240 if( benignMalloc
benignMallocDescription
TRUEevaluated 292501 times by 332 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • ...
FALSEevaluated 546784 times by 4 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
){ sqlite3BeginBenignMalloc(); }
executed 292501 times by 332 tests: end of block
Executed by:
  • Self test (100)
  • Self test (101)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • ...
292501-546784
241 pPg = pcache1Alloc(pCache->szAlloc);-
242 p = (PgHdr1 *)&((u8 *)pPg)[pCache->szPage];-
243-
244 if( benignMalloc
benignMallocDescription
TRUEevaluated 292501 times by 332 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • ...
FALSEevaluated 546784 times by 4 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
){ sqlite3EndBenignMalloc(); }
executed 292501 times by 332 tests: end of block
Executed by:
  • Self test (100)
  • Self test (101)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • ...
292501-546784
245-
246-
247-
248 if( pPg==0
pPg==0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 839277 times by 333 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • ...
) return
executed 8 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 8 times by 1 test: return 0;
Executed by:
  • Self test (438)
8-839277
249 p->page.pBuf = pPg;-
250 p->page.pExtra = &p[1];-
251 p->isBulkLocal = 0;-
252 p->isAnchor = 0;-
253 }
executed 839277 times by 333 tests: end of block
Executed by:
  • Self test (100)
  • Self test (101)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • Self test (139)
  • Self test (140)
  • Self test (141)
  • Self test (142)
  • Self test (143)
  • Self test (144)
  • ...
839277
254 (*pCache->pnPurgeable)++;-
255 return
executed 1299728 times by 435 tests: return p;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
p;
executed 1299728 times by 435 tests: return p;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
1299728
256}-
257-
258-
259-
260-
261static void pcache1FreePage(PgHdr1 *p){-
262 PCache1 *pCache;-
263 -
264 ((void) (0))-
265 ;-
266 pCache = p->pCache;-
267 -
268 ((void) (0))-
269 ;-
270 if( p->isBulkLocal
p->isBulkLocalDescription
TRUEevaluated 453324 times by 91 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • Self test (30)
  • ...
FALSEevaluated 795939 times by 7 tests
Evaluated by:
  • Self test (101)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
){
453324-795939
271 p->pNext = pCache->pFree;-
272 pCache->pFree = p;-
273 }
executed 453324 times by 91 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • Self test (30)
  • ...
else{
453324
274 pcache1Free(p->page.pBuf);-
275-
276-
277-
278 }
executed 795939 times by 7 tests: end of block
Executed by:
  • Self test (101)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
795939
279 (*pCache->pnPurgeable)--;-
280}
executed 1249263 times by 91 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • Self test (30)
  • ...
1249263
281-
282-
283-
284-
285-
286-
287void *sqlite3PageMalloc(int sz){-
288 return
executed 916925 times by 438 tests: return pcache1Alloc(sz);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
pcache1Alloc(sz);
executed 916925 times by 438 tests: return pcache1Alloc(sz);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
916925
289}-
290-
291-
292-
293-
294void sqlite3PageFree(void *p){-
295 pcache1Free(p);-
296}
executed 1017947 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
1017947
297static int pcache1UnderMemoryPressure(PCache1 *pCache){-
298 if( (
(pcache1_g).nSlotDescription
TRUEevaluated 6873 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2132251 times by 400 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • ...
pcache1_g).nSlot
(pcache1_g).nSlotDescription
TRUEevaluated 6873 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2132251 times by 400 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • ...
&& (
(pCache->szPag...che1_g).szSlotDescription
TRUEevaluated 6131 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 742 times by 1 test
Evaluated by:
  • Self test (438)
pCache->szPage+pCache->szExtra)<=(pcache1_g).szSlot
(pCache->szPag...che1_g).szSlotDescription
TRUEevaluated 6131 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 742 times by 1 test
Evaluated by:
  • Self test (438)
){
742-2132251
299 return
executed 6131 times by 1 test: return (pcache1_g).bUnderPressure;
Executed by:
  • Self test (438)
(pcache1_g).bUnderPressure;
executed 6131 times by 1 test: return (pcache1_g).bUnderPressure;
Executed by:
  • Self test (438)
6131
300 }else{-
301 return
executed 2132993 times by 400 tests: return sqlite3HeapNearlyFull();
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • ...
sqlite3HeapNearlyFull();
executed 2132993 times by 400 tests: return sqlite3HeapNearlyFull();
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • ...
2132993
302 }-
303}-
304static void pcache1ResizeHash(PCache1 *p){-
305 PgHdr1 **apNew;-
306 unsigned int nNew;-
307 unsigned int i;-
308-
309 -
310 ((void) (0))-
311 ;-
312-
313 nNew = p->nHash*2;-
314 if( nNew<256
nNew<256Description
TRUEevaluated 96049 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 833 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
){
833-96049
315 nNew = 256;-
316 }
executed 96049 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
96049
317-
318 -
319 ((void) (0))-
320 ;-
321 if( p->nHash
p->nHashDescription
TRUEevaluated 833 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 96049 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){ sqlite3BeginBenignMalloc(); }
executed 833 times by 14 tests: end of block
Executed by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
833-96049
322 apNew = (PgHdr1 **)sqlite3MallocZero(sizeof(PgHdr1 *)*nNew);-
323 if( p->nHash
p->nHashDescription
TRUEevaluated 833 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 96049 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){ sqlite3EndBenignMalloc(); }
executed 833 times by 14 tests: end of block
Executed by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
833-96049
324 -
325 ((void) (0))-
326 ;-
327 if( apNew
apNewDescription
TRUEevaluated 96868 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
){
14-96868
328 for(i=0; i<p->nHash
i<p->nHashDescription
TRUEevaluated 408064 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 96868 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
; i++){
96868-408064
329 PgHdr1 *pPage;-
330 PgHdr1 *pNext = p->apHash[i];-
331 while( (
(pPage = pNext)!=0Description
TRUEevaluated 408064 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 408064 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
pPage = pNext)!=0
(pPage = pNext)!=0Description
TRUEevaluated 408064 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 408064 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
){
408064
332 unsigned int h = pPage->iKey % nNew;-
333 pNext = pPage->pNext;-
334 pPage->pNext = apNew[h];-
335 apNew[h] = pPage;-
336 }
executed 408064 times by 14 tests: end of block
Executed by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
408064
337 }
executed 408064 times by 14 tests: end of block
Executed by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
408064
338 sqlite3_free(p->apHash);-
339 p->apHash = apNew;-
340 p->nHash = nNew;-
341 }
executed 96868 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
96868
342}
executed 96882 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
96882
343static PgHdr1 *pcache1PinPage(PgHdr1 *pPage){-
344 -
345 ((void) (0))-
346 ;-
347 -
348 ((void) (0))-
349 ;-
350 -
351 ((void) (0))-
352 ;-
353 -
354 ((void) (0))-
355 ;-
356 -
357 ((void) (0))-
358 ;-
359 pPage->pLruPrev->pLruNext = pPage->pLruNext;-
360 pPage->pLruNext->pLruPrev = pPage->pLruPrev;-
361 pPage->pLruNext = 0;-
362 pPage->pLruPrev = 0;-
363 -
364 ((void) (0))-
365 ;-
366 -
367 ((void) (0))-
368 ;-
369 pPage->pCache->nRecyclable--;-
370 return
executed 11726175 times by 435 tests: return pPage;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pPage;
executed 11726175 times by 435 tests: return pPage;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
11726175
371}-
372static void pcache1RemoveFromHash(PgHdr1 *pPage, int freeFlag){-
373 unsigned int h;-
374 PCache1 *pCache = pPage->pCache;-
375 PgHdr1 **pp;-
376-
377 -
378 ((void) (0))-
379 ;-
380 h = pPage->iKey % pCache->nHash;-
381 for(pp=&pCache->apHash[h]; (*
(*pp)!=pPageDescription
TRUEevaluated 622054 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (64)
  • Self test (74)
FALSEevaluated 5806029 times by 33 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (39)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • ...
pp)!=pPage
(*pp)!=pPageDescription
TRUEevaluated 622054 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (64)
  • Self test (74)
FALSEevaluated 5806029 times by 33 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (39)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • ...
; pp=&(*pp)->pNext);
executed 622054 times by 3 tests: ;
Executed by:
  • Self test (438)
  • Self test (64)
  • Self test (74)
622054-5806029
382 *pp = (*pp)->pNext;-
383-
384 pCache->nPage--;-
385 if( freeFlag
freeFlagDescription
TRUEevaluated 392915 times by 23 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (39)
  • Self test (438)
  • Self test (6)
  • Self test (7)
  • Self test (79)
  • Self test (8)
  • Self test (88)
FALSEevaluated 5413114 times by 28 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
) pcache1FreePage(pPage);
executed 392915 times by 23 tests: pcache1FreePage(pPage);
Executed by:
  • Self test
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (39)
  • Self test (438)
  • Self test (6)
  • Self test (7)
  • Self test (79)
  • Self test (8)
  • Self test (88)
392915-5413114
386}
executed 5806029 times by 33 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (39)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • ...
5806029
387-
388-
389-
390-
391-
392static void pcache1EnforceMaxPage(PCache1 *pCache){-
393 PGroup *pGroup = pCache->pGroup;-
394 PgHdr1 *p;-
395 -
396 ((void) (0))-
397 ;-
398 while( pGroup->nPurgeable>pGroup->nMaxPage
pGroup->nPurge...roup->nMaxPageDescription
TRUEevaluated 12653 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 307439 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
12653-307439
399 && (
(p=pGroup->lru...)->isAnchor==0Description
TRUEevaluated 12651 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
p=pGroup->lru.pLruPrev)->isAnchor==0
(p=pGroup->lru...)->isAnchor==0Description
TRUEevaluated 12651 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
2-12651
400 ){-
401 -
402 ((void) (0))-
403 ;-
404 -
405 ((void) (0))-
406 ;-
407 pcache1PinPage(p);-
408 pcache1RemoveFromHash(p, 1);-
409 }
executed 12651 times by 1 test: end of block
Executed by:
  • Self test (438)
12651
410 if( pCache->nPage==0
pCache->nPage==0Description
TRUEevaluated 286768 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 20673 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
&& pCache->pBulk
pCache->pBulkDescription
TRUEevaluated 81216 times by 64 tests
Evaluated by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • Self test (438)
  • Self test (44)
  • ...
FALSEevaluated 205552 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
20673-286768
411 sqlite3_free(pCache->pBulk);-
412 pCache->pBulk = pCache->pFree = 0;-
413 }
executed 81216 times by 64 tests: end of block
Executed by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • Self test (438)
  • Self test (44)
  • ...
81216
414}
executed 307441 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
307441
415static void pcache1TruncateUnsafe(-
416 PCache1 *pCache,-
417 unsigned int iLimit-
418){-
419 -
420 unsigned int h, iStop;-
421 -
422 ((void) (0))-
423 ;-
424 -
425 ((void) (0))-
426 ;-
427 -
428 ((void) (0))-
429 ;-
430 if( pCache->iMaxKey - iLimit < pCache->nHash
pCache->iMaxKe... pCache->nHashDescription
TRUEevaluated 89559 times by 82 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
FALSEevaluated 209 times by 4 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
){
209-89559
431-
432-
433-
434-
435 h = iLimit % pCache->nHash;-
436 iStop = pCache->iMaxKey % pCache->nHash;-
437 -
438 }
executed 89559 times by 82 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
else{
89559
439-
440-
441 h = pCache->nHash/2;-
442 iStop = h - 1;-
443 }
executed 209 times by 4 tests: end of block
Executed by:
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
209
444 for(;;){-
445 PgHdr1 **pp;-
446 PgHdr1 *pPage;-
447 -
448 ((void) (0))-
449 ;-
450 pp = &pCache->apHash[h];-
451 while( (
(pPage = *pp)!=0Description
TRUEevaluated 856887 times by 75 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 965397 times by 82 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
pPage = *pp)!=0
(pPage = *pp)!=0Description
TRUEevaluated 856887 times by 75 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 965397 times by 82 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
){
856887-965397
452 if( pPage->iKey>=iLimit
pPage->iKey>=iLimitDescription
TRUEevaluated 856348 times by 75 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 539 times by 2 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
){
539-856348
453 pCache->nPage--;-
454 *pp = pPage->pNext;-
455 if( ((
((pPage)->pLruNext!=0)Description
TRUEevaluated 854269 times by 75 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 2079 times by 1 test
Evaluated by:
  • Self test (438)
pPage)->pLruNext!=0)
((pPage)->pLruNext!=0)Description
TRUEevaluated 854269 times by 75 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 2079 times by 1 test
Evaluated by:
  • Self test (438)
) pcache1PinPage(pPage);
executed 854269 times by 75 tests: pcache1PinPage(pPage);
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
2079-854269
456 pcache1FreePage(pPage);-
457 }
executed 856348 times by 75 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
else{
856348
458 pp = &pPage->pNext;-
459 -
460 }
executed 539 times by 2 tests: end of block
Executed by:
  • Self test (34)
  • Self test (438)
539
461 }-
462 if( h==iStop
h==iStopDescription
TRUEevaluated 89768 times by 82 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
FALSEevaluated 875629 times by 66 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • ...
) break;
executed 89768 times by 82 tests: break;
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
89768-875629
463 h = (h+1) % pCache->nHash;-
464 }
executed 875629 times by 66 tests: end of block
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • ...
875629
465 -
466 ((void) (0))-
467 ;-
468}
executed 89768 times by 82 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
89768
469-
470-
471-
472-
473-
474-
475-
476static int pcache1Init(void *NotUsed){-
477 (void)(NotUsed);-
478 -
479 ((void) (0))-
480 ;-
481 memset(&(pcache1_g), 0, sizeof((pcache1_g)));-
482 (pcache1_g).separateCache = sqlite3Config.pPage==0
sqlite3Config.pPage==0Description
TRUEevaluated 523 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
6-523
483 || sqlite3Config.bCoreMutex>0
sqlite3Config.bCoreMutex>0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
;
2-4
484-
485-
486-
487-
488-
489 if( sqlite3Config.bCoreMutex
sqlite3Config.bCoreMutexDescription
TRUEevaluated 521 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
){
8-521
490 (pcache1_g).grp.mutex = sqlite3MutexAlloc(6);-
491 (pcache1_g).mutex = sqlite3MutexAlloc(7);-
492 }
executed 521 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
521
493-
494 if( (
(pcache1_g).separateCacheDescription
TRUEevaluated 525 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
pcache1_g).separateCache
(pcache1_g).separateCacheDescription
TRUEevaluated 525 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
4-525
495 && sqlite3Config.nPage!=0
sqlite3Config.nPage!=0Description
TRUEevaluated 514 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
11-514
496 && sqlite3Config.pPage==0
sqlite3Config.pPage==0Description
TRUEevaluated 512 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
2-512
497 ){-
498 (pcache1_g).nInitPage = sqlite3Config.nPage;-
499 }
executed 512 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
else{
512
500 (pcache1_g).nInitPage = 0;-
501 }
executed 17 times by 1 test: end of block
Executed by:
  • Self test (438)
17
502 (pcache1_g).grp.mxPinned = 10;-
503 (pcache1_g).isInit = 1;-
504 return
executed 529 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 529 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
529
505}-
506-
507-
508-
509-
510-
511-
512static void pcache1Shutdown(void *NotUsed){-
513 (void)(NotUsed);-
514 -
515 ((void) (0))-
516 ;-
517 memset(&(pcache1_g), 0, sizeof((pcache1_g)));-
518}
executed 92 times by 6 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
92
519-
520-
521static void pcache1Destroy(sqlite3_pcache *p);-
522-
523-
524-
525-
526-
527-
528static sqlite3_pcache *pcache1Create(int szPage, int szExtra, int bPurgeable){-
529 PCache1 *pCache;-
530 PGroup *pGroup;-
531 int sz;-
532-
533 -
534 ((void) (0))-
535 ;-
536 -
537 ((void) (0))-
538 ;-
539-
540 sz = sizeof(PCache1) + sizeof(PGroup)*(pcache1_g).separateCache;-
541 pCache = (PCache1 *)sqlite3MallocZero(sz);-
542 if( pCache
pCacheDescription
TRUEevaluated 96049 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
){
14-96049
543 if( (
(pcache1_g).separateCacheDescription
TRUEevaluated 96039 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
pcache1_g).separateCache
(pcache1_g).separateCacheDescription
TRUEevaluated 96039 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
){
10-96039
544 pGroup = (PGroup*)&pCache[1];-
545 pGroup->mxPinned = 10;-
546 }
executed 96039 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
else{
96039
547 pGroup = &(pcache1_g).grp;-
548 }
executed 10 times by 1 test: end of block
Executed by:
  • Self test (438)
10
549 if( pGroup->lru.isAnchor==0
pGroup->lru.isAnchor==0Description
TRUEevaluated 96043 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
){
6-96043
550 pGroup->lru.isAnchor = 1;-
551 pGroup->lru.pLruPrev = pGroup->lru.pLruNext = &pGroup->lru;-
552 }
executed 96043 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
96043
553 pCache->pGroup = pGroup;-
554 pCache->szPage = szPage;-
555 pCache->szExtra = szExtra;-
556 pCache->szAlloc = szPage + szExtra + (((sizeof(PgHdr1))+7)&~7);-
557 pCache->bPurgeable = (bPurgeable
bPurgeableDescription
TRUEevaluated 95748 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 301 times by 1 test
Evaluated by:
  • Self test (438)
? 1 : 0);
301-95748
558 -
559 ((void) (0))-
560 ;-
561 pcache1ResizeHash(pCache);-
562 if( bPurgeable
bPurgeableDescription
TRUEevaluated 95748 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 301 times by 1 test
Evaluated by:
  • Self test (438)
){
301-95748
563 pCache->nMin = 10;-
564 pGroup->nMinPage += pCache->nMin;-
565 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;-
566 pCache->pnPurgeable = &pGroup->nPurgeable;-
567 }
executed 95748 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
else{
95748
568 static unsigned int dummyCurrentPage;-
569 pCache->pnPurgeable = &dummyCurrentPage;-
570 }
executed 301 times by 1 test: end of block
Executed by:
  • Self test (438)
301
571 -
572 ((void) (0))-
573 ;-
574 if( pCache->nHash==0
pCache->nHash==0Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 96035 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
14-96035
575 pcache1Destroy((sqlite3_pcache*)pCache);-
576 pCache = 0;-
577 }
executed 14 times by 1 test: end of block
Executed by:
  • Self test (438)
14
578 }
executed 96049 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
96049
579 return
executed 96063 times by 438 tests: return (sqlite3_pcache *)pCache;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
(sqlite3_pcache *)pCache;
executed 96063 times by 438 tests: return (sqlite3_pcache *)pCache;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
96063
580}-
581-
582-
583-
584-
585-
586-
587static void pcache1Cachesize(sqlite3_pcache *p, int nMax){-
588 PCache1 *pCache = (PCache1 *)p;-
589 if( pCache->bPurgeable
pCache->bPurgeableDescription
TRUEevaluated 211761 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 756 times by 1 test
Evaluated by:
  • Self test (438)
){
756-211761
590 PGroup *pGroup = pCache->pGroup;-
591 -
592 ((void) (0))-
593 ;-
594 pGroup->nMaxPage += (nMax - pCache->nMax);-
595 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;-
596 pCache->nMax = nMax;-
597 pCache->n90pct = pCache->nMax*9/10;-
598 pcache1EnforceMaxPage(pCache);-
599 -
600 ((void) (0))-
601 ;-
602 }
executed 211761 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
211761
603}
executed 212517 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
212517
604-
605-
606-
607-
608-
609-
610static void pcache1Shrink(sqlite3_pcache *p){-
611 PCache1 *pCache = (PCache1*)p;-
612 if( pCache->bPurgeable
pCache->bPurgeableDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-6
613 PGroup *pGroup = pCache->pGroup;-
614 int savedMaxPage;-
615 -
616 ((void) (0))-
617 ;-
618 savedMaxPage = pGroup->nMaxPage;-
619 pGroup->nMaxPage = 0;-
620 pcache1EnforceMaxPage(pCache);-
621 pGroup->nMaxPage = savedMaxPage;-
622 -
623 ((void) (0))-
624 ;-
625 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
626}
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
627-
628-
629-
630-
631static int pcache1Pagecount(sqlite3_pcache *p){-
632 int n;-
633 PCache1 *pCache = (PCache1*)p;-
634 -
635 ((void) (0))-
636 ;-
637 n = pCache->nPage;-
638 -
639 ((void) (0))-
640 ;-
641 return
executed 1489785 times by 27 tests: return n;
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
n;
executed 1489785 times by 27 tests: return n;
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
1489785
642}-
643static __attribute__((noinline)) PgHdr1 *pcache1FetchStage2(-
644 PCache1 *pCache,-
645 unsigned int iKey,-
646 int createFlag-
647){-
648 unsigned int nPinned;-
649 PGroup *pGroup = pCache->pGroup;-
650 PgHdr1 *pPage = 0;-
651-
652-
653 -
654 ((void) (0))-
655 ;-
656 nPinned = pCache->nPage - pCache->nRecyclable;-
657 -
658 ((void) (0))-
659 ;-
660 -
661 ((void) (0))-
662 ;-
663 if( createFlag==1
createFlag==1Description
TRUEevaluated 3055748 times by 372 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (11)
  • Self test (12)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (13)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • ...
FALSEevaluated 5146816 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
&& (
3055748-5146816
664 nPinned>=pGroup->mxPinned
nPinned>=pGroup->mxPinnedDescription
TRUEevaluated 262675 times by 21 tests
Evaluated by:
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (6)
  • Self test (7)
  • Self test (8)
FALSEevaluated 2793073 times by 372 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (11)
  • Self test (12)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (13)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • ...
262675-2793073
665 || nPinned>=pCache->n90pct
nPinned>=pCache->n90pctDescription
TRUEevaluated 1225947 times by 27 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
FALSEevaluated 1567126 times by 372 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (11)
  • Self test (12)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (13)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • ...
1225947-1567126
666 || (pcache1UnderMemoryPressure(pCache)
pcache1UnderMe...essure(pCache)Description
TRUEevaluated 1825 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1565301 times by 372 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (11)
  • Self test (12)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • Self test (13)
  • Self test (130)
  • Self test (131)
  • Self test (132)
  • Self test (133)
  • Self test (134)
  • Self test (135)
  • Self test (136)
  • Self test (137)
  • Self test (138)
  • ...
&& pCache->nRecyclable<nPinned
pCache->nRecyclable<nPinnedDescription
TRUEevaluated 1092 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 733 times by 1 test
Evaluated by:
  • Self test (438)
)
733-1565301
667 )){-
668 return
executed 1489714 times by 27 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
0;
executed 1489714 times by 27 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
1489714
669 }-
670-
671 if( pCache->nPage>=pCache->nHash
pCache->nPage>=pCache->nHashDescription
TRUEevaluated 833 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 6712017 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
) pcache1ResizeHash(pCache);
executed 833 times by 14 tests: pcache1ResizeHash(pCache);
Executed by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
833-6712017
672 -
673 ((void) (0))-
674 ;-
675-
676-
677 if( pCache->bPurgeable
pCache->bPurgeableDescription
TRUEevaluated 6710789 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 2061 times by 1 test
Evaluated by:
  • Self test (438)
2061-6710789
678 && !pGroup->lru.pLruPrev->isAnchor
!pGroup->lru.p...Prev->isAnchorDescription
TRUEevaluated 5981047 times by 377 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • ...
FALSEevaluated 729742 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
729742-5981047
679 && ((
(pCache->nPage...=pCache->nMax)Description
TRUEevaluated 5409049 times by 28 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
FALSEevaluated 571998 times by 377 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • ...
pCache->nPage+1>=pCache->nMax)
(pCache->nPage...=pCache->nMax)Description
TRUEevaluated 5409049 times by 28 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
FALSEevaluated 571998 times by 377 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • ...
|| pcache1UnderMemoryPressure(pCache)
pcache1UnderMe...essure(pCache)Description
TRUEevaluated 4065 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 567933 times by 377 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (104)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • ...
)
4065-5409049
680 ){-
681 PCache1 *pOther;-
682 pPage = pGroup->lru.pLruPrev;-
683 -
684 ((void) (0))-
685 ;-
686 pcache1RemoveFromHash(pPage, 0);-
687 pcache1PinPage(pPage);-
688 pOther = pPage->pCache;-
689 if( pOther->szAlloc != pCache->szAlloc
pOther->szAllo...Cache->szAllocDescription
TRUEnever evaluated
FALSEevaluated 5413114 times by 28 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
){
0-5413114
690 pcache1FreePage(pPage);-
691 pPage = 0;-
692 }
never executed: end of block
else{
0
693 pGroup->nPurgeable -= (pOther->bPurgeable - pCache->bPurgeable);-
694 }
executed 5413114 times by 28 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
5413114
695 }-
696-
697-
698-
699-
700 if( !pPage
!pPageDescription
TRUEevaluated 1299736 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 5413114 times by 28 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • Self test (6)
  • Self test (64)
  • Self test (7)
  • ...
){
1299736-5413114
701 pPage = pcache1AllocPage(pCache, createFlag==1);-
702 }
executed 1299736 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
1299736
703-
704 if( pPage
pPageDescription
TRUEevaluated 6712842 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
){
8-6712842
705 unsigned int h = iKey % pCache->nHash;-
706 pCache->nPage++;-
707 pPage->iKey = iKey;-
708 pPage->pNext = pCache->apHash[h];-
709 pPage->pCache = pCache;-
710 pPage->pLruPrev = 0;-
711 pPage->pLruNext = 0;-
712 *(void **)pPage->page.pExtra = 0;-
713 pCache->apHash[h] = pPage;-
714 if( iKey>pCache->iMaxKey
iKey>pCache->iMaxKeyDescription
TRUEevaluated 1126130 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 5586712 times by 376 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • ...
){
1126130-5586712
715 pCache->iMaxKey = iKey;-
716 }
executed 1126130 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
1126130
717 }
executed 6712842 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
6712842
718 return
executed 6712850 times by 435 tests: return pPage;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pPage;
executed 6712850 times by 435 tests: return pPage;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
6712850
719}-
720static PgHdr1 *pcache1FetchNoMutex(-
721 sqlite3_pcache *p,-
722 unsigned int iKey,-
723 int createFlag-
724){-
725 PCache1 *pCache = (PCache1 *)p;-
726 PgHdr1 *pPage = 0;-
727-
728-
729 pPage = pCache->apHash[iKey % pCache->nHash];-
730 while( pPage
pPageDescription
TRUEevaluated 19327234 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 8344943 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
&& pPage->iKey!=iKey
pPage->iKey!=iKeyDescription
TRUEevaluated 2565882 times by 14 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 16761352 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){ pPage = pPage->pNext; }
executed 2565882 times by 14 tests: end of block
Executed by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (64)
  • Self test (74)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
2565882-19327234
731-
732-
733-
734-
735-
736 if( pPage
pPageDescription
TRUEevaluated 16761352 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 8344943 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
8344943-16761352
737 if( ((
((pPage)->pLruNext!=0)Description
TRUEevaluated 5446141 times by 430 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 11315211 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pPage)->pLruNext!=0)
((pPage)->pLruNext!=0)Description
TRUEevaluated 5446141 times by 430 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 11315211 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
5446141-11315211
738 return
executed 5446141 times by 430 tests: return pcache1PinPage(pPage);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pcache1PinPage(pPage);
executed 5446141 times by 430 tests: return pcache1PinPage(pPage);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
5446141
739 }else{-
740 return
executed 11315211 times by 434 tests: return pPage;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pPage;
executed 11315211 times by 434 tests: return pPage;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
11315211
741 }-
742 }else if( createFlag
createFlagDescription
TRUEevaluated 8202564 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 142379 times by 17 tests
Evaluated by:
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (34)
  • Self test (438)
  • Self test (54)
  • Self test (6)
  • Self test (7)
  • Self test (8)
  • Self test (9)
){
142379-8202564
743-
744 return
executed 8202564 times by 435 tests: return pcache1FetchStage2(pCache, iKey, createFlag);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pcache1FetchStage2(pCache, iKey, createFlag);
executed 8202564 times by 435 tests: return pcache1FetchStage2(pCache, iKey, createFlag);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
8202564
745 }else{-
746 return
executed 142379 times by 17 tests: return 0;
Executed by:
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (34)
  • Self test (438)
  • Self test (54)
  • Self test (6)
  • Self test (7)
  • Self test (8)
  • Self test (9)
0;
executed 142379 times by 17 tests: return 0;
Executed by:
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (34)
  • Self test (438)
  • Self test (54)
  • Self test (6)
  • Self test (7)
  • Self test (8)
  • Self test (9)
142379
747 }-
748}-
749static sqlite3_pcache_page *pcache1Fetch(-
750 sqlite3_pcache *p,-
751 unsigned int iKey,-
752 int createFlag-
753){-
754-
755-
756-
757-
758 -
759 ((void) (0))-
760 ;-
761 -
762 ((void) (0))-
763 ;-
764 -
765 ((void) (0))-
766 ;-
767 -
768 ((void) (0))-
769 ;-
770 -
771 ((void) (0))-
772 ;-
773 -
774 ((void) (0))-
775 ;-
776-
777-
778-
779-
780-
781 {-
782 return
executed 25106295 times by 435 tests: return (sqlite3_pcache_page*)pcache1FetchNoMutex(p, iKey, createFlag);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
(sqlite3_pcache_page*)pcache1FetchNoMutex(p, iKey, createFlag);
executed 25106295 times by 435 tests: return (sqlite3_pcache_page*)pcache1FetchNoMutex(p, iKey, createFlag);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
25106295
783 }-
784}-
785-
786-
787-
788-
789-
790-
791-
792static void pcache1Unpin(-
793 sqlite3_pcache *p,-
794 sqlite3_pcache_page *pPg,-
795 int reuseUnlikely-
796){-
797 PCache1 *pCache = (PCache1 *)p;-
798 PgHdr1 *pPage = (PgHdr1 *)pPg;-
799 PGroup *pGroup = pCache->pGroup;-
800-
801 -
802 ((void) (0))-
803 ;-
804 -
805 ((void) (0))-
806 ;-
807-
808-
809-
810-
811 -
812 ((void) (0))-
813 ;-
814 -
815 ((void) (0))-
816 ;-
817-
818 if( reuseUnlikely
reuseUnlikelyDescription
TRUEevaluated 4611 times by 7 tests
Evaluated by:
  • Self test
  • Self test (32)
  • Self test (33)
  • Self test (39)
  • Self test (438)
  • Self test (79)
  • Self test (88)
FALSEevaluated 12134226 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
|| pGroup->nPurgeable>pGroup->nMaxPage
pGroup->nPurge...roup->nMaxPageDescription
TRUEevaluated 375653 times by 17 tests
Evaluated by:
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (438)
  • Self test (6)
  • Self test (7)
  • Self test (8)
FALSEevaluated 11758573 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
4611-12134226
819 pcache1RemoveFromHash(pPage, 1);-
820 }
executed 380264 times by 23 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (11)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (39)
  • Self test (438)
  • Self test (6)
  • Self test (7)
  • Self test (79)
  • Self test (8)
  • Self test (88)
else{
380264
821-
822 PgHdr1 **ppFirst = &pGroup->lru.pLruNext;-
823 pPage->pLruPrev = &pGroup->lru;-
824 (pPage->pLruNext = *ppFirst)->pLruPrev = pPage;-
825 *ppFirst = pPage;-
826 pCache->nRecyclable++;-
827 }
executed 11758573 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
11758573
828-
829 -
830 ((void) (0))-
831 ;-
832}
executed 12138837 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
12138837
833-
834-
835-
836-
837static void pcache1Rekey(-
838 sqlite3_pcache *p,-
839 sqlite3_pcache_page *pPg,-
840 unsigned int iOld,-
841 unsigned int iNew-
842){-
843 PCache1 *pCache = (PCache1 *)p;-
844 PgHdr1 *pPage = (PgHdr1 *)pPg;-
845 PgHdr1 **pp;-
846 unsigned int h;-
847 -
848 ((void) (0))-
849 ;-
850 -
851 ((void) (0))-
852 ;-
853-
854 -
855 ((void) (0))-
856 ;-
857-
858 h = iOld%pCache->nHash;-
859 pp = &pCache->apHash[h];-
860 while( (*
(*pp)!=pPageDescription
TRUEevaluated 4515 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 351186 times by 152 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (302)
  • Self test (303)
  • Self test (304)
  • Self test (305)
  • Self test (306)
  • Self test (307)
  • Self test (308)
  • Self test (309)
  • Self test (310)
  • Self test (311)
  • Self test (312)
  • Self test (313)
  • Self test (314)
  • Self test (315)
  • Self test (316)
  • Self test (317)
  • ...
pp)!=pPage
(*pp)!=pPageDescription
TRUEevaluated 4515 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 351186 times by 152 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (302)
  • Self test (303)
  • Self test (304)
  • Self test (305)
  • Self test (306)
  • Self test (307)
  • Self test (308)
  • Self test (309)
  • Self test (310)
  • Self test (311)
  • Self test (312)
  • Self test (313)
  • Self test (314)
  • Self test (315)
  • Self test (316)
  • Self test (317)
  • ...
){
4515-351186
861 pp = &(*pp)->pNext;-
862 }
executed 4515 times by 1 test: end of block
Executed by:
  • Self test (438)
4515
863 *pp = pPage->pNext;-
864-
865 h = iNew%pCache->nHash;-
866 pPage->iKey = iNew;-
867 pPage->pNext = pCache->apHash[h];-
868 pCache->apHash[h] = pPage;-
869 if( iNew>pCache->iMaxKey
iNew>pCache->iMaxKeyDescription
TRUEevaluated 41435 times by 151 tests
Evaluated by:
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (302)
  • Self test (303)
  • Self test (304)
  • Self test (305)
  • Self test (306)
  • Self test (307)
  • Self test (308)
  • Self test (309)
  • Self test (310)
  • Self test (311)
  • Self test (312)
  • Self test (313)
  • Self test (314)
  • Self test (315)
  • Self test (316)
  • Self test (317)
  • Self test (318)
  • ...
FALSEevaluated 309751 times by 152 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (302)
  • Self test (303)
  • Self test (304)
  • Self test (305)
  • Self test (306)
  • Self test (307)
  • Self test (308)
  • Self test (309)
  • Self test (310)
  • Self test (311)
  • Self test (312)
  • Self test (313)
  • Self test (314)
  • Self test (315)
  • Self test (316)
  • Self test (317)
  • ...
){
41435-309751
870 pCache->iMaxKey = iNew;-
871 }
executed 41435 times by 151 tests: end of block
Executed by:
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (302)
  • Self test (303)
  • Self test (304)
  • Self test (305)
  • Self test (306)
  • Self test (307)
  • Self test (308)
  • Self test (309)
  • Self test (310)
  • Self test (311)
  • Self test (312)
  • Self test (313)
  • Self test (314)
  • Self test (315)
  • Self test (316)
  • Self test (317)
  • Self test (318)
  • ...
41435
872-
873 -
874 ((void) (0))-
875 ;-
876}
executed 351186 times by 152 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (302)
  • Self test (303)
  • Self test (304)
  • Self test (305)
  • Self test (306)
  • Self test (307)
  • Self test (308)
  • Self test (309)
  • Self test (310)
  • Self test (311)
  • Self test (312)
  • Self test (313)
  • Self test (314)
  • Self test (315)
  • Self test (316)
  • Self test (317)
  • ...
351186
877static void pcache1Truncate(sqlite3_pcache *p, unsigned int iLimit){-
878 PCache1 *pCache = (PCache1 *)p;-
879 -
880 ((void) (0))-
881 ;-
882 if( iLimit<=pCache->iMaxKey
iLimit<=pCache->iMaxKeyDescription
TRUEevaluated 89750 times by 82 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
FALSEevaluated 236174 times by 98 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • ...
){
89750-236174
883 pcache1TruncateUnsafe(pCache, iLimit);-
884 pCache->iMaxKey = iLimit-1;-
885 }
executed 89750 times by 82 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (15)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
89750
886 -
887 ((void) (0))-
888 ;-
889}
executed 325924 times by 105 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • ...
325924
890-
891-
892-
893-
894-
895-
896static void pcache1Destroy(sqlite3_pcache *p){-
897 PCache1 *pCache = (PCache1 *)p;-
898 PGroup *pGroup = pCache->pGroup;-
899 -
900 ((void) (0))-
901 ;-
902 -
903 ((void) (0))-
904 ;-
905 if( pCache->nPage
pCache->nPageDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 95656 times by 99 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • ...
) pcache1TruncateUnsafe(pCache, 0);
executed 18 times by 1 test: pcache1TruncateUnsafe(pCache, 0);
Executed by:
  • Self test (438)
18-95656
906 -
907 ((void) (0))-
908 ;-
909 pGroup->nMaxPage -= pCache->nMax;-
910 -
911 ((void) (0))-
912 ;-
913 pGroup->nMinPage -= pCache->nMin;-
914 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;-
915 pcache1EnforceMaxPage(pCache);-
916 -
917 ((void) (0))-
918 ;-
919 sqlite3_free(pCache->pBulk);-
920 sqlite3_free(pCache->apHash);-
921 sqlite3_free(pCache);-
922}
executed 95674 times by 99 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • ...
95674
923-
924-
925-
926-
927-
928-
929void sqlite3PCacheSetDefault(void){-
930 static const sqlite3_pcache_methods2 defaultMethods = {-
931 1,-
932 0,-
933 pcache1Init,-
934 pcache1Shutdown,-
935 pcache1Create,-
936 pcache1Cachesize,-
937 pcache1Pagecount,-
938 pcache1Fetch,-
939 pcache1Unpin,-
940 pcache1Rekey,-
941 pcache1Truncate,-
942 pcache1Destroy,-
943 pcache1Shrink-
944 };-
945 sqlite3_config(18, &defaultMethods);-
946}
executed 438 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
438
947-
948-
949-
950-
951int sqlite3HeaderSizePcache1(void){ return
never executed: return (((sizeof(PgHdr1))+7)&~7);
(((sizeof(PgHdr1))+7)&~7);
never executed: return (((sizeof(PgHdr1))+7)&~7);
}
0
952-
953-
954-
955-
956-
957sqlite3_mutex *sqlite3Pcache1Mutex(void){-
958 return
executed 2971 times by 1 test: return (pcache1_g).mutex;
Executed by:
  • Self test (438)
(pcache1_g).mutex;
executed 2971 times by 1 test: return (pcache1_g).mutex;
Executed by:
  • Self test (438)
2971
959}-
960void sqlite3PcacheStats(-
961 int *pnCurrent,-
962 int *pnMax,-
963 int *pnMin,-
964 int *pnRecyclable-
965){-
966 PgHdr1 *p;-
967 int nRecyclable = 0;-
968 for(p=(pcache1_g).grp.lru.pLruNext; p
pDescription
TRUEnever evaluated
FALSEnever evaluated
&& !p->isAnchor
!p->isAnchorDescription
TRUEnever evaluated
FALSEnever evaluated
; p=p->pLruNext){
0
969 -
970 ((void) (0))-
971 ;-
972 nRecyclable++;-
973 }
never executed: end of block
0
974 *pnCurrent = (pcache1_g).grp.nPurgeable;-
975 *pnMax = (int)(pcache1_g).grp.nMaxPage;-
976 *pnMin = (int)(pcache1_g).grp.nMinPage;-
977 *pnRecyclable = nRecyclable;-
978}
never executed: end of block
0
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2