9 #ifndef CPROVER_UTIL_STRING_CONSTANT_H
10 #define CPROVER_UTIL_STRING_CONSTANT_H
40 return base.
id() == ID_string_constant;
Array constructor from list of elements.
const typet & element_type() const
The type of the elements of the array.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Base class for all expressions.
const irep_idt & get(const irep_idt &name) const
const irep_idt & id() const
An expression without operands.
const irep_idt & value() const
const array_typet & type() const
array_exprt to_array_expr() const
convert string into array constant
string_constantt(const irep_idt &)
const typet & char_type() const
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)
#define PRECONDITION(CONDITION)
API to expression classes.
const string_constantt & to_string_constant(const exprt &expr)
void validate_expr(const string_constantt &expr)
bool can_cast_expr< string_constantt >(const exprt &base)