Skip to content

Commit c490cd3

Browse files
committed
Mark --reachability-slice and --full-slice as unsound in cbmc and goto-instrument output.
1 parent 99c5a92 commit c490cd3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,7 @@ bool cbmc_parse_optionst::process_goto_program(
955955

956956
if(options.get_bool_option("reachability-slice"))
957957
{
958+
log.warning() << "WARNING: Unsound option --reachability-slice" << messaget::eom;
958959
log.status() << "Performing a reachability slice" << messaget::eom;
959960
if(options.is_set("property"))
960961
reachability_slicer(goto_model, options.get_list_option("property"));
@@ -965,6 +966,7 @@ bool cbmc_parse_optionst::process_goto_program(
965966
// full slice?
966967
if(options.get_bool_option("full-slice"))
967968
{
969+
log.warning() << "WARNING: Unsound option --full-slice" << messaget::eom;
968970
log.status() << "Performing a full slice" << messaget::eom;
969971
if(options.is_set("property"))
970972
property_slicer(goto_model, options.get_list_option("property"));

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
16001600
{
16011601
do_indirect_call_and_rtti_removal();
16021602

1603+
log.warning() << "WARNING: Unsound option --reachability-slice" << messaget::eom;
16031604
log.status() << "Performing a reachability slice" << messaget::eom;
16041605

16051606
// reachability_slicer requires that the model has unique location numbers:
@@ -1627,7 +1628,9 @@ void goto_instrument_parse_optionst::instrument_goto_program()
16271628
do_indirect_call_and_rtti_removal();
16281629
do_remove_returns();
16291630

1631+
log.warning() << "WARNING: Unsound option --full-slice" << messaget::eom;
16301632
log.status() << "Performing a full slice" << messaget::eom;
1633+
16311634
if(cmdline.isset("property"))
16321635
property_slicer(goto_model, cmdline.get_values("property"));
16331636
else
@@ -1689,7 +1692,9 @@ void goto_instrument_parse_optionst::instrument_goto_program()
16891692

16901693
goto_model.goto_functions.update();
16911694

1695+
log.warning() << "WARNING: Unsound option --reachability-slice" << messaget::eom;
16921696
log.status() << "Performing a reachability slice" << messaget::eom;
1697+
16931698
if(cmdline.isset("property"))
16941699
reachability_slicer(goto_model, cmdline.get_values("property"));
16951700
else

0 commit comments

Comments
 (0)