mirror of https://github.com/YosysHQ/abc.git
Prevent assertions from firing for deep logic networks.
This commit is contained in:
parent
911c11afeb
commit
f0efc6e098
|
|
@ -1106,8 +1106,8 @@ float If_CutAreaDerefed( If_Man_t * p, If_Cut_t * pCut )
|
||||||
return 0;
|
return 0;
|
||||||
aResult2 = If_CutAreaRef( p, pCut );
|
aResult2 = If_CutAreaRef( p, pCut );
|
||||||
aResult = If_CutAreaDeref( p, pCut );
|
aResult = If_CutAreaDeref( p, pCut );
|
||||||
assert( aResult > aResult2 - p->fEpsilon );
|
assert( aResult > aResult2 - 3*p->fEpsilon );
|
||||||
assert( aResult < aResult2 + p->fEpsilon );
|
assert( aResult < aResult2 + 3*p->fEpsilon );
|
||||||
return aResult;
|
return aResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1207,8 +1207,8 @@ float If_CutEdgeDerefed( If_Man_t * p, If_Cut_t * pCut )
|
||||||
return pCut->nLeaves;
|
return pCut->nLeaves;
|
||||||
aResult2 = If_CutEdgeRef( p, pCut );
|
aResult2 = If_CutEdgeRef( p, pCut );
|
||||||
aResult = If_CutEdgeDeref( p, pCut );
|
aResult = If_CutEdgeDeref( p, pCut );
|
||||||
assert( aResult > aResult2 - p->fEpsilon );
|
assert( aResult > aResult2 - 3*p->fEpsilon );
|
||||||
assert( aResult < aResult2 + p->fEpsilon );
|
assert( aResult < aResult2 + 3*p->fEpsilon );
|
||||||
return aResult;
|
return aResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue