Skip to content

Commit

Permalink
Avoid redundant calls to remove_skip
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 4, 2018
1 parent 6298c18 commit c9ead2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/goto-diff/goto_diff_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,13 @@ bool goto_diff_parse_optionst::process_goto_program(
// add loop ids
goto_model.goto_functions.compute_loop_numbers();

// remove skips such that trivial GOTOs are deleted and not considered
// for coverage annotation:
remove_skip(goto_model);

// instrument cover goals
if(cmdline.isset("cover"))
{
// remove skips such that trivial GOTOs are deleted and not considered
// for coverage annotation:
remove_skip(goto_model);

if(instrument_cover_goals(options, goto_model, get_message_handler()))
return true;
}
Expand Down

0 comments on commit c9ead2c

Please sign in to comment.