summaryrefslogtreecommitdiffstats
path: root/src/aig/dar/darRefact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/aig/dar/darRefact.c')
-rw-r--r--src/aig/dar/darRefact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aig/dar/darRefact.c b/src/aig/dar/darRefact.c
index e814840f..0637fee0 100644
--- a/src/aig/dar/darRefact.c
+++ b/src/aig/dar/darRefact.c
@@ -376,14 +376,14 @@ int Dar_ManRefactorTryCuts( Ref_Man_t * p, Aig_Obj_t * pObj, int nNodesSaved, in
pTruth = Aig_ManCutTruth( pObj, vCut, p->vCutNodes, p->vTruthElem, p->vTruthStore );
if ( Kit_TruthIsConst0(pTruth, Vec_PtrSize(vCut)) )
{
- p->GainBest = Vec_PtrSize(p->vCutNodes);
+ p->GainBest = Aig_NodeMffsSupp( p->pAig, pObj, 0, NULL );
p->pGraphBest = Kit_GraphCreateConst0();
Vec_PtrCopy( p->vLeavesBest, vCut );
return p->GainBest;
}
if ( Kit_TruthIsConst1(pTruth, Vec_PtrSize(vCut)) )
{
- p->GainBest = Vec_PtrSize(p->vCutNodes);
+ p->GainBest = Aig_NodeMffsSupp( p->pAig, pObj, 0, NULL );
p->pGraphBest = Kit_GraphCreateConst1();
Vec_PtrCopy( p->vLeavesBest, vCut );
return p->GainBest;