10 #ifndef CPROVER_UTIL_REPLACE_SYMBOL_H 11 #define CPROVER_UTIL_REPLACE_SYMBOL_H 20 #include <unordered_map> 27 typedef std::unordered_map<irep_idt, exprt>
expr_mapt;
33 const exprt &new_expr);
66 expr_mapt::iterator
erase(expr_mapt::iterator it)
149 #endif // CPROVER_UTIL_REPLACE_SYMBOL_H The type of an expression, extends irept.
void insert(const class symbol_exprt &old_expr, const exprt &new_expr)
Sets old_expr to be replaced by new_expr if we don't already have a replacement; otherwise does nothi...
virtual bool replace_symbol_expr(symbol_exprt &dest) const
void insert(const symbol_exprt &old_expr, const exprt &new_expr)
std::size_t erase(const irep_idt &id)
void operator()(exprt &dest) const
virtual bool replace(exprt &dest) const
typet & type()
Return the type of the expression.
bool replace_symbol_expr(symbol_exprt &dest) const override
unchecked_replace_symbolt()
bool replace_symbol_expr(symbol_exprt &dest) const override
Replace expression or type symbols by an expression or type, respectively.
Replace symbols with constants while maintaining syntactically valid expressions. ...
bool have_to_replace(const exprt &dest) const
expr_mapt::iterator erase(expr_mapt::iterator it)
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
std::unordered_map< irep_idt, exprt > expr_mapt
virtual ~replace_symbolt()
bool replaces_symbol(const irep_idt &id) const
Base class for all expressions.
expr_mapt & get_expr_map()
set_require_lvalue_and_backupt(bool &require_lvalue, const bool value)
const expr_mapt & get_expr_map() const
Expression to hold a symbol (variable)
void operator()(typet &dest) const
bool replace(exprt &dest) const override
~set_require_lvalue_and_backupt()