Added skipping &iso when there is only one PO.

This commit is contained in:
Alan Mishchenko 2012-02-29 10:38:18 -08:00
parent d509c0c3a0
commit 1bf2b0351a
1 changed files with 5 additions and 0 deletions

View File

@ -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 );