Go to the documentation of this file.
10 #ifndef CPROVER_SOLVERS_FLATTENING_BV_POINTERS_H
11 #define CPROVER_SOLVERS_FLATTENING_BV_POINTERS_H
81 :
bv(std::move(_bv)),
op(std::move(_op)),
expr(std::move(_expr))
113 #endif // CPROVER_SOLVERS_FLATTENING_BV_POINTERS_H
bvt encode(const mp_integer &object, const pointer_typet &) const
postponedt(bvt _bv, bvt _op, exprt _expr)
void finish_eager_conversion() override
bv_pointerst(const namespacet &, propt &, message_handlert &, bool get_array_constraints=false)
bvt convert_bitvector(const exprt &) override
Converts an expression into its gate-level representation and returns a vector of literals correspond...
exprt bv_get_rec(const exprt &, const bvt &, std::size_t offset) const override
static bvt object_offset_encoding(const bvt &object, const bvt &offset)
Construct a pointer encoding from given encodings of object and offset.
The type of an expression, extends irept.
std::vector< literalt > bvt
postponed_listt postponed_list
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...
void do_postponed(const postponedt &postponed)
Base class for all expressions.
optionalt< bvt > convert_address_of_rec(const exprt &)
std::list< postponedt > postponed_listt
endianness_mapt endianness_map(const typet &, bool little_endian) const override
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
virtual bvt add_addr(const exprt &)
pointer_logict pointer_logic
bvt offset_arithmetic(const pointer_typet &, const bvt &, const mp_integer &)
nonstd::optional< T > optionalt
std::size_t get_address_width(const pointer_typet &) const
std::size_t get_object_width(const pointer_typet &) const
literalt convert_rest(const exprt &) override
std::size_t get_offset_width(const pointer_typet &) const
Maps a big-endian offset to a little-endian offset.
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...
virtual bvt convert_pointer_type(const exprt &)
The pointer type These are both 'bitvector_typet' (they have a width) and 'type_with_subtypet' (they ...
bool get_array_constraints