diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2017-10-20 21:03:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 21:03:04 -0700 |
commit | 6b5c27d7f634eb5985ce455989fcda36e1261929 (patch) | |
tree | b80be5a7c5099f4517b912850f1e91a72117d18e /src/theory/bv/theory_bv.cpp | |
parent | 7908fd9c901c056628f5f3846049d078d48bc396 (diff) |
Add rewriting rules for Eq/Ult with sign_extend and constants. (#1258)
Diffstat (limited to 'src/theory/bv/theory_bv.cpp')
-rw-r--r-- | src/theory/bv/theory_bv.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/theory/bv/theory_bv.cpp b/src/theory/bv/theory_bv.cpp index 116903ea6..e03cecdd9 100644 --- a/src/theory/bv/theory_bv.cpp +++ b/src/theory/bv/theory_bv.cpp @@ -798,6 +798,10 @@ Node TheoryBV::ppRewrite(TNode t) } else { res = t; } + } else if (RewriteRule<SignExtendEqConst>::applies(t)) { + res = RewriteRule<SignExtendEqConst>::run<false>(t); + } else if (RewriteRule<ZeroExtendEqConst>::applies(t)) { + res = RewriteRule<ZeroExtendEqConst>::run<false>(t); } |