From 26b87c8c557972f4f942b9cb8baaf2f25d5b7b84 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Fri, 6 Jan 2012 01:36:08 +0700 Subject: Added warning when the network from file has no primary inputs. --- src/base/io/io.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base/io/io.c') 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 ); -- cgit v1.2.3