mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Java/Python: Reduce size of blockPrecedesVar
This commit is contained in:
@@ -382,7 +382,9 @@ private module SsaComputeImpl {
|
||||
|
||||
/** Holds if `v` occurs in `b` or one of `b`'s transitive successors. */
|
||||
private predicate blockPrecedesVar(SsaSourceVariable v, BasicBlock b) {
|
||||
varOccursInBlock(v, b.getASuccessor*())
|
||||
varOccursInBlock(v, b)
|
||||
or
|
||||
SsaDefinitionsImpl::reachesEndOfBlock(v, _, _, b)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user