Apply suggestions

This commit is contained in:
r0qs 2023-09-22 14:45:41 +02:00
parent e1f049fd24
commit 3c1f4525a4
No known key found for this signature in database
GPG Key ID: 61503DBA6667276C

View File

@ -91,9 +91,10 @@ public:
return true; return true;
idomIdx = m_immediateDominator[idomIdx]; idomIdx = m_immediateDominator[idomIdx];
} }
// Now that we reach the entry node (i.e. idx = 0), // Now that we reach the entry node (i.e. idomIdx = 0),
// either ``aIdx == 0`` or it does not dominates other node. // either ``aIdx == 0`` or it does not dominates the other node.
return idomIdx == aIdx; solAssert(idomIdx == 0, "");
return aIdx == 0;
} }
// Find all dominators of a node _v // Find all dominators of a node _v