mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Address review comment
This commit is contained in:
@@ -119,11 +119,11 @@ module Ssa {
|
||||
ad.getAControlFlowNode() = bb.getNode(i)
|
||||
and
|
||||
// In cases like `(x, x) = (0, 1)`, we discard the first (dead) definition of `x`
|
||||
not exists(TupleAssignmentDefinition tdef, TupleAssignmentDefinition other |
|
||||
tdef = ad |
|
||||
other.getAssignment() = tdef.getAssignment() and
|
||||
other.getEvaluationOrder() > tdef.getEvaluationOrder() and
|
||||
other = v.getADefinition()
|
||||
not exists(TupleAssignmentDefinition first, TupleAssignmentDefinition second |
|
||||
first = ad |
|
||||
second.getAssignment() = first.getAssignment() and
|
||||
second.getEvaluationOrder() > first.getEvaluationOrder() and
|
||||
second = v.getADefinition()
|
||||
)
|
||||
and
|
||||
// In cases like `M(out x, out x)`, there is no inherent evaluation order, so we
|
||||
|
||||
@@ -27,11 +27,11 @@ module BaseSsa {
|
||||
bb.getNode(i) = def.getAControlFlowNode() and
|
||||
v = def.getTarget() and
|
||||
// In cases like `(x, x) = (0, 1)`, we discard the first (dead) definition of `x`
|
||||
not exists(TupleAssignmentDefinition tdef, TupleAssignmentDefinition other |
|
||||
tdef = def |
|
||||
other.getAssignment() = tdef.getAssignment() and
|
||||
other.getEvaluationOrder() > tdef.getEvaluationOrder() and
|
||||
other.getTarget() = v
|
||||
not exists(TupleAssignmentDefinition first, TupleAssignmentDefinition second |
|
||||
first = def |
|
||||
second.getAssignment() = first.getAssignment() and
|
||||
second.getEvaluationOrder() > first.getEvaluationOrder() and
|
||||
second.getTarget() = v
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user