Commit 508565ff by Alan Mishchenko

Adding a warning when the current network or AIG has no POs.

parent 716b8cc6
......@@ -575,6 +575,8 @@ void Abc_FrameUpdateGia( Abc_Frame_t * pAbc, Gia_Man_t * pNew )
Abc_Print( -1, "Abc_FrameUpdateGia(): Tranformation has failed.\n" );
return;
}
if ( Gia_ManPoNum(pNew) == 0 )
Abc_Print( 0, "The current GIA has no primary outputs. Some commands may not work correctly.\n" );
if ( pNew == pAbc->pGia )
return;
// transfer names
......@@ -494,6 +494,9 @@ void Abc_FrameReplaceCurrentNetwork( Abc_Frame_t * p, Abc_Ntk_t * pNtk )
if ( pNtk == NULL )
return;
if ( Abc_NtkPoNum(pNtk) == 0 )
Abc_Print( 0, "The current network has no primary outputs. Some commands may not work correctly.\n" );
// transfer the parameters to the new network
if ( p->pNtkCur && Abc_FrameIsFlagEnabled( "backup" ) )
{
......
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