]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix. didn't work properly for 1 bit division.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 25 Apr 2012 13:49:31 +0000 (13:49 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 25 Apr 2012 13:49:31 +0000 (13:49 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1656 e59a4935-1847-0410-ae03-e826735625c1

src/simplifier/simplifier.cpp

index edcefaebd6316f9cf09db66ad5c4407d2c852671..e6bd13762c4b6b0522690d807d89bcdb70a02788 100644 (file)
@@ -2775,9 +2775,9 @@ namespace BEEV
             break;
           }
         unsigned int nlz=  numberOfLeadingZeroes(inputterm[0]);
+        nlz = std::min(inputValueWidth-1,nlz);
         if (nlz > 0)
           {
-            nlz = std::min(inputValueWidth-1,nlz);
             int rest = inputValueWidth-nlz;
             ASTNode low = _bm->CreateBVConst(32,rest);
             ASTNode high =_bm->CreateBVConst(32,inputValueWidth-1);