Skip to content

Make use of simple-slice more explicit #4360

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 3 commits into from
Mar 11, 2019
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions doc/architectural/folder-walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ containing the code for a different part of the system.
* \ref linking

- Symbolic Execution
* \ref goto-checker
* \ref goto-symex

- Static Analyses
Expand All @@ -36,9 +37,10 @@ containing the code for a different part of the system.

* \ref cbmc
* \ref goto-analyzer
* \ref goto-instrument
* \ref goto-diff
* \ref goto-cc
* \ref goto-diff
* \ref goto-harness
* \ref goto-instrument
* \ref jbmc

- Utilities
Expand Down
1 change: 1 addition & 0 deletions jbmc/src/jbmc/jbmc_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void jbmc_parse_optionst::set_default_options(optionst &options)
options.set_option("propagation", true);
options.set_option("refine-strings", true);
options.set_option("sat-preprocessor", true);
options.set_option("simple-slice", true);
options.set_option("simplify", true);
options.set_option("simplify-if", true);

Expand Down
1 change: 1 addition & 0 deletions src/cbmc/cbmc_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void cbmc_parse_optionst::set_default_options(optionst &options)
options.set_option("pretty-names", true);
options.set_option("propagation", true);
options.set_option("sat-preprocessor", true);
options.set_option("simple-slice", true);
options.set_option("simplify", true);
options.set_option("simplify-if", true);

Expand Down
2 changes: 1 addition & 1 deletion src/goto-checker/bmc_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void slice(
}
else
{
if(options.get_list_option("cover").empty())
if(options.get_bool_option("simple-slice"))
{
simple_slice(symex_target_equation);
msg.statistics() << "simple slicing removed "
Expand Down
2 changes: 2 additions & 0 deletions src/goto-checker/goto_trace_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class goto_trace_providert
{
public:
/// Builds and returns the complete trace
/// \note If slicing is used then the trace will not be complete.
/// E.g. with simple-slice it will end at the last assertion.
virtual goto_tracet build_full_trace() const = 0;

/// Builds and returns the trace up to the first failed property
Expand Down
4 changes: 4 additions & 0 deletions src/goto-instrument/cover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ parse_coverage_criterion(const std::string &criterion_string)
void parse_cover_options(const cmdlinet &cmdline, optionst &options)
{
options.set_option("cover", cmdline.get_values("cover"));

// allow retrieving full traces
options.set_option("simple-slice", false);

options.set_option(
"cover-include-pattern", cmdline.get_value("cover-include-pattern"));
options.set_option("no-trivial-tests", cmdline.isset("no-trivial-tests"));
Expand Down