7 -: 2:#include <cstdlib>
11 -: 6:double grid[10][10] = {0};
12 -: 7:const char * hello = "world";
13 -: 8:const char * world = "hello";
15 function _ZN1A1BEv called 8589934592 returned 100% blocks executed 100%
16 8589934592: 10:void A::B() {}
17 8589934592: 10-block 0
18 unconditional 0 taken 100%
20 function _Z7uselessv called 0 returned 0% blocks executed 0%
21 #####: 12:void useless() {}
23 unconditional 0 never executed
25 function _Z12more_uselessv called 0 returned 0% blocks executed 0%
26 -: 14:double more_useless() {
29 unconditional 0 never executed
32 function _Z3foov called 2 returned 100% blocks executed 100%
37 unconditional 0 taken 100%
40 function _Z3barv called 0 returned 0% blocks executed 0%
43 #####: 25: return foo() + 45;
45 unconditional 0 never executed
48 function _Z6assignii called 8 returned 100% blocks executed 100%
49 8: 28:void assign(int ii, int jj) {
50 8: 29: grid[ii][jj] = (ii+1) * (jj+1);
53 unconditional 0 taken 100%
55 function _Z15initialize_gridv called 2 returned 100% blocks executed 100%
56 -: 32:void initialize_grid() {
57 6: 33: for (int ii = 0; ii < 2; ii++)
59 unconditional 0 taken 100%
64 unconditional 3 taken 100%
65 12: 34: for (int jj = 0; jj < 2; jj++)
67 unconditional 0 taken 100%
72 unconditional 3 taken 100%
73 12: 35: assign(ii, jj);
75 unconditional 0 taken 100%
77 unconditional 1 taken 100%
80 unconditional 0 taken 100%
82 function main called 2 returned 100% blocks executed 94%
84 2: 39: initialize_grid();
87 2: 42: on = rand() % 2;
96 unconditional 0 taken 100%
98 #####: 48: a += rand();
100 unconditional 0 never executed
103 22: 51: for (int ii = 0; ii < 10; ++ii) {
105 unconditional 0 taken 100%
110 unconditional 3 taken 100%
111 20: 52: switch (rand() % 5) {
122 unconditional 0 taken 100%
125 2: 58: a += rand() / rand();
128 unconditional 0 taken 100%
133 unconditional 0 taken 100%
138 unconditional 0 taken 100%
141 unconditional 0 taken 100%
144 8589934594: 69: for (uint64_t ii = 0; ii < 4294967296; ++ii)
146 unconditional 0 taken 100%
147 8589934594: 69-block 1
150 8589934592: 69-block 2
151 unconditional 3 taken 100%
152 8589934592: 70: thing.B();
153 8589934592: 70-block 0
154 unconditional 0 taken 100%
156 2: 72: return a + 8 + grid[2][3] + len;
158 unconditional 0 taken 100%
159 -: 73: return more_useless();