Go to the documentation of this file.
9 #ifndef CPROVER_UTIL_STRING_CONSTANT_H
10 #define CPROVER_UTIL_STRING_CONSTANT_H
33 return base.
id() == ID_string_constant;
63 #endif // CPROVER_ANSI_C_STRING_CONSTANT_H
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
bool can_cast_expr< string_constantt >(const exprt &base)
string_constantt(const irep_idt &value)
The type of an expression, extends irept.
void validate_operands(const exprt &value, exprt::operandst::size_type number, const char *message, bool allow_more=false)
const string_constantt & to_string_constant(const exprt &expr)
Base class for all expressions.
bool from_array_expr(const array_exprt &)
void validate_expr(const string_constantt &expr)
An expression without operands.
#define PRECONDITION(CONDITION)
const irep_idt & id() const
array_exprt to_array_expr() const
convert string into array constant
const irep_idt & get(const irep_namet &name) const
API to expression classes.
Array constructor from list of elements.
const irep_idt & get_value() const
void set_value(const irep_idt &value)