Skip to content

Commit 018c401

Browse files
author
thk123
committed
Renamed the GOTO_CHECK defintions according to the new naming convention
1 parent fa1c003 commit 018c401

9 files changed

+15
-15
lines changed

src/analyses/goto_check.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ void goto_check(
2929
const optionst &options,
3030
goto_modelt &goto_model);
3131

32-
#define GOTO_CHECK_OPTIONS \
32+
#define OPT_GOTO_CHECK \
3333
"(bounds-check)(pointer-check)(memory-leak-check)" \
3434
"(div-by-zero-check)(signed-overflow-check)(unsigned-overflow-check)" \
3535
"(pointer-overflow-check)(conversion-check)(undefined-shift-check)" \
3636
"(float-overflow-check)(nan-check)"
3737

38-
#define GOTO_CHECK_HELP \
38+
#define HELP_GOTO_CHECK \
3939
" --bounds-check enable array bounds checks\n" \
4040
" --pointer-check enable pointer checks\n" \
4141
" --memory-leak-check enable memory leak checks\n" \
@@ -48,7 +48,7 @@ void goto_check(
4848
" --float-overflow-check check floating-point for +/-Inf\n" \
4949
" --nan-check check floating-point for NaN\n" \
5050

51-
#define GOTO_CHECK_PARSE_OPTIONS(cmdline, options) \
51+
#define PARSE_OPTIONS_GOTO_CHECK(cmdline, options) \
5252
options.set_option("bounds-check", cmdline.isset("bounds-check")); \
5353
options.set_option("pointer-check", cmdline.isset("pointer-check")); \
5454
options.set_option("memory-leak-check", cmdline.isset("memory-leak-check")); \

src/cbmc/cbmc_parse_options.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void cbmc_parse_optionst::get_command_line_options(optionst &options)
220220
options.set_option("propagation", true);
221221

222222
// all checks supported by goto_check
223-
GOTO_CHECK_PARSE_OPTIONS(cmdline, options);
223+
PARSE_OPTIONS_GOTO_CHECK(cmdline, options);
224224

225225
// check assertions
226226
if(cmdline.isset("no-assertions"))
@@ -1117,7 +1117,7 @@ void cbmc_parse_optionst::help()
11171117
HELP_SHOW_GOTO_FUNCTIONS
11181118
"\n"
11191119
"Program instrumentation options:\n"
1120-
GOTO_CHECK_HELP
1120+
HELP_GOTO_CHECK
11211121
" --no-assertions ignore user assertions\n"
11221122
" --no-assumptions ignore user assumptions\n"
11231123
" --error-label label check that label is unreachable\n"

src/cbmc/cbmc_parse_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class optionst;
3030
"D:I:(c89)(c99)(c11)(cpp89)(cpp99)(cpp11)" \
3131
"(classpath):(cp):(main-class):" \
3232
"(depth):(partial-loops)(no-unwinding-assertions)(unwinding-assertions)" \
33-
GOTO_CHECK_OPTIONS \
33+
OPT_GOTO_CHECK \
3434
"(no-assertions)(no-assumptions)" \
3535
"(xml-ui)(xml-interface)(json-ui)" \
3636
"(smt1)(smt2)(fpa)(cvc3)(cvc4)(boolector)(yices)(z3)(opensmt)(mathsat)" \

src/clobber/clobber_parse_options.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void clobber_parse_optionst::get_command_line_options(optionst &options)
112112
options.set_option("unwindset", cmdline.get_value("unwindset"));
113113

114114
// all checks supported by goto_check
115-
GOTO_CHECK_PARSE_OPTIONS(cmdline, options);
115+
PARSE_OPTIONS_GOTO_CHECK(cmdline, options);
116116

117117
// check assertions
118118
if(cmdline.isset("no-assertions"))
@@ -673,7 +673,7 @@ void clobber_parse_optionst::help()
673673
" --round-to-zero IEEE floating point rounding mode\n"
674674
"\n"
675675
"Program instrumentation options:\n"
676-
GOTO_CHECK_HELP
676+
HELP_GOTO_CHECK
677677
" --show-properties show the properties\n"
678678
" --no-assertions ignore user assertions\n"
679679
" --no-assumptions ignore user assumptions\n"

src/clobber/clobber_parse_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class optionst;
2222

2323
#define CLOBBER_OPTIONS \
2424
"(depth):(context-bound):(unwind):" \
25-
GOTO_CHECK_OPTIONS \
25+
OPT_GOTO_CHECK \
2626
OPT_SHOW_GOTO_FUNCTIONS \
2727
"(no-assertions)(no-assumptions)" \
2828
"(error-label):(verbosity):(no-library)" \

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
885885
options.set_option("assert-to-assume", false);
886886

887887
// all checks supported by goto_check
888-
GOTO_CHECK_PARSE_OPTIONS(cmdline, options);
888+
PARSE_OPTIONS_GOTO_CHECK(cmdline, options);
889889

890890
// check assertions
891891
if(cmdline.isset("no-assertions"))
@@ -1464,7 +1464,7 @@ void goto_instrument_parse_optionst::help()
14641464
"\n"
14651465
"Safety checks:\n"
14661466
" --no-assertions ignore user assertions\n"
1467-
GOTO_CHECK_HELP
1467+
HELP_GOTO_CHECK
14681468
" --uninitialized-check add checks for uninitialized locals (experimental)\n" // NOLINT(*)
14691469
" --error-label label check that label is unreachable\n"
14701470
" --stack-depth n add check that call stack size of non-inlined functions never exceeds n\n" // NOLINT(*)

src/goto-instrument/goto_instrument_parse_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Author: Daniel Kroening, [email protected]
2323
"(document-claims-latex)(document-claims-html)" \
2424
"(document-properties-latex)(document-properties-html)" \
2525
"(dump-c)(dump-cpp)(use-system-headers)(dot)(xml)" \
26-
GOTO_CHECK_OPTIONS \
26+
OPT_GOTO_CHECK \
2727
/* no-X-check are deprecated and ignored */ \
2828
"(no-bounds-check)(no-pointer-check)(no-div-by-zero-check)" \
2929
"(no-nan-check)" \

src/symex/symex_parse_options.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void symex_parse_optionst::get_command_line_options(optionst &options)
119119
options.set_option("unwindset", cmdline.get_value("unwindset"));
120120

121121
// all checks supported by goto_check
122-
GOTO_CHECK_PARSE_OPTIONS(cmdline, options);
122+
PARSE_OPTIONS_GOTO_CHECK(cmdline, options);
123123

124124
// check assertions
125125
if(cmdline.isset("no-assertions"))
@@ -695,7 +695,7 @@ void symex_parse_optionst::help()
695695
" --function name set main function name\n"
696696
"\n"
697697
"Program instrumentation options:\n"
698-
GOTO_CHECK_HELP
698+
HELP_GOTO_CHECK
699699
" --no-assertions ignore user assertions\n"
700700
" --no-assumptions ignore user assumptions\n"
701701
" --error-label label check that label is unreachable\n"

src/symex/symex_parse_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class optionst;
2828
"(function):" \
2929
"D:I:" \
3030
"(depth):(context-bound):(branch-bound):(unwind):" \
31-
GOTO_CHECK_OPTIONS \
31+
OPT_GOTO_CHECK \
3232
"(no-assertions)(no-assumptions)" \
3333
"(16)(32)(64)(LP64)(ILP64)(LLP64)(ILP32)(LP32)" \
3434
"(little-endian)(big-endian)" \

0 commit comments

Comments
 (0)