]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix to experimental code that's not turned on.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 7 Jan 2012 15:26:38 +0000 (15:26 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 7 Jan 2012 15:26:38 +0000 (15:26 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1479 e59a4935-1847-0410-ae03-e826735625c1

src/to-sat/BitBlaster.cpp

index 3a0dd7878f2a74a91fdc10cd564a9cd5059adb1f..fb46b60cb8270277883612caa484b76ff4e56830 100644 (file)
@@ -1877,7 +1877,8 @@ namespace BEEV
                       if (next[j].size() == 0)
                           break;
 
-                      buildAdditionNetworkResult((next[j]), (next[j + 1]), support, bitWidth == i+1, false);
+                      next[j+1].clear();
+                      buildAdditionNetworkResult((next[j]), (next[j + 1]), support, bitWidth == j+1, false);
                   }
 
               // Put the carries of the carries away until later.
@@ -1938,7 +1939,7 @@ namespace BEEV
                           break;
 
                       next[j+1].clear();
-                      buildAdditionNetworkResult(next[j], next[j + 1], support, i+1 ==bitWidth, false);
+                      buildAdditionNetworkResult(next[j], next[j + 1], support, j+1 ==bitWidth, false);
                   }
 
               // Put the carries of the carries away until later.