summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-09-05 12:57:55 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-09-05 12:57:55 -0700
commite651e227886452e088fd8c4b87f8cf48d189f7fb (patch)
tree24d397ab586cfa0c271f28f99acb7ef3f7e9e1a1 /src/base
parentdb34dbeb80005ca85ec860d4cbbe2bb1223a0849 (diff)
downloadabc-e651e227886452e088fd8c4b87f8cf48d189f7fb.tar.gz
abc-e651e227886452e088fd8c4b87f8cf48d189f7fb.tar.bz2
abc-e651e227886452e088fd8c4b87f8cf48d189f7fb.zip
Adding check to &sim3 for the case when the AIG is combinational.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c6
1 files changed, 5 insertions, 1 deletions
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;