Skip to content

Commit 60338fc

Browse files
committed
Mark --full-slice as unsound in cbmc and goto-instrument output.
1 parent 882bd0d commit 60338fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/cbmc/cbmc_parse_options.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ bool cbmc_parse_optionst::process_goto_program(
840840
// full slice?
841841
if(options.get_bool_option("full-slice"))
842842
{
843+
log.warning() << "WARNING: Unsound option --full-slice" << messaget::eom;
843844
log.status() << "Performing a full slice" << messaget::eom;
844845
if(options.is_set("property"))
845846
property_slicer(goto_model, options.get_list_option("property"));

src/goto-instrument/goto_instrument_parse_options.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,9 @@ void goto_instrument_parse_optionst::instrument_goto_program()
17431743
do_indirect_call_and_rtti_removal();
17441744
do_remove_returns();
17451745

1746+
log.warning() << "WARNING: Unsound option --full-slice" << messaget::eom;
17461747
log.status() << "Performing a full slice" << messaget::eom;
1748+
17471749
if(cmdline.isset("property"))
17481750
property_slicer(goto_model, cmdline.get_values("property"));
17491751
else
@@ -1806,6 +1808,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
18061808
goto_model.goto_functions.update();
18071809

18081810
log.status() << "Performing a reachability slice" << messaget::eom;
1811+
18091812
if(cmdline.isset("property"))
18101813
{
18111814
reachability_slicer(

0 commit comments

Comments
 (0)