File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
regression/ansi-c/Issue_7104_Bv_Size Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ struct Foo1
2
+ {
3
+ __CPROVER_bitvector [1 ] m_array [2 ];
4
+ };
5
+ struct Foo8
6
+ {
7
+ __CPROVER_bitvector [8 ] m_array [2 ];
8
+ };
9
+
10
+ int main (void )
11
+ {
12
+ struct Foo1 f1 ;
13
+ struct Foo8 f8 ;
14
+
15
+ __CPROVER_assert (f1 .m_array [1 ] == * (f1 .m_array + 1 ), "" );
16
+ __CPROVER_assert (f8 .m_array [1 ] == * (f8 .m_array + 1 ), "" );
17
+ return 0 ;
18
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ deref.c
3
+
4
+ ^EXIT=1$
5
+ ^SIGNAL=0$
6
+ only bitvectors of size multiple of 8 can be dereferenced
7
+ ^CONVERSION ERROR$
8
+ --
9
+ --
10
+ This is checking that dereferenced __CPROVER_bitvectors always have a size
11
+ that is a multiple of 8.
12
+
13
+ For more information, please have a look at https://github.com/diffblue/cbmc/issues/7104
You can’t perform that action at this time.
0 commit comments