From: trevor_hansen Date: Sat, 7 Jan 2012 15:26:38 +0000 (+0000) Subject: Fix to experimental code that's not turned on. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=2c6c8c813579b9b2b4932d4264e628599ee08190;p=francis%2Fstp.git Fix to experimental code that's not turned on. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1479 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/to-sat/BitBlaster.cpp b/src/to-sat/BitBlaster.cpp index 3a0dd78..fb46b60 100644 --- a/src/to-sat/BitBlaster.cpp +++ b/src/to-sat/BitBlaster.cpp @@ -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.