diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-08-17 20:49:41 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-08-17 20:49:41 +0700 |
commit | 48ae2c448f66b9d4462472a5bc62924730612535 (patch) | |
tree | f1fb05fe3be74d576ca4cda25ce5a8f4a6057c78 /src/aig/gia | |
parent | 23671d65a93c07fcb87cb165541d442581f5ce63 (diff) | |
download | abc-48ae2c448f66b9d4462472a5bc62924730612535.tar.gz abc-48ae2c448f66b9d4462472a5bc62924730612535.tar.bz2 abc-48ae2c448f66b9d4462472a5bc62924730612535.zip |
Bug fix in CBA and PBA.
Diffstat (limited to 'src/aig/gia')
-rw-r--r-- | src/aig/gia/gia.h | 2 | ||||
-rw-r--r-- | src/aig/gia/giaAbs.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/aig/gia/gia.h b/src/aig/gia/gia.h index 3beed711..2f07e0e9 100644 --- a/src/aig/gia/gia.h +++ b/src/aig/gia/gia.h @@ -600,7 +600,7 @@ static inline int Gia_ObjLutFanin( Gia_Man_t * p, int Id, int i ) { re extern void Gia_ManCexAbstractionStart( Gia_Man_t * p, Gia_ParAbs_t * pPars ); Gia_Man_t * Gia_ManCexAbstractionDerive( Gia_Man_t * pGia ); int Gia_ManCexAbstractionRefine( Gia_Man_t * pGia, Abc_Cex_t * pCex, int fTryFour, int fSensePath, int fVerbose ); -extern int Gia_ManPbaPerform( Gia_Man_t * pGia, int nFrames, int nConfLimit, int fVerbose ); +extern int Gia_ManPbaPerform( Gia_Man_t * pGia, int nFrames, int nConfLimit, int fVerbose, int * piFrame ); extern int Gia_ManCbaPerform( Gia_Man_t * pGia, void * pPars ); /*=== giaAiger.c ===========================================================*/ extern int Gia_FileSize( char * pFileName ); diff --git a/src/aig/gia/giaAbs.c b/src/aig/gia/giaAbs.c index 673d45e8..e08d63fc 100644 --- a/src/aig/gia/giaAbs.c +++ b/src/aig/gia/giaAbs.c @@ -268,8 +268,9 @@ void Gia_ManFlopsAddToClasses( Vec_Int_t * vFlopClasses, Vec_Int_t * vAbsFfsToAd SeeAlso [] ***********************************************************************/ -int Gia_ManCbaPerform( Gia_Man_t * pGia, void * p ) +int Gia_ManCbaPerform( Gia_Man_t * pGia, void * pPars ) { + Saig_ParBmc_t * p = (Saig_ParBmc_t *)pPars; Gia_Man_t * pAbs; Aig_Man_t * pAig, * pOrig; Vec_Int_t * vAbsFfsToAdd; @@ -315,7 +316,7 @@ int Gia_ManCbaPerform( Gia_Man_t * pGia, void * p ) SeeAlso [] ***********************************************************************/ -int Gia_ManPbaPerform( Gia_Man_t * pGia, int nFrames, int nConfLimit, int fVerbose ) +int Gia_ManPbaPerform( Gia_Man_t * pGia, int nFrames, int nConfLimit, int fVerbose, int * piFrame ) { Gia_Man_t * pAbs; Aig_Man_t * pAig, * pOrig; @@ -331,7 +332,7 @@ int Gia_ManPbaPerform( Gia_Man_t * pGia, int nFrames, int nConfLimit, int fVerbo // refine abstraction using PBA pAig = Gia_ManToAigSimple( pAbs ); Gia_ManStop( pAbs ); - vFlopsNew = Saig_ManPbaDerive( pAig, Gia_ManPiNum(pGia), nFrames, nConfLimit, fVerbose ); + vFlopsNew = Saig_ManPbaDerive( pAig, Gia_ManPiNum(pGia), nFrames, nConfLimit, fVerbose, piFrame ); // derive new classes if ( pAig->pSeqModel == NULL ) { |