File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -887,6 +887,10 @@ bool cbmc_parse_optionst::process_goto_program(
887
887
remove_unused_functions (goto_functions, ui_message_handler);
888
888
}
889
889
890
+ // remove skips such that trivial GOTOs are deleted and not considered
891
+ // for coverage annotation:
892
+ remove_skip (goto_functions);
893
+
890
894
// instrument cover goals
891
895
if (cmdline.isset (" cover" ))
892
896
{
@@ -915,7 +919,7 @@ bool cbmc_parse_optionst::process_goto_program(
915
919
full_slicer (goto_functions, ns);
916
920
}
917
921
918
- // remove skips
922
+ // remove any skips introduced since coverage instrumentation
919
923
remove_skip (goto_functions);
920
924
goto_functions.update ();
921
925
}
Original file line number Diff line number Diff line change 34
34
#include < goto-programs/goto_inline.h>
35
35
#include < goto-programs/xml_goto_trace.h>
36
36
#include < goto-programs/remove_complex.h>
37
+ #include < goto-programs/remove_skip.h>
37
38
#include < goto-programs/remove_vector.h>
38
39
#include < goto-programs/remove_virtual_functions.h>
39
40
#include < goto-programs/remove_exceptions.h>
@@ -321,6 +322,10 @@ bool symex_parse_optionst::process_goto_program(const optionst &options)
321
322
remove_unused_functions (goto_model.goto_functions , ui_message_handler);
322
323
}
323
324
325
+ // remove skips such that trivial GOTOs are deleted and not considered
326
+ // for coverage annotation:
327
+ remove_skip (goto_model.goto_functions );
328
+
324
329
if (cmdline.isset (" cover" ))
325
330
{
326
331
std::string criterion=cmdline.get_value (" cover" );
You can’t perform that action at this time.
0 commit comments