Skip to content

Commit d974aa3

Browse files
author
kroening
committed
avoid --all-claims option name clash
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@4660 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent 9c3867f commit d974aa3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/analyses/goto_check.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class goto_checkt
4343
enable_float_overflow_check=_options.get_bool_option("float-overflow-check");
4444
enable_simplify=_options.get_bool_option("simplify");
4545
enable_nan_check=_options.get_bool_option("nan-check");
46-
generate_all_claims=_options.get_bool_option("all-claims");
46+
retain_trivial=_options.get_bool_option("retain-trivial");
4747
enable_assert_to_assume=_options.get_bool_option("assert-to-assume");
4848
enable_assertions=_options.get_bool_option("assertions");
4949
enable_assumptions=_options.get_bool_option("assumptions");
@@ -111,7 +111,7 @@ class goto_checkt
111111
bool enable_float_overflow_check;
112112
bool enable_simplify;
113113
bool enable_nan_check;
114-
bool generate_all_claims;
114+
bool retain_trivial;
115115
bool enable_assert_to_assume;
116116
bool enable_assertions;
117117
bool enable_assumptions;
@@ -1207,7 +1207,8 @@ void goto_checkt::add_guarded_claim(
12071207
if(enable_simplify)
12081208
simplify(expr, ns);
12091209

1210-
if(!generate_all_claims && expr.is_true())
1210+
// throw away trivial properties?
1211+
if(!retain_trivial && expr.is_true())
12111212
return;
12121213

12131214
// add the guard
@@ -1446,7 +1447,7 @@ void goto_checkt::goto_check(goto_functiont &goto_function)
14461447
// we clear all recorded assertions if
14471448
// 1) we want to generate all assertions or
14481449
// 2) the instruction is a branch target
1449-
if(generate_all_claims ||
1450+
if(retain_trivial ||
14501451
i.is_target())
14511452
assertions.clear();
14521453

0 commit comments

Comments
 (0)