diff options
author | lianah <lianahady@gmail.com> | 2013-12-02 19:41:56 -0500 |
---|---|---|
committer | lianah <lianahady@gmail.com> | 2013-12-02 19:41:56 -0500 |
commit | fe31c46e11df64da6a9c4741525e09952ba016cf (patch) | |
tree | 2c249e30246b2d2802a28d969d5e2969d3bf3f3e | |
parent | 58a9d81a0f6da15ee2481dd1451a182341ff2a5b (diff) |
fixed rewriter bug where postRewrite was not caching properly
-rw-r--r-- | src/theory/rewriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/rewriter.cpp b/src/theory/rewriter.cpp index 979d5d88d..f9add4fac 100644 --- a/src/theory/rewriter.cpp +++ b/src/theory/rewriter.cpp @@ -139,7 +139,8 @@ Node Rewriter::rewriteTo(theory::TheoryId theoryId, Node node) { rewriteStackTop.theoryId = theoryOf(cached); } } - + + rewriteStackTop.original =rewriteStackTop.node; // Now it's time to rewrite the children, check if this has already been done Node cached = Rewriter::getPostRewriteCache((TheoryId) rewriteStackTop.theoryId, rewriteStackTop.node); // If not, go through the children |