IBM / pyflowgraph

Flow graphs for Python
Apache License 2.0
25 stars 8 forks source link

Supplement object tracking with static analysis #18

Closed epatters closed 5 years ago

epatters commented 6 years ago

Currently, dataflow dependencies are determined solely by tracking objects, essentially by memory address (technically, use Python's weak references). Naturally, this does not work for objects that do not have unique/stable memory addresses, such as primitive scalar values (see #17).

Now that we're using AST rewriting, as of #15, we should supplement the memory-based object tracker with static analysis to capture dataflow. A satisfactory resolution of this issue would fix #14 and #17. A similar approach is already being used in rflowgraph.