Skip to content

Minor formatting fix to contracts help #7563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/goto-instrument/contracts/dynamic-frames/dfcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ class optionst;

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

#define FLAG_ENFORCE_CONTRACT_REC "enforce-contract-rec"
#define OPT_ENFORCE_CONTRACT_REC "(" FLAG_ENFORCE_CONTRACT_REC "):"
#define HELP_ENFORCE_CONTRACT_REC \
" --enforce-contract-rec <function>[/<contract>]" \
" wrap fun with an assertion of the contract\n"\
" and assume recursive calls to fun satisfy \n"\
" the contract"
" the contract\n"
// clang-format on

/// Exception thrown for bad function/contract specification pairs passed on
Expand Down
4 changes: 2 additions & 2 deletions src/goto-instrument/goto_instrument_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1980,11 +1980,11 @@ void goto_instrument_parse_optionst::help()
" used with aggressive-slice, preserves all functions within <n> function calls\n" // NOLINT(*)
" of the functions on the shortest path\n"
" --aggressive-slice-preserve-function <f>\n"
" force the aggressive slicer to preserve function <f>\n" // NOLINT(*)
" force the aggressive slicer to preserve function <f>\n" // NOLINT(*)
" --aggressive-slice-preserve-functions-containing <f>\n"
" force the aggressive slicer to preserve all functions with names containing <f>\n" // NOLINT(*)
" --aggressive-slice-preserve-all-direct-paths \n"
" force aggressive slicer to preserve all direct paths\n" // NOLINT(*)
" force aggressive slicer to preserve all direct paths\n" // NOLINT(*)
"\n"
"Code contracts:\n"
HELP_DFCC
Expand Down