Skip to content

Commit d596284

Browse files
committed
fixup boolbvt changes
1 parent 82f7590 commit d596284

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/cprover/bv_pointers_wide.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,11 +762,12 @@ static std::string bits_to_string(const propt &prop, const bvt &bv)
762762
exprt bv_pointers_widet::bv_get_rec(
763763
const exprt &expr,
764764
const bvt &bv,
765-
std::size_t offset,
766-
const typet &type) const
765+
std::size_t offset) const
767766
{
767+
const auto &type = expr.type();
768+
768769
if(type.id() != ID_pointer)
769-
return SUB::bv_get_rec(expr, bv, offset, type);
770+
return SUB::bv_get_rec(expr, bv, offset);
770771

771772
const pointer_typet &pt = to_pointer_type(type);
772773
const std::size_t bits = boolbv_width(pt);

src/cprover/bv_pointers_wide.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ class bv_pointers_widet : public boolbvt
5656
bvt convert_bitvector(const exprt &) override; // no cache
5757

5858
exprt
59-
bv_get_rec(const exprt &, const bvt &, std::size_t offset, const typet &)
60-
const override;
59+
bv_get_rec(const exprt &, const bvt &, std::size_t offset) const override;
6160

6261
NODISCARD
6362
optionalt<bvt> convert_address_of_rec(const exprt &);

0 commit comments

Comments
 (0)