diff options
author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2016-11-29 10:22:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 10:22:44 +0000 |
commit | 2ce7a071a04b09dd30d3427a30c6161154d9426b (patch) | |
tree | 28b3e4c59f8342d9db2786d8a7a7f0bcc6f4daa6 /lib | |
parent | f27cf86466d75c71a302abe5e0a3ffcad1670373 (diff) | |
parent | 08d4716e7882be14d3b2d466d0fa8a58d087523d (diff) | |
download | klee-2ce7a071a04b09dd30d3427a30c6161154d9426b.tar.gz |
Merge pull request #516 from delcypher/fix_compare
Fix Expr::compare
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Expr/Expr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index 182093b9..15f52184 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -83,6 +83,13 @@ ref<Expr> Expr::createTempRead(const Array *array, Expr::Width w) { } } +int Expr::compare(const Expr &b) const { + static ExprEquivSet equivs; + int r = compare(b, equivs); + equivs.clear(); + return r; +} + // returns 0 if b is structurally equal to *this int Expr::compare(const Expr &b, ExprEquivSet &equivs) const { if (this == &b) return 0; |