Skip to content

Commit 2ecf8e8

Browse files
author
svorenova
committed
Add nondet-static option to JBMC
The option already appears in process_goto_functions before, the flag just needed to be read.
1 parent 9e6caba commit 2ecf8e8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
124124
if(cmdline.isset("cover"))
125125
parse_cover_options(cmdline, options);
126126

127+
if(cmdline.isset("nondet-static"))
128+
options.set_option("nondet-static", true);
129+
127130
if(cmdline.isset("no-simplify"))
128131
options.set_option("simplify", false);
129132

@@ -1095,6 +1098,10 @@ void jbmc_parse_optionst::help()
10951098
" will be restricted to loaded methods in this case,\n" // NOLINT(*)
10961099
" and only output after the symex phase.\n"
10971100
"\n"
1101+
"Semantic transformations:\n"
1102+
// NOLINTNEXTLINE(whitespace/line_length)
1103+
" --nondet-static add nondeterministic initialization of variables with static lifetime\n"
1104+
"\n"
10981105
"BMC options:\n"
10991106
HELP_BMC
11001107
"\n"

jbmc/src/jbmc/jbmc_parse_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class optionst;
6767
"(drop-unused-functions)" \
6868
"(property):(stop-on-fail)(trace)" \
6969
"(verbosity):" \
70+
"(nondet-static)" \
7071
"(version)" \
7172
"(cover):(symex-coverage-report):" \
7273
OPT_TIMESTAMP \

0 commit comments

Comments
 (0)