Skip to content

Commit dd708f1

Browse files
committed
Avoid redundant calls to remove_skip
1 parent 281a31e commit dd708f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/goto-diff/goto_diff_parse_options.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,13 +451,13 @@ bool goto_diff_parse_optionst::process_goto_program(
451451
// add loop ids
452452
goto_model.goto_functions.compute_loop_numbers();
453453

454-
// remove skips such that trivial GOTOs are deleted and not considered
455-
// for coverage annotation:
456-
remove_skip(goto_model);
457-
458454
// instrument cover goals
459455
if(cmdline.isset("cover"))
460456
{
457+
// remove skips such that trivial GOTOs are deleted and not considered
458+
// for coverage annotation:
459+
remove_skip(goto_model);
460+
461461
if(instrument_cover_goals(options, goto_model, get_message_handler()))
462462
return true;
463463
}

0 commit comments

Comments
 (0)