Module ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Continue If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If CompareIn AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotIn NameLoad NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad body Return NameLoad AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list
N/A N/A names analysis contains_calls can_inline syntax If Assign While Return ForLoop Var TypedFn Const ExprStmt subst subst_stmt_list transform Transform replace_returns N/A N/A stmts output_var N/A N/A N/A Change any returns at the outer scope into assignments to the output var N/A new_stmts N/A N/A stmt stmts N/A N/A c N/A stmt __class__ N/A N/A c Return N/A N/A output_var N/A N/A N/A N/A new_stmts append N/A Assign output_var N/A stmt value N/A N/A N/A c If N/A N/A N/A stmt true N/A replace_returns N/A stmt true output_var N/A N/A stmt false N/A replace_returns N/A stmt false output_var N/A N/A N/A c N/A ForLoop While N/A N/A N/A stmt body N/A replace_returns N/A stmt body output_var N/A N/A N/A new_stmts append stmt N/A new_stmts N/A replace_return_with_var N/A N/A body type_env return_type N/A N/A N/A result_name N/A N/A names fresh result N/A N/A type_env N/A result_name return_type N/A result_var N/A Var result_name type return_type N/A new_body N/A replace_returns body result_var N/A N/A result_var new_body N/A do_inline N/A N/A src_fundef args dest_type_env dest_block result_var N/A None N/A N/A arg_names N/A src_fundef arg_names N/A n_expected N/A len arg_names N/A n_given N/A len args N/A arg_str N/A N/A , join N/A src_fundef arg_names N/A N/A n_expected n_given N/A Function %s expects %d args (%s) but given %d (%s) N/A N/A src_fundef name n_expected arg_str n_given args N/A rename_dict N/A rename_var N/A N/A old_name N/A N/A N/A t N/A N/A src_fundef type_env N/A old_name N/A new_name N/A N/A names refresh old_name N/A new_var N/A Var new_name type t N/A N/A rename_dict N/A old_name new_var N/A N/A dest_type_env N/A new_name t N/A new_var N/A N/A N/A old_formal actual N/A zip arg_names args N/A N/A N/A N/A actual __class__ N/A Var Const N/A N/A N/A rename_dict N/A old_formal actual N/A N/A new_var N/A rename_var old_formal N/A N/A N/A dest_block append N/A Assign new_var actual N/A old_name N/A N/A N/A src_fundef type_env iterkeys N/A N/A N/A old_name arg_names N/A N/A N/A rename_var old_name N/A new_body N/A subst_stmt_list N/A src_fundef body rename_dict N/A N/A result_var None N/A N/A N/A result_var new_body N/A replace_return_with_var new_body dest_type_env N/A src_fundef return_type N/A N/A new_body N/A replace_returns new_body result_var N/A N/A N/A dest_block extend new_body N/A result_var N/A Inliner N/A Transform N/A __init__ N/A N/A self N/A N/A N/A N/A N/A Transform __init__ self N/A N/A self count 0 N/A transform_TypedFn N/A N/A self expr N/A N/A N/A N/A N/A N/A Inliner apply expr N/A transform_ExprStmt N/A N/A self stmt N/A N/A N/A N/A N/A Transform transform_ExprStmt self stmt N/A transform_Call N/A N/A self expr N/A N/A N/A fn N/A N/A self transform_expr N/A expr fn N/A target N/A N/A self get_fn fn N/A N/A N/A target __class__ TypedFn N/A N/A closure_args N/A N/A self closure_elts fn N/A N/A N/A can_inline target N/A N/A expr N/A N/A self count 1 N/A curr_block N/A N/A N/A self blocks current N/A combined_args N/A N/A tuple closure_args N/A tuple N/A expr args N/A result_var N/A do_inline target combined_args N/A self type_env curr_block N/A result_var N/A N/A expr N/A apply N/A N/A self fn N/A N/A N/A N/A contains_calls fn N/A N/A N/A N/A Transform apply self fn N/A N/A fn N/A N/A