Skip to content

Commit c70cf6d

Browse files
committed
Python: better (if imperfect) handling of phi node
1 parent b759b71 commit c70cf6d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

python/ql/src/experimental/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module EssaFlow {
7575
or
7676
exists(PhiFunction p |
7777
nodeTo.asEssaNode() = p.getVariable() and
78-
nodeFrom.asEssaNode() = p.getShortCircuitInput()
78+
nodeFrom.asEssaNode() = p.getAnInput()
7979
)
8080
}
8181
}

python/ql/test/experimental/dataflow/regression/dataflow.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
| test.py:10:12:10:17 | ControlFlowNode for SOURCE | test.py:17:10:17:10 | ControlFlowNode for t |
55
| test.py:20:9:20:14 | ControlFlowNode for SOURCE | test.py:13:10:13:12 | ControlFlowNode for arg |
66
| test.py:37:13:37:18 | ControlFlowNode for SOURCE | test.py:41:14:41:14 | ControlFlowNode for t |
7+
| test.py:62:13:62:18 | ControlFlowNode for SOURCE | test.py:13:10:13:12 | ControlFlowNode for arg |
8+
| test.py:67:13:67:18 | ControlFlowNode for SOURCE | test.py:13:10:13:12 | ControlFlowNode for arg |
79
| test.py:76:9:76:14 | ControlFlowNode for SOURCE | test.py:78:10:78:10 | ControlFlowNode for t |
810
| test.py:108:13:108:18 | ControlFlowNode for SOURCE | test.py:112:14:112:14 | ControlFlowNode for t |
911
| test.py:139:10:139:15 | ControlFlowNode for SOURCE | test.py:140:14:140:14 | ControlFlowNode for t |

0 commit comments

Comments
 (0)