]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Tiny Improvement. Remove an unnecessary check.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Fri, 30 Dec 2011 03:09:30 +0000 (03:09 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Fri, 30 Dec 2011 03:09:30 +0000 (03:09 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1454 e59a4935-1847-0410-ae03-e826735625c1

src/AST/NodeFactory/SimplifyingNodeFactory.cpp

index 8c03115d35133c25c6aeadcd2adc281703e164ee..42233624d1b48f2ea0c73f69cc45249cb44a1a30 100644 (file)
@@ -960,7 +960,7 @@ ASTNode SimplifyingNodeFactory::CreateTerm(Kind kind, unsigned int width,
             result = bm.CreateZeroConst(width);
           else if (children[1].isConstant())
             result = BEEV::Simplifier::convertKnownShiftAmount(kind, children, bm, &hashing);
-          else if(children[0].isConstant() && children[0] == bm.CreateOneConst(width) && width > 1)
+          else if(children[0].isConstant() && children[0] == bm.CreateOneConst(width))
             result = NodeFactory::CreateTerm(BEEV::ITE,width, NodeFactory::CreateNode(BEEV::EQ, children[1], bm.CreateZeroConst(width)), children[0], bm.CreateZeroConst(width));
         }
        break;