Skip to content

Commit 9795351

Browse files
author
Thomas Kiley
committed
Ensure for unwind-min 1, assertions are checked after the first unwind
1 parent 5d4c4a8 commit 9795351

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/goto-checker/symex_bmc_incremental_one_loop.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ symex_bmc_incremental_one_loopt::symex_bmc_incremental_one_loopt(
3737
: 0),
3838
output_ui(output_ui)
3939
{
40+
// the intended behaviour is to stop asserts that are violated before the
41+
// unwind
42+
// therefore if the min-unwind is 1, then we do one unwind and immediately
43+
// start checking for properties
4044
ignore_assertions =
41-
incr_min_unwind >= 1 &&
45+
incr_min_unwind > 1 &&
4246
options.get_bool_option("ignore-properties-before-unwind-min");
4347
}
4448

0 commit comments

Comments
 (0)