Adding check to &sim3 for the case when the AIG is combinational.

This commit is contained in:
Alan Mishchenko 2013-09-05 12:57:55 -07:00
parent db34dbeb80
commit e651e22788
1 changed files with 5 additions and 1 deletions

View File

@ -26137,8 +26137,12 @@ int Abc_CommandAbc9Sim3( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Abc_CommandAbc9Sim3(): There is no AIG.\n" );
return 1;
}
if ( Gia_ManRegNum(pAbc->pGia) == 0 )
{
Abc_Print( -1, "Abc_CommandAbc9Sim3(): This command works only for sequential AIGs.\n" );
return 0;
}
pAbc->Status = Ssw_RarSimulateGia( pAbc->pGia, pPars );
// pAbc->nFrames = pAbc->pGia->pCexSeq->iFrame;
Abc_FrameReplaceCex( pAbc, &pAbc->pGia->pCexSeq );
return 0;