Skip to content

Commit 15dada0

Browse files
author
Thomas Kiley
committed
Tests for incremental status with multiple properties
The incremental status should report failure from the first unwinding for which one property is falsified.
1 parent 320da32 commit 15dada0

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
CORE
2+
test.c
3+
--incremental-loop main.0 --no-propagation
4+
activate-multi-line-match
5+
Current unwinding: 1\nUnwinding .*\nIncremental status: INCONCLUSIVE
6+
Current unwinding: 6\nUnwinding .*\nIncremental status: INCONCLUSIVE
7+
Current unwinding: 7\nUnwinding .*\nIncremental status: FAILURE
8+
Current unwinding: 9\nUnwinding .*\nIncremental status: FAILURE
9+
^EXIT=10$
10+
^SIGNAL=0$
11+
^VERIFICATION FAILED$
12+
--
13+
^warning: ignoring
14+
--
15+
Ensure that with multiple properites, the incremental stauts
16+
switches to failure as soon as one property has been falsified
17+
but keeps unwinding till it has resolved them all
18+
19+
Use `--no-propagation` to ensure that even the output is the same regardless of whether the asserts are checked via the solver or the constant propogator
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
int main() {
2+
for(int i = 0; i < 10; ++i) {
3+
assert(i != 5);
4+
assert(i != 8);
5+
}
6+
return 0;
7+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CORE
2+
test.c
3+
--incremental-loop main.0
4+
activate-multi-line-match
5+
Current unwinding: 1\nUnwinding .*\nIncremental status: INCONCLUSIVE
6+
Current unwinding: 6\nUnwinding .*\nIncremental status: INCONCLUSIVE
7+
Current unwinding: 7\nUnwinding .*\nIncremental status: FAILURE
8+
Current unwinding: 9\nUnwinding .*\nIncremental status: FAILURE
9+
^EXIT=10$
10+
^SIGNAL=0$
11+
^VERIFICATION FAILED$
12+
--
13+
^warning: ignoring
14+
--
15+
Ensure that with multiple properites, the incremental stauts
16+
switches to failure as soon as one property has been falsified
17+
but keeps unwinding till it has resolved them all

0 commit comments

Comments
 (0)