summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2020-11-15 00:55:43 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2020-11-15 00:55:43 -0800
commit28ea3adedb507ff3766135d27faade20ca1483aa (patch)
treeed92d6a518c3d7064cbffa788e62263826b4cf0f
parent36e8567e778cdc4f0b2e3009b20083703e2b4f87 (diff)
downloadabc-28ea3adedb507ff3766135d27faade20ca1483aa.tar.gz
abc-28ea3adedb507ff3766135d27faade20ca1483aa.tar.bz2
abc-28ea3adedb507ff3766135d27faade20ca1483aa.zip
Improvements to the SAT sweeper (bug fix).
-rw-r--r--src/proof/cec/cecSatG2.c2
-rw-r--r--src/sat/glucose2/AbcGlucoseCmd2.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/proof/cec/cecSatG2.c b/src/proof/cec/cecSatG2.c
index ffb000ed..f400de0a 100644
--- a/src/proof/cec/cecSatG2.c
+++ b/src/proof/cec/cecSatG2.c
@@ -1273,7 +1273,7 @@ void Cec4_ManSatSolverRecycle( Cec4_Man_t * p )
int Cec4_ManSolveTwo( Cec4_Man_t * p, int iObj0, int iObj1, int fPhase, int * pfEasy, int fVerbose )
{
abctime clk;
- int nBTLimit = Vec_BitEntry(p->vFails, iObj0) || Vec_BitEntry(p->vFails, iObj1) ? p->pPars->nBTLimit/10 : p->pPars->nBTLimit;
+ int nBTLimit = Vec_BitEntry(p->vFails, iObj0) || Vec_BitEntry(p->vFails, iObj1) ? Abc_MaxInt(1, p->pPars->nBTLimit/10) : p->pPars->nBTLimit;
int nConfEnd, nConfBeg, status, iVar0, iVar1, Lits[2];
int UnsatConflicts[3] = {0};
if ( iObj1 < iObj0 )
diff --git a/src/sat/glucose2/AbcGlucoseCmd2.cpp b/src/sat/glucose2/AbcGlucoseCmd2.cpp
index 44288336..54bae608 100644
--- a/src/sat/glucose2/AbcGlucoseCmd2.cpp
+++ b/src/sat/glucose2/AbcGlucoseCmd2.cpp
@@ -57,7 +57,7 @@ static int Abc_CommandGlucose( Abc_Frame_t * pAbc, int argc, char ** argv );
void Glucose2_Init(Abc_Frame_t *pAbc)
{
- Cmd_CommandAdd( pAbc, "ABC9", "&glucose", Abc_CommandGlucose, 0 );
+ Cmd_CommandAdd( pAbc, "ABC9", "&glucose2", Abc_CommandGlucose, 0 );
}
void Glucose2_End( Abc_Frame_t * pAbc )