]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fixing verbosity-related problems in CryptoMiniSat2
authormsoos <msoos@e59a4935-1847-0410-ae03-e826735625c1>
Mon, 26 Jul 2010 12:17:44 +0000 (12:17 +0000)
committermsoos <msoos@e59a4935-1847-0410-ae03-e826735625c1>
Mon, 26 Jul 2010 12:17:44 +0000 (12:17 +0000)
Reported by Trevor Hansen

git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@952 e59a4935-1847-0410-ae03-e826735625c1

src/sat/cryptominisat2/Subsumer.cpp

index 1b056c0f93c0589dbc18e3dbf01493675df660b3..149e57971ad7f578e872e7e66bf18ef50caf6dad 100644 (file)
@@ -619,7 +619,6 @@ void Subsumer::almost_all_database()
     assert(solver.ok);
     solver.ok = (solver.propagate().isNULL());
     if (!solver.ok) {
-        std::cout << "c (contradiction during subsumption)" << std::endl;
         return;
     }
     solver.clauseCleaner->cleanClausesBewareNULL(clauses, ClauseCleaner::simpClauses, *this);
@@ -653,7 +652,6 @@ void Subsumer::almost_all_database()
         if (!solver.ok) return;
         solver.ok = (solver.propagate().isNULL());
         if (!solver.ok) {
-            printf("c (contradiction during subsumption)\n");
             unregisterIteration(s1);
             return;
         }
@@ -740,7 +738,6 @@ void Subsumer::smaller_database()
         if (!solver.ok) return;
         solver.ok = (solver.propagate().isNULL());
         if (!solver.ok){
-            printf("c (contradiction during subsumption)\n");
             unregisterIteration(s1);
             unregisterIteration(s0);
             return; 
@@ -1090,6 +1087,7 @@ const bool Subsumer::subsWNonExistBins(const Lit& lit, OnlyNonLearntBins* onlyNo
         }
     } else {
         subsume0BIN(~lit, toVisitAll);
+        if (!solver.ok) goto end;
     }
 
     end:
@@ -1252,7 +1250,6 @@ const bool Subsumer::simplifyBySubsumption(const bool alsoLearnt)
         assert(solver.ok);
         solver.ok = (solver.propagate().isNULL());
         if (!solver.ok) {
-            printf("c (contradiction during subsumption)\n");
             return false;
         }
         solver.clauseCleaner->cleanClausesBewareNULL(clauses, ClauseCleaner::simpClauses, *this);
@@ -1298,7 +1295,6 @@ const bool Subsumer::simplifyBySubsumption(const bool alsoLearnt)
             for (uint32_t i = 0; i < order.size() && numMaxElim > 0; i++, numMaxElim--) {
                 if (maybeEliminate(order[i])) {
                     if (!solver.ok) {
-                        printf("c (contradiction during subsumption)\n");
                         return false;
                     }
                     vars_elimed++;
@@ -1320,7 +1316,6 @@ const bool Subsumer::simplifyBySubsumption(const bool alsoLearnt)
     if (!solver.ok) return false;
     solver.ok = (solver.propagate().isNULL());
     if (!solver.ok) {
-        printf("c (contradiction during subsumption)\n");
         return false;
     }