CBMC
replace_expr.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module:
4 
5 Author: 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 
22 typedef std::unordered_map<exprt, exprt, irep_hash> replace_mapt;
23 
24 bool replace_expr(const exprt &what, const exprt &by, exprt &dest);
25 bool replace_expr(const replace_mapt &what, exprt &dest);
26 
27 #endif // CPROVER_UTIL_REPLACE_EXPR_H
Base class for all expressions.
Definition: expr.h:56
std::unordered_map< exprt, exprt, irep_hash > replace_mapt
Definition: replace_expr.h:22
bool replace_expr(const exprt &what, const exprt &by, exprt &dest)