summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2011-02-28 21:55:40 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2011-02-28 21:55:40 -0800
commitde984d7f904af9cd90ea03986fe1312e8df2709f (patch)
tree2b7ec0a69ff33a80027f8e4c86de27b401323620 /src/base
parent6119f7068aea9f844ebe9b9dc6126d2883c4fecb (diff)
downloadabc-de984d7f904af9cd90ea03986fe1312e8df2709f.tar.gz
abc-de984d7f904af9cd90ea03986fe1312e8df2709f.tar.bz2
abc-de984d7f904af9cd90ea03986fe1312e8df2709f.zip
Fixing corner-case bugs in &srm -s.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index c055c3ad..6c470062 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -24658,6 +24658,11 @@ int Abc_CommandAbc9Equiv2( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Abc_CommandAbc9Equiv2(): There is no AIG.\n" );
return 1;
}
+ if ( Gia_ManRegNum(pAbc->pGia) == 0 )
+ {
+ Abc_Print( 0, "Abc_CommandAbc9Equiv2(): There is no flops. Nothing is done.\n" );
+ return 0;
+ }
if ( fUseCex )
{
if ( pAbc->pCex->nPis != Gia_ManPiNum(pAbc->pGia) )