Commit 26b87c8c by Alan Mishchenko

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

parent 5a45a75d
...@@ -200,6 +200,11 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv ) ...@@ -200,6 +200,11 @@ int IoCommandRead( Abc_Frame_t * pAbc, int argc, char ** argv )
pNtk = Io_Read( pFileName, Io_ReadFileType(pFileName), fCheck ); pNtk = Io_Read( pFileName, Io_ReadFileType(pFileName), fCheck );
if ( pNtk == NULL ) if ( pNtk == NULL )
return 0; 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 // replace the current network
Abc_FrameReplaceCurrentNetwork( pAbc, pNtk ); Abc_FrameReplaceCurrentNetwork( pAbc, pNtk );
Abc_FrameCopyLTLDataBase( pAbc, pNtk ); Abc_FrameCopyLTLDataBase( pAbc, pNtk );
......
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