Skip to content

Commit 55f3861

Browse files
committed
Failing test to demonstrate need for extensionality rule
All existing tests rely on indexed access to arrays, which is covered by the read-over-write axiom.
1 parent 65c42a3 commit 55f3861

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

regression/cbmc/Array_UF22/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int main()
2+
{
3+
int a[2] = {0};
4+
int b[2] = {0};
5+
__CPROVER_assert(__CPROVER_array_equal(a, b), "equal");
6+
}

regression/cbmc/Array_UF22/test.desc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
KNOWNBUG broken-smt-backend
2+
main.c
3+
--arrays-uf-always --no-propagation
4+
^VERIFICATION SUCCESSFUL$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--
10+
This test demonstrates the need for implementing the extensionality rule.

0 commit comments

Comments
 (0)