17 if(expr.
id()==ID_bitnot)
23 else if(expr.
id()==ID_bitand || expr.
id()==ID_bitor ||
24 expr.
id()==ID_bitxor ||
25 expr.
id()==ID_bitnand || expr.
id()==ID_bitnor ||
26 expr.
id()==ID_bitxnor)
39 for(std::size_t i=0; i<width; i++)
41 if(expr.
id()==ID_bitand)
43 else if(expr.
id()==ID_bitor)
45 else if(expr.
id()==ID_bitxor)
47 else if(expr.
id()==ID_bitnand)
49 else if(expr.
id()==ID_bitnor)
51 else if(expr.
id()==ID_bitxnor)
API to expression classes for bitvectors.
const bitnot_exprt & to_bitnot_expr(const exprt &expr)
Cast an exprt to a bitnot_exprt.
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...
virtual bvt convert_bitwise(const exprt &expr)
virtual std::size_t boolbv_width(const typet &type) const
static bvt inverted(const bvt &op)
Base class for all expressions.
typet & type()
Return the type of the expression.
const irep_idt & id() const
virtual literalt land(literalt a, literalt b)=0
virtual literalt lnand(literalt a, literalt b)=0
virtual literalt lnor(literalt a, literalt b)=0
virtual literalt lxor(literalt a, literalt b)=0
virtual literalt lequal(literalt a, literalt b)=0
virtual literalt lor(literalt a, literalt b)=0
#define forall_operands(it, expr)
std::vector< literalt > bvt