Skip to content

Commit 8307fab

Browse files
committed
Use help_entry() in help text of nondet volatile feature
1 parent 8ef633f commit 8307fab

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ void goto_instrument_parse_optionst::help()
17991799
" --race-check add floating-point data race checks\n"
18001800
"\n"
18011801
"Semantic transformations:\n"
1802-
HELP_NONDET_VOLATILE
1802+
<< HELP_NONDET_VOLATILE <<
18031803
" --unwind <n> unwinds the loops <n> times\n"
18041804
" --unwindset L:B,... unwind loop L with a bound of B\n"
18051805
" --unwindset-file <file> read unwindset from file\n"

src/goto-instrument/nondet_volatile.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ class optionst;
2828
"(" NONDET_VOLATILE_MODEL_OPT "):"
2929

3030
#define HELP_NONDET_VOLATILE \
31-
" --" NONDET_VOLATILE_OPT " makes reads from volatile variables " \
32-
"non-deterministic\n" \
33-
" --" NONDET_VOLATILE_VARIABLE_OPT " <variable>\n" \
34-
" makes reads from given volatile variable " \
35-
"non-deterministic\n" \
36-
" --" NONDET_VOLATILE_MODEL_OPT " <variable>:<model>\n" \
37-
" models reads from given volatile variable " \
38-
"by a call to the given model\n"
31+
help_entry( \
32+
"--" NONDET_VOLATILE_OPT, \
33+
"makes reads from volatile variables non-deterministic") << \
34+
help_entry( \
35+
"--" NONDET_VOLATILE_VARIABLE_OPT " <variable>", \
36+
"makes reads from given volatile variable non-deterministic") << \
37+
help_entry( \
38+
"--" NONDET_VOLATILE_MODEL_OPT " <variable>:<model>", \
39+
"models reads from given volatile variable by a call to the given model")
3940
// clang-format on
4041

4142
void parse_nondet_volatile_options(const cmdlinet &cmdline, optionst &options);

0 commit comments

Comments
 (0)