Skip to content

Commit a0025af

Browse files
committed
Quantifier test: The second assertion does not hold
The assertion requires, among other things, that (i>=0 && i<2) be true for all values of i, and thus i>=0 (or i<2) for all values of i.
1 parent 1bd1a9c commit a0025af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

regression/cbmc/Quantifiers-assertion/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ int main()
99

1010
__CPROVER_assert(__CPROVER_exists { int i; (i>=0 && i<2) ==> (__CPROVER_exists{int j; (j>=0 && j<2) ==> c[i][j]>=1 && c[i][j]<=10}) }, "Exists-Exists: successful");
1111

12-
__CPROVER_assert(!__CPROVER_exists { int i; (i>=0 && i<2) ==> (!__CPROVER_exists{int j; (j>=0 && j<2) ==> c[i][j]>=1 && c[i][j]<=10}) }, "NotExists-NotExists: successful");
12+
__CPROVER_assert(!__CPROVER_exists { int i; (i>=0 && i<2) ==> (!__CPROVER_exists{int j; (j>=0 && j<2) ==> c[i][j]>=1 && c[i][j]<=10}) }, "NotExists-NotExists: failed");
1313

1414
__CPROVER_assert(!__CPROVER_exists { int i; (i>=0 && i<2) ==> (__CPROVER_exists{int j; (j>=0 && j<2) ==> c[i][j]>=1 && c[i][j]<=10}) }, "NotExists-Exists: failed");
1515

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
CORE
1+
KNOWNBUG
22
main.c
33

44
^\*\* Results:$
55
^\[main.assertion.1\] .* Exists-Exists: successful: SUCCESS$
6-
^\[main.assertion.2\] .* NotExists-NotExists: successful: SUCCESS$
6+
^\[main.assertion.2\] .* NotExists-NotExists: failed: FAILURE$
77
^\[main.assertion.3\] .* NotExists-Exists: failed: FAILURE$
88
^\[main.assertion.4\] .* NotExists-Forall: failed: FAILURE$
99
^\[main.assertion.5\] .* NotForall-Forall: successful: SUCCESS$
1010
^\[main.assertion.6\] .* NotForall-NotForall: successful: SUCCESS$
11-
^\*\* 2 of 6 failed
11+
^\*\* 3 of 6 failed
1212
^VERIFICATION FAILED$
1313
^EXIT=10$
1414
^SIGNAL=0$

0 commit comments

Comments
 (0)