Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | int sqlite3FaultSim(int iTest){ | - |
5 | int (*xCallback)(int) = sqlite3Config.xTestCallback; | - |
6 | returnexecuted 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)
- ...
xCallbackTRUE | evaluated 1 time by 1 test | FALSE | evaluated 123096 times by 149 testsEvaluated 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 | } | - |
8 | int sqlite3IsNaN(double x){ | - |
9 | int rc; | - |
10 | rc = | - |
11 | __builtin_isnan ( | - |
12 | x | - |
13 | ) | - |
14 | ; | - |
15 | | - |
16 | ; | - |
17 | returnexecuted 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 | } | - |
19 | int sqlite3Strlen30(const char *z){ | - |
20 | if( z==0TRUE | evaluated 49596 times by 63 testsEvaluated 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)
- ...
| FALSE | evaluated 7803623 times by 438 testsEvaluated 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)
- ...
|
) returnexecuted 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 | returnexecuted 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 | } | - |
23 | char *sqlite3ColumnType(Column *pCol, char *zDflt){ | - |
24 | if( (TRUE | evaluated 98462 times by 50 testsEvaluated 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)
- ...
| FALSE | evaluated 206082 times by 435 testsEvaluated 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)==0TRUE | evaluated 98462 times by 50 testsEvaluated 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)
- ...
| FALSE | evaluated 206082 times by 435 testsEvaluated 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)
- ...
|
) returnexecuted 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 | returnexecuted 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 | | - |
33 | static __attribute__((noinline)) void sqlite3ErrorFinish(sqlite3 *db, int err_code){ | - |
34 | if( db->pErrTRUE | evaluated 155203 times by 19 testsEvaluated 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)
| FALSE | evaluated 8366 times by 1 test |
) 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 | | - |
43 | void sqlite3Error(sqlite3 *db, int err_code){ | - |
44 | | - |
45 | ((void) (0)) | - |
46 | ; | - |
47 | db->errCode = err_code; | - |
48 | if( err_codeTRUE | evaluated 8439 times by 2 testsEvaluated by:- Self test (438)
- Self test (47)
| FALSE | evaluated 1433402 times by 438 testsEvaluated 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->pErrTRUE | evaluated 155130 times by 19 testsEvaluated 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)
| FALSE | evaluated 1278272 times by 438 testsEvaluated 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 | | - |
55 | void sqlite3SystemError(sqlite3 *db, int rc){ | - |
56 | if( rc==(10 | (12<<8))TRUE | evaluated 219 times by 1 test | FALSE | evaluated 181314 times by 19 testsEvaluated 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; | 219-181314 |
57 | rc &= 0xff; | - |
58 | if( rc==14TRUE | evaluated 527 times by 1 test | FALSE | evaluated 180787 times by 19 testsEvaluated 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==10TRUE | evaluated 187 times by 1 test | FALSE | evaluated 180600 times by 19 testsEvaluated 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 | 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 |
62 | void 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==0TRUE | evaluated 9114 times by 1 test | FALSE | evaluated 2232 times by 13 testsEvaluated 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 else if( db->pErrTRUE | evaluated 1498 times by 6 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
| FALSE | evaluated 734 times by 9 testsEvaluated 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)
|
|| (TRUE | evaluated 608 times by 9 testsEvaluated 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)
| FALSE | evaluated 126 times by 1 test |
db->pErr = sqlite3ValueNew(db))!=0TRUE | evaluated 608 times by 9 testsEvaluated 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)
| FALSE | evaluated 126 times by 1 test |
){ | 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 |
89 | void 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->suppressErrTRUE | evaluated 477 times by 2 testsEvaluated by:- Self test (438)
- Self test (47)
| FALSE | evaluated 1891 times by 12 testsEvaluated 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 | } | - |
115 | void sqlite3Dequote(char *z){ | - |
116 | char quote; | - |
117 | int i, j; | - |
118 | if( z==0TRUE | evaluated 107 times by 1 test | FALSE | evaluated 1940485 times by 436 testsEvaluated 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; | 107-1940485 |
119 | quote = z[0]; | - |
120 | if( !(sqlite3CtypeMap[(unsigned char)(quote)]&0x80)TRUE | evaluated 1534389 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 406096 times by 435 testsEvaluated 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=='['TRUE | evaluated 159 times by 1 test | FALSE | evaluated 405937 times by 435 testsEvaluated 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 = ']'; | 159-405937 |
122 | for(i=1, j=0;; i++){ | - |
123 | | - |
124 | ((void) (0)) | - |
125 | ; | - |
126 | if( z[i]==quoteTRUE | evaluated 413271 times by 435 testsEvaluated 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)
- ...
| FALSE | evaluated 7943295 times by 435 testsEvaluated 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]==quoteTRUE | evaluated 7175 times by 1 test | FALSE | evaluated 406096 times by 435 testsEvaluated 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 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 | | - |
143 | void 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 |
147 | int sqlite3_stricmp(const char *zLeft, const char *zRight){ | - |
148 | if( zLeft==0TRUE | evaluated 3478 times by 2 testsEvaluated by:- Self test (34)
- Self test (438)
| FALSE | evaluated 11850739 times by 436 testsEvaluated 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 | returnexecuted 3478 times by 2 tests: return zRight ? -1 : 0; Executed by:- Self test (34)
- Self test (438)
zRightTRUE | evaluated 33 times by 1 test | FALSE | evaluated 3445 times by 2 testsEvaluated 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==0TRUE | evaluated 4 times by 1 test | FALSE | evaluated 11850735 times by 436 testsEvaluated 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 | returnexecuted 4 times by 1 test: return 1; 1;executed 4 times by 1 test: return 1; | 4 |
152 | } | - |
153 | returnexecuted 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 | } | - |
155 | int 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( cTRUE | evaluated 26006055 times by 438 testsEvaluated 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)
- ...
| FALSE | evaluated 57423193 times by 438 testsEvaluated 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)
- ...
|
|| *TRUE | evaluated 4199084 times by 438 testsEvaluated 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)
- ...
| FALSE | evaluated 53224111 times by 438 testsEvaluated 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==0TRUE | evaluated 4199084 times by 438 testsEvaluated 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)
- ...
| FALSE | evaluated 53224111 times by 438 testsEvaluated 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 | returnexecuted 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 | } | - |
168 | int sqlite3_strnicmp(const char *zLeft, const char *zRight, int N){ | - |
169 | register unsigned char *a, *b; | - |
170 | if( zLeft==0TRUE | evaluated 4458 times by 376 testsEvaluated 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)
- ...
| FALSE | evaluated 231798 times by 436 testsEvaluated 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 | returnexecuted 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)
- ...
zRightTRUE | evaluated 4458 times by 376 testsEvaluated 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)
- ...
| FALSE | never 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==0TRUE | never evaluated | FALSE | evaluated 231798 times by 436 testsEvaluated 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-- > 0TRUE | evaluated 964270 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 132765 times by 436 testsEvaluated 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)
- ...
|
&& *TRUE | evaluated 964251 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 19 times by 1 test |
a!=0TRUE | evaluated 964251 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 19 times by 1 test |
&& sqlite3UpperToLower[*a]==sqlite3UpperToLower[*b]TRUE | evaluated 865237 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 99014 times by 407 testsEvaluated 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 | returnexecuted 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<0TRUE | evaluated 132765 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 99033 times by 407 testsEvaluated 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 | | - |
187 | static long double sqlite3Pow10(int E){ | - |
188 | long double x = 10.0; | - |
189 | long double r = 1.0; | - |
190 | while(1){ | - |
191 | if( E & 1TRUE | evaluated 218580 times by 1 test | FALSE | evaluated 138935 times by 1 test |
) r *= x;executed 218580 times by 1 test: r *= x; | 138935-218580 |
192 | E >>= 1; | - |
193 | if( E==0TRUE | evaluated 86514 times by 1 test | FALSE | evaluated 271001 times by 1 test |
) break;executed 86514 times by 1 test: break; | 86514-271001 |
194 | x *= x; | - |
195 | }executed 271001 times by 1 test: end of block | 271001 |
196 | returnexecuted 86514 times by 1 test: return r; r;executed 86514 times by 1 test: return r; | 86514 |
197 | | - |
198 | } | - |
199 | int 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==1TRUE | evaluated 4785352 times by 1 test | FALSE | evaluated 1354 times by 1 test |
){ | 1354-4785352 |
220 | incr = 1; | - |
221 | }executed 4785352 times by 1 test: end of block else{ | 4785352 |
222 | int i; | - |
223 | incr = 2; | - |
224 | | - |
225 | ((void) (0)) | - |
226 | ; | - |
227 | for(i=3-enc; i<lengthTRUE | evaluated 10753 times by 1 test | FALSE | evaluated 1350 times by 1 test |
&& z[i]==0TRUE | evaluated 10749 times by 1 test | FALSE | evaluated 4 times by 1 test |
; i+=2){}executed 10749 times by 1 test: end of block | 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 | 1354 |
232 | | - |
233 | | - |
234 | while( z<zEndTRUE | evaluated 4786133 times by 1 test | FALSE | evaluated 643 times by 1 test |
&& (TRUE | evaluated 70 times by 1 test | FALSE | evaluated 4786063 times by 1 test |
sqlite3CtypeMap[(unsigned char)(*z)]&0x01)TRUE | evaluated 70 times by 1 test | FALSE | evaluated 4786063 times by 1 test |
) z+=incr;executed 70 times by 1 test: z+=incr; | 70-4786133 |
235 | if( z>=zEndTRUE | evaluated 643 times by 1 test | FALSE | evaluated 4786063 times by 1 test |
) returnexecuted 643 times by 1 test: return 0; 0;executed 643 times by 1 test: return 0; | 643-4786063 |
236 | | - |
237 | | - |
238 | if( *TRUE | evaluated 10062 times by 1 test | FALSE | evaluated 4776001 times by 1 test |
z=='-'TRUE | evaluated 10062 times by 1 test | FALSE | evaluated 4776001 times by 1 test |
){ | 10062-4776001 |
239 | sign = -1; | - |
240 | z+=incr; | - |
241 | }executed 10062 times by 1 test: end of block else if( *TRUE | evaluated 86 times by 1 test | FALSE | evaluated 4775915 times by 1 test |
z=='+'TRUE | evaluated 86 times by 1 test | FALSE | evaluated 4775915 times by 1 test |
){ | 86-4775915 |
242 | z+=incr; | - |
243 | }executed 86 times by 1 test: end of block | 86 |
244 | | - |
245 | | - |
246 | while( z<zEndTRUE | evaluated 9317266 times by 1 test | FALSE | evaluated 4030931 times by 1 test |
&& (TRUE | evaluated 8562235 times by 1 test | FALSE | evaluated 755031 times by 1 test |
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)TRUE | evaluated 8562235 times by 1 test | FALSE | evaluated 755031 times by 1 test |
&& s<(((0xffffffff|(((i64)0x7fffffff)<<32))-9)/10)TRUE | evaluated 8562134 times by 1 test | FALSE | evaluated 101 times by 1 test |
){ | 101-9317266 |
247 | s = s*10 + (*z - '0'); | - |
248 | z+=incr; nDigits++; | - |
249 | }executed 8562134 times by 1 test: end of block | 8562134 |
250 | | - |
251 | | - |
252 | | - |
253 | while( z<zEndTRUE | evaluated 767454 times by 1 test | FALSE | evaluated 4031003 times by 1 test |
&& (TRUE | evaluated 12394 times by 1 test | FALSE | evaluated 755060 times by 1 test |
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)TRUE | evaluated 12394 times by 1 test | FALSE | evaluated 755060 times by 1 test |
){ z+=incr; nDigits++; d++; }executed 12394 times by 1 test: end of block | 12394-4031003 |
254 | if( z>=zEndTRUE | evaluated 4031003 times by 1 test | FALSE | evaluated 755060 times by 1 test |
) gotoexecuted 4031003 times by 1 test: goto do_atof_calc; do_atof_calc;executed 4031003 times by 1 test: goto do_atof_calc; | 755060-4031003 |
255 | | - |
256 | | - |
257 | if( *TRUE | evaluated 95546 times by 1 test | FALSE | evaluated 659514 times by 1 test |
z=='.'TRUE | evaluated 95546 times by 1 test | FALSE | evaluated 659514 times by 1 test |
){ | 95546-659514 |
258 | z+=incr; | - |
259 | | - |
260 | | - |
261 | while( z<zEndTRUE | evaluated 1631223 times by 1 test | FALSE | evaluated 36476 times by 1 test |
&& (TRUE | evaluated 1572153 times by 1 test | FALSE | evaluated 59070 times by 1 test |
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)TRUE | evaluated 1572153 times by 1 test | FALSE | evaluated 59070 times by 1 test |
){ | 36476-1631223 |
262 | if( s<(((0xffffffff|(((i64)0x7fffffff)<<32))-9)/10)TRUE | evaluated 1175883 times by 1 test | FALSE | evaluated 396270 times by 1 test |
){ | 396270-1175883 |
263 | s = s*10 + (*z - '0'); | - |
264 | d--; | - |
265 | }executed 1175883 times by 1 test: end of block | 1175883 |
266 | z+=incr; nDigits++; | - |
267 | }executed 1572153 times by 1 test: end of block | 1572153 |
268 | }executed 95546 times by 1 test: end of block | 95546 |
269 | if( z>=zEndTRUE | evaluated 36476 times by 1 test | FALSE | evaluated 718584 times by 1 test |
) gotoexecuted 36476 times by 1 test: goto do_atof_calc; do_atof_calc;executed 36476 times by 1 test: goto do_atof_calc; | 36476-718584 |
270 | | - |
271 | | - |
272 | if( *TRUE | evaluated 52760 times by 1 test | FALSE | evaluated 665824 times by 1 test |
z=='e'TRUE | evaluated 52760 times by 1 test | FALSE | evaluated 665824 times by 1 test |
|| *TRUE | evaluated 25 times by 1 test | FALSE | evaluated 665799 times by 1 test |
z=='E'TRUE | evaluated 25 times by 1 test | FALSE | evaluated 665799 times by 1 test |
){ | 25-665824 |
273 | z+=incr; | - |
274 | eValid = 0; | - |
275 | | - |
276 | | - |
277 | | - |
278 | | - |
279 | if( z>=zEndTRUE | evaluated 9 times by 1 test | FALSE | evaluated 52776 times by 1 test |
) gotoexecuted 9 times by 1 test: goto do_atof_calc; do_atof_calc;executed 9 times by 1 test: goto do_atof_calc; | 9-52776 |
280 | | - |
281 | | - |
282 | if( *TRUE | evaluated 27932 times by 1 test | FALSE | evaluated 24844 times by 1 test |
z=='-'TRUE | evaluated 27932 times by 1 test | FALSE | evaluated 24844 times by 1 test |
){ | 24844-27932 |
283 | esign = -1; | - |
284 | z+=incr; | - |
285 | }executed 27932 times by 1 test: end of block else if( *TRUE | evaluated 24741 times by 1 test | FALSE | evaluated 103 times by 1 test |
z=='+'TRUE | evaluated 24741 times by 1 test | FALSE | evaluated 103 times by 1 test |
){ | 103-27932 |
286 | z+=incr; | - |
287 | }executed 24741 times by 1 test: end of block | 24741 |
288 | | - |
289 | while( z<zEndTRUE | evaluated 104033 times by 1 test | FALSE | evaluated 51763 times by 1 test |
&& (TRUE | evaluated 103020 times by 1 test | FALSE | evaluated 1013 times by 1 test |
sqlite3CtypeMap[(unsigned char)(*z)]&0x04)TRUE | evaluated 103020 times by 1 test | FALSE | evaluated 1013 times by 1 test |
){ | 1013-104033 |
290 | e = e<10000TRUE | evaluated 103010 times by 1 test | FALSE | evaluated 10 times by 1 test |
? (e*10 + (*z - '0')) : 10000; | 10-103010 |
291 | z+=incr; | - |
292 | eValid = 1; | - |
293 | }executed 103020 times by 1 test: end of block | 103020 |
294 | }executed 52776 times by 1 test: end of block | 52776 |
295 | | - |
296 | | - |
297 | while( z<zEndTRUE | evaluated 666830 times by 1 test | FALSE | evaluated 51773 times by 1 test |
&& (TRUE | evaluated 28 times by 1 test | FALSE | evaluated 666802 times by 1 test |
sqlite3CtypeMap[(unsigned char)(*z)]&0x01)TRUE | evaluated 28 times by 1 test | FALSE | evaluated 666802 times by 1 test |
) z+=incr;executed 28 times by 1 test: z+=incr; | 28-666830 |
298 | | - |
299 | do_atof_calc:code before this statement executed 718575 times by 1 test: do_atof_calc: | 718575 |
300 | | - |
301 | e = (e*esign) + d; | - |
302 | if( e<0TRUE | evaluated 82667 times by 1 test | FALSE | evaluated 4703396 times by 1 test |
) { | 82667-4703396 |
303 | esign = -1; | - |
304 | e *= -1; | - |
305 | }executed 82667 times by 1 test: end of block else { | 82667 |
306 | esign = 1; | - |
307 | }executed 4703396 times by 1 test: end of block | 4703396 |
308 | | - |
309 | if( s==0TRUE | evaluated 1660322 times by 1 test | FALSE | evaluated 3125741 times by 1 test |
) { | 1660322-3125741 |
310 | | - |
311 | result = sign<0TRUE | never evaluated | FALSE | evaluated 1660322 times by 1 test |
? -(double)0 : (double)0; | 0-1660322 |
312 | }executed 1660322 times by 1 test: end of block else { | 1660322 |
313 | | - |
314 | | - |
315 | | - |
316 | | - |
317 | | - |
318 | | - |
319 | while( e>0TRUE | evaluated 124048 times by 1 test | FALSE | evaluated 3039217 times by 1 test |
){ | 124048-3039217 |
320 | if( esign>0TRUE | evaluated 28222 times by 1 test | FALSE | evaluated 95826 times by 1 test |
){ | 28222-95826 |
321 | if( s>=((0xffffffff|(((i64)0x7fffffff)<<32))/10)TRUE | evaluated 11715 times by 1 test | FALSE | evaluated 16507 times by 1 test |
) break;executed 11715 times by 1 test: break; | 11715-16507 |
322 | s *= 10; | - |
323 | }executed 16507 times by 1 test: end of block else{ | 16507 |
324 | if( s%10!=0TRUE | evaluated 74809 times by 1 test | FALSE | evaluated 21017 times by 1 test |
) break;executed 74809 times by 1 test: break; | 21017-74809 |
325 | s /= 10; | - |
326 | }executed 21017 times by 1 test: end of block | 21017 |
327 | e--; | - |
328 | }executed 37524 times by 1 test: end of block | 37524 |
329 | | - |
330 | | - |
331 | s = sign<0TRUE | evaluated 10062 times by 1 test | FALSE | evaluated 3115679 times by 1 test |
? -s : s; | 10062-3115679 |
332 | | - |
333 | if( e==0TRUE | evaluated 3039217 times by 1 test | FALSE | evaluated 86524 times by 1 test |
){ | 86524-3039217 |
334 | result = (double)s; | - |
335 | }executed 3039217 times by 1 test: end of block else{ | 3039217 |
336 | | - |
337 | if( e>307TRUE | evaluated 24 times by 1 test | FALSE | evaluated 86500 times by 1 test |
){ | 24-86500 |
338 | if( e<342TRUE | evaluated 14 times by 1 test | FALSE | evaluated 10 times by 1 test |
){ | 10-14 |
339 | long double scale = sqlite3Pow10(e-308); | - |
340 | if( esign<0TRUE | evaluated 14 times by 1 test | FALSE | never evaluated |
){ | 0-14 |
341 | result = s / scale; | - |
342 | result /= 1.0e+308; | - |
343 | }executed 14 times by 1 test: end of block 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<0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
){ | 5 |
351 | result = 0.0*s; | - |
352 | }executed 5 times by 1 test: end of block else{ | 5 |
353 | | - |
354 | result = | - |
355 | (__builtin_inff()) | - |
356 | *s; | - |
357 | | - |
358 | | - |
359 | | - |
360 | }executed 5 times by 1 test: end of block | 5 |
361 | } | - |
362 | }else{ | - |
363 | long double scale = sqlite3Pow10(e); | - |
364 | if( esign<0TRUE | evaluated 74790 times by 1 test | FALSE | evaluated 11710 times by 1 test |
){ | 11710-74790 |
365 | result = s / scale; | - |
366 | }executed 74790 times by 1 test: end of block else{ | 74790 |
367 | result = s * scale; | - |
368 | }executed 11710 times by 1 test: end of block | 11710 |
369 | } | - |
370 | } | - |
371 | } | - |
372 | | - |
373 | | - |
374 | *pResult = result; | - |
375 | | - |
376 | | - |
377 | returnexecuted 4786063 times by 1 test: return z==zEnd && nDigits>0 && eValid && nonNum==0; z==zEndTRUE | evaluated 4119261 times by 1 test | FALSE | evaluated 666802 times by 1 test |
&& nDigits>0TRUE | evaluated 4119252 times by 1 test | FALSE | evaluated 9 times by 1 test |
&& eValidTRUE | evaluated 4119250 times by 1 test | FALSE | evaluated 2 times by 1 test |
&& nonNum==0TRUE | evaluated 4119248 times by 1 test | FALSE | evaluated 2 times by 1 test |
;executed 4786063 times by 1 test: return z==zEnd && nDigits>0 && eValid && nonNum==0; | 2-4786063 |
378 | | - |
379 | | - |
380 | | - |
381 | } | - |
382 | static 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==0TRUE | evaluated 7307 times by 1 test | FALSE | evaluated 66 times by 1 test |
&& i<18TRUE | evaluated 6940 times by 1 test | FALSE | evaluated 367 times by 1 test |
; i++){ | 66-7307 |
388 | c = (zNum[i*incr]-pow63[i])*10; | - |
389 | }executed 6940 times by 1 test: end of block | 6940 |
390 | if( c==0TRUE | evaluated 367 times by 1 test | FALSE | evaluated 66 times by 1 test |
){ | 66-367 |
391 | c = zNum[18*incr] - '8'; | - |
392 | ; | - |
393 | ; | - |
394 | ; | - |
395 | }executed 367 times by 1 test: end of block | 367 |
396 | returnexecuted 433 times by 1 test: return c; c;executed 433 times by 1 test: return c; | 433 |
397 | } | - |
398 | int 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==1TRUE | evaluated 4066163 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
| FALSE | evaluated 758 times by 1 test |
){ | 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<lengthTRUE | evaluated 5979 times by 1 test | FALSE | evaluated 754 times by 1 test |
&& zNum[i]==0TRUE | evaluated 5975 times by 1 test | FALSE | evaluated 4 times by 1 test |
; i+=2){}executed 5975 times by 1 test: end of block | 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 | 758 |
423 | while( zNum<zEndTRUE | evaluated 4066805 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
| FALSE | evaluated 199 times by 1 test |
&& (TRUE | evaluated 83 times by 1 test | FALSE | evaluated 4066722 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
|
sqlite3CtypeMap[(unsigned char)(*zNum)]&0x01)TRUE | evaluated 83 times by 1 test | FALSE | evaluated 4066722 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
|
) zNum+=incr;executed 83 times by 1 test: zNum+=incr; | 83-4066805 |
424 | if( zNum<zEndTRUE | evaluated 4066722 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
| FALSE | evaluated 199 times by 1 test |
){ | 199-4066722 |
425 | if( *TRUE | evaluated 154 times by 1 test | FALSE | evaluated 4066568 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
|
zNum=='-'TRUE | evaluated 154 times by 1 test | FALSE | evaluated 4066568 times by 3 testsEvaluated 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 else if( *TRUE | evaluated 13 times by 1 test | FALSE | evaluated 4066555 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
|
zNum=='+'TRUE | evaluated 13 times by 1 test | FALSE | evaluated 4066555 times by 3 testsEvaluated 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 | 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<zEndTRUE | evaluated 4071537 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
| FALSE | evaluated 1000433 times by 2 testsEvaluated by:- Self test (32)
- Self test (438)
|
&& zNum[0]=='0'TRUE | evaluated 1005049 times by 2 testsEvaluated by:- Self test (32)
- Self test (438)
| FALSE | evaluated 3066488 times by 2 testsEvaluated 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]<zEndTRUE | evaluated 7498346 times by 2 testsEvaluated by:- Self test (33)
- Self test (438)
| FALSE | evaluated 4046552 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
|
&& (TRUE | evaluated 7478839 times by 2 testsEvaluated by:- Self test (33)
- Self test (438)
| FALSE | evaluated 19507 times by 1 test |
c=zNum[i])>='0'TRUE | evaluated 7478839 times by 2 testsEvaluated by:- Self test (33)
- Self test (438)
| FALSE | evaluated 19507 times by 1 test |
&& c<='9'TRUE | evaluated 7477977 times by 2 testsEvaluated by:- Self test (33)
- Self test (438)
| FALSE | evaluated 862 times by 1 test |
; 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))TRUE | evaluated 169 times by 1 test | FALSE | evaluated 4066752 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
|
){ | 169-4066752 |
441 | | - |
442 | | - |
443 | | - |
444 | | - |
445 | *pNum = negTRUE | evaluated 24 times by 1 test | FALSE | evaluated 145 times by 1 test |
? (((i64)-1) - (0xffffffff|(((i64)0x7fffffff)<<32))) : (0xffffffff|(((i64)0x7fffffff)<<32)); | 24-145 |
446 | }executed 169 times by 1 test: end of block else if( negTRUE | evaluated 130 times by 1 test | FALSE | evaluated 4066622 times by 3 testsEvaluated 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 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==0TRUE | evaluated 1005996 times by 2 testsEvaluated by:- Self test (32)
- Self test (438)
| FALSE | evaluated 3060925 times by 2 testsEvaluated by:- Self test (33)
- Self test (438)
|
&& zStart==zNumTRUE | evaluated 1225 times by 1 test | FALSE | evaluated 1004771 times by 2 testsEvaluated by:- Self test (32)
- Self test (438)
|
) | 1225-3060925 |
453 | || nonNumTRUE | evaluated 2 times by 1 test | FALSE | evaluated 4065694 times by 3 testsEvaluated 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 else if( &zNum[i]<zEndTRUE | evaluated 19343 times by 1 test | FALSE | evaluated 4046351 times by 3 testsEvaluated 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)TRUE | evaluated 19327 times by 1 test | FALSE | evaluated 32 times by 1 test |
){ | 32-19327 |
460 | rc = 1; | - |
461 | break;executed 19327 times by 1 test: break; | 19327 |
462 | } | - |
463 | jj += incr; | - |
464 | }executed 32 times by 1 test: end of block while( &zNum[jj]<zEndTRUE | evaluated 16 times by 1 test | FALSE | evaluated 16 times by 1 test |
); | 16-32 |
465 | }executed 19343 times by 1 test: end of block | 19343 |
466 | if( i<19*incrTRUE | evaluated 4066472 times by 3 testsEvaluated by:- Self test (32)
- Self test (33)
- Self test (438)
| FALSE | evaluated 449 times by 1 test |
){ | 449-4066472 |
467 | | - |
468 | | - |
469 | ((void) (0)) | - |
470 | ; | - |
471 | returnexecuted 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*incrTRUE | evaluated 16 times by 1 test | FALSE | evaluated 433 times by 1 test |
? 1 : compare2pow63(zNum, incr); | 16-433 |
475 | if( c<0TRUE | evaluated 267 times by 1 test | FALSE | evaluated 182 times by 1 test |
){ | 182-267 |
476 | | - |
477 | | - |
478 | ((void) (0)) | - |
479 | ; | - |
480 | returnexecuted 267 times by 1 test: return rc; rc;executed 267 times by 1 test: return rc; | 267 |
481 | }else{ | - |
482 | *pNum = negTRUE | evaluated 25 times by 1 test | FALSE | evaluated 157 times by 1 test |
? (((i64)-1) - (0xffffffff|(((i64)0x7fffffff)<<32))) : (0xffffffff|(((i64)0x7fffffff)<<32)); | 25-157 |
483 | if( c>0TRUE | evaluated 23 times by 1 test | FALSE | evaluated 159 times by 1 test |
){ | 23-159 |
484 | | - |
485 | returnexecuted 23 times by 1 test: return 2; 2;executed 23 times by 1 test: return 2; | 23 |
486 | }else{ | - |
487 | | - |
488 | | - |
489 | | - |
490 | ((void) (0)) | - |
491 | ; | - |
492 | returnexecuted 159 times by 1 test: return neg ? rc : 3; negTRUE | evaluated 19 times by 1 test | FALSE | evaluated 140 times by 1 test |
? rc : 3;executed 159 times by 1 test: return neg ? rc : 3; | 19-159 |
493 | } | - |
494 | } | - |
495 | } | - |
496 | } | - |
497 | int sqlite3DecOrHexToI64(const char *z, i64 *pOut){ | - |
498 | | - |
499 | if( z[0]=='0'TRUE | evaluated 85 times by 2 testsEvaluated by:- Self test (32)
- Self test (438)
| FALSE | evaluated 3491 times by 2 testsEvaluated by:- Self test (33)
- Self test (438)
|
| 85-3491 |
500 | && (z[1]=='x'TRUE | evaluated 36 times by 1 test | FALSE | evaluated 49 times by 2 testsEvaluated by:- Self test (32)
- Self test (438)
|
|| z[1]=='X'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 46 times by 2 testsEvaluated 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'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 39 times by 1 test |
; i++){}executed 1 time by 1 test: end of block | 1-39 |
505 | for(k=i; (TRUE | evaluated 508 times by 1 test | FALSE | evaluated 39 times by 1 test |
sqlite3CtypeMap[(unsigned char)(z[k])]&0x08)TRUE | evaluated 508 times by 1 test | FALSE | evaluated 39 times by 1 test |
; k++){ | 39-508 |
506 | u = u*16 + sqlite3HexToInt(z[k]); | - |
507 | }executed 508 times by 1 test: end of block | 508 |
508 | memcpy(pOut, &u, 8); | - |
509 | returnexecuted 39 times by 1 test: return (z[k]==0 && k-i<=16) ? 0 : 2; (z[k]==0TRUE | evaluated 39 times by 1 test | FALSE | never evaluated |
&& k-i<=16TRUE | evaluated 35 times by 1 test | FALSE | evaluated 4 times by 1 test |
) ? 0 : 2;executed 39 times by 1 test: return (z[k]==0 && k-i<=16) ? 0 : 2; | 0-39 |
510 | }else | - |
511 | | - |
512 | { | - |
513 | returnexecuted 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 | } | - |
516 | int sqlite3GetInt32(const char *zNum, int *pValue){ | - |
517 | sqlite_int64 v = 0; | - |
518 | int i, c; | - |
519 | int neg = 0; | - |
520 | if( zNum[0]=='-'TRUE | evaluated 22 times by 1 test | FALSE | evaluated 966970 times by 436 testsEvaluated 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 else if( zNum[0]=='+'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 966969 times by 436 testsEvaluated 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 | 1 |
526 | | - |
527 | else if( zNum[0]=='0'TRUE | evaluated 55851 times by 345 testsEvaluated 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)
- ...
| FALSE | evaluated 911118 times by 436 testsEvaluated 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'TRUE | evaluated 98 times by 1 test | FALSE | evaluated 55753 times by 345 testsEvaluated 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'TRUE | evaluated 25 times by 1 test | FALSE | evaluated 55728 times by 345 testsEvaluated 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 | && (TRUE | evaluated 123 times by 1 test | FALSE | never evaluated |
sqlite3CtypeMap[(unsigned char)(zNum[2])]&0x08)TRUE | evaluated 123 times by 1 test | FALSE | never evaluated |
| 0-123 |
530 | ){ | - |
531 | u32 u = 0; | - |
532 | zNum += 2; | - |
533 | while( zNum[0]=='0'TRUE | evaluated 177 times by 1 test | FALSE | evaluated 123 times by 1 test |
) zNum++;executed 177 times by 1 test: zNum++; | 123-177 |
534 | for(i=0; (TRUE | evaluated 561 times by 1 test | FALSE | evaluated 84 times by 1 test |
sqlite3CtypeMap[(unsigned char)(zNum[i])]&0x08)TRUE | evaluated 561 times by 1 test | FALSE | evaluated 84 times by 1 test |
&& i<8TRUE | evaluated 522 times by 1 test | FALSE | evaluated 39 times by 1 test |
; i++){ | 39-561 |
535 | u = u*16 + sqlite3HexToInt(zNum[i]); | - |
536 | }executed 522 times by 1 test: end of block | 522 |
537 | if( (TRUE | evaluated 112 times by 1 test | FALSE | evaluated 11 times by 1 test |
u&0x80000000)==0TRUE | evaluated 112 times by 1 test | FALSE | evaluated 11 times by 1 test |
&& (TRUE | evaluated 83 times by 1 test | FALSE | evaluated 29 times by 1 test |
sqlite3CtypeMap[(unsigned char)(zNum[i])]&0x08)==0TRUE | evaluated 83 times by 1 test | FALSE | evaluated 29 times by 1 test |
){ | 11-112 |
538 | memcpy(pValue, &u, 4); | - |
539 | returnexecuted 83 times by 1 test: return 1; 1;executed 83 times by 1 test: return 1; | 83 |
540 | }else{ | - |
541 | returnexecuted 40 times by 1 test: return 0; 0;executed 40 times by 1 test: return 0; | 40 |
542 | } | - |
543 | } | - |
544 | | - |
545 | if( !(sqlite3CtypeMap[(unsigned char)(zNum[0])]&0x04)TRUE | evaluated 175 times by 1 test | FALSE | evaluated 966694 times by 436 testsEvaluated 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)
- ...
|
) returnexecuted 175 times by 1 test: return 0; 0;executed 175 times by 1 test: return 0; | 175-966694 |
546 | while( zNum[0]=='0'TRUE | evaluated 55764 times by 345 testsEvaluated 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)
- ...
| FALSE | evaluated 966694 times by 436 testsEvaluated 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<11TRUE | evaluated 4140163 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 2493 times by 1 test |
&& (TRUE | evaluated 3182677 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 957486 times by 436 testsEvaluated 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')>=0TRUE | evaluated 3182677 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 957486 times by 436 testsEvaluated 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<=9TRUE | evaluated 3175962 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 6715 times by 12 testsEvaluated 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>10TRUE | evaluated 2493 times by 1 test | FALSE | evaluated 964201 times by 436 testsEvaluated 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 | returnexecuted 2493 times by 1 test: return 0; 0;executed 2493 times by 1 test: return 0; | 2493 |
559 | } | - |
560 | ; | - |
561 | if( v-neg>2147483647TRUE | evaluated 746 times by 1 test | FALSE | evaluated 963455 times by 436 testsEvaluated 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 | returnexecuted 746 times by 1 test: return 0; 0;executed 746 times by 1 test: return 0; | 746 |
563 | } | - |
564 | if( negTRUE | evaluated 22 times by 1 test | FALSE | evaluated 963433 times by 436 testsEvaluated 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 | 22 |
567 | *pValue = (int)v; | - |
568 | returnexecuted 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 | | - |
575 | int sqlite3Atoi(const char *z){ | - |
576 | int x = 0; | - |
577 | if( zTRUE | evaluated 94781 times by 436 testsEvaluated 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)
- ...
| FALSE | evaluated 2 times by 1 test |
) 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 | returnexecuted 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 | } | - |
580 | static int __attribute__((noinline)) putVarint64(unsigned char *p, u64 v){ | - |
581 | int i, j, n; | - |
582 | u8 buf[10]; | - |
583 | if( v & (((u64)0xff000000)<<32)TRUE | evaluated 20321 times by 1 test | FALSE | evaluated 3160580 times by 12 testsEvaluated 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>=0TRUE | evaluated 162568 times by 1 test | FALSE | evaluated 20321 times by 1 test |
; i--){ | 20321-162568 |
587 | p[i] = (u8)((v & 0x7f) | 0x80); | - |
588 | v >>= 7; | - |
589 | }executed 162568 times by 1 test: end of block | 162568 |
590 | returnexecuted 20321 times by 1 test: return 9; 9;executed 20321 times by 1 test: return 9; | 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!=0TRUE | evaluated 8128734 times by 12 testsEvaluated 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)
| FALSE | evaluated 3160580 times by 12 testsEvaluated 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>=0TRUE | evaluated 11289314 times by 12 testsEvaluated 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)
| FALSE | evaluated 3160580 times by 12 testsEvaluated 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 | returnexecuted 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 | } | - |
606 | int sqlite3PutVarint(unsigned char *p, u64 v){ | - |
607 | if( v<=0x7fTRUE | evaluated 4013691 times by 384 testsEvaluated 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)
- ...
| FALSE | evaluated 9197302 times by 372 testsEvaluated 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 | returnexecuted 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<=0x3fffTRUE | evaluated 6016400 times by 362 testsEvaluated 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)
- ...
| FALSE | evaluated 3180901 times by 12 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
618 | u8 sqlite3GetVarint(const unsigned char *p, u64 *v){ | - |
619 | u32 a,b,s; | - |
620 | | - |
621 | a = *p; | - |
622 | | - |
623 | if (!(a&0x80)TRUE | evaluated 3405543 times by 33 testsEvaluated 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)
- ...
| FALSE | evaluated 23509698 times by 6 testsEvaluated 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 | returnexecuted 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)TRUE | evaluated 5115558 times by 6 testsEvaluated by:- Self test
- Self test (34)
- Self test (438)
- Self test (57)
- Self test (58)
- Self test (74)
| FALSE | evaluated 18394140 times by 1 test |
) | 5115558-18394140 |
633 | { | - |
634 | a &= 0x7f; | - |
635 | a = a<<7; | - |
636 | a |= b; | - |
637 | *v = a; | - |
638 | returnexecuted 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)TRUE | evaluated 3482134 times by 1 test | FALSE | evaluated 14912006 times by 1 test |
) | 3482134-14912006 |
654 | { | - |
655 | a &= 0x001fc07f; | - |
656 | b &= 0x7f; | - |
657 | b = b<<7; | - |
658 | a |= b; | - |
659 | *v = a; | - |
660 | returnexecuted 3482134 times by 1 test: return 3; 3;executed 3482134 times by 1 test: return 3; | 3482134 |
661 | } | - |
662 | | - |
663 | | - |
664 | a &= 0x001fc07f; | - |
665 | p++; | - |
666 | b = b<<14; | - |
667 | b |= *p; | - |
668 | | - |
669 | if (!(b&0x80)TRUE | evaluated 3992741 times by 1 test | FALSE | evaluated 10919265 times by 1 test |
) | 3992741-10919265 |
670 | { | - |
671 | b &= 0x001fc07f; | - |
672 | | - |
673 | | - |
674 | a = a<<7; | - |
675 | a |= b; | - |
676 | *v = a; | - |
677 | returnexecuted 3992741 times by 1 test: return 4; 4;executed 3992741 times by 1 test: return 4; | 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)TRUE | evaluated 3628997 times by 1 test | FALSE | evaluated 7290268 times by 1 test |
) | 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 | returnexecuted 3628997 times by 1 test: return 5; 5;executed 3628997 times by 1 test: return 5; | 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)TRUE | evaluated 4840974 times by 1 test | FALSE | evaluated 2449294 times by 1 test |
) | 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 | returnexecuted 4840974 times by 1 test: return 6; 6;executed 4840974 times by 1 test: return 6; | 4840974 |
725 | } | - |
726 | | - |
727 | p++; | - |
728 | a = a<<14; | - |
729 | a |= *p; | - |
730 | | - |
731 | if (!(a&0x80)TRUE | evaluated 1605105 times by 1 test | FALSE | evaluated 844189 times by 1 test |
) | 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 | returnexecuted 1605105 times by 1 test: return 7; 7;executed 1605105 times by 1 test: return 7; | 1605105 |
740 | } | - |
741 | | - |
742 | | - |
743 | a &= 0x001fc07f; | - |
744 | p++; | - |
745 | b = b<<14; | - |
746 | b |= *p; | - |
747 | | - |
748 | if (!(b&0x80)TRUE | evaluated 402489 times by 1 test | FALSE | evaluated 441700 times by 1 test |
) | 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 | returnexecuted 402489 times by 1 test: return 8; 8;executed 402489 times by 1 test: return 8; | 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 | returnexecuted 441700 times by 1 test: return 9; 9;executed 441700 times by 1 test: return 9; | 441700 |
780 | } | - |
781 | u8 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)TRUE | evaluated 33196552 times by 367 testsEvaluated 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)
- ...
| FALSE | evaluated 324790 times by 1 test |
) | 324790-33196552 |
791 | { | - |
792 | | - |
793 | a &= 0x7f; | - |
794 | a = a<<7; | - |
795 | *v = a | b; | - |
796 | returnexecuted 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)TRUE | evaluated 85482 times by 1 test | FALSE | evaluated 239308 times by 1 test |
) | 85482-239308 |
805 | { | - |
806 | | - |
807 | a &= (0x7f<<14)|(0x7f); | - |
808 | b &= 0x7f; | - |
809 | b = b<<7; | - |
810 | *v = a | b; | - |
811 | returnexecuted 85482 times by 1 test: return 3; 3;executed 85482 times by 1 test: return 3; | 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( (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 239302 times by 1 test |
v64 & ((((u64)1)<<32)-1))!=v64TRUE | evaluated 6 times by 1 test | FALSE | evaluated 239302 times by 1 test |
){ | 6-239302 |
823 | *v = 0xffffffff; | - |
824 | }executed 6 times by 1 test: end of block else{ | 6 |
825 | *v = (u32)v64; | - |
826 | }executed 239302 times by 1 test: end of block | 239302 |
827 | returnexecuted 239308 times by 1 test: return n; n;executed 239308 times by 1 test: return n; | 239308 |
828 | } | - |
829 | } | - |
830 | | - |
831 | | - |
832 | | - |
833 | | - |
834 | | - |
835 | int sqlite3VarintLen(u64 v){ | - |
836 | int i; | - |
837 | for(i=1; (TRUE | evaluated 4108336 times by 377 testsEvaluated 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)
- ...
| FALSE | evaluated 7454272 times by 381 testsEvaluated 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)!=0TRUE | evaluated 4108336 times by 377 testsEvaluated 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)
- ...
| FALSE | evaluated 7454272 times by 381 testsEvaluated 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 | returnexecuted 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 | | - |
847 | u32 sqlite3Get4byte(const u8 *p){ | - |
848 | | - |
849 | | - |
850 | | - |
851 | | - |
852 | | - |
853 | u32 x; | - |
854 | memcpy(&x,p,4); | - |
855 | returnexecuted 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 | } | - |
857 | void 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 |
864 | u8 sqlite3HexToInt(int h){ | - |
865 | | - |
866 | ((void) (0)) | - |
867 | ; | - |
868 | | - |
869 | h += 9*(1&(h>>6)); | - |
870 | | - |
871 | | - |
872 | | - |
873 | | - |
874 | returnexecuted 13976 times by 1 test: return (u8)(h & 0xf); (u8)(h & 0xf);executed 13976 times by 1 test: return (u8)(h & 0xf); | 13976 |
875 | } | - |
876 | void *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( zBlobTRUE | evaluated 2815 times by 1 test | FALSE | never evaluated |
){ | 0-2815 |
883 | for(i=0; i<nTRUE | evaluated 6413 times by 1 test | FALSE | evaluated 2815 times by 1 test |
; 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 | 6413 |
886 | zBlob[i/2] = 0; | - |
887 | }executed 2815 times by 1 test: end of block | 2815 |
888 | returnexecuted 2815 times by 1 test: return zBlob; zBlob;executed 2815 times by 1 test: return zBlob; | 2815 |
889 | } | - |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | | - |
895 | | - |
896 | | - |
897 | static 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 | 17 |
903 | int sqlite3SafetyCheckOk(sqlite3 *db){ | - |
904 | u32 magic; | - |
905 | if( db==0TRUE | never evaluated | FALSE | evaluated 528809 times by 436 testsEvaluated 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!=0xa029a697TRUE | evaluated 4 times by 1 test | FALSE | evaluated 528805 times by 436 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
){ | 0-4 |
912 | ; | - |
913 | logBadConnection("unopened"); | - |
914 | } never executed: end of block | 0 |
915 | returnexecuted 4 times by 1 test: return 0; 0;executed 4 times by 1 test: return 0; | 4 |
916 | }else{ | - |
917 | returnexecuted 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 | } | - |
920 | int sqlite3SafetyCheckSickOrOk(sqlite3 *db){ | - |
921 | u32 magic; | - |
922 | magic = db->magic; | - |
923 | if( magic!=0x4b771290TRUE | evaluated 211670 times by 438 testsEvaluated 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)
- ...
| FALSE | evaluated 735 times by 1 test |
&& | 735-211670 |
924 | magic!=0xa029a697TRUE | evaluated 931 times by 1 test | FALSE | evaluated 210739 times by 438 testsEvaluated 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!=0xf03b7906TRUE | evaluated 17 times by 1 test | FALSE | evaluated 914 times by 1 test |
){ | 17-914 |
926 | ; | - |
927 | logBadConnection("invalid"); | - |
928 | returnexecuted 17 times by 1 test: return 0; 0;executed 17 times by 1 test: return 0; | 17 |
929 | }else{ | - |
930 | returnexecuted 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 | | - |
940 | int sqlite3AddInt64(i64 *pA, i64 iB){ | - |
941 | | - |
942 | returnexecuted 2859483 times by 1 test: return __builtin_add_overflow(*pA, iB, pA); __builtin_add_overflow(*pA, iB, pA);executed 2859483 times by 1 test: return __builtin_add_overflow(*pA, iB, pA); | 2859483 |
943 | } | - |
944 | int sqlite3SubInt64(i64 *pA, i64 iB){ | - |
945 | | - |
946 | returnexecuted 1367032 times by 1 test: return __builtin_sub_overflow(*pA, iB, pA); __builtin_sub_overflow(*pA, iB, pA);executed 1367032 times by 1 test: return __builtin_sub_overflow(*pA, iB, pA); | 1367032 |
947 | } | - |
948 | int sqlite3MulInt64(i64 *pA, i64 iB){ | - |
949 | | - |
950 | returnexecuted 1329164 times by 1 test: return __builtin_mul_overflow(*pA, iB, pA); __builtin_mul_overflow(*pA, iB, pA);executed 1329164 times by 1 test: return __builtin_mul_overflow(*pA, iB, pA); | 1329164 |
951 | } | - |
952 | | - |
953 | | - |
954 | | - |
955 | | - |
956 | | - |
957 | int sqlite3AbsInt32(int x){ | - |
958 | if( x>=0TRUE | evaluated 2352801 times by 435 testsEvaluated 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)
- ...
| FALSE | evaluated 3094385 times by 1 test |
) returnexecuted 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)0x80000000TRUE | never evaluated | FALSE | evaluated 3094385 times by 1 test |
) returnnever executed: return 0x7fffffff; 0x7fffffff;never executed: return 0x7fffffff; | 0-3094385 |
960 | returnexecuted 3094385 times by 1 test: return -x; -x;executed 3094385 times by 1 test: return -x; | 3094385 |
961 | } | - |
962 | LogEst 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>=bTRUE | evaluated 1518201 times by 435 testsEvaluated 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)
- ...
| FALSE | evaluated 1444073 times by 435 testsEvaluated 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+49TRUE | evaluated 1308209 times by 435 testsEvaluated 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)
- ...
| FALSE | evaluated 209992 times by 33 testsEvaluated 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)
- ...
|
) returnexecuted 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+31TRUE | evaluated 37717 times by 1 test | FALSE | evaluated 172275 times by 33 testsEvaluated 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)
- ...
|
) returnexecuted 37717 times by 1 test: return a+1; a+1;executed 37717 times by 1 test: return a+1; | 37717-172275 |
977 | returnexecuted 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+49TRUE | evaluated 1347902 times by 435 testsEvaluated 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)
- ...
| FALSE | evaluated 96171 times by 2 testsEvaluated by:- Self test (438)
- Self test (47)
|
) returnexecuted 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+31TRUE | evaluated 31983 times by 1 test | FALSE | evaluated 64188 times by 2 testsEvaluated by:- Self test (438)
- Self test (47)
|
) returnexecuted 31983 times by 1 test: return b+1; b+1;executed 31983 times by 1 test: return b+1; | 31983-64188 |
981 | returnexecuted 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 | | - |
989 | LogEst sqlite3LogEst(u64 x){ | - |
990 | static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 }; | - |
991 | LogEst y = 40; | - |
992 | if( x<8TRUE | evaluated 37662 times by 10 testsEvaluated 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)
| FALSE | evaluated 980526 times by 436 testsEvaluated 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<2TRUE | evaluated 30658 times by 1 test | FALSE | evaluated 7004 times by 10 testsEvaluated 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)
|
) returnexecuted 30658 times by 1 test: return 0; 0;executed 30658 times by 1 test: return 0; | 7004-30658 |
994 | while( x<8TRUE | evaluated 8354 times by 10 testsEvaluated 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)
| FALSE | evaluated 7004 times by 10 testsEvaluated 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 | returnexecuted 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 | | - |
1013 | LogEst sqlite3LogEstFromDouble(double x){ | - |
1014 | u64 a; | - |
1015 | LogEst e; | - |
1016 | | - |
1017 | ((void) (0)) | - |
1018 | ; | - |
1019 | if( x<=1TRUE | evaluated 481 times by 1 test | FALSE | evaluated 11353 times by 1 test |
) returnexecuted 481 times by 1 test: return 0; 0;executed 481 times by 1 test: return 0; | 481-11353 |
1020 | if( x<=2000000000TRUE | evaluated 11139 times by 1 test | FALSE | evaluated 214 times by 1 test |
) returnexecuted 11139 times by 1 test: return sqlite3LogEst((u64)x); sqlite3LogEst((u64)x);executed 11139 times by 1 test: return sqlite3LogEst((u64)x); | 214-11139 |
1021 | memcpy(&a, &x, 8); | - |
1022 | e = (a>>52) - 1022; | - |
1023 | returnexecuted 214 times by 1 test: return e*10; e*10;executed 214 times by 1 test: return e*10; | 214 |
1024 | } | - |
1025 | VList *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==0TRUE | evaluated 28079 times by 1 test | FALSE | evaluated 4568 times by 1 test |
|| pIn[1]+nInt > pIn[0]TRUE | evaluated 32 times by 1 test | FALSE | evaluated 4536 times by 1 test |
){ | 32-28079 |
1041 | | - |
1042 | int nAlloc = (pInTRUE | evaluated 32 times by 1 test | FALSE | evaluated 28079 times by 1 test |
? pIn[0]*2 : 10) + nInt; | 32-28079 |
1043 | VList *pOut = sqlite3DbRealloc(db, pIn, nAlloc*sizeof(int)); | - |
1044 | if( pOut==0TRUE | never evaluated | FALSE | evaluated 28111 times by 1 test |
) returnnever executed: return pIn; pIn;never executed: return pIn; | 0-28111 |
1045 | if( pIn==0TRUE | evaluated 28079 times by 1 test | FALSE | evaluated 32 times by 1 test |
) pOut[1] = 2;executed 28079 times by 1 test: pOut[1] = 2; | 32-28079 |
1046 | pIn = pOut; | - |
1047 | pIn[0] = nAlloc; | - |
1048 | }executed 28111 times by 1 test: end of block | 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 | returnexecuted 32647 times by 1 test: return pIn; pIn;executed 32647 times by 1 test: return pIn; | 32647 |
1060 | } | - |
1061 | | - |
1062 | | - |
1063 | | - |
1064 | | - |
1065 | | - |
1066 | | - |
1067 | const char *sqlite3VListNumToName(VList *pIn, int iVal){ | - |
1068 | int i, mx; | - |
1069 | if( pIn==0TRUE | evaluated 397 times by 1 test | FALSE | evaluated 551894 times by 1 test |
) returnexecuted 397 times by 1 test: return 0; 0;executed 397 times by 1 test: return 0; | 397-551894 |
1070 | mx = pIn[1]; | - |
1071 | i = 2; | - |
1072 | do{ | - |
1073 | if( pIn[i]==iValTRUE | evaluated 551742 times by 1 test | FALSE | evaluated 109621 times by 1 test |
) returnexecuted 551742 times by 1 test: return (char*)&pIn[i+2]; (char*)&pIn[i+2];executed 551742 times by 1 test: return (char*)&pIn[i+2]; | 109621-551742 |
1074 | i += pIn[i+1]; | - |
1075 | }executed 109621 times by 1 test: end of block while( i<mxTRUE | evaluated 109469 times by 1 test | FALSE | evaluated 152 times by 1 test |
); | 152-109621 |
1076 | returnexecuted 152 times by 1 test: return 0; 0;executed 152 times by 1 test: return 0; | 152 |
1077 | } | - |
1078 | | - |
1079 | | - |
1080 | | - |
1081 | | - |
1082 | | - |
1083 | int sqlite3VListNameToNum(VList *pIn, const char *zName, int nName){ | - |
1084 | int i, mx; | - |
1085 | if( pIn==0TRUE | evaluated 26601 times by 1 test | FALSE | evaluated 4089 times by 1 test |
) returnexecuted 26601 times by 1 test: return 0; 0;executed 26601 times by 1 test: return 0; | 4089-26601 |
1086 | mx = pIn[1]; | - |
1087 | i = 2; | - |
1088 | do{ | - |
1089 | const char *z = (const char*)&pIn[i+2]; | - |
1090 | if( | - |
1091 | (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6030 times by 1 test |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-6030 |
1092 | nNameTRUE | never evaluated | FALSE | evaluated 6030 times by 1 test |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-6030 |
1093 | )TRUE | never evaluated | FALSE | evaluated 6030 times by 1 test |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-6030 |
1094 | zTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1095 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1096 | zTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1097 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1098 | nNameTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1099 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1100 | zNameTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1101 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1102 | zNameTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1103 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1104 | nNameTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1105 | ))TRUE | never evaluated | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1106 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1107 | ) && __builtin_constant_p (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1108 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1109 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1110 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1111 | ), __s2_len = __builtin_strlen (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1112 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1113 | ), (!((size_t)(const void *)((TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1114 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1115 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1116 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1117 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1118 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1119 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1120 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1121 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1122 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1123 | , TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1124 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1125 | ) : (__builtin_constant_p (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1126 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1127 | ) && ((size_t)(const void *)((TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1128 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1129 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1130 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1131 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1132 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1133 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1134 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1135 | ) && ((size_t)(const void *)((TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1136 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1137 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1138 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1139 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1140 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1141 | , TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1142 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1143 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1144 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1145 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1146 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1147 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1148 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1149 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1150 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1151 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( z ))[3] - __s2[3]); TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1152 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( z ))[3] - __s2[3]); | 0-5688 |
1153 | ))[3] - __s2[3]);TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
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 (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 0-5688 |
1154 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1155 | ) && ((size_t)(const void *)((TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1156 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1157 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1158 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1159 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1160 | zNameTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1161 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1162 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1163 | ) && ((size_t)(const void *)((TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1164 | zTRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1165 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 342 times by 1 test | FALSE | evaluated 5688 times by 1 test |
| 342-5688 |
1166 | z |