Skip to content

Commit 4a49085

Browse files
committed
Add an extra test to the regression test suite, suggested by Thomas S.
1 parent b42bfe0 commit 4a49085

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <assert.h>
2+
#include <stdbool.h>
3+
4+
int main()
5+
{
6+
int x;
7+
int y;
8+
int z;
9+
bool nondet1;
10+
bool nondet2;
11+
int *a = nondet1 ? &x : &y;
12+
int *b = nondet2 ? &y : &z;
13+
__CPROVER_assert(!__CPROVER_same_object(a, b), "Can be violated.");
14+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE
2+
pointer_object2.c
3+
--trace --verbosity 10
4+
\[main\.assertion\.1\] line 13 Can be violated.: FAILURE
5+
nondet1=FALSE
6+
nondet2=TRUE
7+
^VERIFICATION FAILED$
8+
^EXIT=10$
9+
^SIGNAL=0$
10+
--
11+
--

0 commit comments

Comments
 (0)