mirror of
https://github.com/github/codeql.git
synced 2026-02-28 21:03:50 +01:00
Java/Python: Reduce size of blockPrecedesVar
This commit is contained in:
@@ -770,7 +770,9 @@ private module SsaImpl {
|
||||
|
||||
/** Holds if `v` occurs in `b` or one of `b`'s transitive successors. */
|
||||
private predicate blockPrecedesVar(TrackedVar v, BasicBlock b) {
|
||||
varOccursInBlock(v, b.getABBSuccessor*())
|
||||
varOccursInBlock(v, b)
|
||||
or
|
||||
ssaDefReachesEndOfBlock(v, _, b)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -321,7 +321,9 @@ private module SsaImpl {
|
||||
|
||||
/** Holds if `v` occurs in `b` or one of `b`'s transitive successors. */
|
||||
private predicate blockPrecedesVar(BaseSsaSourceVariable v, BasicBlock b) {
|
||||
varOccursInBlock(v, b.getABBSuccessor*())
|
||||
varOccursInBlock(v, b)
|
||||
or
|
||||
ssaDefReachesEndOfBlock(v, _, b)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user