Python: Address review

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-09-11 14:24:49 +02:00
parent 5dbb4af5b5
commit 0eb8b6c7b0
2 changed files with 6 additions and 9 deletions

View File

@@ -176,8 +176,10 @@ class BarrierGuard extends GuardNode {
/** Gets a node guarded by this guard. */
final ExprNode getAGuardedNode() {
exists(boolean testIsTrue |
this.checks(result.asCfgNode(), testIsTrue) and
exists(Variable v, NameNode n, boolean testIsTrue |
n.uses(v) and
this.checks(n, testIsTrue) and
result.asCfgNode().(NameNode).uses(v) and
this.controlsNode(result.asCfgNode(), testIsTrue)
)
}