summaryrefslogtreecommitdiffstats
path: root/src/sat/bmc/bmcMaj.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2017-10-20 07:49:01 +0900
committerAlan Mishchenko <alanmi@berkeley.edu>2017-10-20 07:49:01 +0900
commit15908929ca6c542cba14d0e3904718c13c20377e (patch)
treef1b0ae3b0ae3c48a3200ea5ecf9df68285402c84 /src/sat/bmc/bmcMaj.c
parent8f690fe8623fa1ce49274f0146b2d90d42e24749 (diff)
downloadabc-15908929ca6c542cba14d0e3904718c13c20377e.tar.gz
abc-15908929ca6c542cba14d0e3904718c13c20377e.tar.bz2
abc-15908929ca6c542cba14d0e3904718c13c20377e.zip
Adding random search in exact synthesis.
Diffstat (limited to 'src/sat/bmc/bmcMaj.c')
-rw-r--r--src/sat/bmc/bmcMaj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sat/bmc/bmcMaj.c b/src/sat/bmc/bmcMaj.c
index 59ebbae5..e33dbf7b 100644
--- a/src/sat/bmc/bmcMaj.c
+++ b/src/sat/bmc/bmcMaj.c
@@ -345,7 +345,7 @@ int Maj_ManAddCnf( Maj_Man_t * p, int iMint )
p->iVar += 4*p->nNodes;
return 1;
}
-void Maj_ManExactSynthesis( int nVars, int nNodes, int fUseConst, int fUseLine, int fVerbose )
+int Maj_ManExactSynthesis( int nVars, int nNodes, int fUseConst, int fUseLine, int fVerbose )
{
int i, iMint = 0;
abctime clkTotal = Abc_Clock();
@@ -379,6 +379,7 @@ void Maj_ManExactSynthesis( int nVars, int nNodes, int fUseConst, int fUseLine,
Maj_ManPrintSolution( p );
Maj_ManFree( p );
Abc_PrintTime( 1, "Total runtime", Abc_Clock() - clkTotal );
+ return iMint == -1;
}