Go to the documentation of this file.
21 expr.
type().
id() == ID_complex,
22 "complex expression shall have complex type");
28 std::size_t op_width = width / operands.size();
64 bv.erase(bv.begin(), bv.begin()+width);
std::vector< literalt > bvt
virtual bvt convert_complex(const complex_exprt &expr)
Real part of the expression describing a complex number.
#define forall_literals(it, bv)
typet & type()
Return the type of the expression.
boolbv_widtht boolbv_width
void conversion_failed(const exprt &expr, bvt &bv)
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
virtual bvt convert_complex_real(const complex_real_exprt &expr)
const irep_idt & id() const
std::vector< exprt > operandst
Complex constructor from a pair of numbers.
virtual const bvt & convert_bv(const exprt &expr, const optionalt< std::size_t > expected_width=nullopt)
Convert expression to vector of literalts, using an internal cache to speed up conversion if availabl...
Imaginary part of the expression describing a complex number.
#define forall_expr(it, expr)
virtual bvt convert_complex_imag(const complex_imag_exprt &expr)