diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-05-08 13:37:19 +0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-05-08 13:37:19 +0800 |
commit | aa087d251325a0f4971041807cb8f3239dd52651 (patch) | |
tree | 4e1398999a8fc28549d05def36d9d679fa685381 | |
parent | 50fac8a0987244b1e3684ad62a8afc6c14e36193 (diff) | |
download | abc-aa087d251325a0f4971041807cb8f3239dd52651.tar.gz abc-aa087d251325a0f4971041807cb8f3239dd52651.tar.bz2 abc-aa087d251325a0f4971041807cb8f3239dd52651.zip |
Making sure cec -n and dsec -n do not remove the I/O names in the current network.
-rw-r--r-- | src/base/abci/abc.c | 30 |
1 files changed, 30 insertions, 0 deletions
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 ); } |