Added address flow builder, and type constraint generator.
This commit is contained in:
parent
329b10dbf0
commit
abbf972768
4 changed files with 323 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue