mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #967 from hvitved/csharp/ssa/block-precedes-var
C#: Use explict recursion in `blockPrecedesVar()`
This commit is contained in:
@@ -670,7 +670,9 @@ module Ssa {
|
||||
|
||||
/** Holds if `v` occurs in `bb` or one of `bb`'s transitive successors. */
|
||||
private predicate blockPrecedesVar(TrackedVar v, BasicBlock bb) {
|
||||
varOccursInBlock(v, bb.getASuccessor*())
|
||||
varOccursInBlock(v, bb)
|
||||
or
|
||||
blockPrecedesVar(v, bb.getASuccessor())
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user