1 -: 0:Source:test.cpp 2 -: 0:Graph:test.gcno 3 -: 0:Data:test.gcda 4 -: 0:Runs:1 5 -: 0:Programs:1 6 -: 1:#include "test.h" 7 -: 2:#include <cstdlib> 8 -: 3: 9 -: 4:bool on = false; 10 -: 5:int len = 42; 11 -: 6:double grid[10][10] = {0}; 12 -: 7:const char * hello = "world"; 13 -: 8:const char * world = "hello"; 14 -: 9: 154294967296: 10:void A::B() {} 16 -: 11: 17 #####: 12:void useless() {} 18 -: 13: 19 #####: 14:double more_useless() { 20 #####: 15: return 0; 21 -: 16:} 22 -: 17: 23 1: 18:int foo() { 24 1: 19: on = true; 25 1: 20: return 3; 26 -: 21:} 27 -: 22: 28 #####: 23:int bar() { 29 #####: 24: len--; 30 #####: 25: return foo() + 45; 31 -: 26:} 32 -: 27: 33 4: 28:void assign(int ii, int jj) { 34 4: 29: grid[ii][jj] = (ii+1) * (jj+1); 35 4: 30:} 36 -: 31: 37 1: 32:void initialize_grid() { 38 3: 33: for (int ii = 0; ii < 2; ii++) 39 6: 34: for (int jj = 0; jj < 2; jj++) 40 6: 35: assign(ii, jj); 41 1: 36:} 42 -: 37: 43 1: 38:int main() { 44 1: 39: initialize_grid(); 45 -: 40: 46 1: 41: int a = 2; 47 1: 42: on = rand() % 2; 48 1: 43: if (on) { 49 1: 44: foo(); 50 1: 45: ++a; 51 1: 46: } else { 52 #####: 47: bar(); 53 #####: 48: a += rand(); 54 -: 49: } 55 -: 50: 56 11: 51: for (int ii = 0; ii < 10; ++ii) { 57 10: 52: switch (rand() % 5) { 58 -: 53: case 0: 59 2: 54: a += rand(); 60 2: 55: break; 61 -: 56: case 1: 62 -: 57: case 2: 63 4: 58: a += rand() / rand(); 64 4: 59: break; 65 -: 60: case 3: 66 3: 61: a -= rand(); 67 3: 62: break; 68 -: 63: default: 69 1: 64: a = -1; 70 1: 65: } 71 10: 66: } 72 -: 67: 73 1: 68: A thing; 744294967297: 69: for (uint64_t ii = 0; ii < 4294967296; ++ii) 754294967296: 70: thing.B(); 76 -: 71: 77 1: 72: return a + 8 + grid[2][3] + len; 78 -: 73: return more_useless(); 79 -: 74:} 80