diff options
author | Clark Barrett <barrett@cs.nyu.edu> | 2012-06-11 16:14:01 +0000 |
---|---|---|
committer | Clark Barrett <barrett@cs.nyu.edu> | 2012-06-11 16:14:01 +0000 |
commit | 42794501e81c44dce5c2f7687af288af030ef63e (patch) | |
tree | 2f0c8b7f0ad93fe64ad877b46f1c449320de8513 /src/theory/rewriter.cpp | |
parent | 7fd544c108f9fc5a6b4842593597e8fa4a8d11d7 (diff) |
Fix for array bug with decision heuristic
Also fixed one bv rewrite failure (more to come)
Diffstat (limited to 'src/theory/rewriter.cpp')
-rw-r--r-- | src/theory/rewriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theory/rewriter.cpp b/src/theory/rewriter.cpp index 18274e060..7d5f541c0 100644 --- a/src/theory/rewriter.cpp +++ b/src/theory/rewriter.cpp @@ -173,6 +173,8 @@ Node Rewriter::rewriteTo(theory::TheoryId theoryId, Node node) { rewriteStackTop.node = response.node; break; } + // Check for trivial rewrite loop of size 2 + Assert(Rewriter::callPostRewrite((TheoryId) rewriteStackTop.theoryId, response.node).node != rewriteStackTop.node); rewriteStackTop.node = response.node; } // We're done with the post rewrite, so we add to the cache |