29 bool is_negative =
false;
33 value = value.substr(1);
36 for(
const char ch : value)
45 else if(ch==
'/' || ch==
'.')
68 DATA_INVARIANT(!no2.empty(),
"decimal suffix should not be empty");
72 no2.back() !=
'0',
"decimal suffix should not have trailing zeros");
A constant literal expression.
Base class for all expressions.
bool is_constant() const
Return whether the expression is a constant.
const std::string & get_string(const irep_idt &name) const
Unbounded, signed rational numbers.
const mp_integer & get_numerator() const
const mp_integer & get_denominator() const
const mp_integer string2integer(const std::string &n, unsigned base)
const std::string integer2string(const mp_integer &n, unsigned base)
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
#define PRECONDITION(CONDITION)