summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2019-02-18 18:25:08 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2019-02-18 18:25:08 -0800
commite6f64162b1279925759001a6e2c08d0d9e4e1c34 (patch)
treef6c96e9f8438b5f7559d368bc7976134d86ab3fe
parent7cabc26ebb7b63ec6805f2345faa2a8ae3430d52 (diff)
downloadabc-e6f64162b1279925759001a6e2c08d0d9e4e1c34.tar.gz
abc-e6f64162b1279925759001a6e2c08d0d9e4e1c34.tar.bz2
abc-e6f64162b1279925759001a6e2c08d0d9e4e1c34.zip
Passing names in &scorr.
-rw-r--r--src/proof/cec/cecCorr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/proof/cec/cecCorr.c b/src/proof/cec/cecCorr.c
index eb5cd1aa..8f708910 100644
--- a/src/proof/cec/cecCorr.c
+++ b/src/proof/cec/cecCorr.c
@@ -1219,9 +1219,21 @@ Gia_Man_t * Cec_ManLSCorrespondence( Gia_Man_t * pAig, Cec_ParCor_t * pPars )
}
// copy names if present
if ( pAig->vNamesIn )
+ {
+ char * pName; int i;
pNew->vNamesIn = Vec_PtrDupStr( pAig->vNamesIn );
+ Vec_PtrForEachEntryStart( char *, pNew->vNamesIn, pName, i, Gia_ManCiNum(pNew) )
+ ABC_FREE( pName );
+ Vec_PtrShrink( pNew->vNamesIn, Gia_ManCiNum(pNew) );
+ }
if ( pAig->vNamesOut )
+ {
+ char * pName; int i;
pNew->vNamesOut = Vec_PtrDupStr( pAig->vNamesOut );
+ Vec_PtrForEachEntryStart( char *, pNew->vNamesOut, pName, i, Gia_ManCoNum(pNew) )
+ ABC_FREE( pName );
+ Vec_PtrShrink( pNew->vNamesOut, Gia_ManCoNum(pNew) );
+ }
return pNew;
}