summaryrefslogtreecommitdiffstats
path: root/src/bool
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-04-02 18:07:50 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-04-02 18:07:50 -0700
commit883e21fe8a663844b6b12c2b202093fb0760f16c (patch)
treef5db3482e7b75af5510b0d1776656a8db68064ba /src/bool
parent329cdc356527ad36ac83ecb23cf1802655827378 (diff)
downloadabc-883e21fe8a663844b6b12c2b202093fb0760f16c.tar.gz
abc-883e21fe8a663844b6b12c2b202093fb0760f16c.tar.bz2
abc-883e21fe8a663844b6b12c2b202093fb0760f16c.zip
Improvements to DSD manager.
Diffstat (limited to 'src/bool')
-rw-r--r--src/bool/kit/kitHop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bool/kit/kitHop.c b/src/bool/kit/kitHop.c
index a4ce79f3..11572e81 100644
--- a/src/bool/kit/kitHop.c
+++ b/src/bool/kit/kitHop.c
@@ -73,7 +73,7 @@ int Kit_GraphToGia( Gia_Man_t * pMan, Kit_Graph_t * pGraph, Vec_Int_t * vLeaves,
int i;
// collect the fanins
Kit_GraphForEachLeaf( pGraph, pNode, i )
- pNode->iFunc = Vec_IntEntry( vLeaves, i );
+ pNode->iFunc = vLeaves ? Vec_IntEntry(vLeaves, i) : Gia_Obj2Lit(pMan, Gia_ManPi(pMan, i));
// perform strashing
return Kit_GraphToGiaInternal( pMan, pGraph, fHash );
}