Skip to content

Commit 1256695

Browse files
committed
Override defaults flags only if default flags have been set
1 parent 47631b8 commit 1256695

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/cbmc/cbmc_parse_options.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,11 @@ void cbmc_parse_optionst::get_command_line_options(optionst &options)
325325
// Enable flags that in combination provide analysis with no surprises
326326
// (expected checks and no unsoundness by missing checks).
327327
if (!cmdline.isset("no-standard-checks") && options.get_bool_option("standard-checks"))
328+
{
328329
set_default_analysis_flags(options);
329-
330-
PARSE_OPTIONS_GOTO_CHECK_DEFAULTS_OVERRIDE(cmdline, options);
331-
330+
PARSE_OPTIONS_GOTO_CHECK_DEFAULTS_OVERRIDE(cmdline, options);
331+
}
332+
332333
// all (non-default) checks supported by goto_check
333334
PARSE_OPTIONS_GOTO_CHECK(cmdline, options);
334335

0 commit comments

Comments
 (0)