Commit dcd95cac by Alan Mishchenko

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

parent b2dfa013
...@@ -5889,7 +5889,7 @@ usage: ...@@ -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 ) ...@@ -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:
......
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