diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-04 22:30:27 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-04 22:30:27 -0800 |
commit | a1d2ba0fcc4748e6b6181c74d684c5d06d8209f1 (patch) | |
tree | 41cb2ed2db32d0f5643b45c2dbc5e6d4a5a79f27 /src/sat/bmc | |
parent | 0ab8cd1191bfecefdbd62738d5b15af53979fd2a (diff) | |
download | abc-a1d2ba0fcc4748e6b6181c74d684c5d06d8209f1.tar.gz abc-a1d2ba0fcc4748e6b6181c74d684c5d06d8209f1.tar.bz2 abc-a1d2ba0fcc4748e6b6181c74d684c5d06d8209f1.zip |
Tuning for multi-ouptut solver.
Diffstat (limited to 'src/sat/bmc')
-rw-r--r-- | src/sat/bmc/bmc.h | 1 | ||||
-rw-r--r-- | src/sat/bmc/bmcBmc3.c | 2 | ||||
-rw-r--r-- | src/sat/bmc/bmcMulti.c | 32 |
3 files changed, 33 insertions, 2 deletions
diff --git a/src/sat/bmc/bmc.h b/src/sat/bmc/bmc.h index 5d45c562..74128047 100644 --- a/src/sat/bmc/bmc.h +++ b/src/sat/bmc/bmc.h @@ -100,6 +100,7 @@ struct Bmc_MulPar_t_ int TimeOutGlo; int TimeOutLoc; int TimeOutInc; + int TimePerOut; int fUseSyn; int fDumpFinal; int fVerbose; diff --git a/src/sat/bmc/bmcBmc3.c b/src/sat/bmc/bmcBmc3.c index 28b89f7b..72fbcc21 100644 --- a/src/sat/bmc/bmcBmc3.c +++ b/src/sat/bmc/bmcBmc3.c @@ -1649,7 +1649,7 @@ nTimeSat += Abc_Clock() - clk2; Vec_PtrWriteEntry( p->vCexes, k, Abc_CexDup(pCexNew, Saig_ManRegNum(pAig)) ); } Abc_CexFreeP( &pCexNew0 ); - Abc_CexFreeP( &pCexNew ); + Abc_CexFree( pCexNew ); } else { diff --git a/src/sat/bmc/bmcMulti.c b/src/sat/bmc/bmcMulti.c index 699835ca..1968b5a8 100644 --- a/src/sat/bmc/bmcMulti.c +++ b/src/sat/bmc/bmcMulti.c @@ -75,6 +75,34 @@ Vec_Int_t * Gia_ManProcessOutputs( Vec_Ptr_t * vCexesIn, Vec_Ptr_t * vCexesOut, /**Function************************************************************* + Synopsis [Counts the number of constant 0 POs.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +int Gia_ManCountConst0PosGia( Gia_Man_t * p ) +{ + Gia_Obj_t * pObj; + int i, Counter = 0; + Gia_ManForEachPo( p, pObj, i ) + Counter += (Gia_ObjFaninLit0p(p, pObj) == 0); + return Counter; +} +int Gia_ManCountConst0Pos( Aig_Man_t * p ) +{ + Aig_Obj_t * pObj; + int i, Counter = 0; + Saig_ManForEachPo( p, pObj, i ) + Counter += (Aig_ObjChild0(pObj) == Aig_ManConst0(p)); + return Counter; +} + +/**Function************************************************************* + Synopsis [] Description [] @@ -186,7 +214,7 @@ Vec_Ptr_t * Gia_ManMultiProveAig( Aig_Man_t * p, Bmc_MulPar_t * pPars ) pParsBmc->fNotVerbose = 1; pParsBmc->fSilent = !pPars->fVeryVerbose; pParsBmc->nTimeOut = TimeOutLoc; - pParsBmc->nTimeOutOne = 100; + pParsBmc->nTimeOutOne = pPars->TimePerOut; RetValue *= Saig_ManBmcScalable( p, pParsBmc ); if ( pPars->fVeryVerbose ) Abc_Print( 1, "Some outputs are SAT (%d out of %d) after %d frames.\n", @@ -225,6 +253,8 @@ Vec_Ptr_t * Gia_ManMultiProveAig( Aig_Man_t * p, Bmc_MulPar_t * pPars ) TimeOutLoc += TimeOutLoc * pPars->TimeOutInc / 100; } Vec_IntFree( vOutMap ); + if ( pPars->fVerbose ) + printf( "The number of const0 POs = %d.\n", Gia_ManCountConst0Pos(p) ); if ( pPars->fDumpFinal ) { char * pFileName = Extra_FileNameGenericAppend( p->pName, "_out.aig" ); |