23 if(expr.
id()==ID_index)
33 else if(expr.
id()==ID_symbol)
38 else if(expr.
id()==ID_string_constant)
40 return "string constant";
42 else if(expr.
id()==ID_member)
std::string array_name(const namespacet &ns, const exprt &expr)
Base class for all expressions.
const irep_idt & id() const
Extract member of struct or union.
const exprt & compound() const
irep_idt get_component_name() const
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
bool lookup(const irep_idt &name, const symbolt *&symbol) const override
See documentation for namespace_baset::lookup().
irep_idt base_name
Base (non-scoped) name.
const std::string & id2string(const irep_idt &d)
const ssa_exprt & to_ssa_expr(const exprt &expr)
Cast a generic exprt to an ssa_exprt.
bool is_ssa_expr(const exprt &expr)
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
const member_exprt & to_member_expr(const exprt &expr)
Cast an exprt to a member_exprt.
const index_exprt & to_index_expr(const exprt &expr)
Cast an exprt to an index_exprt.