Skip to content

Commit

Permalink
move aggressive slicer options into macro
Browse files Browse the repository at this point in the history
  • Loading branch information
polgreen committed Jul 24, 2018
1 parent aa4848d commit ea085d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 10 additions & 0 deletions src/goto-instrument/aggressive_slicer.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,14 @@ class aggressive_slicert
void get_all_functions_containing_properties();
};

// clang-format off
#define OPT_AGGRESSIVE_SLICER \
"(aggressive-slice)" \
"(aggressive-slice-call-depth):" \
"(aggressive-slice-preserve-function):" \
"(aggressive-slice-preserve-functions-containing):" \
"(aggressive-slice-preserve-all-direct-paths)"

// clang-format on

#endif /* CPROVER_GOTO_INSTRUMENT_AGGRESSIVE_SLICER_H */
1 change: 0 additions & 1 deletion src/goto-instrument/goto_instrument_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ Author: Daniel Kroening, [email protected]
#include <cpp/cprover_library.h>

#include "accelerate/accelerate.h"
#include "aggressive_slicer.h"
#include "alignment_checks.h"
#include "branch.h"
#include "call_sequences.h"
Expand Down
7 changes: 2 additions & 5 deletions src/goto-instrument/goto_instrument_parse_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Author: Daniel Kroening, [email protected]
#include <analyses/goto_check.h>

#include <goto-programs/generate_function_bodies.h>
#include "aggressive_slicer.h"

#include "count_eloc.h"

Expand Down Expand Up @@ -90,11 +91,7 @@ Author: Daniel Kroening, [email protected]
"(show-threaded)(list-calls-args)" \
"(undefined-function-is-assume-false)" \
"(remove-function-body):"\
"(aggressive-slice)" \
"(aggressive-slice-call-depth):" \
"(aggressive-slice-preserve-function):" \
"(aggressive-slice-preserve-functions-containing):" \
"(aggressive-slice-preserve-all-direct-paths)" \
OPT_AGGRESSIVE_SLICER \
OPT_FLUSH \
"(splice-call):" \
OPT_REMOVE_CALLS_NO_BODY \
Expand Down

0 comments on commit ea085d3

Please sign in to comment.