summaryrefslogtreecommitdiffstats
path: root/src/sat/cnf
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-09-18 09:05:27 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-09-18 09:05:27 -0700
commitf06ca216ab1587467044d408baca4f01c5a236b5 (patch)
tree29e61fd8bad571bb014cbbdb8eafd8f8ff0d40cc /src/sat/cnf
parentfdf00d8044661738aac2eed776520f5511d32607 (diff)
downloadabc-f06ca216ab1587467044d408baca4f01c5a236b5.tar.gz
abc-f06ca216ab1587467044d408baca4f01c5a236b5.tar.bz2
abc-f06ca216ab1587467044d408baca4f01c5a236b5.zip
Tuning SAT solver for QBF instances.
Diffstat (limited to 'src/sat/cnf')
-rw-r--r--src/sat/cnf/cnfUtil.c2
1 files changed, 1 insertions, 1 deletions
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++ )