Commit ecafca53 authored by Alan Mishchenko's avatar Alan Mishchenko

Experiments with MFFC computation (bug fix).

parent b28c4b5c
...@@ -1600,14 +1600,14 @@ static inline int Mf_CutAreaRefed( Mf_Man_t * p, int * pCut ) ...@@ -1600,14 +1600,14 @@ static inline int Mf_CutAreaRefed( Mf_Man_t * p, int * pCut )
{ {
int Ela1 = Mf_CutDeref_rec( p, pCut ); int Ela1 = Mf_CutDeref_rec( p, pCut );
int Ela2 = Mf_CutRef_rec( p, pCut ); int Ela2 = Mf_CutRef_rec( p, pCut );
//assert( Ela1 == Ela2 ); assert( Ela1 == Ela2 );
return Ela1; return Ela1;
} }
static inline int Mf_CutAreaDerefed( Mf_Man_t * p, int * pCut ) static inline int Mf_CutAreaDerefed( Mf_Man_t * p, int * pCut )
{ {
int Ela1 = Mf_CutRef_rec( p, pCut ); int Ela1 = Mf_CutRef_rec( p, pCut );
int Ela2 = Mf_CutDeref_rec( p, pCut ); int Ela2 = Mf_CutDeref_rec( p, pCut );
//assert( Ela1 == Ela2 ); assert( Ela1 == Ela2 );
return Ela1; return Ela1;
} }
static inline float Mf_CutFlow( Mf_Man_t * p, int * pCut, int * pTime ) static inline float Mf_CutFlow( Mf_Man_t * p, int * pCut, int * pTime )
......
...@@ -1272,9 +1272,9 @@ int Gia_NodeMffcMapping( Gia_Man_t * p ) ...@@ -1272,9 +1272,9 @@ int Gia_NodeMffcMapping( Gia_Man_t * p )
Vec_IntFill( vMapping, Gia_ManObjNum(p), 0 ); Vec_IntFill( vMapping, Gia_ManObjNum(p), 0 );
pRefsOld = p->pRefs; p->pRefs = NULL; pRefsOld = p->pRefs; p->pRefs = NULL;
Gia_ManCreateRefs( p ); Gia_ManCreateRefs( p );
p->pRefs = pRefsOld;
Gia_ManForEachCoDriverId( p, Id, i ) Gia_ManForEachCoDriverId( p, Id, i )
Count += Gia_NodeMffcMapping_rec( p, Id, vMapping, vSupp ); Count += Gia_NodeMffcMapping_rec( p, Id, vMapping, vSupp );
p->pRefs = pRefsOld;
Vec_IntFree( vSupp ); Vec_IntFree( vSupp );
p->vMapping = vMapping; p->vMapping = vMapping;
//printf( "Mapping is %.2fx larger than AIG manager.\n", 1.0*Vec_IntSize(vMapping)/Gia_ManObjNum(p) ); //printf( "Mapping is %.2fx larger than AIG manager.\n", 1.0*Vec_IntSize(vMapping)/Gia_ManObjNum(p) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment