Skip to content

Commit 3ee2b3a

Browse files
authored
Merge pull request #7563 from zhassan-aws/fix-contracts-help
Minor formatting fix to contracts help
2 parents 81f1fb6 + e663f8a commit 3ee2b3a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: src/goto-instrument/contracts/dynamic-frames/dfcc.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,17 @@ class optionst;
5858

5959
// clang-format off
6060
#define HELP_DFCC \
61-
"--dfcc <harness> activate dynamic frame condition checking for function\n"\
62-
" contracts using the given harness as entry point"
61+
" --dfcc <harness> activate dynamic frame condition checking\n"\
62+
" for function contracts using the given\n"\
63+
" harness as entry point\n"
6364

6465
#define FLAG_ENFORCE_CONTRACT_REC "enforce-contract-rec"
6566
#define OPT_ENFORCE_CONTRACT_REC "(" FLAG_ENFORCE_CONTRACT_REC "):"
6667
#define HELP_ENFORCE_CONTRACT_REC \
6768
" --enforce-contract-rec <function>[/<contract>]" \
6869
" wrap fun with an assertion of the contract\n"\
6970
" and assume recursive calls to fun satisfy \n"\
70-
" the contract"
71+
" the contract\n"
7172
// clang-format on
7273

7374
/// Exception thrown for bad function/contract specification pairs passed on

Diff for: src/goto-instrument/goto_instrument_parse_options.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1980,11 +1980,11 @@ void goto_instrument_parse_optionst::help()
19801980
" used with aggressive-slice, preserves all functions within <n> function calls\n" // NOLINT(*)
19811981
" of the functions on the shortest path\n"
19821982
" --aggressive-slice-preserve-function <f>\n"
1983-
" force the aggressive slicer to preserve function <f>\n" // NOLINT(*)
1983+
" force the aggressive slicer to preserve function <f>\n" // NOLINT(*)
19841984
" --aggressive-slice-preserve-functions-containing <f>\n"
19851985
" force the aggressive slicer to preserve all functions with names containing <f>\n" // NOLINT(*)
19861986
" --aggressive-slice-preserve-all-direct-paths \n"
1987-
" force aggressive slicer to preserve all direct paths\n" // NOLINT(*)
1987+
" force aggressive slicer to preserve all direct paths\n" // NOLINT(*)
19881988
"\n"
19891989
"Code contracts:\n"
19901990
HELP_DFCC

0 commit comments

Comments
 (0)