Skip to content

Commit 5adfd00

Browse files
committed
Silencing benign assertion failure (Issue #428)
1 parent 4dfa497 commit 5adfd00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/map/if/ifTime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,17 +225,17 @@ void If_CutPropagateRequired( If_Man_t * p, If_Obj_t * pObj, If_Cut_t * pCut, fl
225225
if ( p->pPars->fDelayOpt )
226226
{
227227
int Delay = If_CutSopBalancePinDelays( p, pCut, pPerm );
228-
assert( Delay == (int)pCut->Delay );
228+
assert( -Delay > IF_INFINITY/2 || Delay > IF_INFINITY/2 || Delay == (int)pCut->Delay );
229229
}
230230
else if ( p->pPars->fDelayOptLut )
231231
{
232232
int Delay = If_CutLutBalancePinDelays( p, pCut, pPerm );
233-
assert( Delay == (int)pCut->Delay );
233+
assert( -Delay > IF_INFINITY/2 || Delay > IF_INFINITY/2 || Delay == (int)pCut->Delay );
234234
}
235235
else if ( p->pPars->fDsdBalance )
236236
{
237237
int Delay = If_CutDsdBalancePinDelays( p, pCut, pPerm );
238-
assert( Delay == (int)pCut->Delay );
238+
assert( -Delay > IF_INFINITY/2 || Delay > IF_INFINITY/2 || Delay == (int)pCut->Delay );
239239
}
240240
else
241241
pPerm = If_CutPerm(pCut);

0 commit comments

Comments
 (0)