Added a passthrough in command 'fold' if there are no POs, only constraints.

This commit is contained in:
Alan Mishchenko 2018-11-11 09:37:20 -08:00
parent fb436339a9
commit 68da3cfd02
1 changed files with 5 additions and 0 deletions

View File

@ -27292,6 +27292,11 @@ int Abc_CommandFold( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( 0, "The network has no constraints.\n" );
return 0;
}
if ( Abc_NtkConstrNum(pNtk) == Abc_NtkPoNum(pNtk) )
{
Abc_Print( 0, "The network has no primary outputs (only constraints).\n" );
return 0;
}
if ( Abc_NtkIsComb(pNtk) )
Abc_Print( 0, "The network is combinational.\n" );
// modify the current network