mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-07-12 13:34:45 +03:00
ng_width: turn min width check into assert
This commit is contained in:
parent
6f81516bce
commit
cadc7028b1
@ -176,11 +176,7 @@ depth findMaxWidth(const NGHolder &h, const SpecialEdgeFilter &filter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (d.is_unreachable()) {
|
if (d.is_unreachable()) {
|
||||||
// If we're actually reachable, we'll have a min width, so we can
|
assert(findMinWidth(h, filter, src).is_unreachable());
|
||||||
// return infinity in this case.
|
|
||||||
if (findMinWidth(h, filter, src).is_reachable()) {
|
|
||||||
return depth::infinity();
|
|
||||||
}
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user