From 333c3772326dab900c83fd40abfd23d6083f1b41 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 8 Sep 2013 20:05:19 -0700 Subject: Improvements to the new technology mapper. --- src/aig/gia/giaJf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aig/gia/giaJf.c b/src/aig/gia/giaJf.c index d99b011c..c826f346 100644 --- a/src/aig/gia/giaJf.c +++ b/src/aig/gia/giaJf.c @@ -773,6 +773,7 @@ void Jf_ObjComputeCuts( Jf_Man_t * p, Gia_Obj_t * pObj ) pSto[0]->Flow = Jf_CutFlow(p, pSto[0]->pCut); c = 1; } + // add elementary cut if ( !pObj->fMark0 ) pSto[c]->pCut[0] = 1, pSto[c]->pCut[1] = Jf_ObjLit(iObj), c++; // set function @@ -783,7 +784,7 @@ void Jf_ObjComputeCuts( Jf_Man_t * p, Gia_Obj_t * pObj ) // save best info Vec_IntWriteEntry( &p->vArr, iObj, pSto[0]->Time ); // Vec_FltWriteEntry( &p->vFlow, iObj, (pSto[0]->Flow + 1) / Jf_ObjRefs(p, iObj) ); - Vec_FltWriteEntry( &p->vFlow, iObj, (pSto[0]->Flow + ((1 << 6) + pSto[c]->pCut[0])) / Jf_ObjRefs(p, iObj) ); + Vec_FltWriteEntry( &p->vFlow, iObj, (pSto[0]->Flow + ((1 << 6) + pSto[0]->pCut[0])) / Jf_ObjRefs(p, iObj) ); // add cuts to storage cuts Vec_IntClear( p->vTemp ); Vec_IntPush( p->vTemp, c ); -- cgit v1.2.3