]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Bugfix. If nodes are created with just the hashing node factory (not with the simplif...
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 26 Jul 2011 05:22:26 +0000 (05:22 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 26 Jul 2011 05:22:26 +0000 (05:22 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1376 e59a4935-1847-0410-ae03-e826735625c1

src/AST/NodeFactory/SimplifyingNodeFactory.cpp

index e711b6bade2afc60a3c54e553f4ba9c12e39e222..ea70aa297947109fa5830cf51c53cc64e7505135 100644 (file)
@@ -497,7 +497,7 @@ ASTNode SimplifyingNodeFactory::CreateSimpleEQ(const ASTVec& children)
         }
 
 
-        if (k1 == BEEV::BVCONST && k2 == BEEV::BVSX)
+        if (k1 == BEEV::BVCONST && k2 == BEEV::BVSX && (in2[0].GetValueWidth() != width))
           {
               // Each of the bits in the extended part, and one into the un-extended part must be the same.
               bool foundZero=false, foundOne=false;