File tree Expand file tree Collapse file tree 4 files changed +49
-0
lines changed Expand file tree Collapse file tree 4 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ #define MB 0x00100000
2
+ #define BASE (15 * MB)
3
+ #define OFFSET (1 * MB)
4
+
5
+ main ()
6
+ {
7
+ char * base = BASE ;
8
+ int offset = OFFSET ;
9
+ __CPROVER_assert (
10
+ & ((char * )base )[offset ] >= BASE + OFFSET , "no wrap-around expected" );
11
+ }
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ main.c
3
+ --32
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ ^VERIFICATION SUCCESSFUL$
7
+ --
8
+ ^warning: ignoring
Original file line number Diff line number Diff line change
1
+ #include <stdlib.h>
2
+
3
+ int main ()
4
+ {
5
+ if (sizeof (void * ) != 8 )
6
+ return 0 ;
7
+
8
+ char * p = malloc (1 );
9
+ if (p == 0 )
10
+ return 0 ;
11
+
12
+ if (
13
+ (unsigned long )p >
14
+ 42 ) // unsoundly evaluates to true due to pointer encoding
15
+ {
16
+ return 0 ;
17
+ }
18
+
19
+ __CPROVER_assert (0 , "" );
20
+
21
+ return 0 ;
22
+ }
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ main.c
3
+
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ ^VERIFICATION FAILED$
7
+ --
8
+ ^warning: ignoring
You can’t perform that action at this time.
0 commit comments