Skip to content

Commit aa9630e

Browse files
authored
Merge pull request #365 from QuantamHD/fix_nf_crash
nf: Fix assert( pDp->F < FLT_MAX ); in nf
2 parents c4f8e8e + 2227d6d commit aa9630e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/aig/gia/giaNf.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,10 @@ void Nf_ManCutMatchOne( Nf_Man_t * p, int iObj, int * pCut, int * pCutSet )
11721172
if ( ArrivalA + pC->iDelays[k] <= Required && Required != SCL_INFINITY )
11731173
{
11741174
Delay = Abc_MaxInt( Delay, ArrivalA + pC->iDelays[k] );
1175-
AreaF += pBestF[iFanin]->M[fComplF][1].F;
1175+
if ( AreaF >= (float)1e32 || pBestF[iFanin]->M[fComplF][1].F >= (float)1e32 )
1176+
AreaF = (float)1e32;
1177+
else
1178+
AreaF += pBestF[iFanin]->M[fComplF][1].F;
11761179
}
11771180
else
11781181
{

0 commit comments

Comments
 (0)