mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
doComponent: make it obvious that a is never null
This commit is contained in:
parent
c7bebf8836
commit
7b6ad2a01a
@ -316,7 +316,7 @@ bool doComponent(RoseBuild &rose, ReportManager &rm, NGHolder &g, NFAVertex a,
|
|||||||
bool unbounded = false;
|
bool unbounded = false;
|
||||||
bool exhaustible = can_exhaust(g, rm);
|
bool exhaustible = can_exhaust(g, rm);
|
||||||
|
|
||||||
while (a) {
|
while (true) {
|
||||||
if (is_special(a, g)) {
|
if (is_special(a, g)) {
|
||||||
DEBUG_PRINTF("stopped puffing due to special vertex\n");
|
DEBUG_PRINTF("stopped puffing due to special vertex\n");
|
||||||
break;
|
break;
|
||||||
@ -350,9 +350,7 @@ bool doComponent(RoseBuild &rose, ReportManager &rm, NGHolder &g, NFAVertex a,
|
|||||||
|
|
||||||
a = getSoleSourceVertex(g, a);
|
a = getSoleSourceVertex(g, a);
|
||||||
|
|
||||||
if (!a) {
|
assert(a); /* already checked that old a had a proper in degree of 1 */
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Snark: we can't handle this case, because we can only handle a
|
// Snark: we can't handle this case, because we can only handle a
|
||||||
// single report ID on a vertex
|
// single report ID on a vertex
|
||||||
|
Loading…
x
Reference in New Issue
Block a user