summaryrefslogtreecommitdiffstats
path: root/src/sat/cnf
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-09-18 08:10:18 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-09-18 08:10:18 -0700
commit3b838b953d36c6293af51ddae55ec061e994b4c7 (patch)
treeaf8d6fdfbcdb53a1e3d5ae403d9e7523b1cbba45 /src/sat/cnf
parentc30a0af71c219dcdd42322c411b805bb674d14b7 (diff)
downloadabc-3b838b953d36c6293af51ddae55ec061e994b4c7.tar.gz
abc-3b838b953d36c6293af51ddae55ec061e994b4c7.tar.bz2
abc-3b838b953d36c6293af51ddae55ec061e994b4c7.zip
Tuning SAT solver for QBF instances.
Diffstat (limited to 'src/sat/cnf')
-rw-r--r--src/sat/cnf/cnfUtil.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/sat/cnf/cnfUtil.c b/src/sat/cnf/cnfUtil.c
index ed38e735..7900b08c 100644
--- a/src/sat/cnf/cnfUtil.c
+++ b/src/sat/cnf/cnfUtil.c
@@ -399,7 +399,7 @@ finish:
SeeAlso []
***********************************************************************/
-int Cnf_DataSolveFromFile( char * pFileName, int nConfLimit, int fVerbose )
+int Cnf_DataSolveFromFile( char * pFileName, int nConfLimit, int nLearnedStart, int nLearnedDelta, int nLearnedPerce, int fVerbose, int ** ppModel )
{
abctime clk = Abc_Clock();
Cnf_Dat_t * pCnf = Cnf_DataReadFromFile( pFileName );
@@ -420,9 +420,15 @@ int Cnf_DataSolveFromFile( char * pFileName, int nConfLimit, int fVerbose )
printf( "The problem is trivially UNSAT.\n" );
return 1;
}
+ if ( nLearnedStart )
+ pSat->nLearntStart = pSat->nLearntMax = nLearnedStart;
+ if ( nLearnedDelta )
+ pSat->nLearntDelta = nLearnedDelta;
+ if ( nLearnedPerce )
+ pSat->nLearntRatio = nLearnedPerce;
+ if ( fVerbose )
+ pSat->fVerbose = fVerbose;
// solve the miter
-// if ( fVerbose )
-// pSat->verbosity = 1;
status = sat_solver_solve( pSat, NULL, NULL, (ABC_INT64_T)nConfLimit, 0, (ABC_INT64_T)0, (ABC_INT64_T)0 );
if ( status == l_Undef )
RetValue = -1;