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/base/abci/abc.c | |
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/base/abci/abc.c')
-rw-r--r-- | src/base/abci/abc.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 5f680144..637d0cd4 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -881,6 +881,10 @@ void Abc_Init( Abc_Frame_t * pAbc ) void For_ManFileExperiment(); // For_ManFileExperiment(); } + { + void Bdc_SpfdDecomposeTest(); + Bdc_SpfdDecomposeTest(); + } /* { int i1, i2, i3, i4, i5, i6, N, Counter = 0; @@ -28437,6 +28441,7 @@ int Abc_CommandAbc9AbsPba( Abc_Frame_t * pAbc, int argc, char ** argv ) int nFramesMax = (pAbc->nFrames >= 0) ? pAbc->nFrames : 20; int nConfMax = 100000; int fVerbose = 0; + int iFrame = -1; int c; Extra_UtilGetoptReset(); @@ -28490,8 +28495,10 @@ int Abc_CommandAbc9AbsPba( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "The flop map is not given.\n" ); return 0; } - Gia_ManPbaPerform( pAbc->pGia, nFramesMax, nConfMax, fVerbose ); -// Abc_FrameReplaceCex( pAbc, &pAbc->pGia->pCexSeq ); + Gia_ManPbaPerform( pAbc->pGia, nFramesMax, nConfMax, fVerbose, &iFrame ); + if ( iFrame >= 0 ) + pAbc->nFrames = iFrame; + Abc_FrameReplaceCex( pAbc, &pAbc->pGia->pCexSeq ); return 0; usage: @@ -28591,7 +28598,8 @@ int Abc_CommandAbc9AbsCba( Abc_Frame_t * pAbc, int argc, char ** argv ) return 0; } pAbc->Status = Gia_ManCbaPerform( pAbc->pGia, pPars ); - pAbc->nFrames = pPars->iFrame; + if ( pPars->nStart == 0 ) + pAbc->nFrames = pPars->iFrame; Abc_FrameReplaceCex( pAbc, &pAbc->pGia->pCexSeq ); return 0; |