Skip to content

Commit 48f7139

Browse files
authored
Merge pull request #5662 from tautschnig/stop-on-fail-help-msg
Help output: document that stop-on-fail implies trace
2 parents f85b11d + b8287fe commit 48f7139

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,9 @@ void jbmc_parse_optionst::help()
10701070
HELP_SHOW_PROPERTIES
10711071
" --symex-coverage-report f generate a Cobertura XML coverage report in f\n" // NOLINT(*)
10721072
" --property id only check one specific property\n"
1073-
" --stop-on-fail stop analysis once a failed property is detected\n" // NOLINT(*)
10741073
" --trace give a counterexample trace for failed properties\n" //NOLINT(*)
1074+
" --stop-on-fail stop analysis once a failed property is detected\n" // NOLINT(*)
1075+
" (implies --trace)\n"
10751076
HELP_JAVA_TRACE_VALIDATION
10761077
"\n"
10771078
"Program representations:\n"

src/cbmc/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ formula using two different possible procedures:
4848

4949
1. When `--stop-on-fail` is passed on the command-line, the formula is solved
5050
once to find any violated assertion. This is implemented directly in
51-
class `bmct`.
51+
class `bmct`. If the formula is satisfiable, a counter-example trace is
52+
generated.
5253
2. When `--stop-on-fail` is not passed, BMC is run in "all-properties" mode.
5354
This categorises the assertions into groups that represent the same property,
5455
and the solver is run repeatedly to try to satisfy each property at least

src/cbmc/cbmc_parse_options.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,9 @@ void cbmc_parse_optionst::help()
10641064
HELP_SHOW_PROPERTIES
10651065
" --symex-coverage-report f generate a Cobertura XML coverage report in f\n" // NOLINT(*)
10661066
" --property id only check one specific property\n"
1067-
" --stop-on-fail stop analysis once a failed property is detected\n" // NOLINT(*)
10681067
" --trace give a counterexample trace for failed properties\n" //NOLINT(*)
1068+
" --stop-on-fail stop analysis once a failed property is detected\n" // NOLINT(*)
1069+
" (implies --trace)\n"
10691070
"\n"
10701071
"C/C++ frontend options:\n"
10711072
" -I path set include path (C/C++)\n"

0 commit comments

Comments
 (0)