Skip to content

Commit 9ebc7d3

Browse files
+ flag for assertions-as-assumptions
1 parent c7c0902 commit 9ebc7d3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ void cbmc_parse_optionst::get_command_line_options(optionst &options)
459459
if(cmdline.isset("cover-function-only"))
460460
options.set_option("cover-function-only", true);
461461

462+
if(cmdline.isset("assertions-as-assumptions"))
463+
options.set_option("assertions-as-assumptions", true);
464+
462465
if(cmdline.isset("java-disable-mocks"))
463466
options.set_option("java-disable-mocks", true);
464467
}
@@ -1174,6 +1177,7 @@ void cbmc_parse_optionst::help()
11741177
" --main-class class-name set the name of the main class\n"
11751178
" --gen-java-test-case generate test case\n"
11761179
" --cover-function-only add coverage instrumentation only to the entry function"
1180+
" --assertions-as-assumptions convert assertions from generic checks into assumptions"
11771181
"\n"
11781182
"Semantic transformations:\n"
11791183
" --nondet-static add nondeterministic initialization of variables with static lifetime\n"

src/cbmc/cbmc_parse_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class optionst;
4545
"(stop-on-fail)(trace)" \
4646
"(error-label):(verbosity):(no-library)" \
4747
"(version)" \
48+
"(assertions-as-assumptions)" \
4849
"(cover):(cover-function-only)" \
4950
"(mm):" \
5051
"(i386-linux)(i386-macos)(i386-win32)(win32)(winx64)(gcc)" \

0 commit comments

Comments
 (0)