summaryrefslogtreecommitdiffstats
path: root/src/base/abci
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-04-18 10:10:49 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-04-18 10:10:49 -0700
commit1efdd3726daf36fbe5533347b710afbc958ac466 (patch)
treede74c742626bda47ce019ebf66dfde4cfd4f1ff7 /src/base/abci
parent6730e21e12db0d78924a8a16a38cea6ed093daeb (diff)
downloadabc-1efdd3726daf36fbe5533347b710afbc958ac466.tar.gz
abc-1efdd3726daf36fbe5533347b710afbc958ac466.tar.bz2
abc-1efdd3726daf36fbe5533347b710afbc958ac466.zip
Preserving outputs names in the &-space.
Diffstat (limited to 'src/base/abci')
-rw-r--r--src/base/abci/abc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index 256e8eb2..9f424459 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -25030,6 +25030,18 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv )
}
}
}
+ // transfer PO names to pNtk
+ if ( pAbc->pGia->vNamesOut )
+ {
+ Abc_Obj_t * pObj;
+ int i;
+ Abc_NtkForEachCo( pNtk, pObj, i ) {
+ if (i < Vec_PtrSize(pAbc->pGia->vNamesOut)) {
+ Nm_ManDeleteIdName(pNtk->pManName, pObj->Id);
+ Abc_ObjAssignName( pObj, (char *)Vec_PtrEntry(pAbc->pGia->vNamesOut, i), NULL );
+ }
+ }
+ }
// replace the current network
Abc_FrameReplaceCurrentNetwork( pAbc, pNtk );
if ( fStatusClear )