summaryrefslogtreecommitdiffstats
path: root/src/misc/util
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2011-02-19 16:43:00 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2011-02-19 16:43:00 -0800
commit2619edf8c0347b78549c28083dd0565ed2589425 (patch)
tree739185b3e5cbd27e24e3c8320011d7ed013c1e51 /src/misc/util
parent443cc01782ac3845183990ef86fdfe3d650341c5 (diff)
downloadabc-2619edf8c0347b78549c28083dd0565ed2589425.tar.gz
abc-2619edf8c0347b78549c28083dd0565ed2589425.tar.bz2
abc-2619edf8c0347b78549c28083dd0565ed2589425.zip
Added two new APIs for reading/writing CEX from/into ABC.
Diffstat (limited to 'src/misc/util')
-rw-r--r--src/misc/util/utilCex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/util/utilCex.c b/src/misc/util/utilCex.c
index 068e1768..a4cf5e33 100644
--- a/src/misc/util/utilCex.c
+++ b/src/misc/util/utilCex.c
@@ -139,6 +139,8 @@ Abc_Cex_t * Abc_CexDup( Abc_Cex_t * p, int nRegsNew )
{
Abc_Cex_t * pCex;
int i;
+ if ( nRegsNew == -1 )
+ nRegsNew = p->nRegs;
pCex = Abc_CexAlloc( nRegsNew, p->nPis, p->iFrame+1 );
pCex->iPo = p->iPo;
pCex->iFrame = p->iFrame;