From a7834933a7dbe4862f46af164314021bad95e2e0 Mon Sep 17 00:00:00 2001 From: trevor_hansen Date: Sun, 20 Mar 2011 04:05:24 +0000 Subject: [PATCH] Fix. x bvmod 0, now evaluates to x, not to 0. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1221 e59a4935-1847-0410-ae03-e826735625c1 --- src/simplifier/consteval.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simplifier/consteval.cpp b/src/simplifier/consteval.cpp index f8c4d5e..ee4cc5f 100644 --- a/src/simplifier/consteval.cpp +++ b/src/simplifier/consteval.cpp @@ -462,9 +462,9 @@ namespace BEEV && 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. -- 2.47.3