Skip to content

Commit a914ead

Browse files
authored
Merge pull request #6928 from tautschnig/cleanup/cbmc-options
Complete and cleanup CBMC help output
2 parents b8e1053 + 1997cec commit a914ead

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/cbmc/cbmc_parse_options.cpp

+8-7
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,8 @@ void cbmc_parse_optionst::help()
865865
"Usage: Purpose:\n"
866866
"\n"
867867
" cbmc [-?] [-h] [--help] show help\n"
868-
" cbmc file.c ... source file names\n"
868+
" cbmc --version show version and exit\n"
869+
" cbmc [options] file.c ... perform bounded model checking\n"
869870
"\n"
870871
"Analysis options:\n"
871872
HELP_SHOW_PROPERTIES
@@ -878,6 +879,7 @@ void cbmc_parse_optionst::help()
878879
"\n"
879880
"C/C++ frontend options:\n"
880881
" --preprocess stop after preprocessing\n"
882+
" --test-preprocessor stop after preprocessing, discard output\n"
881883
HELP_CONFIG_C_CPP
882884
HELP_ANSI_C_LANGUAGE
883885
HELP_FUNCTIONS
@@ -889,6 +891,7 @@ void cbmc_parse_optionst::help()
889891
" --show-parse-tree show parse tree\n"
890892
" --show-symbol-table show loaded symbol table\n"
891893
HELP_SHOW_GOTO_FUNCTIONS
894+
HELP_VALIDATE
892895
"\n"
893896
"Program instrumentation options:\n"
894897
HELP_GOTO_CHECK
@@ -916,19 +919,17 @@ void cbmc_parse_optionst::help()
916919
HELP_STRING_REFINEMENT_CBMC
917920
" --arrays-uf-never never turn arrays into uninterpreted functions\n" // NOLINT(*)
918921
" --arrays-uf-always always turn arrays into uninterpreted functions\n" // NOLINT(*)
922+
" --show-array-constraints show array theory constraints added\n"
923+
" during post processing.\n"
924+
" Requires --json-ui.\n"
919925
"\n"
920-
"Other options:\n"
921-
" --version show version and exit\n"
926+
"User-interface options:\n"
922927
HELP_XML_INTERFACE
923928
HELP_JSON_INTERFACE
924-
HELP_VALIDATE
925929
HELP_GOTO_TRACE
926930
HELP_FLUSH
927931
" --verbosity # verbosity level\n"
928932
HELP_TIMESTAMP
929-
" --show-array-constraints show array theory constraints added\n"
930-
" during post processing.\n"
931-
" Requires --json-ui.\n"
932933
"\n";
933934
// clang-format on
934935
}

0 commit comments

Comments
 (0)