Skip 'scorr' when the network has no primary inputs.

This commit is contained in:
Alan Mishchenko 2014-06-09 08:14:45 -07:00
parent 9b54345120
commit 6ce9ac9bbd
1 changed files with 6 additions and 0 deletions

View File

@ -17658,6 +17658,12 @@ int Abc_CommandSeqSweep2( Abc_Frame_t * pAbc, int argc, char ** argv )
return 0;
}
if ( Abc_NtkPiNum(pNtk) == 0 )
{
Abc_Print( 0, "This command works only for designs with primary inputs.\n" );
return 0;
}
// if constraints are to be used, network should have no constraints
if ( nConstrs > 0 )
{