summaryrefslogtreecommitdiffstats
path: root/src/opt/sfm/sfmSat.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-05-31 02:01:36 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-05-31 02:01:36 -0700
commit90a88462c4140aad870ad7ab4c23e953131afdfd (patch)
tree7dd139ab1cdf14f31ab7b080138baaac56ba29d3 /src/opt/sfm/sfmSat.c
parentba309121d7f1dbc9071a552d459bcaa6be7da31b (diff)
downloadabc-90a88462c4140aad870ad7ab4c23e953131afdfd.tar.gz
abc-90a88462c4140aad870ad7ab4c23e953131afdfd.tar.bz2
abc-90a88462c4140aad870ad7ab4c23e953131afdfd.zip
New MFS package.
Diffstat (limited to 'src/opt/sfm/sfmSat.c')
-rw-r--r--src/opt/sfm/sfmSat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/opt/sfm/sfmSat.c b/src/opt/sfm/sfmSat.c
index 7dc3e565..7e1635dd 100644
--- a/src/opt/sfm/sfmSat.c
+++ b/src/opt/sfm/sfmSat.c
@@ -51,7 +51,7 @@ static word s_Truths6[6] = {
SeeAlso []
***********************************************************************/
-void Sfm_NtkWindowToSolver( Sfm_Ntk_t * p )
+int Sfm_NtkWindowToSolver( Sfm_Ntk_t * p )
{
// p->vOrder contains all variables in the window in a good order
// p->vDivs is a subset of nodes in p->vOrder used as divisor candidates
@@ -137,12 +137,14 @@ void Sfm_NtkWindowToSolver( Sfm_Ntk_t * p )
}
// make OR clause for the last nRoots variables
RetValue = sat_solver_addclause( p->pSat, Vec_IntArray(p->vLits), Vec_IntArray(p->vLits) + Vec_IntSize(p->vLits) );
- assert( RetValue );
+ if ( RetValue == 0 )
+ return 0;
}
// finalize
RetValue = sat_solver_simplify( p->pSat );
assert( RetValue );
p->timeCnf += Abc_Clock() - clk;
+ return 1;
}
/**Function*************************************************************