File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change
1
+ #include <assert.h>
2
+ #include <string.h>
3
+
4
+ int main ()
5
+ {
6
+ int x ;
7
+ int * p = (char * )& x - 2 ;
8
+ int y ;
9
+ memcpy (& y , p , sizeof (int ));
10
+ assert (0 );
11
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ ^VERIFICATION FAILED$
7
+ --
8
+ Invariant check failed
9
+ --
10
+ This example previously failed the invariant "mp_integer should be convertible
11
+ to target integral type".
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ bvt boolbvt::convert_byte_extract(const byte_extract_exprt &expr)
121
121
if (offset + i < 0 || offset + i >= op_bv.size ())
122
122
bv[i]=prop.new_variable ();
123
123
else
124
- bv[i] = op_bv[numeric_cast_v<std::size_t >(offset) + i];
124
+ bv[i] = op_bv[numeric_cast_v<std::size_t >(offset + i) ];
125
125
}
126
126
else
127
127
{
You can’t perform that action at this time.
0 commit comments