diff options
author | lianah <lianahady@gmail.com> | 2014-06-14 23:18:40 -0400 |
---|---|---|
committer | lianah <lianahady@gmail.com> | 2014-06-14 23:18:40 -0400 |
commit | 3452e2bd9344ec503329720f41e747510cebade5 (patch) | |
tree | 6dd4eb71f9452a5b7c961eaabbcb2df6acdebc29 /src/theory | |
parent | 782bfe1b122a34f72c0533d9f189045379eb1d58 (diff) |
added rewriting to bv-pow2 pass
Diffstat (limited to 'src/theory')
-rw-r--r-- | src/theory/bv/bvintropow2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/theory/bv/bvintropow2.cpp b/src/theory/bv/bvintropow2.cpp index bd092ed12..d7f5d6fde 100644 --- a/src/theory/bv/bvintropow2.cpp +++ b/src/theory/bv/bvintropow2.cpp @@ -12,6 +12,10 @@ void BVIntroducePow2::pow2Rewrite(std::vector<Node>& assertionsToPreprocess){ for(size_t i = 0, N= assertionsToPreprocess.size(); i < N; ++i){ Node curr = assertionsToPreprocess[i]; Node next = pow2Rewrite(curr, cache); + if(next != curr){ + Node tmp = Rewriter::rewrite(next); + next = tmp; + } assertionsToPreprocess[i] = next; } } |