Added address flow builder, and type constraint generator.

This commit is contained in:
Jon Riehl 2013-05-21 11:58:26 -05:00
commit abbf972768
4 changed files with 323 additions and 4 deletions

View file

@ -272,11 +272,10 @@ class BytecodeFlowBuilder (BasicBlockVisitor):
def build_flow (func):
'''Given a Python function, return a bytecode flow tree for that
function.'''
import byte_control
from . import byte_control
cfg = byte_control.build_cfg(func)
return BytecodeFlowBuilder().visit_cfg(cfg)
# ______________________________________________________________________
# Main (self-test) routine