File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,19 @@ void cover_location_instrumentert::instrument(
22
22
if (is_non_cover_assertion (i_it))
23
23
i_it->make_skip ();
24
24
25
- unsigned block_nr = basic_blocks.block_of (i_it);
25
+ const unsigned block_nr = basic_blocks.block_of (i_it);
26
26
const auto representative_instruction = basic_blocks.instruction_of (block_nr);
27
27
// we only instrument the selected instruction
28
28
if (representative_instruction && *representative_instruction == i_it)
29
29
{
30
- std::string b = std::to_string (block_nr + 1 ); // start with 1
31
- std::string id = id2string (i_it->function ) + " #" + b;
32
- source_locationt source_location =
33
- basic_blocks.source_location_of (block_nr);
30
+ const std::string b = std::to_string (block_nr + 1 ); // start with 1
31
+ const std::string id = id2string (i_it->function ) + " #" + b;
32
+ const auto source_location = basic_blocks.source_location_of (block_nr);
34
33
35
34
// filter goals
36
35
if (goal_filters (source_location))
37
36
{
38
- std::string comment = " block " + b;
37
+ const std::string comment = " block " + b;
39
38
const irep_idt function = i_it->function ;
40
39
goto_program.insert_before_swap (i_it);
41
40
i_it->make_assertion (false_exprt ());
You can’t perform that action at this time.
0 commit comments