summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2011-09-08 21:10:36 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2011-09-08 21:10:36 +0700
commita7acb2f1046b24e9c6ad5b82a190f81e7bf4b0e8 (patch)
tree182760a9b422b34ab053a63ec72107d561d2a98f /src
parent70694628d2ed5260bb5bd4456d077d903a011c05 (diff)
downloadabc-a7acb2f1046b24e9c6ad5b82a190f81e7bf4b0e8.tar.gz
abc-a7acb2f1046b24e9c6ad5b82a190f81e7bf4b0e8.tar.bz2
abc-a7acb2f1046b24e9c6ad5b82a190f81e7bf4b0e8.zip
Fixed the problem with blackboxes not preserving their names after duplication.
Diffstat (limited to 'src')
-rw-r--r--src/base/abc/abcNtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/abc/abcNtk.c b/src/base/abc/abcNtk.c
index 6f8d11cf..4c990c6a 100644
--- a/src/base/abc/abcNtk.c
+++ b/src/base/abc/abcNtk.c
@@ -356,7 +356,7 @@ Abc_Ntk_t * Abc_NtkDup( Abc_Ntk_t * pNtk )
// duplicate the nets and nodes (CIs/COs/latches already dupped)
Abc_NtkForEachObj( pNtk, pObj, i )
if ( pObj->pCopy == NULL )
- Abc_NtkDupObj(pNtkNew, pObj, 0);
+ Abc_NtkDupObj(pNtkNew, pObj, Abc_NtkHasBlackbox(pNtk) && Abc_ObjIsNet(pObj));
// reconnect all objects (no need to transfer attributes on edges)
Abc_NtkForEachObj( pNtk, pObj, i )
if ( !Abc_ObjIsBox(pObj) && !Abc_ObjIsBo(pObj) )