16 if(expr.
type().
id()==ID_floatbv)
21 if(expr.
type().
id()!=ID_unsignedbv &&
22 expr.
type().
id()!=ID_signedbv)
29 "type of the dividend of a modulo operation shall equal the "
34 "type of the divisor of a modulo operation shall equal the "
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_mod(const mod_exprt &expr)
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
bvt divider(const bvt &op0, const bvt &op1, representationt rep)
typet & type()
Return the type of the expression.
const irep_idt & id() const
Modulo defined as lhs-(rhs * truncate(lhs/rhs)).
exprt & dividend()
The dividend of a division is the number that is being divided.
exprt & divisor()
The divisor of a division is the number the dividend is being divided by.
std::vector< literalt > bvt
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...