Commit de984d7f by Alan Mishchenko

Fixing corner-case bugs in &srm -s.

parent 6119f706
...@@ -954,7 +954,8 @@ Gia_Man_t * Gia_ManSpecReduce( Gia_Man_t * p, int fDualOut, int fSynthesis, int ...@@ -954,7 +954,8 @@ Gia_Man_t * Gia_ManSpecReduce( Gia_Man_t * p, int fDualOut, int fSynthesis, int
Vec_IntForEachEntry( vGuide, iLit, i ) Vec_IntForEachEntry( vGuide, iLit, i )
if ( iLit ) if ( iLit )
nAddPos++; nAddPos++;
assert( Gia_ManPoNum(pNew) == Gia_ManPoNum(p) + nAddPos ); if ( nAddPos )
assert( Gia_ManPoNum(pNew) == Gia_ManPoNum(p) + nAddPos );
} }
Vec_IntFreeP( &vTrace ); Vec_IntFreeP( &vTrace );
Vec_IntFreeP( &vGuide ); Vec_IntFreeP( &vGuide );
......
...@@ -24658,6 +24658,11 @@ int Abc_CommandAbc9Equiv2( Abc_Frame_t * pAbc, int argc, char ** argv ) ...@@ -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" ); Abc_Print( -1, "Abc_CommandAbc9Equiv2(): There is no AIG.\n" );
return 1; 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 ( fUseCex )
{ {
if ( pAbc->pCex->nPis != Gia_ManPiNum(pAbc->pGia) ) if ( pAbc->pCex->nPis != Gia_ManPiNum(pAbc->pGia) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment