We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ab5c7 commit 9360f74Copy full SHA for 9360f74
regression/cbmc/integer-pointer/main.c
@@ -0,0 +1,16 @@
1
+#include <assert.h>
2
+#include <stdlib.h>
3
+
4
+void main()
5
+{
6
+ char *p = malloc(1);
7
+ assert(__CPROVER_POINTER_OBJECT(p) == 2);
8
9
+ // same value as the malloc'd pointer above
10
+ char *q = (char *)((size_t)2 << sizeof(char *) * 8 - 8);
11
12
+ *p = 1;
13
+ *q = 2;
14
15
+ assert(*p == 1); // currently succeeds
16
+}
regression/cbmc/integer-pointer/test.desc
@@ -0,0 +1,7 @@
+KNOWNBUG
+main.c
+--pointer-check --no-simplify --no-propagation
+^EXIT=10$
+^SIGNAL=0$
+--
+^warning: ignoring
0 commit comments