|
CBMC
|
Similar interface to union-find for expressions, with a function for replacing sub-expressions by their result for find. More...
#include <union_find_replace.h>
Collaboration diagram for union_find_replacet:Public Member Functions | |
| bool | replace_expr (exprt &expr) const |
Replace subexpressions of expr by the representative element of the set they belong to. More... | |
| exprt | find (exprt expr) const |
| exprt | make_union (const exprt &a, const exprt &b) |
Merge the set containing a and the set containing b. More... | |
| std::vector< std::pair< exprt, exprt > > | to_vector () const |
Private Attributes | |
| replace_mapt | map |
Similar interface to union-find for expressions, with a function for replacing sub-expressions by their result for find.
Definition at line 16 of file union_find_replace.h.
| expr | an expression |
expr belongs to Definition at line 38 of file union_find_replace.cpp.
Merge the set containing a and the set containing b.
| a | an expression |
| b | an expression |
a and b Definition at line 15 of file union_find_replace.cpp.
| bool union_find_replacet::replace_expr | ( | exprt & | expr | ) | const |
Replace subexpressions of expr by the representative element of the set they belong to.
| expr | an expression, modified in place |
Definition at line 28 of file union_find_replace.cpp.
Definition at line 46 of file union_find_replace.cpp.
|
private |
Definition at line 28 of file union_find_replace.h.