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

@@ -426,12 +426,12 @@ def test_call_extra_keyword_flow():
def test_or(x = False):
# if we don't know the value of the lhs, we should always add flow
SINK(x or SOURCE) #$ MISSING: flow="SOURCE -> BoolExp"
SINK(x or SOURCE) #$ flow="SOURCE -> BoolExpr"
def test_and(x = True):
# if we don't know the value of the lhs, we should always add flow
SINK(x and SOURCE) #$ MISSING: flow="SOURCE -> BoolExp"
SINK(x and SOURCE) #$ flow="SOURCE -> BoolExpr"
# 6.12. Assignment expressions