mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
I ported the predicates showing difference between points-to and type-tracking, since it's helpful to see the list of differences, instead of having to parse expectations!
21 lines
272 B
Python
21 lines
272 B
Python
def foo():
|
|
print("foo called")
|
|
|
|
|
|
indirect_foo = foo
|
|
|
|
|
|
def bar():
|
|
print("bar called")
|
|
|
|
|
|
lam = lambda: print("lambda called")
|
|
|
|
|
|
foo() # $ pt=foo
|
|
indirect_foo() # $ pt=foo
|
|
bar() # $ pt=bar
|
|
lam() # $ pt=lambda[simple.py:12:7]
|
|
|
|
# python -m trace --trackcalls simple.py
|