From e651e227886452e088fd8c4b87f8cf48d189f7fb Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 5 Sep 2013 12:57:55 -0700 Subject: Adding check to &sim3 for the case when the AIG is combinational. --- src/base/abci/abc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/base') diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 931c2cfa..4c986d9c 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -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; -- cgit v1.2.3