Added warning when the network from file has no primary inputs.

This commit is contained in:
Alan Mishchenko 2012-01-06 01:36:08 +07:00
parent 5a45a75dca
commit 26b87c8c55
1 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,11 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv )
pNtk = Io_Read( pFileName, Io_ReadFileType(pFileName), fCheck );
if ( pNtk == NULL )
return 0;
if ( Abc_NtkPiNum(pNtk) == 0 )
{
Abc_Print( 0, "The new network has no primary inputs. It is recommended\n" );
Abc_Print( 1, "to add a dummy PI to make sure all commands work correctly.\n" );
}
// replace the current network
Abc_FrameReplaceCurrentNetwork( pAbc, pNtk );
Abc_FrameCopyLTLDataBase( pAbc, pNtk );