diff options
Diffstat (limited to 'src/theory/strings/skolem_cache.cpp')
-rw-r--r-- | src/theory/strings/skolem_cache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/theory/strings/skolem_cache.cpp b/src/theory/strings/skolem_cache.cpp index 4a78a11ff..2b0cc8a1b 100644 --- a/src/theory/strings/skolem_cache.cpp +++ b/src/theory/strings/skolem_cache.cpp @@ -14,6 +14,8 @@ #include "theory/strings/skolem_cache.h" +#include "theory/rewriter.h" + namespace CVC4 { namespace theory { namespace strings { @@ -22,6 +24,8 @@ SkolemCache::SkolemCache() {} Node SkolemCache::mkSkolemCached(Node a, Node b, SkolemId id, const char* c) { + a = a.isNull() ? a : Rewriter::rewrite(a); + b = b.isNull() ? b : Rewriter::rewrite(b); std::map<SkolemId, Node>::iterator it = d_skolemCache[a][b].find(id); if (it == d_skolemCache[a][b].end()) { |