Merge pull request #9849 from tausbn/python-fix-bad-essa-getInput-join

Python: Fix bad join in ESSA `getInput`
This commit is contained in:
Rasmus Wriedt Larsen
2022-08-10 11:45:23 +02:00
committed by GitHub

View File

@@ -212,8 +212,8 @@ class EssaEdgeRefinement extends EssaDefinition, TEssaEdgeDefinition {
/** Gets the SSA variable to which this refinement applies. */
EssaVariable getInput() {
exists(SsaSourceVariable var, EssaDefinition def |
var = this.getSourceVariable() and
var = def.getSourceVariable() and
pragma[only_bind_into](var) = this.getSourceVariable() and
pragma[only_bind_into](var) = def.getSourceVariable() and
def.reachesEndOfBlock(this.getPredecessor()) and
result.getDefinition() = def
)