Disabled duplication of the network while removing POs in 'removepo'.

This commit is contained in:
Alan Mishchenko 2011-06-14 23:02:34 -07:00
parent b2dfa01370
commit dcd95cac6f
1 changed files with 5 additions and 4 deletions

View File

@ -5889,7 +5889,7 @@ usage:
***********************************************************************/ ***********************************************************************/
int Abc_CommandRemovePo( Abc_Frame_t * pAbc, int argc, char ** argv ) int Abc_CommandRemovePo( Abc_Frame_t * pAbc, int argc, char ** argv )
{ {
Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc), * pNtkRes; Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc), * pNtkRes = NULL;
int c, iOutput = -1; int c, iOutput = -1;
extern void Abc_NtkRemovePo( Abc_Ntk_t * pNtk, int iOutput ); extern void Abc_NtkRemovePo( Abc_Ntk_t * pNtk, int iOutput );
@ -5938,9 +5938,10 @@ int Abc_CommandRemovePo( Abc_Frame_t * pAbc, int argc, char ** argv )
} }
// get the new network // get the new network
pNtkRes = Abc_NtkDup( pNtk ); // pNtkRes = Abc_NtkDup( pNtk );
Abc_NtkRemovePo( pNtkRes, iOutput ); // Abc_NtkRemovePo( pNtkRes, iOutput );
Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes ); // Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
Abc_NtkRemovePo( pNtk, iOutput );
return 0; return 0;
usage: usage: