OpenCoverage

util.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/util.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4int sqlite3FaultSim(int iTest){-
5 int (*xCallback)(int) = sqlite3Config.xTestCallback;-
6 return
executed 123094 times by 149 tests: return xCallback ? xCallback(iTest) : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • 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 (31)
  • Self test (32)
  • ...
xCallback
xCallbackDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 123096 times by 149 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • 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 (31)
  • Self test (32)
  • ...
? xCallback(iTest) : 0;
executed 123094 times by 149 tests: return xCallback ? xCallback(iTest) : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • 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 (31)
  • Self test (32)
  • ...
1-123096
7}-
8int sqlite3IsNaN(double x){-
9 int rc;-
10 rc = -
11 __builtin_isnan (-
12 x-
13 )-
14 ;-
15-
16 ;-
17 return
executed 2519655 times by 4 tests: return rc;
Executed by:
  • Self test
  • Self test (438)
  • Self test (57)
  • Self test (58)
rc;
executed 2519655 times by 4 tests: return rc;
Executed by:
  • Self test
  • Self test (438)
  • Self test (57)
  • Self test (58)
2519655
18}-
19int sqlite3Strlen30(const char *z){-
20 if( z==0
z==0Description
TRUEevaluated 49596 times by 63 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • 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 (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • ...
FALSEevaluated 7803623 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)
  • ...
) return
executed 49596 times by 63 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • 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 (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • ...
0;
executed 49596 times by 63 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (101)
  • 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 (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • ...
49596-7803623
21 return
executed 7803623 times by 438 tests: return 0x3fffffff & (int)strlen(z);
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)
  • ...
0x3fffffff & (int)strlen(z);
executed 7803623 times by 438 tests: return 0x3fffffff & (int)strlen(z);
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)
  • ...
7803623
22}-
23char *sqlite3ColumnType(Column *pCol, char *zDflt){-
24 if( (
(pCol->colFlags & 0x0004)==0Description
TRUEevaluated 98462 times by 50 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • 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 (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • ...
FALSEevaluated 206082 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)
  • ...
pCol->colFlags & 0x0004)==0
(pCol->colFlags & 0x0004)==0Description
TRUEevaluated 98462 times by 50 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • 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 (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • ...
FALSEevaluated 206082 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 98462 times by 50 tests: return zDflt;
Executed by:
  • Self test (10)
  • Self test (101)
  • 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 (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • ...
zDflt;
executed 98462 times by 50 tests: return zDflt;
Executed by:
  • Self test (10)
  • Self test (101)
  • 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 (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • ...
98462-206082
25 return
executed 206082 times by 435 tests: return pCol->zName + strlen(pCol->zName) + 1;
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)
  • ...
pCol->zName + strlen(pCol->zName) + 1;
executed 206082 times by 435 tests: return pCol->zName + strlen(pCol->zName) + 1;
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)
  • ...
206082
26}-
27-
28-
29-
30-
31-
32-
33static __attribute__((noinline)) void sqlite3ErrorFinish(sqlite3 *db, int err_code){-
34 if( db->pErr
db->pErrDescription
TRUEevaluated 155203 times by 19 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
FALSEevaluated 8366 times by 1 test
Evaluated by:
  • Self test (438)
) sqlite3ValueSetNull(db->pErr);
executed 155203 times by 19 tests: sqlite3ValueSetNull(db->pErr);
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
8366-155203
35 sqlite3SystemError(db, err_code);-
36}
executed 163569 times by 19 tests: end of block
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
163569
37-
38-
39-
40-
41-
42-
43void sqlite3Error(sqlite3 *db, int err_code){-
44 -
45 ((void) (0))-
46 ;-
47 db->errCode = err_code;-
48 if( err_code
err_codeDescription
TRUEevaluated 8439 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (47)
FALSEevaluated 1433402 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)
  • ...
|| db->pErr
db->pErrDescription
TRUEevaluated 155130 times by 19 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
FALSEevaluated 1278272 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)
  • ...
) sqlite3ErrorFinish(db, err_code);
executed 163569 times by 19 tests: sqlite3ErrorFinish(db, err_code);
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
8439-1433402
49}
executed 1441841 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)
  • ...
1441841
50-
51-
52-
53-
54-
55void sqlite3SystemError(sqlite3 *db, int rc){-
56 if( rc==(10 | (12<<8))
rc==(10 | (12<<8))Description
TRUEevaluated 219 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 181314 times by 19 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
) return;
executed 219 times by 1 test: return;
Executed by:
  • Self test (438)
219-181314
57 rc &= 0xff;-
58 if( rc==14
rc==14Description
TRUEevaluated 527 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 180787 times by 19 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
|| rc==10
rc==10Description
TRUEevaluated 187 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 180600 times by 19 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
){
187-180787
59 db->iSysErrno = sqlite3OsGetLastError(db->pVfs);-
60 }
executed 714 times by 1 test: end of block
Executed by:
  • Self test (438)
714
61}
executed 181314 times by 19 tests: end of block
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
181314
62void sqlite3ErrorWithMsg(sqlite3 *db, int err_code, const char *zFormat, ...){-
63 -
64 ((void) (0))-
65 ;-
66 db->errCode = err_code;-
67 sqlite3SystemError(db, err_code);-
68 if( zFormat==0
zFormat==0Description
TRUEevaluated 9114 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2232 times by 13 tests
Evaluated by:
  • Self test (26)
  • Self test (27)
  • Self test (29)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
){
2232-9114
69 sqlite3Error(db, err_code);-
70 }
executed 9114 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( db->pErr
db->pErrDescription
TRUEevaluated 1498 times by 6 tests
Evaluated by:
  • Self test (26)
  • Self test (27)
  • Self test (29)
  • Self test (39)
  • Self test (438)
  • Self test (47)
FALSEevaluated 734 times by 9 tests
Evaluated by:
  • Self test (438)
  • Self test (47)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
|| (
(db->pErr = sq...lueNew(db))!=0Description
TRUEevaluated 608 times by 9 tests
Evaluated by:
  • Self test (438)
  • Self test (47)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
FALSEevaluated 126 times by 1 test
Evaluated by:
  • Self test (438)
db->pErr = sqlite3ValueNew(db))!=0
(db->pErr = sq...lueNew(db))!=0Description
TRUEevaluated 608 times by 9 tests
Evaluated by:
  • Self test (438)
  • Self test (47)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
FALSEevaluated 126 times by 1 test
Evaluated by:
  • Self test (438)
){
126-9114
71 char *z;-
72 va_list ap;-
73 -
74 __builtin_va_start(-
75 ap-
76 ,-
77 zFormat-
78 )-
79 ;-
80 z = sqlite3VMPrintf(db, zFormat, ap);-
81 -
82 __builtin_va_end(-
83 ap-
84 )-
85 ;-
86 sqlite3ValueSetStr(db->pErr, -1, z, 1, ((sqlite3_destructor_type)sqlite3MallocSize));-
87 }
executed 2106 times by 13 tests: end of block
Executed by:
  • Self test (26)
  • Self test (27)
  • Self test (29)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
2106
88}
executed 11346 times by 13 tests: end of block
Executed by:
  • Self test (26)
  • Self test (27)
  • Self test (29)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (61)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
11346
89void sqlite3ErrorMsg(Parse *pParse, const char *zFormat, ...){-
90 char *zMsg;-
91 va_list ap;-
92 sqlite3 *db = pParse->db;-
93 -
94 __builtin_va_start(-
95 ap-
96 ,-
97 zFormat-
98 )-
99 ;-
100 zMsg = sqlite3VMPrintf(db, zFormat, ap);-
101 -
102 __builtin_va_end(-
103 ap-
104 )-
105 ;-
106 if( db->suppressErr
db->suppressErrDescription
TRUEevaluated 477 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (47)
FALSEevaluated 1891 times by 12 tests
Evaluated by:
  • Self test (26)
  • Self test (27)
  • Self test (29)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
){
477-1891
107 sqlite3DbFree(db, zMsg);-
108 }
executed 477 times by 2 tests: end of block
Executed by:
  • Self test (438)
  • Self test (47)
else{
477
109 pParse->nErr++;-
110 sqlite3DbFree(db, pParse->zErrMsg);-
111 pParse->zErrMsg = zMsg;-
112 pParse->rc = 1;-
113 }
executed 1891 times by 12 tests: end of block
Executed by:
  • Self test (26)
  • Self test (27)
  • Self test (29)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (78)
  • Self test (79)
  • Self test (80)
  • Self test (81)
  • Self test (82)
  • Self test (83)
1891
114}-
115void sqlite3Dequote(char *z){-
116 char quote;-
117 int i, j;-
118 if( z==0
z==0Description
TRUEevaluated 107 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1940485 times by 436 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 107 times by 1 test: return;
Executed by:
  • Self test (438)
107-1940485
119 quote = z[0];-
120 if( !(sqlite3CtypeMap[(unsigned char)(quote)]&0x80)
!(sqlite3Ctype...(quote)]&0x80)Description
TRUEevaluated 1534389 times by 436 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 406096 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 1534389 times by 436 tests: return;
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)
  • ...
406096-1534389
121 if( quote=='['
quote=='['Description
TRUEevaluated 159 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 405937 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)
  • ...
) quote = ']';
executed 159 times by 1 test: quote = ']';
Executed by:
  • Self test (438)
159-405937
122 for(i=1, j=0;; i++){-
123 -
124 ((void) (0))-
125 ;-
126 if( z[i]==quote
z[i]==quoteDescription
TRUEevaluated 413271 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 7943295 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)
  • ...
){
413271-7943295
127 if( z[i+1]==quote
z[i+1]==quoteDescription
TRUEevaluated 7175 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 406096 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)
  • ...
){
7175-406096
128 z[j++] = quote;-
129 i++;-
130 }
executed 7175 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
7175
131 break;
executed 406096 times by 435 tests: break;
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)
  • ...
406096
132 }-
133 }else{-
134 z[j++] = z[i];-
135 }
executed 7943295 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)
  • ...
7943295
136 }-
137 z[j] = 0;-
138}
executed 406096 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)
  • ...
406096
139-
140-
141-
142-
143void sqlite3TokenInit(Token *p, char *z){-
144 p->z = z;-
145 p->n = sqlite3Strlen30(z);-
146}
executed 424680 times by 412 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • 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)
  • Self test (122)
  • ...
424680
147int sqlite3_stricmp(const char *zLeft, const char *zRight){-
148 if( zLeft==0
zLeft==0Description
TRUEevaluated 3478 times by 2 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
FALSEevaluated 11850739 times by 436 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)
  • ...
){
3478-11850739
149 return
executed 3478 times by 2 tests: return zRight ? -1 : 0;
Executed by:
  • Self test (34)
  • Self test (438)
zRight
zRightDescription
TRUEevaluated 33 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3445 times by 2 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
? -1 : 0;
executed 3478 times by 2 tests: return zRight ? -1 : 0;
Executed by:
  • Self test (34)
  • Self test (438)
33-3478
150 }else if( zRight==0
zRight==0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11850735 times by 436 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)
  • ...
){
4-11850735
151 return
executed 4 times by 1 test: return 1;
Executed by:
  • Self test (438)
1;
executed 4 times by 1 test: return 1;
Executed by:
  • Self test (438)
4
152 }-
153 return
executed 11850735 times by 436 tests: return sqlite3StrICmp(zLeft, zRight);
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)
  • ...
sqlite3StrICmp(zLeft, zRight);
executed 11850735 times by 436 tests: return sqlite3StrICmp(zLeft, zRight);
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)
  • ...
11850735
154}-
155int sqlite3StrICmp(const char *zLeft, const char *zRight){-
156 unsigned char *a, *b;-
157 int c;-
158 a = (unsigned char *)zLeft;-
159 b = (unsigned char *)zRight;-
160 for(;;){-
161 c = (int)sqlite3UpperToLower[*a] - (int)sqlite3UpperToLower[*b];-
162 if( c
cDescription
TRUEevaluated 26006055 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 57423193 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)
  • ...
|| *
*a==0Description
TRUEevaluated 4199084 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 53224111 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)
  • ...
a==0
*a==0Description
TRUEevaluated 4199084 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 53224111 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)
  • ...
) break;
executed 30205140 times by 438 tests: break;
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)
  • ...
4199084-57423193
163 a++;-
164 b++;-
165 }
executed 53224115 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)
  • ...
53224115
166 return
executed 30205139 times by 438 tests: return c;
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)
  • ...
c;
executed 30205139 times by 438 tests: return c;
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)
  • ...
30205139
167}-
168int sqlite3_strnicmp(const char *zLeft, const char *zRight, int N){-
169 register unsigned char *a, *b;-
170 if( zLeft==0
zLeft==0Description
TRUEevaluated 4458 times by 376 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
FALSEevaluated 231798 times by 436 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)
  • ...
){
4458-231798
171 return
executed 4458 times by 376 tests: return zRight ? -1 : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
zRight
zRightDescription
TRUEevaluated 4458 times by 376 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
FALSEnever evaluated
? -1 : 0;
executed 4458 times by 376 tests: return zRight ? -1 : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
0-4458
172 }else if( zRight==0
zRight==0Description
TRUEnever evaluated
FALSEevaluated 231798 times by 436 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)
  • ...
){
0-231798
173 return
never executed: return 1;
1;
never executed: return 1;
0
174 }-
175 a = (unsigned char *)zLeft;-
176 b = (unsigned char *)zRight;-
177 while( N-- > 0
N-- > 0Description
TRUEevaluated 964270 times by 436 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 132765 times by 436 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)
  • ...
&& *
*a!=0Description
TRUEevaluated 964251 times by 436 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 19 times by 1 test
Evaluated by:
  • Self test (438)
a!=0
*a!=0Description
TRUEevaluated 964251 times by 436 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 19 times by 1 test
Evaluated by:
  • Self test (438)
&& sqlite3UpperToLower[*a]==sqlite3UpperToLower[*b]
sqlite3UpperTo...perToLower[*b]Description
TRUEevaluated 865237 times by 436 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 99014 times by 407 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)
  • ...
){ a++; b++; }
executed 865237 times by 436 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)
  • ...
19-964270
178 return
executed 231798 times by 436 tests: return N<0 ? 0 : sqlite3UpperToLower[*a] - sqlite3UpperToLower[*b];
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)
  • ...
N<0
N<0Description
TRUEevaluated 132765 times by 436 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 99033 times by 407 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)
  • ...
? 0 : sqlite3UpperToLower[*a] - sqlite3UpperToLower[*b];
executed 231798 times by 436 tests: return N<0 ? 0 : sqlite3UpperToLower[*a] - sqlite3UpperToLower[*b];
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)
  • ...
99033-231798
179}-
180-
181-
182-
183-
184-
185-
186-
187static long double sqlite3Pow10(int E){-
188 long double x = 10.0;-
189 long double r = 1.0;-
190 while(1){-
191 if( E & 1
E & 1Description
TRUEevaluated 218580 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 138935 times by 1 test
Evaluated by:
  • Self test (438)
) r *= x;
executed 218580 times by 1 test: r *= x;
Executed by:
  • Self test (438)
138935-218580
192 E >>= 1;-
193 if( E==0
E==0Description
TRUEevaluated 86514 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 271001 times by 1 test
Evaluated by:
  • Self test (438)
) break;
executed 86514 times by 1 test: break;
Executed by:
  • Self test (438)
86514-271001
194 x *= x;-
195 }
executed 271001 times by 1 test: end of block
Executed by:
  • Self test (438)
271001
196 return
executed 86514 times by 1 test: return r;
Executed by:
  • Self test (438)
r;
executed 86514 times by 1 test: return r;
Executed by:
  • Self test (438)
86514
197-
198}-
199int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){-
200-
201 int incr;-
202 const char *zEnd = z + length;-
203-
204 int sign = 1;-
205 i64 s = 0;-
206 int d = 0;-
207 int esign = 1;-
208 int e = 0;-
209 int eValid = 1;-
210 double result;-
211 int nDigits = 0;-
212 int nonNum = 0;-
213-
214 -
215 ((void) (0))-
216 ;-
217 *pResult = 0.0;-
218-
219 if( enc==1
enc==1Description
TRUEevaluated 4785352 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1354 times by 1 test
Evaluated by:
  • Self test (438)
){
1354-4785352
220 incr = 1;-
221 }
executed 4785352 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
4785352
222 int i;-
223 incr = 2;-
224 -
225 ((void) (0))-
226 ;-
227 for(i=3-enc; i<length
i<lengthDescription
TRUEevaluated 10753 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1350 times by 1 test
Evaluated by:
  • Self test (438)
&& z[i]==0
z[i]==0Description
TRUEevaluated 10749 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
; i+=2){}
executed 10749 times by 1 test: end of block
Executed by:
  • Self test (438)
4-10753
228 nonNum = i<length;-
229 zEnd = &z[i^1];-
230 z += (enc&1);-
231 }
executed 1354 times by 1 test: end of block
Executed by:
  • Self test (438)
1354
232-
233-
234 while( z<zEnd
z<zEndDescription
TRUEevaluated 4786133 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 643 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...ar)(*z)]&0x01)Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4786063 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(*z)]&0x01)
(sqlite3CtypeM...ar)(*z)]&0x01)Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4786063 times by 1 test
Evaluated by:
  • Self test (438)
) z+=incr;
executed 70 times by 1 test: z+=incr;
Executed by:
  • Self test (438)
70-4786133
235 if( z>=zEnd
z>=zEndDescription
TRUEevaluated 643 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4786063 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 643 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 643 times by 1 test: return 0;
Executed by:
  • Self test (438)
643-4786063
236-
237-
238 if( *
*z=='-'Description
TRUEevaluated 10062 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4776001 times by 1 test
Evaluated by:
  • Self test (438)
z=='-'
*z=='-'Description
TRUEevaluated 10062 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4776001 times by 1 test
Evaluated by:
  • Self test (438)
){
10062-4776001
239 sign = -1;-
240 z+=incr;-
241 }
executed 10062 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( *
*z=='+'Description
TRUEevaluated 86 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4775915 times by 1 test
Evaluated by:
  • Self test (438)
z=='+'
*z=='+'Description
TRUEevaluated 86 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4775915 times by 1 test
Evaluated by:
  • Self test (438)
){
86-4775915
242 z+=incr;-
243 }
executed 86 times by 1 test: end of block
Executed by:
  • Self test (438)
86
244-
245-
246 while( z<zEnd
z<zEndDescription
TRUEevaluated 9317266 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4030931 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 8562235 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 755031 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 8562235 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 755031 times by 1 test
Evaluated by:
  • Self test (438)
&& s<(((0xffffffff|(((i64)0x7fffffff)<<32))-9)/10)
s<(((0xfffffff...)<<32))-9)/10)Description
TRUEevaluated 8562134 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 101 times by 1 test
Evaluated by:
  • Self test (438)
){
101-9317266
247 s = s*10 + (*z - '0');-
248 z+=incr; nDigits++;-
249 }
executed 8562134 times by 1 test: end of block
Executed by:
  • Self test (438)
8562134
250-
251-
252-
253 while( z<zEnd
z<zEndDescription
TRUEevaluated 767454 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4031003 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 12394 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 755060 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 12394 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 755060 times by 1 test
Evaluated by:
  • Self test (438)
){ z+=incr; nDigits++; d++; }
executed 12394 times by 1 test: end of block
Executed by:
  • Self test (438)
12394-4031003
254 if( z>=zEnd
z>=zEndDescription
TRUEevaluated 4031003 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 755060 times by 1 test
Evaluated by:
  • Self test (438)
) goto
executed 4031003 times by 1 test: goto do_atof_calc;
Executed by:
  • Self test (438)
do_atof_calc;
executed 4031003 times by 1 test: goto do_atof_calc;
Executed by:
  • Self test (438)
755060-4031003
255-
256-
257 if( *
*z=='.'Description
TRUEevaluated 95546 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 659514 times by 1 test
Evaluated by:
  • Self test (438)
z=='.'
*z=='.'Description
TRUEevaluated 95546 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 659514 times by 1 test
Evaluated by:
  • Self test (438)
){
95546-659514
258 z+=incr;-
259-
260-
261 while( z<zEnd
z<zEndDescription
TRUEevaluated 1631223 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 36476 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 1572153 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 59070 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 1572153 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 59070 times by 1 test
Evaluated by:
  • Self test (438)
){
36476-1631223
262 if( s<(((0xffffffff|(((i64)0x7fffffff)<<32))-9)/10)
s<(((0xfffffff...)<<32))-9)/10)Description
TRUEevaluated 1175883 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 396270 times by 1 test
Evaluated by:
  • Self test (438)
){
396270-1175883
263 s = s*10 + (*z - '0');-
264 d--;-
265 }
executed 1175883 times by 1 test: end of block
Executed by:
  • Self test (438)
1175883
266 z+=incr; nDigits++;-
267 }
executed 1572153 times by 1 test: end of block
Executed by:
  • Self test (438)
1572153
268 }
executed 95546 times by 1 test: end of block
Executed by:
  • Self test (438)
95546
269 if( z>=zEnd
z>=zEndDescription
TRUEevaluated 36476 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 718584 times by 1 test
Evaluated by:
  • Self test (438)
) goto
executed 36476 times by 1 test: goto do_atof_calc;
Executed by:
  • Self test (438)
do_atof_calc;
executed 36476 times by 1 test: goto do_atof_calc;
Executed by:
  • Self test (438)
36476-718584
270-
271-
272 if( *
*z=='e'Description
TRUEevaluated 52760 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 665824 times by 1 test
Evaluated by:
  • Self test (438)
z=='e'
*z=='e'Description
TRUEevaluated 52760 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 665824 times by 1 test
Evaluated by:
  • Self test (438)
|| *
*z=='E'Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 665799 times by 1 test
Evaluated by:
  • Self test (438)
z=='E'
*z=='E'Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 665799 times by 1 test
Evaluated by:
  • Self test (438)
){
25-665824
273 z+=incr;-
274 eValid = 0;-
275-
276-
277-
278-
279 if( z>=zEnd
z>=zEndDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 52776 times by 1 test
Evaluated by:
  • Self test (438)
) goto
executed 9 times by 1 test: goto do_atof_calc;
Executed by:
  • Self test (438)
do_atof_calc;
executed 9 times by 1 test: goto do_atof_calc;
Executed by:
  • Self test (438)
9-52776
280-
281-
282 if( *
*z=='-'Description
TRUEevaluated 27932 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 24844 times by 1 test
Evaluated by:
  • Self test (438)
z=='-'
*z=='-'Description
TRUEevaluated 27932 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 24844 times by 1 test
Evaluated by:
  • Self test (438)
){
24844-27932
283 esign = -1;-
284 z+=incr;-
285 }
executed 27932 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( *
*z=='+'Description
TRUEevaluated 24741 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 103 times by 1 test
Evaluated by:
  • Self test (438)
z=='+'
*z=='+'Description
TRUEevaluated 24741 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 103 times by 1 test
Evaluated by:
  • Self test (438)
){
103-27932
286 z+=incr;-
287 }
executed 24741 times by 1 test: end of block
Executed by:
  • Self test (438)
24741
288-
289 while( z<zEnd
z<zEndDescription
TRUEevaluated 104033 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 51763 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 103020 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1013 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)
(sqlite3CtypeM...ar)(*z)]&0x04)Description
TRUEevaluated 103020 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1013 times by 1 test
Evaluated by:
  • Self test (438)
){
1013-104033
290 e = e<10000
e<10000Description
TRUEevaluated 103010 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
? (e*10 + (*z - '0')) : 10000;
10-103010
291 z+=incr;-
292 eValid = 1;-
293 }
executed 103020 times by 1 test: end of block
Executed by:
  • Self test (438)
103020
294 }
executed 52776 times by 1 test: end of block
Executed by:
  • Self test (438)
52776
295-
296-
297 while( z<zEnd
z<zEndDescription
TRUEevaluated 666830 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 51773 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...ar)(*z)]&0x01)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 666802 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(*z)]&0x01)
(sqlite3CtypeM...ar)(*z)]&0x01)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 666802 times by 1 test
Evaluated by:
  • Self test (438)
) z+=incr;
executed 28 times by 1 test: z+=incr;
Executed by:
  • Self test (438)
28-666830
298-
299do_atof_calc:
code before this statement executed 718575 times by 1 test: do_atof_calc:
Executed by:
  • Self test (438)
718575
300-
301 e = (e*esign) + d;-
302 if( e<0
e<0Description
TRUEevaluated 82667 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4703396 times by 1 test
Evaluated by:
  • Self test (438)
) {
82667-4703396
303 esign = -1;-
304 e *= -1;-
305 }
executed 82667 times by 1 test: end of block
Executed by:
  • Self test (438)
else {
82667
306 esign = 1;-
307 }
executed 4703396 times by 1 test: end of block
Executed by:
  • Self test (438)
4703396
308-
309 if( s==0
s==0Description
TRUEevaluated 1660322 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3125741 times by 1 test
Evaluated by:
  • Self test (438)
) {
1660322-3125741
310-
311 result = sign<0
sign<0Description
TRUEnever evaluated
FALSEevaluated 1660322 times by 1 test
Evaluated by:
  • Self test (438)
? -(double)0 : (double)0;
0-1660322
312 }
executed 1660322 times by 1 test: end of block
Executed by:
  • Self test (438)
else {
1660322
313-
314-
315-
316-
317-
318-
319 while( e>0
e>0Description
TRUEevaluated 124048 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3039217 times by 1 test
Evaluated by:
  • Self test (438)
){
124048-3039217
320 if( esign>0
esign>0Description
TRUEevaluated 28222 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 95826 times by 1 test
Evaluated by:
  • Self test (438)
){
28222-95826
321 if( s>=((0xffffffff|(((i64)0x7fffffff)<<32))/10)
s>=((0xfffffff...fff)<<32))/10)Description
TRUEevaluated 11715 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 16507 times by 1 test
Evaluated by:
  • Self test (438)
) break;
executed 11715 times by 1 test: break;
Executed by:
  • Self test (438)
11715-16507
322 s *= 10;-
323 }
executed 16507 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
16507
324 if( s%10!=0
s%10!=0Description
TRUEevaluated 74809 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 21017 times by 1 test
Evaluated by:
  • Self test (438)
) break;
executed 74809 times by 1 test: break;
Executed by:
  • Self test (438)
21017-74809
325 s /= 10;-
326 }
executed 21017 times by 1 test: end of block
Executed by:
  • Self test (438)
21017
327 e--;-
328 }
executed 37524 times by 1 test: end of block
Executed by:
  • Self test (438)
37524
329-
330-
331 s = sign<0
sign<0Description
TRUEevaluated 10062 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3115679 times by 1 test
Evaluated by:
  • Self test (438)
? -s : s;
10062-3115679
332-
333 if( e==0
e==0Description
TRUEevaluated 3039217 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 86524 times by 1 test
Evaluated by:
  • Self test (438)
){
86524-3039217
334 result = (double)s;-
335 }
executed 3039217 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
3039217
336-
337 if( e>307
e>307Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 86500 times by 1 test
Evaluated by:
  • Self test (438)
){
24-86500
338 if( e<342
e<342Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
){
10-14
339 long double scale = sqlite3Pow10(e-308);-
340 if( esign<0
esign<0Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-14
341 result = s / scale;-
342 result /= 1.0e+308;-
343 }
executed 14 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
14
344 result = s * scale;-
345 result *= 1.0e+308;-
346 }
never executed: end of block
0
347 }else{ -
348 ((void) (0))-
349 ;-
350 if( esign<0
esign<0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
){
5
351 result = 0.0*s;-
352 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
5
353-
354 result = -
355 (__builtin_inff())-
356 *s;-
357-
358-
359-
360 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test (438)
5
361 }-
362 }else{-
363 long double scale = sqlite3Pow10(e);-
364 if( esign<0
esign<0Description
TRUEevaluated 74790 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11710 times by 1 test
Evaluated by:
  • Self test (438)
){
11710-74790
365 result = s / scale;-
366 }
executed 74790 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
74790
367 result = s * scale;-
368 }
executed 11710 times by 1 test: end of block
Executed by:
  • Self test (438)
11710
369 }-
370 }-
371 }-
372-
373-
374 *pResult = result;-
375-
376-
377 return
executed 4786063 times by 1 test: return z==zEnd && nDigits>0 && eValid && nonNum==0;
Executed by:
  • Self test (438)
z==zEnd
z==zEndDescription
TRUEevaluated 4119261 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 666802 times by 1 test
Evaluated by:
  • Self test (438)
&& nDigits>0
nDigits>0Description
TRUEevaluated 4119252 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
&& eValid
eValidDescription
TRUEevaluated 4119250 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
&& nonNum==0
nonNum==0Description
TRUEevaluated 4119248 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
;
executed 4786063 times by 1 test: return z==zEnd && nDigits>0 && eValid && nonNum==0;
Executed by:
  • Self test (438)
2-4786063
378-
379-
380-
381}-
382static int compare2pow63(const char *zNum, int incr){-
383 int c = 0;-
384 int i;-
385-
386 const char *pow63 = "922337203685477580";-
387 for(i=0; c==0
c==0Description
TRUEevaluated 7307 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 66 times by 1 test
Evaluated by:
  • Self test (438)
&& i<18
i<18Description
TRUEevaluated 6940 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 367 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
66-7307
388 c = (zNum[i*incr]-pow63[i])*10;-
389 }
executed 6940 times by 1 test: end of block
Executed by:
  • Self test (438)
6940
390 if( c==0
c==0Description
TRUEevaluated 367 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 66 times by 1 test
Evaluated by:
  • Self test (438)
){
66-367
391 c = zNum[18*incr] - '8';-
392 ;-
393 ;-
394 ;-
395 }
executed 367 times by 1 test: end of block
Executed by:
  • Self test (438)
367
396 return
executed 433 times by 1 test: return c;
Executed by:
  • Self test (438)
c;
executed 433 times by 1 test: return c;
Executed by:
  • Self test (438)
433
397}-
398int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){-
399 int incr;-
400 u64 u = 0;-
401 int neg = 0;-
402 int i;-
403 int c = 0;-
404 int nonNum = 0;-
405 int rc;-
406 const char *zStart;-
407 const char *zEnd = zNum + length;-
408 -
409 ((void) (0))-
410 ;-
411 if( enc==1
enc==1Description
TRUEevaluated 4066163 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
FALSEevaluated 758 times by 1 test
Evaluated by:
  • Self test (438)
){
758-4066163
412 incr = 1;-
413 }
executed 4066163 times by 3 tests: end of block
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
else{
4066163
414 incr = 2;-
415 -
416 ((void) (0))-
417 ;-
418 for(i=3-enc; i<length
i<lengthDescription
TRUEevaluated 5979 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 754 times by 1 test
Evaluated by:
  • Self test (438)
&& zNum[i]==0
zNum[i]==0Description
TRUEevaluated 5975 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
; i+=2){}
executed 5975 times by 1 test: end of block
Executed by:
  • Self test (438)
4-5979
419 nonNum = i<length;-
420 zEnd = &zNum[i^1];-
421 zNum += (enc&1);-
422 }
executed 758 times by 1 test: end of block
Executed by:
  • Self test (438)
758
423 while( zNum<zEnd
zNum<zEndDescription
TRUEevaluated 4066805 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
FALSEevaluated 199 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...(*zNum)]&0x01)Description
TRUEevaluated 83 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066722 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(*zNum)]&0x01)
(sqlite3CtypeM...(*zNum)]&0x01)Description
TRUEevaluated 83 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066722 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
) zNum+=incr;
executed 83 times by 1 test: zNum+=incr;
Executed by:
  • Self test (438)
83-4066805
424 if( zNum<zEnd
zNum<zEndDescription
TRUEevaluated 4066722 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
FALSEevaluated 199 times by 1 test
Evaluated by:
  • Self test (438)
){
199-4066722
425 if( *
*zNum=='-'Description
TRUEevaluated 154 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066568 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
zNum=='-'
*zNum=='-'Description
TRUEevaluated 154 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066568 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
){
154-4066568
426 neg = 1;-
427 zNum+=incr;-
428 }
executed 154 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( *
*zNum=='+'Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066555 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
zNum=='+'
*zNum=='+'Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066555 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
){
13-4066555
429 zNum+=incr;-
430 }
executed 13 times by 1 test: end of block
Executed by:
  • Self test (438)
13
431 }
executed 4066722 times by 3 tests: end of block
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
4066722
432 zStart = zNum;-
433 while( zNum<zEnd
zNum<zEndDescription
TRUEevaluated 4071537 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
FALSEevaluated 1000433 times by 2 tests
Evaluated by:
  • Self test (32)
  • Self test (438)
&& zNum[0]=='0'
zNum[0]=='0'Description
TRUEevaluated 1005049 times by 2 tests
Evaluated by:
  • Self test (32)
  • Self test (438)
FALSEevaluated 3066488 times by 2 tests
Evaluated by:
  • Self test (33)
  • Self test (438)
){ zNum+=incr; }
executed 1005049 times by 2 tests: end of block
Executed by:
  • Self test (32)
  • Self test (438)
1000433-4071537
434 for(i=0; &zNum[i]<zEnd
&zNum[i]<zEndDescription
TRUEevaluated 7498346 times by 2 tests
Evaluated by:
  • Self test (33)
  • Self test (438)
FALSEevaluated 4046552 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
&& (
(c=zNum[i])>='0'Description
TRUEevaluated 7478839 times by 2 tests
Evaluated by:
  • Self test (33)
  • Self test (438)
FALSEevaluated 19507 times by 1 test
Evaluated by:
  • Self test (438)
c=zNum[i])>='0'
(c=zNum[i])>='0'Description
TRUEevaluated 7478839 times by 2 tests
Evaluated by:
  • Self test (33)
  • Self test (438)
FALSEevaluated 19507 times by 1 test
Evaluated by:
  • Self test (438)
&& c<='9'
c<='9'Description
TRUEevaluated 7477977 times by 2 tests
Evaluated by:
  • Self test (33)
  • Self test (438)
FALSEevaluated 862 times by 1 test
Evaluated by:
  • Self test (438)
; i+=incr){
862-7498346
435 u = u*10 + c - '0';-
436 }
executed 7477977 times by 2 tests: end of block
Executed by:
  • Self test (33)
  • Self test (438)
7477977
437 ;-
438 ;-
439 ;-
440 if( u>(0xffffffff|(((i64)0x7fffffff)<<32))
u>(0xffffffff|...fffffff)<<32))Description
TRUEevaluated 169 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066752 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
){
169-4066752
441-
442-
443-
444-
445 *pNum = neg
negDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 145 times by 1 test
Evaluated by:
  • Self test (438)
? (((i64)-1) - (0xffffffff|(((i64)0x7fffffff)<<32))) : (0xffffffff|(((i64)0x7fffffff)<<32));
24-145
446 }
executed 169 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( neg
negDescription
TRUEevaluated 130 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4066622 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
){
130-4066622
447 *pNum = -(i64)u;-
448 }
executed 130 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
130
449 *pNum = (i64)u;-
450 }
executed 4066622 times by 3 tests: end of block
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
4066622
451 rc = 0;-
452 if( (i==0
i==0Description
TRUEevaluated 1005996 times by 2 tests
Evaluated by:
  • Self test (32)
  • Self test (438)
FALSEevaluated 3060925 times by 2 tests
Evaluated by:
  • Self test (33)
  • Self test (438)
&& zStart==zNum
zStart==zNumDescription
TRUEevaluated 1225 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1004771 times by 2 tests
Evaluated by:
  • Self test (32)
  • Self test (438)
)
1225-3060925
453 || nonNum
nonNumDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4065694 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
2-4065694
454 ){-
455 rc = 1;-
456 }
executed 1227 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( &zNum[i]<zEnd
&zNum[i]<zEndDescription
TRUEevaluated 19343 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4046351 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
){
1227-4046351
457 int jj = i;-
458 do{-
459 if( !(sqlite3CtypeMap[(unsigned char)(zNum[jj])]&0x01)
!(sqlite3Ctype...um[jj])]&0x01)Description
TRUEevaluated 19327 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32 times by 1 test
Evaluated by:
  • Self test (438)
){
32-19327
460 rc = 1;-
461 break;
executed 19327 times by 1 test: break;
Executed by:
  • Self test (438)
19327
462 }-
463 jj += incr;-
464 }
executed 32 times by 1 test: end of block
Executed by:
  • Self test (438)
while( &zNum[jj]<zEnd
&zNum[jj]<zEndDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
);
16-32
465 }
executed 19343 times by 1 test: end of block
Executed by:
  • Self test (438)
19343
466 if( i<19*incr
i<19*incrDescription
TRUEevaluated 4066472 times by 3 tests
Evaluated by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
FALSEevaluated 449 times by 1 test
Evaluated by:
  • Self test (438)
){
449-4066472
467-
468 -
469 ((void) (0))-
470 ;-
471 return
executed 4066472 times by 3 tests: return rc;
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
rc;
executed 4066472 times by 3 tests: return rc;
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
4066472
472 }else{-
473-
474 c = i>19*incr
i>19*incrDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 433 times by 1 test
Evaluated by:
  • Self test (438)
? 1 : compare2pow63(zNum, incr);
16-433
475 if( c<0
c<0Description
TRUEevaluated 267 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 182 times by 1 test
Evaluated by:
  • Self test (438)
){
182-267
476-
477 -
478 ((void) (0))-
479 ;-
480 return
executed 267 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 267 times by 1 test: return rc;
Executed by:
  • Self test (438)
267
481 }else{-
482 *pNum = neg
negDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 157 times by 1 test
Evaluated by:
  • Self test (438)
? (((i64)-1) - (0xffffffff|(((i64)0x7fffffff)<<32))) : (0xffffffff|(((i64)0x7fffffff)<<32));
25-157
483 if( c>0
c>0Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 159 times by 1 test
Evaluated by:
  • Self test (438)
){
23-159
484-
485 return
executed 23 times by 1 test: return 2;
Executed by:
  • Self test (438)
2;
executed 23 times by 1 test: return 2;
Executed by:
  • Self test (438)
23
486 }else{-
487-
488-
489 -
490 ((void) (0))-
491 ;-
492 return
executed 159 times by 1 test: return neg ? rc : 3;
Executed by:
  • Self test (438)
neg
negDescription
TRUEevaluated 19 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 140 times by 1 test
Evaluated by:
  • Self test (438)
? rc : 3;
executed 159 times by 1 test: return neg ? rc : 3;
Executed by:
  • Self test (438)
19-159
493 }-
494 }-
495 }-
496}-
497int sqlite3DecOrHexToI64(const char *z, i64 *pOut){-
498-
499 if( z[0]=='0'
z[0]=='0'Description
TRUEevaluated 85 times by 2 tests
Evaluated by:
  • Self test (32)
  • Self test (438)
FALSEevaluated 3491 times by 2 tests
Evaluated by:
  • Self test (33)
  • Self test (438)
85-3491
500 && (z[1]=='x'
z[1]=='x'Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 49 times by 2 tests
Evaluated by:
  • Self test (32)
  • Self test (438)
|| z[1]=='X'
z[1]=='X'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • Self test (32)
  • Self test (438)
)
3-49
501 ){-
502 u64 u = 0;-
503 int i, k;-
504 for(i=2; z[i]=='0'
z[i]=='0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 39 times by 1 test
Evaluated by:
  • Self test (438)
; i++){}
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1-39
505 for(k=i; (
(sqlite3CtypeM...)(z[k])]&0x08)Description
TRUEevaluated 508 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 39 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(z[k])]&0x08)
(sqlite3CtypeM...)(z[k])]&0x08)Description
TRUEevaluated 508 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 39 times by 1 test
Evaluated by:
  • Self test (438)
; k++){
39-508
506 u = u*16 + sqlite3HexToInt(z[k]);-
507 }
executed 508 times by 1 test: end of block
Executed by:
  • Self test (438)
508
508 memcpy(pOut, &u, 8);-
509 return
executed 39 times by 1 test: return (z[k]==0 && k-i<=16) ? 0 : 2;
Executed by:
  • Self test (438)
(z[k]==0
z[k]==0Description
TRUEevaluated 39 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& k-i<=16
k-i<=16Description
TRUEevaluated 35 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
) ? 0 : 2;
executed 39 times by 1 test: return (z[k]==0 && k-i<=16) ? 0 : 2;
Executed by:
  • Self test (438)
0-39
510 }else-
511-
512 {-
513 return
executed 3537 times by 3 tests: return sqlite3Atoi64(z, pOut, sqlite3Strlen30(z), 1);
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
sqlite3Atoi64(z, pOut, sqlite3Strlen30(z), 1);
executed 3537 times by 3 tests: return sqlite3Atoi64(z, pOut, sqlite3Strlen30(z), 1);
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
3537
514 }-
515}-
516int sqlite3GetInt32(const char *zNum, int *pValue){-
517 sqlite_int64 v = 0;-
518 int i, c;-
519 int neg = 0;-
520 if( zNum[0]=='-'
zNum[0]=='-'Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 966970 times by 436 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)
  • ...
){
22-966970
521 neg = 1;-
522 zNum++;-
523 }
executed 22 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( zNum[0]=='+'
zNum[0]=='+'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 966969 times by 436 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)
  • ...
){
1-966969
524 zNum++;-
525 }
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1
526-
527 else if( zNum[0]=='0'
zNum[0]=='0'Description
TRUEevaluated 55851 times by 345 tests
Evaluated by:
  • Self test (101)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • 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 (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • ...
FALSEevaluated 911118 times by 436 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)
  • ...
55851-911118
528 && (zNum[1]=='x'
zNum[1]=='x'Description
TRUEevaluated 98 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 55753 times by 345 tests
Evaluated by:
  • Self test (101)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • 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 (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • ...
|| zNum[1]=='X'
zNum[1]=='X'Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 55728 times by 345 tests
Evaluated by:
  • Self test (101)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • 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 (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • ...
)
25-55753
529 && (
(sqlite3CtypeM...Num[2])]&0x08)Description
TRUEevaluated 123 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
sqlite3CtypeMap[(unsigned char)(zNum[2])]&0x08)
(sqlite3CtypeM...Num[2])]&0x08)Description
TRUEevaluated 123 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-123
530 ){-
531 u32 u = 0;-
532 zNum += 2;-
533 while( zNum[0]=='0'
zNum[0]=='0'Description
TRUEevaluated 177 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 123 times by 1 test
Evaluated by:
  • Self test (438)
) zNum++;
executed 177 times by 1 test: zNum++;
Executed by:
  • Self test (438)
123-177
534 for(i=0; (
(sqlite3CtypeM...Num[i])]&0x08)Description
TRUEevaluated 561 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 84 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(zNum[i])]&0x08)
(sqlite3CtypeM...Num[i])]&0x08)Description
TRUEevaluated 561 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 84 times by 1 test
Evaluated by:
  • Self test (438)
&& i<8
i<8Description
TRUEevaluated 522 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 39 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
39-561
535 u = u*16 + sqlite3HexToInt(zNum[i]);-
536 }
executed 522 times by 1 test: end of block
Executed by:
  • Self test (438)
522
537 if( (
(u&0x80000000)==0Description
TRUEevaluated 112 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
u&0x80000000)==0
(u&0x80000000)==0Description
TRUEevaluated 112 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(sqlite3CtypeM...[i])]&0x08)==0Description
TRUEevaluated 83 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 29 times by 1 test
Evaluated by:
  • Self test (438)
sqlite3CtypeMap[(unsigned char)(zNum[i])]&0x08)==0
(sqlite3CtypeM...[i])]&0x08)==0Description
TRUEevaluated 83 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 29 times by 1 test
Evaluated by:
  • Self test (438)
){
11-112
538 memcpy(pValue, &u, 4);-
539 return
executed 83 times by 1 test: return 1;
Executed by:
  • Self test (438)
1;
executed 83 times by 1 test: return 1;
Executed by:
  • Self test (438)
83
540 }else{-
541 return
executed 40 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 40 times by 1 test: return 0;
Executed by:
  • Self test (438)
40
542 }-
543 }-
544-
545 if( !(sqlite3CtypeMap[(unsigned char)(zNum[0])]&0x04)
!(sqlite3Ctype...Num[0])]&0x04)Description
TRUEevaluated 175 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 966694 times by 436 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 175 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 175 times by 1 test: return 0;
Executed by:
  • Self test (438)
175-966694
546 while( zNum[0]=='0'
zNum[0]=='0'Description
TRUEevaluated 55764 times by 345 tests
Evaluated by:
  • Self test (101)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • 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 (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • ...
FALSEevaluated 966694 times by 436 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)
  • ...
) zNum++;
executed 55764 times by 345 tests: zNum++;
Executed by:
  • Self test (101)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • 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 (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • Self test (127)
  • Self test (128)
  • Self test (129)
  • ...
55764-966694
547 for(i=0; i<11
i<11Description
TRUEevaluated 4140163 times by 436 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 2493 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(c = zNum[i] - '0')>=0Description
TRUEevaluated 3182677 times by 436 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 957486 times by 436 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)
  • ...
c = zNum[i] - '0')>=0
(c = zNum[i] - '0')>=0Description
TRUEevaluated 3182677 times by 436 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 957486 times by 436 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)
  • ...
&& c<=9
c<=9Description
TRUEevaluated 3175962 times by 436 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 6715 times by 12 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (35)
  • Self test (4)
  • Self test (438)
  • Self test (47)
  • Self test (5)
; i++){
2493-4140163
548 v = v*10 + c;-
549 }
executed 3175962 times by 436 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)
  • ...
3175962
550-
551-
552-
553-
554-
555-
556 ;-
557 if( i>10
i>10Description
TRUEevaluated 2493 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 964201 times by 436 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)
  • ...
){
2493-964201
558 return
executed 2493 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 2493 times by 1 test: return 0;
Executed by:
  • Self test (438)
2493
559 }-
560 ;-
561 if( v-neg>2147483647
v-neg>2147483647Description
TRUEevaluated 746 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 963455 times by 436 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)
  • ...
){
746-963455
562 return
executed 746 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 746 times by 1 test: return 0;
Executed by:
  • Self test (438)
746
563 }-
564 if( neg
negDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 963433 times by 436 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)
  • ...
){
22-963433
565 v = -v;-
566 }
executed 22 times by 1 test: end of block
Executed by:
  • Self test (438)
22
567 *pValue = (int)v;-
568 return
executed 963455 times by 436 tests: return 1;
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)
  • ...
1;
executed 963455 times by 436 tests: return 1;
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)
  • ...
963455
569}-
570-
571-
572-
573-
574-
575int sqlite3Atoi(const char *z){-
576 int x = 0;-
577 if( z
zDescription
TRUEevaluated 94781 times by 436 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 2 times by 1 test
Evaluated by:
  • Self test (438)
) sqlite3GetInt32(z, &x);
executed 94781 times by 436 tests: sqlite3GetInt32(z, &x);
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)
  • ...
2-94781
578 return
executed 94783 times by 436 tests: return x;
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)
  • ...
x;
executed 94783 times by 436 tests: return x;
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)
  • ...
94783
579}-
580static int __attribute__((noinline)) putVarint64(unsigned char *p, u64 v){-
581 int i, j, n;-
582 u8 buf[10];-
583 if( v & (((u64)0xff000000)<<32)
v & (((u64)0xff000000)<<32)Description
TRUEevaluated 20321 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3160580 times by 12 tests
Evaluated by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
){
20321-3160580
584 p[8] = (u8)v;-
585 v >>= 8;-
586 for(i=7; i>=0
i>=0Description
TRUEevaluated 162568 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 20321 times by 1 test
Evaluated by:
  • Self test (438)
; i--){
20321-162568
587 p[i] = (u8)((v & 0x7f) | 0x80);-
588 v >>= 7;-
589 }
executed 162568 times by 1 test: end of block
Executed by:
  • Self test (438)
162568
590 return
executed 20321 times by 1 test: return 9;
Executed by:
  • Self test (438)
9;
executed 20321 times by 1 test: return 9;
Executed by:
  • Self test (438)
20321
591 }-
592 n = 0;-
593 do{-
594 buf[n++] = (u8)((v & 0x7f) | 0x80);-
595 v >>= 7;-
596 }
executed 11289314 times by 12 tests: end of block
Executed by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
while( v!=0
v!=0Description
TRUEevaluated 8128734 times by 12 tests
Evaluated by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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 3160580 times by 12 tests
Evaluated by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
);
3160580-11289314
597 buf[0] &= 0x7f;-
598 -
599 ((void) (0))-
600 ;-
601 for(i=0, j=n-1; j>=0
j>=0Description
TRUEevaluated 11289314 times by 12 tests
Evaluated by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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 3160580 times by 12 tests
Evaluated by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
; j--, i++){
3160580-11289314
602 p[i] = buf[j];-
603 }
executed 11289314 times by 12 tests: end of block
Executed by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
11289314
604 return
executed 3160580 times by 12 tests: return n;
Executed by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
n;
executed 3160580 times by 12 tests: return n;
Executed by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
3160580
605}-
606int sqlite3PutVarint(unsigned char *p, u64 v){-
607 if( v<=0x7f
v<=0x7fDescription
TRUEevaluated 4013691 times by 384 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (119)
  • Self test (120)
  • Self test (121)
  • 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)
  • ...
FALSEevaluated 9197302 times by 372 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
){
4013691-9197302
608 p[0] = v&0x7f;-
609 return
executed 4013650 times by 384 tests: return 1;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (119)
  • Self test (120)
  • Self test (121)
  • 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)
  • ...
1;
executed 4013650 times by 384 tests: return 1;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (119)
  • Self test (120)
  • Self test (121)
  • 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)
  • ...
4013650
610 }-
611 if( v<=0x3fff
v<=0x3fffDescription
TRUEevaluated 6016400 times by 362 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)
  • ...
FALSEevaluated 3180901 times by 12 tests
Evaluated by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
){
3180901-6016400
612 p[0] = ((v>>7)&0x7f)|0x80;-
613 p[1] = v&0x7f;-
614 return
executed 6016400 times by 362 tests: return 2;
Executed 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)
  • ...
2;
executed 6016400 times by 362 tests: return 2;
Executed 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)
  • ...
6016400
615 }-
616 return
executed 3180901 times by 12 tests: return putVarint64(p,v);
Executed by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
putVarint64(p,v);
executed 3180901 times by 12 tests: return putVarint64(p,v);
Executed by:
  • Self test (100)
  • Self test (438)
  • Self test (64)
  • 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)
3180901
617}-
618u8 sqlite3GetVarint(const unsigned char *p, u64 *v){-
619 u32 a,b,s;-
620-
621 a = *p;-
622-
623 if (!(a&0x80)
!(a&0x80)Description
TRUEevaluated 3405543 times by 33 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (40)
  • Self test (438)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (72)
  • Self test (73)
  • Self test (74)
  • Self test (91)
  • ...
FALSEevaluated 23509698 times by 6 tests
Evaluated by:
  • Self test
  • Self test (34)
  • Self test (438)
  • Self test (57)
  • Self test (58)
  • Self test (74)
)
3405543-23509698
624 {-
625 *v = a;-
626 return
executed 3405561 times by 33 tests: return 1;
Executed by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (40)
  • Self test (438)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (72)
  • Self test (73)
  • Self test (74)
  • Self test (91)
  • ...
1;
executed 3405561 times by 33 tests: return 1;
Executed by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (40)
  • Self test (438)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (72)
  • Self test (73)
  • Self test (74)
  • Self test (91)
  • ...
3405561
627 }-
628-
629 p++;-
630 b = *p;-
631-
632 if (!(b&0x80)
!(b&0x80)Description
TRUEevaluated 5115558 times by 6 tests
Evaluated by:
  • Self test
  • Self test (34)
  • Self test (438)
  • Self test (57)
  • Self test (58)
  • Self test (74)
FALSEevaluated 18394140 times by 1 test
Evaluated by:
  • Self test (438)
)
5115558-18394140
633 {-
634 a &= 0x7f;-
635 a = a<<7;-
636 a |= b;-
637 *v = a;-
638 return
executed 5115558 times by 6 tests: return 2;
Executed by:
  • Self test
  • Self test (34)
  • Self test (438)
  • Self test (57)
  • Self test (58)
  • Self test (74)
2;
executed 5115558 times by 6 tests: return 2;
Executed by:
  • Self test
  • Self test (34)
  • Self test (438)
  • Self test (57)
  • Self test (58)
  • Self test (74)
5115558
639 }-
640-
641-
642 -
643 ((void) (0))-
644 ;-
645 -
646 ((void) (0))-
647 ;-
648-
649 p++;-
650 a = a<<14;-
651 a |= *p;-
652-
653 if (!(a&0x80)
!(a&0x80)Description
TRUEevaluated 3482134 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 14912006 times by 1 test
Evaluated by:
  • Self test (438)
)
3482134-14912006
654 {-
655 a &= 0x001fc07f;-
656 b &= 0x7f;-
657 b = b<<7;-
658 a |= b;-
659 *v = a;-
660 return
executed 3482134 times by 1 test: return 3;
Executed by:
  • Self test (438)
3;
executed 3482134 times by 1 test: return 3;
Executed by:
  • Self test (438)
3482134
661 }-
662-
663-
664 a &= 0x001fc07f;-
665 p++;-
666 b = b<<14;-
667 b |= *p;-
668-
669 if (!(b&0x80)
!(b&0x80)Description
TRUEevaluated 3992741 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 10919265 times by 1 test
Evaluated by:
  • Self test (438)
)
3992741-10919265
670 {-
671 b &= 0x001fc07f;-
672-
673-
674 a = a<<7;-
675 a |= b;-
676 *v = a;-
677 return
executed 3992741 times by 1 test: return 4;
Executed by:
  • Self test (438)
4;
executed 3992741 times by 1 test: return 4;
Executed by:
  • Self test (438)
3992741
678 }-
679-
680-
681-
682-
683-
684-
685 b &= 0x001fc07f;-
686 s = a;-
687-
688-
689 p++;-
690 a = a<<14;-
691 a |= *p;-
692-
693 if (!(a&0x80)
!(a&0x80)Description
TRUEevaluated 3628997 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7290268 times by 1 test
Evaluated by:
  • Self test (438)
)
3628997-7290268
694 {-
695-
696-
697-
698-
699 b = b<<7;-
700 a |= b;-
701 s = s>>18;-
702 *v = ((u64)s)<<32 | a;-
703 return
executed 3628997 times by 1 test: return 5;
Executed by:
  • Self test (438)
5;
executed 3628997 times by 1 test: return 5;
Executed by:
  • Self test (438)
3628997
704 }-
705-
706-
707 s = s<<7;-
708 s |= b;-
709-
710-
711 p++;-
712 b = b<<14;-
713 b |= *p;-
714-
715 if (!(b&0x80)
!(b&0x80)Description
TRUEevaluated 4840974 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2449294 times by 1 test
Evaluated by:
  • Self test (438)
)
2449294-4840974
716 {-
717-
718-
719 a &= 0x001fc07f;-
720 a = a<<7;-
721 a |= b;-
722 s = s>>18;-
723 *v = ((u64)s)<<32 | a;-
724 return
executed 4840974 times by 1 test: return 6;
Executed by:
  • Self test (438)
6;
executed 4840974 times by 1 test: return 6;
Executed by:
  • Self test (438)
4840974
725 }-
726-
727 p++;-
728 a = a<<14;-
729 a |= *p;-
730-
731 if (!(a&0x80)
!(a&0x80)Description
TRUEevaluated 1605105 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 844189 times by 1 test
Evaluated by:
  • Self test (438)
)
844189-1605105
732 {-
733 a &= 0xf01fc07f;-
734 b &= 0x001fc07f;-
735 b = b<<7;-
736 a |= b;-
737 s = s>>11;-
738 *v = ((u64)s)<<32 | a;-
739 return
executed 1605105 times by 1 test: return 7;
Executed by:
  • Self test (438)
7;
executed 1605105 times by 1 test: return 7;
Executed by:
  • Self test (438)
1605105
740 }-
741-
742-
743 a &= 0x001fc07f;-
744 p++;-
745 b = b<<14;-
746 b |= *p;-
747-
748 if (!(b&0x80)
!(b&0x80)Description
TRUEevaluated 402489 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 441700 times by 1 test
Evaluated by:
  • Self test (438)
)
402489-441700
749 {-
750 b &= 0xf01fc07f;-
751-
752-
753 a = a<<7;-
754 a |= b;-
755 s = s>>4;-
756 *v = ((u64)s)<<32 | a;-
757 return
executed 402489 times by 1 test: return 8;
Executed by:
  • Self test (438)
8;
executed 402489 times by 1 test: return 8;
Executed by:
  • Self test (438)
402489
758 }-
759-
760 p++;-
761 a = a<<15;-
762 a |= *p;-
763-
764-
765-
766-
767 b &= 0x001fc07f;-
768 b = b<<8;-
769 a |= b;-
770-
771 s = s<<4;-
772 b = p[-4];-
773 b &= 0x7f;-
774 b = b>>3;-
775 s |= b;-
776-
777 *v = ((u64)s)<<32 | a;-
778-
779 return
executed 441700 times by 1 test: return 9;
Executed by:
  • Self test (438)
9;
executed 441700 times by 1 test: return 9;
Executed by:
  • Self test (438)
441700
780}-
781u8 sqlite3GetVarint32(const unsigned char *p, u32 *v){-
782 u32 a,b;-
783-
784-
785-
786 a = *p;-
787 p++;-
788 b = *p;-
789-
790 if (!(b&0x80)
!(b&0x80)Description
TRUEevaluated 33196552 times by 367 tests
Evaluated by:
  • 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)
  • Self test (126)
  • ...
FALSEevaluated 324790 times by 1 test
Evaluated by:
  • Self test (438)
)
324790-33196552
791 {-
792-
793 a &= 0x7f;-
794 a = a<<7;-
795 *v = a | b;-
796 return
executed 33196499 times by 367 tests: return 2;
Executed by:
  • 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)
  • Self test (126)
  • ...
2;
executed 33196499 times by 367 tests: return 2;
Executed by:
  • 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)
  • Self test (126)
  • ...
33196499
797 }-
798-
799-
800 p++;-
801 a = a<<14;-
802 a |= *p;-
803-
804 if (!(a&0x80)
!(a&0x80)Description
TRUEevaluated 85482 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 239308 times by 1 test
Evaluated by:
  • Self test (438)
)
85482-239308
805 {-
806-
807 a &= (0x7f<<14)|(0x7f);-
808 b &= 0x7f;-
809 b = b<<7;-
810 *v = a | b;-
811 return
executed 85482 times by 1 test: return 3;
Executed by:
  • Self test (438)
3;
executed 85482 times by 1 test: return 3;
Executed by:
  • Self test (438)
85482
812 }-
813 {-
814 u64 v64;-
815 u8 n;-
816-
817 p -= 2;-
818 n = sqlite3GetVarint(p, &v64);-
819 -
820 ((void) (0))-
821 ;-
822 if( (
(v64 & ((((u64...<<32)-1))!=v64Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 239302 times by 1 test
Evaluated by:
  • Self test (438)
v64 & ((((u64)1)<<32)-1))!=v64
(v64 & ((((u64...<<32)-1))!=v64Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 239302 times by 1 test
Evaluated by:
  • Self test (438)
){
6-239302
823 *v = 0xffffffff;-
824 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
6
825 *v = (u32)v64;-
826 }
executed 239302 times by 1 test: end of block
Executed by:
  • Self test (438)
239302
827 return
executed 239308 times by 1 test: return n;
Executed by:
  • Self test (438)
n;
executed 239308 times by 1 test: return n;
Executed by:
  • Self test (438)
239308
828 }-
829}-
830-
831-
832-
833-
834-
835int sqlite3VarintLen(u64 v){-
836 int i;-
837 for(i=1; (
(v >>= 7)!=0Description
TRUEevaluated 4108336 times by 377 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
FALSEevaluated 7454272 times by 381 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
v >>= 7)!=0
(v >>= 7)!=0Description
TRUEevaluated 4108336 times by 377 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
FALSEevaluated 7454272 times by 381 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
; i++){
4108336-7454272
838 ((void) (0))-
839 ; }
executed 4108336 times by 377 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
4108336
840 return
executed 7454222 times by 381 tests: return i;
Executed by:
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
i;
executed 7454222 times by 381 tests: return i;
Executed by:
  • Self test (10)
  • Self test (100)
  • 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)
  • ...
7454222
841}-
842-
843-
844-
845-
846-
847u32 sqlite3Get4byte(const u8 *p){-
848-
849-
850-
851-
852-
853 u32 x;-
854 memcpy(&x,p,4);-
855 return
executed 33128986 times by 435 tests: return __builtin_bswap32(x);
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)
  • ...
__builtin_bswap32(x);
executed 33128986 times by 435 tests: return __builtin_bswap32(x);
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)
  • ...
33128986
856}-
857void sqlite3Put4byte(unsigned char *p, u32 v){-
858-
859-
860-
861 u32 x = __builtin_bswap32(v);-
862 memcpy(p,&x,4);-
863}
executed 8169752 times by 402 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • 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)
  • Self test (122)
  • ...
8169752
864u8 sqlite3HexToInt(int h){-
865 -
866 ((void) (0))-
867 ;-
868-
869 h += 9*(1&(h>>6));-
870-
871-
872-
873-
874 return
executed 13976 times by 1 test: return (u8)(h & 0xf);
Executed by:
  • Self test (438)
(u8)(h & 0xf);
executed 13976 times by 1 test: return (u8)(h & 0xf);
Executed by:
  • Self test (438)
13976
875}-
876void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){-
877 char *zBlob;-
878 int i;-
879-
880 zBlob = (char *)sqlite3DbMallocRawNN(db, n/2 + 1);-
881 n--;-
882 if( zBlob
zBlobDescription
TRUEevaluated 2815 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-2815
883 for(i=0; i<n
i<nDescription
TRUEevaluated 6413 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2815 times by 1 test
Evaluated by:
  • Self test (438)
; i+=2){
2815-6413
884 zBlob[i/2] = (sqlite3HexToInt(z[i])<<4) | sqlite3HexToInt(z[i+1]);-
885 }
executed 6413 times by 1 test: end of block
Executed by:
  • Self test (438)
6413
886 zBlob[i/2] = 0;-
887 }
executed 2815 times by 1 test: end of block
Executed by:
  • Self test (438)
2815
888 return
executed 2815 times by 1 test: return zBlob;
Executed by:
  • Self test (438)
zBlob;
executed 2815 times by 1 test: return zBlob;
Executed by:
  • Self test (438)
2815
889}-
890-
891-
892-
893-
894-
895-
896-
897static void logBadConnection(const char *zType){-
898 sqlite3_log(21,-
899 "API call with %s database connection pointer",-
900 zType-
901 );-
902}
executed 17 times by 1 test: end of block
Executed by:
  • Self test (438)
17
903int sqlite3SafetyCheckOk(sqlite3 *db){-
904 u32 magic;-
905 if( db==0
db==0Description
TRUEnever evaluated
FALSEevaluated 528809 times by 436 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)
  • ...
){
0-528809
906 logBadConnection("NULL");-
907 return
never executed: return 0;
0;
never executed: return 0;
0
908 }-
909 magic = db->magic;-
910 if( magic!=0xa029a697
magic!=0xa029a697Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 528805 times by 436 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)
  • ...
){
4-528805
911 if( sqlite3SafetyCheckSickOrOk(db)
sqlite3SafetyCheckSickOrOk(db)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
){
0-4
912 ;-
913 logBadConnection("unopened");-
914 }
never executed: end of block
0
915 return
executed 4 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 4 times by 1 test: return 0;
Executed by:
  • Self test (438)
4
916 }else{-
917 return
executed 528805 times by 436 tests: return 1;
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)
  • ...
1;
executed 528805 times by 436 tests: return 1;
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)
  • ...
528805
918 }-
919}-
920int sqlite3SafetyCheckSickOrOk(sqlite3 *db){-
921 u32 magic;-
922 magic = db->magic;-
923 if( magic!=0x4b771290
magic!=0x4b771290Description
TRUEevaluated 211670 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 735 times by 1 test
Evaluated by:
  • Self test (438)
&&
735-211670
924 magic!=0xa029a697
magic!=0xa029a697Description
TRUEevaluated 931 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 210739 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)
  • ...
&&
931-210739
925 magic!=0xf03b7906
magic!=0xf03b7906Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 914 times by 1 test
Evaluated by:
  • Self test (438)
){
17-914
926 ;-
927 logBadConnection("invalid");-
928 return
executed 17 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 17 times by 1 test: return 0;
Executed by:
  • Self test (438)
17
929 }else{-
930 return
executed 212388 times by 438 tests: return 1;
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)
  • ...
1;
executed 212388 times by 438 tests: return 1;
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)
  • ...
212388
931 }-
932}-
933-
934-
935-
936-
937-
938-
939-
940int sqlite3AddInt64(i64 *pA, i64 iB){-
941-
942 return
executed 2859483 times by 1 test: return __builtin_add_overflow(*pA, iB, pA);
Executed by:
  • Self test (438)
__builtin_add_overflow(*pA, iB, pA);
executed 2859483 times by 1 test: return __builtin_add_overflow(*pA, iB, pA);
Executed by:
  • Self test (438)
2859483
943}-
944int sqlite3SubInt64(i64 *pA, i64 iB){-
945-
946 return
executed 1367032 times by 1 test: return __builtin_sub_overflow(*pA, iB, pA);
Executed by:
  • Self test (438)
__builtin_sub_overflow(*pA, iB, pA);
executed 1367032 times by 1 test: return __builtin_sub_overflow(*pA, iB, pA);
Executed by:
  • Self test (438)
1367032
947}-
948int sqlite3MulInt64(i64 *pA, i64 iB){-
949-
950 return
executed 1329164 times by 1 test: return __builtin_mul_overflow(*pA, iB, pA);
Executed by:
  • Self test (438)
__builtin_mul_overflow(*pA, iB, pA);
executed 1329164 times by 1 test: return __builtin_mul_overflow(*pA, iB, pA);
Executed by:
  • Self test (438)
1329164
951}-
952-
953-
954-
955-
956-
957int sqlite3AbsInt32(int x){-
958 if( x>=0
x>=0Description
TRUEevaluated 2352801 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 3094385 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 2352801 times by 435 tests: return x;
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)
  • ...
x;
executed 2352801 times by 435 tests: return x;
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)
  • ...
2352801-3094385
959 if( x==(int)0x80000000
x==(int)0x80000000Description
TRUEnever evaluated
FALSEevaluated 3094385 times by 1 test
Evaluated by:
  • Self test (438)
) return
never executed: return 0x7fffffff;
0x7fffffff;
never executed: return 0x7fffffff;
0-3094385
960 return
executed 3094385 times by 1 test: return -x;
Executed by:
  • Self test (438)
-x;
executed 3094385 times by 1 test: return -x;
Executed by:
  • Self test (438)
3094385
961}-
962LogEst sqlite3LogEstAdd(LogEst a, LogEst b){-
963 static const unsigned char x[] = {-
964 10, 10,-
965 9, 9,-
966 8, 8,-
967 7, 7, 7,-
968 6, 6, 6,-
969 5, 5, 5,-
970 4, 4, 4, 4,-
971 3, 3, 3, 3, 3, 3,-
972 2, 2, 2, 2, 2, 2, 2,-
973 };-
974 if( a>=b
a>=bDescription
TRUEevaluated 1518201 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 1444073 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)
  • ...
){
1444073-1518201
975 if( a>b+49
a>b+49Description
TRUEevaluated 1308209 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 209992 times by 33 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (4)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (5)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • ...
) return
executed 1308209 times by 435 tests: return a;
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)
  • ...
a;
executed 1308209 times by 435 tests: return a;
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)
  • ...
209992-1308209
976 if( a>b+31
a>b+31Description
TRUEevaluated 37717 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 172275 times by 33 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (4)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (5)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • ...
) return
executed 37717 times by 1 test: return a+1;
Executed by:
  • Self test (438)
a+1;
executed 37717 times by 1 test: return a+1;
Executed by:
  • Self test (438)
37717-172275
977 return
executed 172275 times by 33 tests: return a+x[a-b];
Executed by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (4)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (5)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • ...
a+x[a-b];
executed 172275 times by 33 tests: return a+x[a-b];
Executed by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (4)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (5)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • ...
172275
978 }else{-
979 if( b>a+49
b>a+49Description
TRUEevaluated 1347902 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 96171 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (47)
) return
executed 1347902 times by 435 tests: return b;
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)
  • ...
b;
executed 1347902 times by 435 tests: return b;
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)
  • ...
96171-1347902
980 if( b>a+31
b>a+31Description
TRUEevaluated 31983 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 64188 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (47)
) return
executed 31983 times by 1 test: return b+1;
Executed by:
  • Self test (438)
b+1;
executed 31983 times by 1 test: return b+1;
Executed by:
  • Self test (438)
31983-64188
981 return
executed 64188 times by 2 tests: return b+x[b-a];
Executed by:
  • Self test (438)
  • Self test (47)
b+x[b-a];
executed 64188 times by 2 tests: return b+x[b-a];
Executed by:
  • Self test (438)
  • Self test (47)
64188
982 }-
983}-
984-
985-
986-
987-
988-
989LogEst sqlite3LogEst(u64 x){-
990 static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 };-
991 LogEst y = 40;-
992 if( x<8
x<8Description
TRUEevaluated 37662 times by 10 tests
Evaluated by:
  • Self test
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (438)
  • Self test (47)
  • Self test (57)
  • Self test (58)
FALSEevaluated 980526 times by 436 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)
  • ...
){
37662-980526
993 if( x<2
x<2Description
TRUEevaluated 30658 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7004 times by 10 tests
Evaluated by:
  • Self test
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (438)
  • Self test (47)
  • Self test (57)
  • Self test (58)
) return
executed 30658 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 30658 times by 1 test: return 0;
Executed by:
  • Self test (438)
7004-30658
994 while( x<8
x<8Description
TRUEevaluated 8354 times by 10 tests
Evaluated by:
  • Self test
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (438)
  • Self test (47)
  • Self test (57)
  • Self test (58)
FALSEevaluated 7004 times by 10 tests
Evaluated by:
  • Self test
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (438)
  • Self test (47)
  • Self test (57)
  • Self test (58)
){ y -= 10; x <<= 1; }
executed 8354 times by 10 tests: end of block
Executed by:
  • Self test
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (438)
  • Self test (47)
  • Self test (57)
  • Self test (58)
7004-8354
995 }
executed 7004 times by 10 tests: end of block
Executed by:
  • Self test
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (438)
  • Self test (47)
  • Self test (57)
  • Self test (58)
else{
7004
996-
997 int i = 60 - __builtin_clzll(x);-
998 y += i*10;-
999 x >>= i;-
1000-
1001-
1002-
1003-
1004 }
executed 980526 times by 436 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)
  • ...
980526
1005 return
executed 987530 times by 436 tests: return a[x&7] + y - 10;
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)
  • ...
a[x&7] + y - 10;
executed 987530 times by 436 tests: return a[x&7] + y - 10;
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)
  • ...
987530
1006}-
1007-
1008-
1009-
1010-
1011-
1012-
1013LogEst sqlite3LogEstFromDouble(double x){-
1014 u64 a;-
1015 LogEst e;-
1016 -
1017 ((void) (0))-
1018 ;-
1019 if( x<=1
x<=1Description
TRUEevaluated 481 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11353 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 481 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 481 times by 1 test: return 0;
Executed by:
  • Self test (438)
481-11353
1020 if( x<=2000000000
x<=2000000000Description
TRUEevaluated 11139 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 214 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 11139 times by 1 test: return sqlite3LogEst((u64)x);
Executed by:
  • Self test (438)
sqlite3LogEst((u64)x);
executed 11139 times by 1 test: return sqlite3LogEst((u64)x);
Executed by:
  • Self test (438)
214-11139
1021 memcpy(&a, &x, 8);-
1022 e = (a>>52) - 1022;-
1023 return
executed 214 times by 1 test: return e*10;
Executed by:
  • Self test (438)
e*10;
executed 214 times by 1 test: return e*10;
Executed by:
  • Self test (438)
214
1024}-
1025VList *sqlite3VListAdd(-
1026 sqlite3 *db,-
1027 VList *pIn,-
1028 const char *zName,-
1029 int nName,-
1030 int iVal-
1031){-
1032 int nInt;-
1033 char *z;-
1034 int i;-
1035-
1036 nInt = nName/4 + 3;-
1037 -
1038 ((void) (0))-
1039 ;-
1040 if( pIn==0
pIn==0Description
TRUEevaluated 28079 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4568 times by 1 test
Evaluated by:
  • Self test (438)
|| pIn[1]+nInt > pIn[0]
pIn[1]+nInt > pIn[0]Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4536 times by 1 test
Evaluated by:
  • Self test (438)
){
32-28079
1041-
1042 int nAlloc = (pIn
pInDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 28079 times by 1 test
Evaluated by:
  • Self test (438)
? pIn[0]*2 : 10) + nInt;
32-28079
1043 VList *pOut = sqlite3DbRealloc(db, pIn, nAlloc*sizeof(int));-
1044 if( pOut==0
pOut==0Description
TRUEnever evaluated
FALSEevaluated 28111 times by 1 test
Evaluated by:
  • Self test (438)
) return
never executed: return pIn;
pIn;
never executed: return pIn;
0-28111
1045 if( pIn==0
pIn==0Description
TRUEevaluated 28079 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32 times by 1 test
Evaluated by:
  • Self test (438)
) pOut[1] = 2;
executed 28079 times by 1 test: pOut[1] = 2;
Executed by:
  • Self test (438)
32-28079
1046 pIn = pOut;-
1047 pIn[0] = nAlloc;-
1048 }
executed 28111 times by 1 test: end of block
Executed by:
  • Self test (438)
28111
1049 i = pIn[1];-
1050 pIn[i] = iVal;-
1051 pIn[i+1] = nInt;-
1052 z = (char*)&pIn[i+2];-
1053 pIn[1] = i+nInt;-
1054 -
1055 ((void) (0))-
1056 ;-
1057 memcpy(z, zName, nName);-
1058 z[nName] = 0;-
1059 return
executed 32647 times by 1 test: return pIn;
Executed by:
  • Self test (438)
pIn;
executed 32647 times by 1 test: return pIn;
Executed by:
  • Self test (438)
32647
1060}-
1061-
1062-
1063-
1064-
1065-
1066-
1067const char *sqlite3VListNumToName(VList *pIn, int iVal){-
1068 int i, mx;-
1069 if( pIn==0
pIn==0Description
TRUEevaluated 397 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 551894 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 397 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 397 times by 1 test: return 0;
Executed by:
  • Self test (438)
397-551894
1070 mx = pIn[1];-
1071 i = 2;-
1072 do{-
1073 if( pIn[i]==iVal
pIn[i]==iValDescription
TRUEevaluated 551742 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 109621 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 551742 times by 1 test: return (char*)&pIn[i+2];
Executed by:
  • Self test (438)
(char*)&pIn[i+2];
executed 551742 times by 1 test: return (char*)&pIn[i+2];
Executed by:
  • Self test (438)
109621-551742
1074 i += pIn[i+1];-
1075 }
executed 109621 times by 1 test: end of block
Executed by:
  • Self test (438)
while( i<mx
i<mxDescription
TRUEevaluated 109469 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 152 times by 1 test
Evaluated by:
  • Self test (438)
);
152-109621
1076 return
executed 152 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 152 times by 1 test: return 0;
Executed by:
  • Self test (438)
152
1077}-
1078-
1079-
1080-
1081-
1082-
1083int sqlite3VListNameToNum(VList *pIn, const char *zName, int nName){-
1084 int i, mx;-
1085 if( pIn==0
pIn==0Description
TRUEevaluated 26601 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4089 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 26601 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 26601 times by 1 test: return 0;
Executed by:
  • Self test (438)
4089-26601
1086 mx = pIn[1];-
1087 i = 2;-
1088 do{-
1089 const char *z = (const char*)&pIn[i+2];-
1090 if( -
1091 (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
__extension__ (__builtin_constant_p (
__builtin_constant_p ( nName )Description
TRUEnever evaluated
FALSEevaluated 6030 times by 1 test
Evaluated by:
  • Self test (438)
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-6030
1092 nName
__builtin_constant_p ( nName )Description
TRUEnever evaluated
FALSEevaluated 6030 times by 1 test
Evaluated by:
  • Self test (438)
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-6030
1093 )
__builtin_constant_p ( nName )Description
TRUEnever evaluated
FALSEevaluated 6030 times by 1 test
Evaluated by:
  • Self test (438)
&& ((__builtin_constant_p (
__builtin_constant_p ( z )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-6030
1094 z
__builtin_constant_p ( z )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1095 )
__builtin_constant_p ( z )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( z ) <..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1096 z
strlen ( z ) <..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1097 ) < ((size_t) (
strlen ( z ) <..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1098 nName
strlen ( z ) <..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1099 ))
strlen ( z ) <..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_constant_p ( zName )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1100 zName
__builtin_constant_p ( zName )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1101 )
__builtin_constant_p ( zName )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( zName..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1102 zName
strlen ( zName..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1103 ) < ((size_t) (
strlen ( zName..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1104 nName
strlen ( zName..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1105 ))
strlen ( zName..._t) ( nName ))Description
TRUEnever evaluated
FALSEnever evaluated
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1106 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1107 ) && __builtin_constant_p (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1108 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1109 ) && (__s1_len = __builtin_strlen (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1110 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1111 ), __s2_len = __builtin_strlen (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1112 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1113 ), (!((size_t)(const void *)((
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1114 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1115 ) + 1) - (size_t)(const void *)(
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1116 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1117 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1118 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1119 ) + 1) - (size_t)(const void *)(
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1120 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1121 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1122 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1123 ,
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1124 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1125 ) : (__builtin_constant_p (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1126 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1127 ) && ((size_t)(const void *)((
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1128 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1129 ) + 1) - (size_t)(const void *)(
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1130 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1131 ) == 1) && (__s1_len = __builtin_strlen (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1132 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1133 ), __s1_len < 4) ? (__builtin_constant_p (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1134 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1135 ) && ((size_t)(const void *)((
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1136 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1137 ) + 1) - (size_t)(const void *)(
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1138 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1139 ) == 1) ? __builtin_strcmp (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1140 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1141 ,
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1142 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1143 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1144 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1145 ); int __result = (((const unsigned char *) (const char *) (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1146 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1147 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1148 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1149 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1150 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1151 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( z ))[3] - __s2[3]);
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1152 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
never executed: __result = (((const unsigned char *) (const char *) ( z ))[3] - __s2[3]);
0-5688
1153 ))[3] - __s2[3]);
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
never executed: __result = (((const unsigned char *) (const char *) ( z ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
0-5688
1154 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1155 ) && ((size_t)(const void *)((
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1156 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1157 ) + 1) - (size_t)(const void *)(
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1158 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1159 ) == 1) && (__s2_len = __builtin_strlen (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1160 zName
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1161 ), __s2_len < 4) ? (__builtin_constant_p (
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1162 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1163 ) && ((size_t)(const void *)((
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1164 z
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1165 ) + 1) - (size_t)(const void *)(
(__extension__... nName ))) ==0Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5688 times by 1 test
Evaluated by:
  • Self test (438)
342-5688
1166 z
(__extension__... nName ))) ==0Description