From aa087d251325a0f4971041807cb8f3239dd52651 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 8 May 2012 13:37:19 +0800 Subject: Making sure cec -n and dsec -n do not remove the I/O names in the current network. --- src/base/abci/abc.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index f1b5d90a..3e5d67c6 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -5731,6 +5731,16 @@ int Abc_CommandMiter( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( fIgnoreNames ) { + if ( !fDelete1 ) + { + pNtk1 = Abc_NtkStrash( pNtk1, 0, 1, 0 ); + fDelete1 = 1; + } + if ( !fDelete2 ) + { + pNtk2 = Abc_NtkStrash( pNtk2, 0, 1, 0 ); + fDelete2 = 1; + } Abc_NtkShortNames( pNtk1 ); Abc_NtkShortNames( pNtk2 ); } @@ -17561,6 +17571,16 @@ int Abc_CommandCec( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( fIgnoreNames ) { + if ( !fDelete1 ) + { + pNtk1 = Abc_NtkStrash( pNtk1, 0, 1, 0 ); + fDelete1 = 1; + } + if ( !fDelete2 ) + { + pNtk2 = Abc_NtkStrash( pNtk2, 0, 1, 0 ); + fDelete2 = 1; + } Abc_NtkShortNames( pNtk1 ); Abc_NtkShortNames( pNtk2 ); } @@ -18002,6 +18022,16 @@ int Abc_CommandDSec( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( fIgnoreNames ) { + if ( !fDelete1 ) + { + pNtk1 = Abc_NtkStrash( pNtk1, 0, 1, 0 ); + fDelete1 = 1; + } + if ( !fDelete2 ) + { + pNtk2 = Abc_NtkStrash( pNtk2, 0, 1, 0 ); + fDelete2 = 1; + } Abc_NtkShortNames( pNtk1 ); Abc_NtkShortNames( pNtk2 ); } -- cgit v1.2.3