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 8d68da3 commit 38c0679Copy full SHA for 38c0679
regression/cbmc/Pointer_array4/main.c
@@ -0,0 +1,13 @@
1
+#include <assert.h>
2
+
3
+int main()
4
+{
5
+ int arrayOfIntegers[] = {1, 2, 3};
6
+ int *pointer2FirstElem = arrayOfIntegers;
7
+ int *pointer2ThirdElem = arrayOfIntegers + 2;
8
+ int iFirst=(int)pointer2FirstElem;
9
+ int iThird=(int)pointer2ThirdElem;
10
+ int addrDiff = iThird-iFirst;
11
+ assert(addrDiff == 2* sizeof(int));
12
+ return 0;
13
+}
regression/cbmc/Pointer_array4/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.c
+--32
+^EXIT=0$
+^SIGNAL=0$
+^VERIFICATION SUCCESSFUL$
+--
+^warning: ignoring
0 commit comments