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 @@ -89,7 +89,7 @@ cover_basic_blockst::cover_basic_blockst(const goto_programt &_goto_program)
89
89
90
90
unsigned cover_basic_blockst::block_of (goto_programt::const_targett t) const
91
91
{
92
- block_mapt::const_iterator it = block_map.find (t);
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
}
@@ -118,7 +118,7 @@ void cover_basic_blockst::select_unique_java_bytecode_indices(
118
118
119
119
forall_goto_program_instructions (it, goto_program)
120
120
{
121
- unsigned block_nr = block_of (it);
121
+ const unsigned block_nr = block_of (it);
122
122
if (blocks_seen.find (block_nr) != blocks_seen.end ())
123
123
continue ;
124
124
@@ -184,7 +184,7 @@ void cover_basic_blockst::report_block_anomalies(
184
184
std::set<unsigned > blocks_seen;
185
185
forall_goto_program_instructions (it, goto_program)
186
186
{
187
- unsigned block_nr = block_of (it);
187
+ const unsigned block_nr = block_of (it);
188
188
const block_infot &block_info = block_infos.at (block_nr);
189
189
190
190
if (
You can’t perform that action at this time.
0 commit comments