18 expr.
type().
id() == ID_complex,
19 "complex expression shall have complex type");
25 std::size_t op_width = width / operands.size();
27 for(
const auto &op : operands)
31 bv.insert(bv.end(), tmp.begin(), tmp.end());
54 bv.erase(bv.begin(), bv.begin()+width);
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_complex_imag(const complex_imag_exprt &expr)
virtual bvt convert_complex_real(const complex_real_exprt &expr)
virtual bvt convert_complex(const complex_exprt &expr)
virtual std::size_t boolbv_width(const typet &type) const
Complex constructor from a pair of numbers.
Imaginary part of the expression describing a complex number.
Real part of the expression describing a complex number.
std::vector< exprt > operandst
typet & type()
Return the type of the expression.
const irep_idt & id() const
std::vector< literalt > bvt
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...