File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
unit/solvers/smt2_incremental Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -246,8 +246,11 @@ TEST_CASE(
246
246
expr_to_smt_conversion_test_environmentt::make (test_archt::x86_64);
247
247
const pointer_typet pointer_type = ::pointer_type (void_type ());
248
248
const std::size_t pointer_width = pointer_type.get_width ();
249
+ static_assert (
250
+ sizeof (unsigned long long ) >= 8 ,
251
+ " unsigned long long must be 64bits or wider" );
249
252
const constant_exprt invalid_ptr{
250
- integer2bvrep (1ul << (pointer_width - object_bits), pointer_width),
253
+ integer2bvrep (1ull << (pointer_width - object_bits), pointer_width),
251
254
pointer_type};
252
255
const is_invalid_pointer_exprt is_invalid_ptr{invalid_ptr};
253
256
const smt_termt expected_smt_term = smt_core_theoryt::equal (
You can’t perform that action at this time.
0 commit comments