mirror of
https://github.com/github/codeql.git
synced 2026-03-01 05:13:41 +01:00
Java: Minor fixup for SSA AdjacentUsesImpl::varBlockReaches
This should not change anything in regards to correctness overall -- what we really care about is `varBlockStep`, and that checks `varOccursInBlock(v, b2)`. However, the comment is a bit easier to read together with the code now (and probably also gives slightly smaller predicate result size).
This commit is contained in:
@@ -779,7 +779,9 @@ private module SsaImpl {
|
||||
* between `b1` and `b2`.
|
||||
*/
|
||||
private predicate varBlockReaches(TrackedVar v, BasicBlock b1, BasicBlock b2) {
|
||||
varOccursInBlock(v, b1) and b2 = b1.getABBSuccessor()
|
||||
varOccursInBlock(v, b1) and
|
||||
b2 = b1.getABBSuccessor() and
|
||||
blockPrecedesVar(v, b2)
|
||||
or
|
||||
exists(BasicBlock mid |
|
||||
varBlockReaches(v, b1, mid) and
|
||||
|
||||
Reference in New Issue
Block a user