From: trevor_hansen Date: Fri, 30 Dec 2011 03:09:30 +0000 (+0000) Subject: Tiny Improvement. Remove an unnecessary check. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=282e1bd5124aef5652ad126d28e8c41c7495b6e5;p=francis%2Fstp.git Tiny Improvement. Remove an unnecessary check. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1454 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/AST/NodeFactory/SimplifyingNodeFactory.cpp b/src/AST/NodeFactory/SimplifyingNodeFactory.cpp index 8c03115..4223362 100644 --- a/src/AST/NodeFactory/SimplifyingNodeFactory.cpp +++ b/src/AST/NodeFactory/SimplifyingNodeFactory.cpp @@ -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;