@@ -18,7 +18,7 @@ Author: Daniel Kroening
18
18
19
19
class message_handlert ;
20
20
21
- class cover_basic_blockst
21
+ class cover_basic_blockst final
22
22
{
23
23
public:
24
24
explicit cover_basic_blockst (const goto_programt &_goto_program);
@@ -57,28 +57,27 @@ class cover_basic_blockst
57
57
// / Outputs the list of blocks
58
58
void output (std::ostream &out) const ;
59
59
60
- protected:
61
- // map program locations to block numbers
60
+ private:
62
61
typedef std::map<goto_programt::const_targett, unsigned > block_mapt;
63
- block_mapt block_map;
64
62
65
63
struct block_infot
66
64
{
67
65
// / the program location to instrument for this block
68
66
optionalt<goto_programt::const_targett> representative_inst;
69
67
70
68
// / the source location representative for this block
71
- // (we need a separate copy of source locations because we attach
72
- // the line number ranges to them)
69
+ // / (we need a separate copy of source locations because we attach
70
+ // / the line number ranges to them)
73
71
source_locationt source_location;
74
72
75
- // map block numbers to source code locations
76
73
// / the set of lines belonging to this block
77
74
std::unordered_set<unsigned > lines;
78
75
};
79
76
80
- typedef std::vector<block_infot> block_infost;
81
- block_infost block_infos;
77
+ // / map program locations to block numbers
78
+ block_mapt block_map;
79
+ // / map block numbers to block information
80
+ std::vector<block_infot> block_infos;
82
81
83
82
// / create list of covered lines as CSV string and set as property of source
84
83
// / location of basic block, compress to ranges if applicable
0 commit comments