Skip to content

Commit 5119d43

Browse files
author
Daniel Kroening
committed
cleanout test suite generation from cbmc
1 parent eff3900 commit 5119d43

File tree

7 files changed

+7
-53
lines changed

7 files changed

+7
-53
lines changed

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
103103
if(cmdline.isset("show-vcc"))
104104
options.set_option("show-vcc", true);
105105

106-
if(cmdline.isset("cover"))
107-
parse_cover_options(cmdline, options);
108-
109106
if(cmdline.isset("no-simplify"))
110107
options.set_option("simplify", false);
111108
else
@@ -176,14 +173,9 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
176173
options.set_option("error-label", cmdline.get_values("error-label"));
177174

178175
// generate unwinding assertions
179-
if(cmdline.isset("cover"))
180-
options.set_option("unwinding-assertions", false);
181-
else
182-
{
183-
options.set_option(
184-
"unwinding-assertions",
185-
cmdline.isset("unwinding-assertions"));
186-
}
176+
options.set_option(
177+
"unwinding-assertions",
178+
cmdline.isset("unwinding-assertions"));
187179

188180
// generate unwinding assumptions otherwise
189181
options.set_option(
@@ -927,17 +919,9 @@ bool jbmc_parse_optionst::process_goto_functions(
927919
remove_unused_functions(goto_model, get_message_handler());
928920
}
929921

930-
// remove skips such that trivial GOTOs are deleted and not considered
931-
// for coverage annotation:
922+
// remove skips such that trivial GOTOs are deleted
932923
remove_skip(goto_model);
933924

934-
// instrument cover goals
935-
if(cmdline.isset("cover"))
936-
{
937-
if(instrument_cover_goals(options, goto_model, get_message_handler()))
938-
return true;
939-
}
940-
941925
// label the assertions
942926
// This must be done after adding assertions and
943927
// before using the argument of the "property" option.
@@ -981,7 +965,7 @@ bool jbmc_parse_optionst::process_goto_functions(
981965
full_slicer(goto_model);
982966
}
983967

984-
// remove any skips introduced since coverage instrumentation
968+
// remove any skips
985969
remove_skip(goto_model);
986970
goto_model.goto_functions.update();
987971
}
@@ -1096,7 +1080,6 @@ void jbmc_parse_optionst::help()
10961080
" --no-assertions ignore user assertions\n"
10971081
" --no-assumptions ignore user assumptions\n"
10981082
" --error-label label check that label is unreachable\n"
1099-
" --cover CC create test-suite with coverage criterion CC\n" // NOLINT(*)
11001083
" --mm MM memory consistency model for concurrent programs\n" // NOLINT(*)
11011084
HELP_REACHABILITY_SLICER
11021085
" --full-slice run full slicer (experimental)\n" // NOLINT(*)

src/cbmc/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
SRC = all_properties.cpp \
22
bmc.cpp \
3-
bmc_cover.cpp \
43
bv_cbmc.cpp \
54
cbmc_dimacs.cpp \
65
cbmc_languages.cpp \

src/cbmc/bmc.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,6 @@ safety_checkert::resultt bmct::execute(
381381
return safety_checkert::resultt::SAFE; // to indicate non-error
382382
}
383383

384-
if(!options.get_list_option("cover").empty())
385-
{
386-
const optionst::value_listt criteria=
387-
options.get_list_option("cover");
388-
return cover(goto_functions, criteria)?
389-
safety_checkert::resultt::ERROR:safety_checkert::resultt::SAFE;
390-
}
391-
392384
if(options.get_option("localize-faults")!="")
393385
{
394386
fault_localizationt fault_localization(

src/cbmc/bmc.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,7 @@ class bmct:public safety_checkert
211211
void slice();
212212
void show();
213213

214-
bool cover(
215-
const goto_functionst &goto_functions,
216-
const optionst::value_listt &criteria);
217-
218214
friend class bmc_all_propertiest;
219-
friend class bmc_covert;
220-
template <template <class goalt> class covert>
221-
friend class bmc_goal_covert;
222215
friend class fault_localizationt;
223216

224217
private:

src/cbmc/cbmc_parse_options.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Author: Daniel Kroening, kroening@kroening.com
5353
#include <goto-instrument/reachability_slicer.h>
5454
#include <goto-instrument/full_slicer.h>
5555
#include <goto-instrument/nondet_static.h>
56-
#include <goto-instrument/cover.h>
5756

5857
#include <pointer-analysis/add_failed_symbols.h>
5958

@@ -145,9 +144,6 @@ void cbmc_parse_optionst::get_command_line_options(optionst &options)
145144
if(cmdline.isset("show-vcc"))
146145
options.set_option("show-vcc", true);
147146

148-
if(cmdline.isset("cover"))
149-
parse_cover_options(cmdline, options);
150-
151147
if(cmdline.isset("mm"))
152148
options.set_option("mm", cmdline.get_value("mm"));
153149

@@ -773,13 +769,6 @@ bool cbmc_parse_optionst::process_goto_program(
773769
// for coverage annotation:
774770
remove_skip(goto_model);
775771

776-
// instrument cover goals
777-
if(options.is_set("cover"))
778-
{
779-
if(instrument_cover_goals(options, goto_model, log.get_message_handler()))
780-
return true;
781-
}
782-
783772
// label the assertions
784773
// This must be done after adding assertions and
785774
// before using the argument of the "property" option.
@@ -818,7 +807,7 @@ bool cbmc_parse_optionst::process_goto_program(
818807
full_slicer(goto_model);
819808
}
820809

821-
// remove any skips introduced since coverage instrumentation
810+
// remove any skips
822811
remove_skip(goto_model);
823812
}
824813

@@ -931,7 +920,6 @@ void cbmc_parse_optionst::help()
931920
" --no-assertions ignore user assertions\n"
932921
" --no-assumptions ignore user assumptions\n"
933922
" --error-label label check that label is unreachable\n"
934-
" --cover CC create test-suite with coverage criterion CC\n" // NOLINT(*)
935923
" --mm MM memory consistency model for concurrent programs\n" // NOLINT(*)
936924
HELP_REACHABILITY_SLICER
937925
" --full-slice run full slicer (experimental)\n" // NOLINT(*)

src/cbmc/cbmc_parse_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class optionst;
6363
"(error-label):(verbosity):(no-library)" \
6464
"(nondet-static)" \
6565
"(version)" \
66-
"(cover):(symex-coverage-report):" \
66+
"(symex-coverage-report):" \
6767
"(mm):" \
6868
OPT_TIMESTAMP \
6969
"(i386-linux)(i386-macos)(i386-win32)(win32)(winx64)(gcc)" \

unit/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ testing-utils.dir:
5050
# We need to link bmc.o to the unit test, so here's everything it depends on...
5151
BMC_DEPS =../src/cbmc/all_properties$(OBJEXT) \
5252
../src/cbmc/bmc$(OBJEXT) \
53-
../src/cbmc/bmc_cover$(OBJEXT) \
5453
../src/cbmc/bv_cbmc$(OBJEXT) \
5554
../src/cbmc/cbmc_dimacs$(OBJEXT) \
5655
../src/cbmc/cbmc_languages$(OBJEXT) \

0 commit comments

Comments
 (0)