Java/Python: Reduce size of blockPrecedesVar

This commit is contained in:
Tom Hvitved
2020-09-22 11:00:26 +02:00
parent c56d5eb90e
commit 71da9045e5
4 changed files with 12 additions and 6 deletions

View File

@@ -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)
}
/**

View File

@@ -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)
}
/**