diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-29 10:38:18 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-29 10:38:18 -0800 |
commit | 1bf2b0351abcc6f96854eb50976ac010ca7f00f1 (patch) | |
tree | ed5a33958ec950d534e1c7b71bdc8462143aa5fc | |
parent | d509c0c3a0b934315221f713a18b45fec47cf08c (diff) | |
download | abc-1bf2b0351abcc6f96854eb50976ac010ca7f00f1.tar.gz abc-1bf2b0351abcc6f96854eb50976ac010ca7f00f1.tar.bz2 abc-1bf2b0351abcc6f96854eb50976ac010ca7f00f1.zip |
Added skipping &iso when there is only one PO.
-rw-r--r-- | src/base/abci/abc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index bd2f5bfe..0eabe4c7 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -27960,6 +27960,11 @@ int Abc_CommandAbc9Iso( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9Iso(): There is no AIG.\n" ); return 1; } + if ( Gia_ManPoNum(pAbc->pGia) == 1 ) + { + Abc_Print( -1, "Abc_CommandAbc9Iso(): The AIG has only one PO. Isomorphism detection is not performed.\n" ); + return 1; + } pAig = Gia_ManIsoReduce( pAbc->pGia, &vPosEquivs, fVerbose ); // update the internal storage of PO equivalences Abc_FrameReplacePoEquivs( pAbc, &vPosEquivs ); |