summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-01-06 01:36:08 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-01-06 01:36:08 +0700
commit26b87c8c557972f4f942b9cb8baaf2f25d5b7b84 (patch)
tree7f2a0d25fa32c62417c25a41999f3cbdfcfcce67
parent5a45a75dca8903301178f3d2b530e88364a3d7e2 (diff)
downloadabc-26b87c8c557972f4f942b9cb8baaf2f25d5b7b84.tar.gz
abc-26b87c8c557972f4f942b9cb8baaf2f25d5b7b84.tar.bz2
abc-26b87c8c557972f4f942b9cb8baaf2f25d5b7b84.zip
Added warning when the network from file has no primary inputs.
-rw-r--r--src/base/io/io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/io/io.c b/src/base/io/io.c
index 3d1a6ae3..2ed4b3b2 100644
--- a/src/base/io/io.c
+++ b/src/base/io/io.c
@@ -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 );