CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
replace_expr.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module:
4
5Author: Daniel Kroening, kroening@kroening.com
6
7\*******************************************************************/
8
9
10#ifndef CPROVER_UTIL_REPLACE_EXPR_H
11#define CPROVER_UTIL_REPLACE_EXPR_H
12
13//
14// true: did nothing
15// false: replaced something
16//
17
18#include "expr.h"
19
20#include <unordered_map>
21
22typedef std::unordered_map<exprt, exprt, irep_hash> replace_mapt;
23
24bool replace_expr(const exprt &what, const exprt &by, exprt &dest);
25bool replace_expr(const replace_mapt &what, exprt &dest);
26
27#endif // CPROVER_UTIL_REPLACE_EXPR_H
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
Base class for all expressions.
Definition expr.h:56
std::unordered_map< exprt, exprt, irep_hash > replace_mapt
bool replace_expr(const exprt &what, const exprt &by, exprt &dest)