summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorTobias Wiersema <tobias.wiersema@uni-paderborn.de>2021-08-19 18:01:38 +0200
committerTobias Wiersema <tobias.wiersema@uni-paderborn.de>2021-08-19 18:01:38 +0200
commitb82a7f46777e73c89b9e8db3a391d3a93aa5b562 (patch)
tree9039f59a2d63cf2e0bcd2fde76055117f26804f8 /src/base
parentd55e8fab82fa3d3e05725c27eb799e7669ee0d69 (diff)
downloadabc-b82a7f46777e73c89b9e8db3a391d3a93aa5b562.tar.gz
abc-b82a7f46777e73c89b9e8db3a391d3a93aa5b562.tar.bz2
abc-b82a7f46777e73c89b9e8db3a391d3a93aa5b562.zip
Add comment to Wlc_NtkGetInv about vNamesIn's role
Diffstat (limited to 'src/base')
-rw-r--r--src/base/wlc/wlcAbc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/wlc/wlcAbc.c b/src/base/wlc/wlcAbc.c
index be254bb2..8b7dbfa7 100644
--- a/src/base/wlc/wlcAbc.c
+++ b/src/base/wlc/wlcAbc.c
@@ -166,6 +166,8 @@ Abc_Ntk_t * Wlc_NtkGetInv( Wlc_Ntk_t * pNtk, Vec_Int_t * vInv, Vec_Ptr_t * vName
if ( Entry == 0 )
continue;
pMainObj = Abc_NtkCreatePi( pMainNtk );
+ // If vNamesIn is given, take names from there for as many entries as possible
+ // otherwise generate names from counter
if (vNamesIn != NULL && i < Vec_PtrSize(vNamesIn)) {
Abc_ObjAssignName( pMainObj, (char *)Vec_PtrEntry(vNamesIn, i), NULL );
}