]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
lots of changes aimed at CryptoMiniSAT2
authorvijay_ganesh <vijay_ganesh@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 5 Dec 2009 03:12:34 +0000 (03:12 +0000)
committervijay_ganesh <vijay_ganesh@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 5 Dec 2009 03:12:34 +0000 (03:12 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@455 e59a4935-1847-0410-ae03-e826735625c1

src/sat/cryptominisat/Solver.cpp
src/sat/cryptominisat2/Solver.cpp
src/to-sat/BitBlast.cpp
src/to-sat/CallSAT.cpp
src/to-sat/ToSAT.cpp

index 01a4d8a586b3e20b344fbc0ec8ab18523b353cfb..b5c3af596b44500240ee68ad52518c6a113cb53c 100644 (file)
@@ -17,6 +17,7 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FO
 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
 OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 **************************************************************************************************/
+
 #include "Solver.h"
 #include "Sort.h"
 #include <cmath>
index 46f7062d87229914ebaa0cfe7732c307b2f953b6..0cb5424b84b8e08e3995af9de6db0a684827fd58 100644 (file)
@@ -37,7 +37,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
 #include "Conglomerate.h"
 #include "XorFinder.h"
 
-#define DEBUG_LIB
+//#define DEBUG_LIB
 
 #ifdef DEBUG_LIB
 #include <sstream>
index a762e07001e481f16ee5f4852451eb4a2b142651..07d22ddb83a6ce291a270a623c9fdf59ebd5443e 100644 (file)
@@ -6,7 +6,6 @@
  *
  * LICENSE: Please view LICENSE file in the home dir of this Program
  ********************************************************************/
-
 #include <cmath>
 #include <cassert>
 #include "../AST/AST.h"
@@ -968,7 +967,7 @@ namespace BEEV
         bit_comparisons.push_back(prev_eq_bit);
       }
     ASTNode output =
-      _bm->CreateSimpForm(OR, bit_comparisons);
+      _bm->CreateSimpForm(XOR, bit_comparisons);
 
     return output;
   }
index a3e7317bb6d1e9d5d694bdb7d865a1007adfc982..8a134a978af97066dbc08686304ee1645ee24fe7 100644 (file)
@@ -6,7 +6,6 @@
  *
  * LICENSE: Please view LICENSE file in the home dir of this Program
  ********************************************************************/
-
 #include "ToSAT.h"
 #define MAX_BUCKET_LIMIT 3
 
index de26935ba3f23051d59fec82b53795f618c11432..c6d309af86158829eec1b7461335cc0893d60795 100644 (file)
@@ -134,6 +134,8 @@ namespace BEEV
 
 #if defined CRYPTOMINISAT2
              newS.set_gaussian_decision_until(100);
+             newS.performReplace = false;
+             newS.xorFinder = false;
 #endif
               newS.solve();
             bm->GetRunTimes()->stop(RunTimes::Solving);
@@ -159,7 +161,7 @@ namespace BEEV
 
     bm->GetRunTimes()->stop(RunTimes::SendingToSAT);
     bm->GetRunTimes()->start(RunTimes::Solving);
-
+    
     newS.solve();
     bm->GetRunTimes()->stop(RunTimes::Solving);
     bm->PrintStats(newS);