@@ -665,39 +665,8 @@ bvt bv_pointerst::convert_bitvector(const exprt &expr)
665
665
difference, element_size_bv, bv_utilst::representationt::SIGNED);
666
666
}
667
667
668
- // test for null object (integer constants)
669
- const exprt null_object = ::null_object (minus_expr.lhs ());
670
- literalt in_bounds = convert (null_object);
671
-
672
- if (!in_bounds.is_true ())
673
- {
674
- // compute the object size (again, possibly using cached results)
675
- const exprt object_size = ::object_size (minus_expr.lhs ());
676
- const bvt object_size_bv =
677
- bv_utils.zero_extension (convert_bv (object_size), width);
678
-
679
- const literalt lhs_in_bounds = prop.land (
680
- !bv_utils.sign_bit (lhs_offset),
681
- bv_utils.rel (
682
- lhs_offset,
683
- ID_le,
684
- object_size_bv,
685
- bv_utilst::representationt::UNSIGNED));
686
-
687
- const literalt rhs_in_bounds = prop.land (
688
- !bv_utils.sign_bit (rhs_offset),
689
- bv_utils.rel (
690
- rhs_offset,
691
- ID_le,
692
- object_size_bv,
693
- bv_utilst::representationt::UNSIGNED));
694
-
695
- in_bounds =
696
- prop.lor (in_bounds, prop.land (lhs_in_bounds, rhs_in_bounds));
697
- }
698
-
699
- prop.l_set_to_true (prop.limplies (
700
- prop.land (same_object_lit, in_bounds), bv_utils.equal (difference, bv)));
668
+ prop.l_set_to_true (
669
+ prop.limplies (same_object_lit, bv_utils.equal (difference, bv)));
701
670
}
702
671
703
672
return bv;
0 commit comments