Merge pull request #6293 from hvitved/csharp/ssa/remove-redundant-conjunct

C#: Remove redundant conjunct in `ssaDefReachesReadWithinBlock`
This commit is contained in:
Tom Hvitved
2021-07-16 06:15:34 +02:00
committed by GitHub
4 changed files with 4 additions and 8 deletions

View File

@@ -284,8 +284,7 @@ private module SsaDefReaches {
predicate ssaDefReachesReadWithinBlock(SourceVariable v, Definition def, BasicBlock bb, int i) {
exists(int rnk |
ssaDefReachesRank(bb, def, rnk, v) and
rnk = ssaRefRank(bb, i, v, SsaRead()) and
variableRead(bb, i, v, _)
rnk = ssaRefRank(bb, i, v, SsaRead())
)
}

View File

@@ -284,8 +284,7 @@ private module SsaDefReaches {
predicate ssaDefReachesReadWithinBlock(SourceVariable v, Definition def, BasicBlock bb, int i) {
exists(int rnk |
ssaDefReachesRank(bb, def, rnk, v) and
rnk = ssaRefRank(bb, i, v, SsaRead()) and
variableRead(bb, i, v, _)
rnk = ssaRefRank(bb, i, v, SsaRead())
)
}

View File

@@ -284,8 +284,7 @@ private module SsaDefReaches {
predicate ssaDefReachesReadWithinBlock(SourceVariable v, Definition def, BasicBlock bb, int i) {
exists(int rnk |
ssaDefReachesRank(bb, def, rnk, v) and
rnk = ssaRefRank(bb, i, v, SsaRead()) and
variableRead(bb, i, v, _)
rnk = ssaRefRank(bb, i, v, SsaRead())
)
}

View File

@@ -284,8 +284,7 @@ private module SsaDefReaches {
predicate ssaDefReachesReadWithinBlock(SourceVariable v, Definition def, BasicBlock bb, int i) {
exists(int rnk |
ssaDefReachesRank(bb, def, rnk, v) and
rnk = ssaRefRank(bb, i, v, SsaRead()) and
variableRead(bb, i, v, _)
rnk = ssaRefRank(bb, i, v, SsaRead())
)
}