Skip to content

Commit 7134344

Browse files
Add a simplify function for renamedt
This assumes the simplification does not break the renaming.
1 parent 114e721 commit 7134344

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/goto-symex/renaming_level.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Author: Romain Brenguier, [email protected]
1616
#include <unordered_set>
1717

1818
#include <util/irep.h>
19+
#include <util/simplify_expr.h>
1920
#include <util/ssa_expr.h>
2021

2122
/// Symex renaming level names.
@@ -81,6 +82,11 @@ class renamedt
8182
return value;
8283
}
8384

85+
void simplify(const namespacet &ns)
86+
{
87+
(void)::simplify(value, ns);
88+
}
89+
8490
private:
8591
underlyingt value;
8692

0 commit comments

Comments
 (0)