18 if(type.
id()==ID_unsignedbv ||
19 type.
id()==ID_signedbv)
A base class for binary expressions.
virtual const bvt & convert_bv(const exprt &expr, const std::optional< std::size_t > expected_width={})
Convert expression to vector of literalts, using an internal cache to speed up conversion if availabl...
bvt conversion_failed(const exprt &expr)
Print that the expression of x has failed conversion, then return a vector of x's width.
virtual std::size_t boolbv_width(const typet &type) const
virtual bvt convert_power(const binary_exprt &expr)
bvt select(literalt s, const bvt &a, const bvt &b)
If s is true, selects a otherwise selects b.
static bvt build_constant(const mp_integer &i, std::size_t width)
literalt equal(const bvt &op0, const bvt &op1)
Bit-blasting ID_equal and use in other encodings.
static bvt shift(const bvt &op, const shiftt shift, std::size_t distance)
typet & type()
Return the type of the expression.
const irep_idt & id() const
virtual bvt new_variables(std::size_t width)
generates a bitvector of given width with new variables
The type of an expression, extends irept.
std::vector< literalt > bvt