Merge pull request #6843 from RasmusWL/dataflow-bool-expr

Python: Add data-flow for `x or y` and `x and y`
This commit is contained in:
yoff
2021-10-12 10:40:54 +02:00
committed by GitHub
6 changed files with 619 additions and 578 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