Skip to content

Commit a810101

Browse files
committedNov 29, 2023
Override defaults flags only if default flags have been set
1 parent 9914cb3 commit a810101

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎src/cbmc/cbmc_parse_options.cpp

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

0 commit comments

Comments
 (0)