Skip to content

Warn on usage of goto-instrument --constant-propagator #7111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/goto-instrument/goto_instrument_parse_options.cpp
Original file line number Diff line number Diff line change
@@ -1288,6 +1288,11 @@ void goto_instrument_parse_optionst::instrument_goto_program()
do_remove_returns();

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

constant_propagator_ait constant_propagator_ai(goto_model);
remove_skip(goto_model);