Fix Assertion using &if: `pCutSet->nCuts > 0'

(cherry picked from commit 316eec6d3f)
This commit is contained in:
David A Roberts 2024-04-01 09:40:41 +10:00 committed by Martin Povišer
parent 1383c76464
commit eef8c01340
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
pCut->Delay = If_CutDelay( p, pObj, pCut );
if ( pCut->Delay == -1 )
continue;
if ( Mode && pCut->Delay > pObj->Required + p->fEpsilon )
if ( Mode && pCut->Delay > pObj->Required + p->fEpsilon && pCutSet->nCuts > 0 )
continue;
// compute area of the cut (this area may depend on the application specific cost)
pCut->Area = (Mode == 2)? If_CutAreaDerefed( p, pCut ) : If_CutAreaFlow( p, pCut );