%pdra: fixed bugs

This commit is contained in:
Yen-Sheng Ho
2017-03-30 13:53:18 -07:00
parent ecf91190d6
commit 1cb140bb11
3 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -1545,7 +1545,9 @@ void Wla_ManRefine( Wla_Man_t * pWla )
if ( pWla->fNewAbs )
{
assert( pWla->pCex == NULL );
if ( pWla->pCex )
Abc_CexFree( pWla->pCex );
pWla->pCex = NULL;
Gia_ManStop( pWla->pGia ); pWla->pGia = NULL;
return;
}
+3 -3
View File
@@ -86,7 +86,7 @@ void * Wla_Bmc3Thread ( void * pArg )
{
int status;
int RetValue = -1;
int nFramesNoChangeLim = 3;
int nFramesNoChangeLim = 10;
Bmc3_ThData_t * pData = (Bmc3_ThData_t *)pArg;
Abc_Ntk_t * pAbcNtk = Abc_NtkFromAigPhase( pData->pAig );
Saig_ParBmc_t BmcPars, *pBmcPars = &BmcPars;
@@ -94,7 +94,7 @@ void * Wla_Bmc3Thread ( void * pArg )
pBmcPars->pFuncStop = Wla_CallBackToStop;
pBmcPars->RunId = pData->RunId;
if ( pData->pWla->nIters > 1 && pData->pWla->pPars->fShrinkAbs )
if ( pData->pWla->pPars->fShrinkAbs )
pBmcPars->nFramesMax = pData->pWla->iCexFrame + nFramesNoChangeLim;
RetValue = Abc_NtkDarBmc3( pAbcNtk, pBmcPars, 0 );
@@ -117,7 +117,7 @@ void * Wla_Bmc3Thread ( void * pArg )
if ( pData->RunId < g_nRunIds && pData->fVerbose )
Abc_Print( 1, "Bmc3 was cancelled. RunId=%d.\n", pData->RunId );
if ( pData->RunId == g_nRunIds )
if ( pData->pWla->nIters > 1 && pData->RunId == g_nRunIds )
{
RetValue = Wla_ManShrinkAbs( pData->pWla, pData->pWla->iCexFrame + nFramesNoChangeLim );
pData->pWla->iCexFrame += nFramesNoChangeLim;