Skip to content

Commit c9ead2c

Browse files
committed
Avoid redundant calls to remove_skip
1 parent 6298c18 commit c9ead2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/goto-diff/goto_diff_parse_options.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,13 @@ bool goto_diff_parse_optionst::process_goto_program(
425425
// add loop ids
426426
goto_model.goto_functions.compute_loop_numbers();
427427

428-
// remove skips such that trivial GOTOs are deleted and not considered
429-
// for coverage annotation:
430-
remove_skip(goto_model);
431-
432428
// instrument cover goals
433429
if(cmdline.isset("cover"))
434430
{
431+
// remove skips such that trivial GOTOs are deleted and not considered
432+
// for coverage annotation:
433+
remove_skip(goto_model);
434+
435435
if(instrument_cover_goals(options, goto_model, get_message_handler()))
436436
return true;
437437
}

0 commit comments

Comments
 (0)