File tree 4 files changed +44
-0
lines changed
regression/cbmc-incr-smt2/pointers-conversions
4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include <assert.h>
2
+ #include <stdint.h>
3
+
4
+ int main ()
5
+ {
6
+ uint32_t input ;
7
+ uint32_t original = input ;
8
+ uint8_t * ptr = (uint8_t * )(& input );
9
+ assert (* ptr == 0 ); // falsifiable
10
+ * ptr = ~(* ptr );
11
+ assert (input != original ); // valid
12
+ }
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ byte_extract_issue.c
3
+ --trace
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ --
7
+ Reached unimplemented Generation of SMT formula for byte extract expression: byte_extract_little_endian
8
+ --
9
+ This test is here to document our lack of support for byte_extract_little_endian
10
+ in the pointers support for the new SMT backend.
Original file line number Diff line number Diff line change
1
+ #include <assert.h>
2
+ #include <stdint.h>
3
+
4
+ int main ()
5
+ {
6
+ uint32_t x = 0 ;
7
+ uint8_t * ptr = (uint8_t * )(& x );
8
+ int offset ;
9
+ __CPROVER_assume (offset >= 0 && offset < 4 );
10
+ * (ptr + offset ) = 1 ;
11
+ assert (x != 256 );
12
+ }
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ byte_update_issue.c
3
+ --trace
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ --
7
+ Reached unimplemented Generation of SMT formula for byte extract expression: byte_update_little_endian
8
+ --
9
+ This test is here to document our lack of support for byte_update_little_endian
10
+ in the pointers support for the new SMT backend.
You can’t perform that action at this time.
0 commit comments