Skip to content

Commit c15f864

Browse files
committed
Mark --reachability-slice and --full-slice as unsound in cbmc and goto-instrument output.
1 parent 770d791 commit c15f864

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/cbmc/cbmc_parse_options.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,8 @@ bool cbmc_parse_optionst::process_goto_program(
952952

953953
if(options.get_bool_option("reachability-slice"))
954954
{
955+
log.warning() << "WARNING: Unsound option --reachability-slice"
956+
<< messaget::eom;
955957
log.status() << "Performing a reachability slice" << messaget::eom;
956958
if(options.is_set("property"))
957959
reachability_slicer(goto_model, options.get_list_option("property"));
@@ -962,6 +964,7 @@ bool cbmc_parse_optionst::process_goto_program(
962964
// full slice?
963965
if(options.get_bool_option("full-slice"))
964966
{
967+
log.warning() << "WARNING: Unsound option --full-slice" << messaget::eom;
965968
log.status() << "Performing a full slice" << messaget::eom;
966969
if(options.is_set("property"))
967970
property_slicer(goto_model, options.get_list_option("property"));

src/goto-instrument/goto_instrument_parse_options.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,8 @@ void goto_instrument_parse_optionst::instrument_goto_program()
15961596
{
15971597
do_indirect_call_and_rtti_removal();
15981598

1599+
log.warning() << "WARNING: Unsound option --reachability-slice"
1600+
<< messaget::eom;
15991601
log.status() << "Performing a reachability slice" << messaget::eom;
16001602

16011603
// reachability_slicer requires that the model has unique location numbers:
@@ -1623,7 +1625,9 @@ void goto_instrument_parse_optionst::instrument_goto_program()
16231625
do_indirect_call_and_rtti_removal();
16241626
do_remove_returns();
16251627

1628+
log.warning() << "WARNING: Unsound option --full-slice" << messaget::eom;
16261629
log.status() << "Performing a full slice" << messaget::eom;
1630+
16271631
if(cmdline.isset("property"))
16281632
property_slicer(goto_model, cmdline.get_values("property"));
16291633
else
@@ -1685,7 +1689,10 @@ void goto_instrument_parse_optionst::instrument_goto_program()
16851689

16861690
goto_model.goto_functions.update();
16871691

1692+
log.warning() << "WARNING: Unsound option --reachability-slice"
1693+
<< messaget::eom;
16881694
log.status() << "Performing a reachability slice" << messaget::eom;
1695+
16891696
if(cmdline.isset("property"))
16901697
reachability_slicer(goto_model, cmdline.get_values("property"));
16911698
else

0 commit comments

Comments
 (0)