10#ifndef CPROVER_SOLVERS_FLATTENING_BV_POINTERS_H
11#define CPROVER_SOLVERS_FLATTENING_BV_POINTERS_H
74 const typet &type)
const override;
125 bv.begin() + offset_width, bv.begin() + offset_width + object_width);
138 return bvt(bv.begin(), bv.begin() + offset_width);
149 result.reserve(offset.size() +
object.size());
150 result.insert(result.end(), offset.begin(), offset.end());
151 result.insert(result.end(),
object.begin(),
object.end());
message_handlert & message_handler
bool get_array_constraints
bv_pointers_widtht(const namespacet &_ns)
std::size_t get_object_width(const pointer_typet &type) const
std::size_t get_address_width(const pointer_typet &type) const
std::size_t get_offset_width(const pointer_typet &type) const
static bvt object_offset_encoding(const bvt &object, const bvt &offset)
Construct a pointer encoding from given encodings of object and offset.
bv_pointers_widtht bv_pointers_width
void do_postponed(const postponedt &postponed)
literalt convert_rest(const exprt &expr) override
pointer_logict pointer_logic
NODISCARD bvt encode(std::size_t object, const pointer_typet &type) const
virtual NODISCARD bvt add_addr(const exprt &expr)
virtual bvt convert_pointer_type(const exprt &expr)
postponed_listt postponed_list
endianness_mapt endianness_map(const typet &type, bool little_endian) const override
NODISCARD bvt offset_arithmetic(const pointer_typet &type, const bvt &bv, const mp_integer &x)
void finish_eager_conversion() override
exprt bv_get_rec(const exprt &expr, const bvt &bv, std::size_t offset, const typet &type) const override
NODISCARD optionalt< bvt > convert_address_of_rec(const exprt &expr)
std::list< postponedt > postponed_listt
std::size_t boolbv_width(const typet &type) const override
bvt convert_bitvector(const exprt &expr) override
Converts an expression into its gate-level representation and returns a vector of literals correspond...
bvt object_literals(const bvt &bv, const pointer_typet &type) const
Given a pointer encoded in bv, extract the literals identifying the object that the pointer points to...
bvt offset_literals(const bvt &bv, const pointer_typet &type) const
Given a pointer encoded in bv, extract the literals representing the offset into an object that the p...
resultt operator()()
Run the decision procedure to solve the problem.
Maps a big-endian offset to a little-endian offset.
Base class for all expressions.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
The pointer type These are both 'bitvector_typet' (they have a width) and 'type_with_subtypet' (they ...
The type of an expression, extends irept.
std::vector< literalt > bvt
nonstd::optional< T > optionalt
#define PRECONDITION(CONDITION)
postponedt(bvt _bv, bvt _op, exprt _expr)