From eef8c01340842079a64cd7064cd9b131839ec6e4 Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Mon, 1 Apr 2024 09:40:41 +1000 Subject: [PATCH] Fix Assertion using &if: `pCutSet->nCuts > 0' (cherry picked from commit 316eec6d3f7addf81424bd51f846731f3b8696d7) --- src/map/if/ifMap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/if/ifMap.c b/src/map/if/ifMap.c index 0ad63f050..07e6cac82 100644 --- a/src/map/if/ifMap.c +++ b/src/map/if/ifMap.c @@ -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 );