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(
246246 expr_to_smt_conversion_test_environmentt::make (test_archt::x86_64);
247247 const pointer_typet pointer_type = ::pointer_type (void_type ());
248248 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" );
249252 const constant_exprt invalid_ptr{
250- integer2bvrep (1ul << (pointer_width - object_bits), pointer_width),
253+ integer2bvrep (1ull << (pointer_width - object_bits), pointer_width),
251254 pointer_type};
252255 const is_invalid_pointer_exprt is_invalid_ptr{invalid_ptr};
253256 const smt_termt expected_smt_term = smt_core_theoryt::equal (
You can’t perform that action at this time.
0 commit comments