Skip to content

Commit 520c3aa

Browse files
added limit_functions pass to 'compile' function in utils.py
1 parent ae03506 commit 520c3aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,12 @@ def compile(compiler, compiler_name, type_check_L, type_check_C,
14671467
program = compiler.convert_assignments(program)
14681468
trace_ast_and_concrete(program)
14691469

1470+
if hasattr(compiler, 'limit_functions'):
1471+
trace('\n# limit functions\n')
1472+
type_check_L(program)
1473+
program = compiler.limit_functions(program)
1474+
trace_ast_and_concrete(program)
1475+
14701476
if hasattr(compiler, 'convert_to_closures'):
14711477
trace('\n# closure conversion\n')
14721478
type_check_L(program)

0 commit comments

Comments
 (0)