How to retrieve a Control Flow Graph for python code?

眉间皱痕 提交于 2019-12-04 12:23:35
Ira Baxter

See my SO answer on how to build a control flow graph, using an AST.

The original question asked about CFGs for Java, but the approach is actually pretty generic, and the same approach would work for producing a CFG for Python.

I wouldn't have called this "quite complex"; the basic idea is pretty simple.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!