diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-09-18 09:05:27 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-09-18 09:05:27 -0700 |
commit | f06ca216ab1587467044d408baca4f01c5a236b5 (patch) | |
tree | 29e61fd8bad571bb014cbbdb8eafd8f8ff0d40cc | |
parent | fdf00d8044661738aac2eed776520f5511d32607 (diff) | |
download | abc-f06ca216ab1587467044d408baca4f01c5a236b5.tar.gz abc-f06ca216ab1587467044d408baca4f01c5a236b5.tar.bz2 abc-f06ca216ab1587467044d408baca4f01c5a236b5.zip |
Tuning SAT solver for QBF instances.
-rw-r--r-- | src/base/abci/abc.c | 2 | ||||
-rw-r--r-- | src/sat/cnf/cnfUtil.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 0fb139d3..e5b6e49d 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -21839,7 +21839,7 @@ int Abc_CommandDSat( Abc_Frame_t * pAbc, int argc, char ** argv ) return 0; } fclose( pFile ); - Cnf_DataSolveFromFile( pFileName, nConfLimit, nLearnedStart, nLearnedDelta, nLearnedPerce, fVerbose, &pModel, Abc_NtkPiNum(pNtk) ); + Cnf_DataSolveFromFile( pFileName, nConfLimit, nLearnedStart, nLearnedDelta, nLearnedPerce, fVerbose, &pModel, pNtk ? Abc_NtkPiNum(pNtk) : 0 ); if ( pModel && pNtk ) { int * pSimInfo = Abc_NtkVerifySimulatePattern( pNtk, pModel ); diff --git a/src/sat/cnf/cnfUtil.c b/src/sat/cnf/cnfUtil.c index a5037718..73bcd8a1 100644 --- a/src/sat/cnf/cnfUtil.c +++ b/src/sat/cnf/cnfUtil.c @@ -449,7 +449,7 @@ int Cnf_DataSolveFromFile( char * pFileName, int nConfLimit, int nLearnedStart, //Abc_Print( -1, "\n" ); Abc_PrintTime( 1, "Time", Abc_Clock() - clk ); // derive SAT assignment - if ( RetValue == 0 ) + if ( RetValue == 0 && nPis > 0 ) { *ppModel = ABC_ALLOC( int, nPis ); for ( i = 0; i < nPis; i++ ) |