Skip to content

Commit ea085d3

Browse files
committed
move aggressive slicer options into macro
1 parent aa4848d commit ea085d3

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/goto-instrument/aggressive_slicer.h

+10
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,14 @@ class aggressive_slicert
9797
void get_all_functions_containing_properties();
9898
};
9999

100+
// clang-format off
101+
#define OPT_AGGRESSIVE_SLICER \
102+
"(aggressive-slice)" \
103+
"(aggressive-slice-call-depth):" \
104+
"(aggressive-slice-preserve-function):" \
105+
"(aggressive-slice-preserve-functions-containing):" \
106+
"(aggressive-slice-preserve-all-direct-paths)"
107+
108+
// clang-format on
109+
100110
#endif /* CPROVER_GOTO_INSTRUMENT_AGGRESSIVE_SLICER_H */

src/goto-instrument/goto_instrument_parse_options.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ Author: Daniel Kroening, [email protected]
6868
#include <cpp/cprover_library.h>
6969

7070
#include "accelerate/accelerate.h"
71-
#include "aggressive_slicer.h"
7271
#include "alignment_checks.h"
7372
#include "branch.h"
7473
#include "call_sequences.h"

src/goto-instrument/goto_instrument_parse_options.h

+2-5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Author: Daniel Kroening, [email protected]
2626
#include <analyses/goto_check.h>
2727

2828
#include <goto-programs/generate_function_bodies.h>
29+
#include "aggressive_slicer.h"
2930

3031
#include "count_eloc.h"
3132

@@ -90,11 +91,7 @@ Author: Daniel Kroening, [email protected]
9091
"(show-threaded)(list-calls-args)" \
9192
"(undefined-function-is-assume-false)" \
9293
"(remove-function-body):"\
93-
"(aggressive-slice)" \
94-
"(aggressive-slice-call-depth):" \
95-
"(aggressive-slice-preserve-function):" \
96-
"(aggressive-slice-preserve-functions-containing):" \
97-
"(aggressive-slice-preserve-all-direct-paths)" \
94+
OPT_AGGRESSIVE_SLICER \
9895
OPT_FLUSH \
9996
"(splice-call):" \
10097
OPT_REMOVE_CALLS_NO_BODY \

0 commit comments

Comments
 (0)