File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ cover_basic_blockst::cover_basic_blockst(const goto_programt &_goto_program)
95
95
96
96
unsigned cover_basic_blockst::block_of (goto_programt::const_targett t) const
97
97
{
98
- block_mapt::const_iterator it = block_map.find (t);
98
+ const auto it = block_map.find (t);
99
99
INVARIANT (it != block_map.end (), " instruction must be part of a block" );
100
100
return it->second ;
101
101
}
@@ -124,7 +124,7 @@ void cover_basic_blockst::select_unique_java_bytecode_indices(
124
124
125
125
forall_goto_program_instructions (it, goto_program)
126
126
{
127
- unsigned block_nr = block_of (it);
127
+ const unsigned block_nr = block_of (it);
128
128
if (blocks_seen.find (block_nr) != blocks_seen.end ())
129
129
continue ;
130
130
@@ -190,7 +190,7 @@ void cover_basic_blockst::report_block_anomalies(
190
190
std::set<unsigned > blocks_seen;
191
191
forall_goto_program_instructions (it, goto_program)
192
192
{
193
- unsigned block_nr = block_of (it);
193
+ const unsigned block_nr = block_of (it);
194
194
const block_infot &block_info = block_infos.at (block_nr);
195
195
196
196
if (
You can’t perform that action at this time.
0 commit comments