summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/bv_inverter.cpp
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2018-01-23 12:02:42 -0800
committerGitHub <noreply@github.com>2018-01-23 12:02:42 -0800
commit6a84e271abecb437bd74f9df1d796f4972136021 (patch)
treeeb3893f516912713714f006ec4fe8f57ef09bd56 /src/theory/quantifiers/bv_inverter.cpp
parent84dacb32c728c0cc44fc704dd02a5340f1c470fd (diff)
Fix MULT handling for CBQI BV. (#1531)
Diffstat (limited to 'src/theory/quantifiers/bv_inverter.cpp')
-rw-r--r--src/theory/quantifiers/bv_inverter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/quantifiers/bv_inverter.cpp b/src/theory/quantifiers/bv_inverter.cpp
index cf16efbfa..975016d34 100644
--- a/src/theory/quantifiers/bv_inverter.cpp
+++ b/src/theory/quantifiers/bv_inverter.cpp
@@ -2897,7 +2897,8 @@ Node BvInverter::solveBvLit(Node sv,
{
t = nm->mkNode(BITVECTOR_XOR, t, s);
}
- else if (k == BITVECTOR_MULT && s.isConst() && bv::utils::getBit(s, 0))
+ else if (litk == EQUAL && k == BITVECTOR_MULT
+ && s.isConst() && bv::utils::getBit(s, 0))
{
unsigned w = bv::utils::getSize(s);
Integer s_val = s.getConst<BitVector>().toInteger();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback