Python: Model data-flow for x or y and x and y

This commit is contained in:
Rasmus Wriedt Larsen
2021-10-08 18:30:09 +02:00
parent 15476c2513
commit a50b193c40
3 changed files with 8 additions and 2 deletions

View File

@@ -200,6 +200,9 @@ module EssaFlow {
// If expressions
nodeFrom.asCfgNode() = nodeTo.asCfgNode().(IfExprNode).getAnOperand()
or
// boolean inline expressions such as `x or y` or `x and y`
nodeFrom.asCfgNode() = nodeTo.asCfgNode().(BoolExprNode).getAnOperand()
or
// Flow inside an unpacking assignment
iterableUnpackingFlowStep(nodeFrom, nodeTo)
or