git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1221
e59a4935-1847-0410-ae03-
e826735625c1
&& CONSTANTBV::BitVector_is_empty(tmp1))
{
// a = bq + r, where b!=0 implies r < b. q is quotient, r remainder. i.e. a/b = q.
- // It doesn't matter what q is when b=0, but r needs to be 0.
+ // It doesn't matter what q is when b=0, but r needs to be a.
if (k == BVMOD)
- OutputNode = _bm->CreateZeroConst(outputwidth);
+ OutputNode = children[0];
else
OutputNode = _bm->CreateOneConst(outputwidth);
// Expecting a division by zero. Just return one.