Skip to content

Commit d3b72f2

Browse files
Merge pull request #7111 from thomasspriggs/tas/const_prop_unsound
Warn on usage of `goto-instrument --constant-propagator`
2 parents b06a880 + d91d678 commit d3b72f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,11 @@ void goto_instrument_parse_optionst::instrument_goto_program()
12881288
do_remove_returns();
12891289

12901290
log.status() << "Propagating Constants" << messaget::eom;
1291+
log.warning() << "**** WARNING: Constant propagation as performed by "
1292+
"goto-instrument is not expected to be sound. Do not use "
1293+
"--constant-propagator if soundness is important for your "
1294+
"use case."
1295+
<< messaget::eom;
12911296

12921297
constant_propagator_ait constant_propagator_ai(goto_model);
12931298
remove_skip(goto_model);

0 commit comments

Comments
 (0)