31 if(bvtype==bvtypet::IS_FIXED ||
32 bvtype==bvtypet::IS_SIGNED ||
33 bvtype==bvtypet::IS_UNSIGNED)
37 else if(bvtype==bvtypet::IS_FLOAT)
40 return float_utils.
abs(op_bv);
Pre-defined bitvector types.
const floatbv_typet & to_floatbv_type(const typet &type)
Cast a typet to a floatbv_typet.
bvtypet get_bvtype(const typet &type)
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...
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_abs(const abs_exprt &expr)
bvt absolute_value(const bvt &op)
typet & type()
Return the type of the expression.
std::vector< literalt > bvt