@@ -15,7 +15,7 @@ Author: Peter Schrammel
15
15
#include < util/message.h>
16
16
#include < util/string2int.h>
17
17
18
- optionalt<unsigned > cover_basic_blockst::continuation_of_block (
18
+ optionalt<std:: size_t > cover_basic_blockst::continuation_of_block (
19
19
const goto_programt::const_targett &instruction,
20
20
cover_basic_blockst::block_mapt &block_map)
21
21
{
@@ -32,7 +32,7 @@ optionalt<unsigned> cover_basic_blockst::continuation_of_block(
32
32
cover_basic_blockst::cover_basic_blockst (const goto_programt &_goto_program)
33
33
{
34
34
bool next_is_target = true ;
35
- unsigned current_block = 0 ;
35
+ std:: size_t current_block = 0 ;
36
36
37
37
forall_goto_program_instructions (it, _goto_program)
38
38
{
@@ -87,22 +87,22 @@ cover_basic_blockst::cover_basic_blockst(const goto_programt &_goto_program)
87
87
update_covered_lines (block_info);
88
88
}
89
89
90
- unsigned cover_basic_blockst::block_of (goto_programt::const_targett t) const
90
+ std:: size_t cover_basic_blockst::block_of (goto_programt::const_targett t) const
91
91
{
92
92
const auto it = block_map.find (t);
93
93
INVARIANT (it != block_map.end (), " instruction must be part of a block" );
94
94
return it->second ;
95
95
}
96
96
97
97
optionalt<goto_programt::const_targett>
98
- cover_basic_blockst::instruction_of (unsigned block_nr) const
98
+ cover_basic_blockst::instruction_of (const std:: size_t block_nr) const
99
99
{
100
100
INVARIANT (block_nr < block_infos.size (), " block number out of range" );
101
101
return block_infos.at (block_nr).representative_inst ;
102
102
}
103
103
104
104
const source_locationt &
105
- cover_basic_blockst::source_location_of (unsigned block_nr) const
105
+ cover_basic_blockst::source_location_of (const std:: size_t block_nr) const
106
106
{
107
107
INVARIANT (block_nr < block_infos.size (), " block number out of range" );
108
108
return block_infos.at (block_nr).source_location ;
@@ -113,12 +113,12 @@ void cover_basic_blockst::select_unique_java_bytecode_indices(
113
113
message_handlert &message_handler)
114
114
{
115
115
messaget msg (message_handler);
116
- std::set<unsigned > blocks_seen;
116
+ std::set<std:: size_t > blocks_seen;
117
117
std::set<irep_idt> bytecode_indices_seen;
118
118
119
119
forall_goto_program_instructions (it, goto_program)
120
120
{
121
- const unsigned block_nr = block_of (it);
121
+ const std:: size_t block_nr = block_of (it);
122
122
if (blocks_seen.find (block_nr) != blocks_seen.end ())
123
123
continue ;
124
124
@@ -181,10 +181,10 @@ void cover_basic_blockst::report_block_anomalies(
181
181
message_handlert &message_handler)
182
182
{
183
183
messaget msg (message_handler);
184
- std::set<unsigned > blocks_seen;
184
+ std::set<std:: size_t > blocks_seen;
185
185
forall_goto_program_instructions (it, goto_program)
186
186
{
187
- const unsigned block_nr = block_of (it);
187
+ const std:: size_t block_nr = block_of (it);
188
188
const block_infot &block_info = block_infos.at (block_nr);
189
189
190
190
if (
0 commit comments