]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Bugfix. Terrible! Another fix. STP r1149 to here will sometimes return the wrong...
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 26 Feb 2011 03:56:39 +0000 (03:56 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 26 Feb 2011 03:56:39 +0000 (03:56 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1170 e59a4935-1847-0410-ae03-e826735625c1

src/simplifier/FindPureLiterals.h

index 61fd505321b598bb49d9dd2cab92a5ab447d2913..d5c19cb69e6ee7b2532798e5d14f5655f2e929c0 100644 (file)
@@ -94,11 +94,10 @@ public:
     if (it != nodeToPolarity.end())
       {
         int lookupPolarity = it->second;
-        if ((polarity & lookupPolarity) !=0 )
+        if ((polarity | lookupPolarity) == lookupPolarity )
           return; // already traversed.
 
-        lookupPolarity |= polarity;
-        it->second = lookupPolarity;
+        it->second |= polarity;
       }
     else
       {