diff --git a/representer/normalizer.py b/representer/normalizer.py index 9938975..a195dc4 100644 --- a/representer/normalizer.py +++ b/representer/normalizer.py @@ -10,6 +10,8 @@ Assign, AsyncFunctionDef, Attribute, + BinOp, + BoolOp, Call, ClassDef, Compare, @@ -22,6 +24,7 @@ GeneratorExp, Global, If, + Lambda, ListComp, Load, Module, @@ -31,7 +34,9 @@ SetComp, Str, Store, + UnaryOp, Yield, + YieldFrom, alias, arg, get_docstring, @@ -311,13 +316,8 @@ def visit_Expr(self, node: Expr) -> Optional[Expr]: if node.value.func.id == 'print': return None - # Pass through generator code. - if isinstance(node.value, Yield): - return node - - - # Eliminate previously registered docstrings - if not isinstance(node.value, Call): + if isinstance(node.value, Constant) and not isinstance(node.value, Call): + # eliminate registered docstrings if utils.md5sum(node.value.value) in self._docstring_cache: return None diff --git a/test/concept-plane-tickets/representation.out b/test/concept-plane-tickets/representation.out index d7add39..fed1f4c 100644 --- a/test/concept-plane-tickets/representation.out +++ b/test/concept-plane-tickets/representation.out @@ -6,7 +6,7 @@ placeholder_0 = ["A", "B", "C", "D"] def placeholder_1(placeholder_2): for placeholder_3 in range(placeholder_2): - yield SEATS_IN_ROW[seat % 4] + yield placeholder_0[placeholder_3 % 4] def placeholder_4(placeholder_2): @@ -15,7 +15,7 @@ def placeholder_4(placeholder_2): for placeholder_3 in range(placeholder_2): placeholder_6 = math.ceil((placeholder_3 + 1) / 4) if placeholder_6 != 13: - yield f"{str(row_number)}{next(letters)}" + yield f"{str(placeholder_6)}{next(placeholder_5)}" def placeholder_7(placeholder_8): @@ -31,7 +31,7 @@ def placeholder_7(placeholder_8): def placeholder_12(placeholder_13, placeholder_14): for placeholder_3 in placeholder_13: placeholder_15 = f"{placeholder_3}{placeholder_14}" - yield (base_string + "0" * (12 - len(base_string))) + yield (placeholder_15 + "0" * (12 - len(placeholder_15))) ## END NORMALIZED CODE ## @@ -1023,7 +1023,7 @@ Module( Yield( Subscript( Name( - 'SEATS_IN_ROW', + 'placeholder_0', Load(), lineno=22, col_offset=14, @@ -1031,7 +1031,7 @@ Module( end_col_offset=26), BinOp( Name( - 'seat', + 'placeholder_3', Load(), lineno=22, col_offset=27, @@ -1318,7 +1318,7 @@ Module( end_col_offset=24), [ Name( - 'row_number', + 'placeholder_6', Load(), lineno=47, col_offset=25, @@ -1345,7 +1345,7 @@ Module( end_col_offset=42), [ Name( - 'letters', + 'placeholder_5', Load(), lineno=47, col_offset=43, @@ -1663,7 +1663,7 @@ Module( Yield( BinOp( Name( - 'base_string', + 'placeholder_15', Load(), lineno=80, col_offset=14, @@ -1696,7 +1696,7 @@ Module( end_col_offset=43), [ Name( - 'base_string', + 'placeholder_15', Load(), lineno=80, col_offset=44, diff --git a/test/concept-plane-tickets/representation.txt b/test/concept-plane-tickets/representation.txt index 7a2615a..daae570 100644 --- a/test/concept-plane-tickets/representation.txt +++ b/test/concept-plane-tickets/representation.txt @@ -1 +1 @@ -Module([Import([alias('math', lineno=3, col_offset=7, end_lineno=3, end_col_offset=11)], lineno=3, col_offset=0, end_lineno=3, end_col_offset=11), Assign([Name('placeholder_0', Store(), lineno=5, col_offset=0, end_lineno=5, end_col_offset=12)], List([Constant('A', lineno=5, col_offset=16, end_lineno=5, end_col_offset=19), Constant('B', lineno=5, col_offset=21, end_lineno=5, end_col_offset=24), Constant('C', lineno=5, col_offset=26, end_lineno=5, end_col_offset=29), Constant('D', lineno=5, col_offset=31, end_lineno=5, end_col_offset=34)], Load(), lineno=5, col_offset=15, end_lineno=5, end_col_offset=35), lineno=5, col_offset=0, end_lineno=5, end_col_offset=35), FunctionDef('placeholder_1', arguments([], [arg('placeholder_2', lineno=8, col_offset=26, end_lineno=8, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=21, col_offset=8, end_lineno=21, end_col_offset=12), Call(Name('range', Load(), lineno=21, col_offset=16, end_lineno=21, end_col_offset=21), [Name('placeholder_2', Load(), lineno=21, col_offset=22, end_lineno=21, end_col_offset=28)], [], lineno=21, col_offset=16, end_lineno=21, end_col_offset=29), [Expr(Yield(Subscript(Name('SEATS_IN_ROW', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=26), BinOp(Name('seat', Load(), lineno=22, col_offset=27, end_lineno=22, end_col_offset=31), Mod(), Constant(4, lineno=22, col_offset=34, end_lineno=22, end_col_offset=35), lineno=22, col_offset=27, end_lineno=22, end_col_offset=35), Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36)], [], lineno=21, col_offset=4, end_lineno=22, end_col_offset=36)], [], lineno=8, col_offset=0, end_lineno=22, end_col_offset=36), FunctionDef('placeholder_4', arguments([], [arg('placeholder_2', lineno=25, col_offset=19, end_lineno=25, end_col_offset=25)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=42, col_offset=4, end_lineno=42, end_col_offset=10)], IfExp(Compare(Name('placeholder_2', Load(), lineno=42, col_offset=27, end_lineno=42, end_col_offset=33), [GtE()], [Constant(13, lineno=42, col_offset=37, end_lineno=42, end_col_offset=39)], lineno=42, col_offset=27, end_lineno=42, end_col_offset=39), BinOp(Name('placeholder_2', Load(), lineno=42, col_offset=13, end_lineno=42, end_col_offset=19), Add(), Constant(4, lineno=42, col_offset=22, end_lineno=42, end_col_offset=23), lineno=42, col_offset=13, end_lineno=42, end_col_offset=23), Name('placeholder_2', Load(), lineno=42, col_offset=45, end_lineno=42, end_col_offset=51), lineno=42, col_offset=13, end_lineno=42, end_col_offset=51), lineno=42, col_offset=4, end_lineno=42, end_col_offset=51), Assign([Name('placeholder_5', Store(), lineno=43, col_offset=4, end_lineno=43, end_col_offset=11)], Call(Name('placeholder_1', Load(), lineno=43, col_offset=14, end_lineno=43, end_col_offset=35), [Name('placeholder_2', Load(), lineno=43, col_offset=36, end_lineno=43, end_col_offset=42)], [], lineno=43, col_offset=14, end_lineno=43, end_col_offset=43), lineno=43, col_offset=4, end_lineno=43, end_col_offset=43), For(Name('placeholder_3', Store(), lineno=44, col_offset=8, end_lineno=44, end_col_offset=12), Call(Name('range', Load(), lineno=44, col_offset=16, end_lineno=44, end_col_offset=21), [Name('placeholder_2', Load(), lineno=44, col_offset=22, end_lineno=44, end_col_offset=28)], [], lineno=44, col_offset=16, end_lineno=44, end_col_offset=29), [Assign([Name('placeholder_6', Store(), lineno=45, col_offset=8, end_lineno=45, end_col_offset=18)], Call(Attribute(Name('math', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=25), 'ceil', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=30), [BinOp(BinOp(Name('placeholder_3', Load(), lineno=45, col_offset=32, end_lineno=45, end_col_offset=36), Add(), Constant(1, lineno=45, col_offset=37, end_lineno=45, end_col_offset=38), lineno=45, col_offset=32, end_lineno=45, end_col_offset=38), Div(), Constant(4, lineno=45, col_offset=42, end_lineno=45, end_col_offset=43), lineno=45, col_offset=31, end_lineno=45, end_col_offset=43)], [], lineno=45, col_offset=21, end_lineno=45, end_col_offset=44), lineno=45, col_offset=8, end_lineno=45, end_col_offset=44), If(Compare(Name('placeholder_6', Load(), lineno=46, col_offset=11, end_lineno=46, end_col_offset=21), [NotEq()], [Constant(13, lineno=46, col_offset=25, end_lineno=46, end_col_offset=27)], lineno=46, col_offset=11, end_lineno=46, end_col_offset=27), [Expr(Yield(JoinedStr([FormattedValue(Call(Name('str', Load(), lineno=47, col_offset=21, end_lineno=47, end_col_offset=24), [Name('row_number', Load(), lineno=47, col_offset=25, end_lineno=47, end_col_offset=35)], [], lineno=47, col_offset=21, end_lineno=47, end_col_offset=36), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), FormattedValue(Call(Name('next', Load(), lineno=47, col_offset=38, end_lineno=47, end_col_offset=42), [Name('letters', Load(), lineno=47, col_offset=43, end_lineno=47, end_col_offset=50)], [], lineno=47, col_offset=38, end_lineno=47, end_col_offset=51), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53)], lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53)], [], lineno=46, col_offset=8, end_lineno=47, end_col_offset=53)], [], lineno=44, col_offset=4, end_lineno=47, end_col_offset=53)], [], lineno=25, col_offset=0, end_lineno=47, end_col_offset=53), FunctionDef('placeholder_7', arguments([], [arg('placeholder_8', lineno=53, col_offset=17, end_lineno=53, end_col_offset=27)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=63, col_offset=4, end_lineno=63, end_col_offset=10)], Call(Name('len', Load(), lineno=63, col_offset=13, end_lineno=63, end_col_offset=16), [Name('placeholder_8', Load(), lineno=63, col_offset=17, end_lineno=63, end_col_offset=27)], [], lineno=63, col_offset=13, end_lineno=63, end_col_offset=28), lineno=63, col_offset=4, end_lineno=63, end_col_offset=28), Assign([Name('placeholder_9', Store(), lineno=64, col_offset=4, end_lineno=64, end_col_offset=10)], Dict([], [], lineno=64, col_offset=13, end_lineno=64, end_col_offset=15), lineno=64, col_offset=4, end_lineno=64, end_col_offset=15), For(Tuple([Name('placeholder_10', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=17), Name('placeholder_11', Store(), lineno=65, col_offset=19, end_lineno=65, end_col_offset=30)], Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=30), Call(Name('zip', Load(), lineno=65, col_offset=34, end_lineno=65, end_col_offset=37), [Name('placeholder_8', Load(), lineno=65, col_offset=38, end_lineno=65, end_col_offset=48), Call(Name('placeholder_4', Load(), lineno=65, col_offset=50, end_lineno=65, end_col_offset=64), [Name('placeholder_2', Load(), lineno=65, col_offset=65, end_lineno=65, end_col_offset=71)], [], lineno=65, col_offset=50, end_lineno=65, end_col_offset=72)], [], lineno=65, col_offset=34, end_lineno=65, end_col_offset=73), [Assign([Subscript(Name('placeholder_9', Load(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=14), Name('placeholder_10', Load(), lineno=66, col_offset=15, end_lineno=66, end_col_offset=24), Store(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=25)], Name('placeholder_11', Load(), lineno=66, col_offset=28, end_lineno=66, end_col_offset=39), lineno=66, col_offset=8, end_lineno=66, end_col_offset=39)], [], lineno=65, col_offset=4, end_lineno=66, end_col_offset=39), Return(Name('placeholder_9', Load(), lineno=67, col_offset=11, end_lineno=67, end_col_offset=17), lineno=67, col_offset=4, end_lineno=67, end_col_offset=17)], [], lineno=53, col_offset=0, end_lineno=67, end_col_offset=17), FunctionDef('placeholder_12', arguments([], [arg('placeholder_13', lineno=69, col_offset=19, end_lineno=69, end_col_offset=31), arg('placeholder_14', lineno=69, col_offset=33, end_lineno=69, end_col_offset=42)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=78, col_offset=8, end_lineno=78, end_col_offset=12), Name('placeholder_13', Load(), lineno=78, col_offset=16, end_lineno=78, end_col_offset=28), [Assign([Name('placeholder_15', Store(), lineno=79, col_offset=8, end_lineno=79, end_col_offset=19)], JoinedStr([FormattedValue(Name('placeholder_3', Load(), lineno=79, col_offset=25, end_lineno=79, end_col_offset=29), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), FormattedValue(Name('placeholder_14', Load(), lineno=79, col_offset=31, end_lineno=79, end_col_offset=40), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42)], lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), lineno=79, col_offset=8, end_lineno=79, end_col_offset=42), Expr(Yield(BinOp(Name('base_string', Load(), lineno=80, col_offset=14, end_lineno=80, end_col_offset=25), Add(), BinOp(Constant('0', lineno=80, col_offset=28, end_lineno=80, end_col_offset=31), Mult(), BinOp(Constant(12, lineno=80, col_offset=35, end_lineno=80, end_col_offset=37), Sub(), Call(Name('len', Load(), lineno=80, col_offset=40, end_lineno=80, end_col_offset=43), [Name('base_string', Load(), lineno=80, col_offset=44, end_lineno=80, end_col_offset=55)], [], lineno=80, col_offset=40, end_lineno=80, end_col_offset=56), lineno=80, col_offset=35, end_lineno=80, end_col_offset=56), lineno=80, col_offset=28, end_lineno=80, end_col_offset=57), lineno=80, col_offset=14, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57)], [], lineno=78, col_offset=4, end_lineno=80, end_col_offset=57)], [], lineno=69, col_offset=0, end_lineno=80, end_col_offset=57)], []) \ No newline at end of file +Module([Import([alias('math', lineno=3, col_offset=7, end_lineno=3, end_col_offset=11)], lineno=3, col_offset=0, end_lineno=3, end_col_offset=11), Assign([Name('placeholder_0', Store(), lineno=5, col_offset=0, end_lineno=5, end_col_offset=12)], List([Constant('A', lineno=5, col_offset=16, end_lineno=5, end_col_offset=19), Constant('B', lineno=5, col_offset=21, end_lineno=5, end_col_offset=24), Constant('C', lineno=5, col_offset=26, end_lineno=5, end_col_offset=29), Constant('D', lineno=5, col_offset=31, end_lineno=5, end_col_offset=34)], Load(), lineno=5, col_offset=15, end_lineno=5, end_col_offset=35), lineno=5, col_offset=0, end_lineno=5, end_col_offset=35), FunctionDef('placeholder_1', arguments([], [arg('placeholder_2', lineno=8, col_offset=26, end_lineno=8, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=21, col_offset=8, end_lineno=21, end_col_offset=12), Call(Name('range', Load(), lineno=21, col_offset=16, end_lineno=21, end_col_offset=21), [Name('placeholder_2', Load(), lineno=21, col_offset=22, end_lineno=21, end_col_offset=28)], [], lineno=21, col_offset=16, end_lineno=21, end_col_offset=29), [Expr(Yield(Subscript(Name('placeholder_0', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=26), BinOp(Name('placeholder_3', Load(), lineno=22, col_offset=27, end_lineno=22, end_col_offset=31), Mod(), Constant(4, lineno=22, col_offset=34, end_lineno=22, end_col_offset=35), lineno=22, col_offset=27, end_lineno=22, end_col_offset=35), Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36)], [], lineno=21, col_offset=4, end_lineno=22, end_col_offset=36)], [], lineno=8, col_offset=0, end_lineno=22, end_col_offset=36), FunctionDef('placeholder_4', arguments([], [arg('placeholder_2', lineno=25, col_offset=19, end_lineno=25, end_col_offset=25)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=42, col_offset=4, end_lineno=42, end_col_offset=10)], IfExp(Compare(Name('placeholder_2', Load(), lineno=42, col_offset=27, end_lineno=42, end_col_offset=33), [GtE()], [Constant(13, lineno=42, col_offset=37, end_lineno=42, end_col_offset=39)], lineno=42, col_offset=27, end_lineno=42, end_col_offset=39), BinOp(Name('placeholder_2', Load(), lineno=42, col_offset=13, end_lineno=42, end_col_offset=19), Add(), Constant(4, lineno=42, col_offset=22, end_lineno=42, end_col_offset=23), lineno=42, col_offset=13, end_lineno=42, end_col_offset=23), Name('placeholder_2', Load(), lineno=42, col_offset=45, end_lineno=42, end_col_offset=51), lineno=42, col_offset=13, end_lineno=42, end_col_offset=51), lineno=42, col_offset=4, end_lineno=42, end_col_offset=51), Assign([Name('placeholder_5', Store(), lineno=43, col_offset=4, end_lineno=43, end_col_offset=11)], Call(Name('placeholder_1', Load(), lineno=43, col_offset=14, end_lineno=43, end_col_offset=35), [Name('placeholder_2', Load(), lineno=43, col_offset=36, end_lineno=43, end_col_offset=42)], [], lineno=43, col_offset=14, end_lineno=43, end_col_offset=43), lineno=43, col_offset=4, end_lineno=43, end_col_offset=43), For(Name('placeholder_3', Store(), lineno=44, col_offset=8, end_lineno=44, end_col_offset=12), Call(Name('range', Load(), lineno=44, col_offset=16, end_lineno=44, end_col_offset=21), [Name('placeholder_2', Load(), lineno=44, col_offset=22, end_lineno=44, end_col_offset=28)], [], lineno=44, col_offset=16, end_lineno=44, end_col_offset=29), [Assign([Name('placeholder_6', Store(), lineno=45, col_offset=8, end_lineno=45, end_col_offset=18)], Call(Attribute(Name('math', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=25), 'ceil', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=30), [BinOp(BinOp(Name('placeholder_3', Load(), lineno=45, col_offset=32, end_lineno=45, end_col_offset=36), Add(), Constant(1, lineno=45, col_offset=37, end_lineno=45, end_col_offset=38), lineno=45, col_offset=32, end_lineno=45, end_col_offset=38), Div(), Constant(4, lineno=45, col_offset=42, end_lineno=45, end_col_offset=43), lineno=45, col_offset=31, end_lineno=45, end_col_offset=43)], [], lineno=45, col_offset=21, end_lineno=45, end_col_offset=44), lineno=45, col_offset=8, end_lineno=45, end_col_offset=44), If(Compare(Name('placeholder_6', Load(), lineno=46, col_offset=11, end_lineno=46, end_col_offset=21), [NotEq()], [Constant(13, lineno=46, col_offset=25, end_lineno=46, end_col_offset=27)], lineno=46, col_offset=11, end_lineno=46, end_col_offset=27), [Expr(Yield(JoinedStr([FormattedValue(Call(Name('str', Load(), lineno=47, col_offset=21, end_lineno=47, end_col_offset=24), [Name('placeholder_6', Load(), lineno=47, col_offset=25, end_lineno=47, end_col_offset=35)], [], lineno=47, col_offset=21, end_lineno=47, end_col_offset=36), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), FormattedValue(Call(Name('next', Load(), lineno=47, col_offset=38, end_lineno=47, end_col_offset=42), [Name('placeholder_5', Load(), lineno=47, col_offset=43, end_lineno=47, end_col_offset=50)], [], lineno=47, col_offset=38, end_lineno=47, end_col_offset=51), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53)], lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53)], [], lineno=46, col_offset=8, end_lineno=47, end_col_offset=53)], [], lineno=44, col_offset=4, end_lineno=47, end_col_offset=53)], [], lineno=25, col_offset=0, end_lineno=47, end_col_offset=53), FunctionDef('placeholder_7', arguments([], [arg('placeholder_8', lineno=53, col_offset=17, end_lineno=53, end_col_offset=27)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=63, col_offset=4, end_lineno=63, end_col_offset=10)], Call(Name('len', Load(), lineno=63, col_offset=13, end_lineno=63, end_col_offset=16), [Name('placeholder_8', Load(), lineno=63, col_offset=17, end_lineno=63, end_col_offset=27)], [], lineno=63, col_offset=13, end_lineno=63, end_col_offset=28), lineno=63, col_offset=4, end_lineno=63, end_col_offset=28), Assign([Name('placeholder_9', Store(), lineno=64, col_offset=4, end_lineno=64, end_col_offset=10)], Dict([], [], lineno=64, col_offset=13, end_lineno=64, end_col_offset=15), lineno=64, col_offset=4, end_lineno=64, end_col_offset=15), For(Tuple([Name('placeholder_10', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=17), Name('placeholder_11', Store(), lineno=65, col_offset=19, end_lineno=65, end_col_offset=30)], Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=30), Call(Name('zip', Load(), lineno=65, col_offset=34, end_lineno=65, end_col_offset=37), [Name('placeholder_8', Load(), lineno=65, col_offset=38, end_lineno=65, end_col_offset=48), Call(Name('placeholder_4', Load(), lineno=65, col_offset=50, end_lineno=65, end_col_offset=64), [Name('placeholder_2', Load(), lineno=65, col_offset=65, end_lineno=65, end_col_offset=71)], [], lineno=65, col_offset=50, end_lineno=65, end_col_offset=72)], [], lineno=65, col_offset=34, end_lineno=65, end_col_offset=73), [Assign([Subscript(Name('placeholder_9', Load(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=14), Name('placeholder_10', Load(), lineno=66, col_offset=15, end_lineno=66, end_col_offset=24), Store(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=25)], Name('placeholder_11', Load(), lineno=66, col_offset=28, end_lineno=66, end_col_offset=39), lineno=66, col_offset=8, end_lineno=66, end_col_offset=39)], [], lineno=65, col_offset=4, end_lineno=66, end_col_offset=39), Return(Name('placeholder_9', Load(), lineno=67, col_offset=11, end_lineno=67, end_col_offset=17), lineno=67, col_offset=4, end_lineno=67, end_col_offset=17)], [], lineno=53, col_offset=0, end_lineno=67, end_col_offset=17), FunctionDef('placeholder_12', arguments([], [arg('placeholder_13', lineno=69, col_offset=19, end_lineno=69, end_col_offset=31), arg('placeholder_14', lineno=69, col_offset=33, end_lineno=69, end_col_offset=42)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=78, col_offset=8, end_lineno=78, end_col_offset=12), Name('placeholder_13', Load(), lineno=78, col_offset=16, end_lineno=78, end_col_offset=28), [Assign([Name('placeholder_15', Store(), lineno=79, col_offset=8, end_lineno=79, end_col_offset=19)], JoinedStr([FormattedValue(Name('placeholder_3', Load(), lineno=79, col_offset=25, end_lineno=79, end_col_offset=29), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), FormattedValue(Name('placeholder_14', Load(), lineno=79, col_offset=31, end_lineno=79, end_col_offset=40), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42)], lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), lineno=79, col_offset=8, end_lineno=79, end_col_offset=42), Expr(Yield(BinOp(Name('placeholder_15', Load(), lineno=80, col_offset=14, end_lineno=80, end_col_offset=25), Add(), BinOp(Constant('0', lineno=80, col_offset=28, end_lineno=80, end_col_offset=31), Mult(), BinOp(Constant(12, lineno=80, col_offset=35, end_lineno=80, end_col_offset=37), Sub(), Call(Name('len', Load(), lineno=80, col_offset=40, end_lineno=80, end_col_offset=43), [Name('placeholder_15', Load(), lineno=80, col_offset=44, end_lineno=80, end_col_offset=55)], [], lineno=80, col_offset=40, end_lineno=80, end_col_offset=56), lineno=80, col_offset=35, end_lineno=80, end_col_offset=56), lineno=80, col_offset=28, end_lineno=80, end_col_offset=57), lineno=80, col_offset=14, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57)], [], lineno=78, col_offset=4, end_lineno=80, end_col_offset=57)], [], lineno=69, col_offset=0, end_lineno=80, end_col_offset=57)], []) \ No newline at end of file diff --git a/test/example-expression-normalization/.meta/config.json b/test/example-expression-normalization/.meta/config.json new file mode 100644 index 0000000..986ac91 --- /dev/null +++ b/test/example-expression-normalization/.meta/config.json @@ -0,0 +1,10 @@ +{ + "authors": [ + "bethanyg","brocla" + ], + "files": { + "solution": [ + "example_expression_normalization.py" + ] + } +} \ No newline at end of file diff --git a/test/example-expression-normalization/example_expression_normalization.py b/test/example-expression-normalization/example_expression_normalization.py new file mode 100644 index 0000000..e5e4e93 --- /dev/null +++ b/test/example-expression-normalization/example_expression_normalization.py @@ -0,0 +1,157 @@ +"""Hanging Module docstring. + + This is to make sure that the Expression changes don't munge things""" + + +import unittest +import pytest +from dataclass import dataclass +from Enum import Flag + + +# Examples of "Hanging Expressions (expressions not assigned to a name)" +# These have been barfing in the representer, due to bad refrences when +# checking the cache. + +# hanging uninitialized dataclass +@dataclass +class Point: + """Docstring to test removal.""" + x: int = 0 + y: int = 0 + + +# Hanging try/except +try: + 1/0 +except: + pass + + +# Random addition +5+6 + + +# Hanging print() (should get removed) +print(5+6) + + +# Various hanging comprehensions and genexps +(item for item in range(8)) +[item for item in range(16)] +{item for item in "a b c d e f g h i".split()} +{key:value for key, value in ((1, "a"),(2, "b"),(3, "c"),(5, "e"))} + +# Hanging and not hanging lambdas +lambda : {key:value for key, value in ((1, "a"),(2, "b"),(3, "c"),(5, "e"))} +test_assign_name = lambda : {item for item in "a b c d e f g h i".split()} + + +# hanging "constants" +-a +THIS_IS_A_CONSTANT = "It would be stupid if this exploded." + +"""Random Hanging String""" + + +# hanging Enum +class Allergene(Flag): + eggs = auto() + peanuts = auto() + shellfish = auto() + strawberries = auto() + tomatoes = auto() + chocolate = auto() + pollen = auto() + cats = auto() + +# The below is a hanging try/except from Guido's Gorgeous Lasagna exercise. + +# For this first exercise, it is really important to be clear about how we are importing names for tests. +# To that end, we are putting a try/catch around imports and throwing specific messages to help students +# decode that they need to create and title their constants and functions in a specific way. +try: + from lasagna import (EXPECTED_BAKE_TIME, + bake_time_remaining, + preparation_time_in_minutes, + elapsed_time_in_minutes) + +# Here, we are separating the constant import errors from the function name import errors +except ImportError as import_fail: + message = import_fail.args[0].split('(', maxsplit=1) + item_name = import_fail.args[0].split()[3] + + if 'EXPECTED_BAKE_TIME' in item_name: + # pylint: disable=raise-missing-from + raise ImportError(f'\n\nMISSING CONSTANT --> \nWe can not find or import the constant {item_name} in your' + " 'lasagna.py' file.\nDid you misname or forget to define it?") from None + else: + item_name = item_name[:-1] + "()'" + # pylint: disable=raise-missing-from + raise ImportError("\n\nMISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the" + f' function named {item_name}. \nDid you misname or forget to define it?') from None + + +# The below examples overlap with other tests, but are here to show that +# the docstring removals don't alter other expression-type code. + + +def slices(series, length): + """ + Given a string of digits, output all the contiguous substrings of length `n`, + in that string, in the order that they appear. + """ + return [ + sub_str + for i, _ in enumerate(series) + if len(sub_str := series[i : i + length]) == length + ] + + +# yield from and yield examples +from typing import Iterable +def flatten(iterable): + def go(it): + for e in it: + if isinstance(e, Iterable) and not isinstance(e, str): + yield from go(e) + else: + yield e + return [e for e in go(iterable) if e is not None] + + + +def check_height(grid): + """check that row count is a multiple of 4""" + if (height := len(grid)) % 3: + raise ValueError("grid rows not a multiple of 4") + return height + + +def nswe_points(self, point): + """return a set of four adjacent points""" + nswe_offsets = set([(1, 0), (-1, 0), (0, -1), (0, 1)]) + return { + neighbor + for offset in nswe_offsets + if self.on_the_board(neighbor := point + offset) + } + + +def first_item_greater_than_N(iterable, N): + if any((item := x) > N for x in iterable): + return item + return None + + +def generate_codes(seat_numbers, flight_id): + """Generate codes for a ticket. + + :param seat_numbers: list[str] - list of seat numbers. + :param flight_id: str - string containing the flight identifier. + :return: generator - generator that yields 12 character long ticket codes. + + """ + return ( + base.ljust(12, "0") for seat in seat_numbers if (base := f"{seat}{flight_id}") + ) diff --git a/test/example-expression-normalization/mapping.json b/test/example-expression-normalization/mapping.json new file mode 100644 index 0000000..3fce420 --- /dev/null +++ b/test/example-expression-normalization/mapping.json @@ -0,0 +1,50 @@ +{ + "placeholder_0": "Point", + "placeholder_1": "x", + "placeholder_2": "y", + "placeholder_3": "item", + "placeholder_4": "key", + "placeholder_5": "value", + "placeholder_6": "test_assign_name", + "placeholder_7": "THIS_IS_A_CONSTANT", + "placeholder_8": "Allergene", + "placeholder_9": "eggs", + "placeholder_10": "peanuts", + "placeholder_11": "shellfish", + "placeholder_12": "strawberries", + "placeholder_13": "tomatoes", + "placeholder_14": "chocolate", + "placeholder_15": "pollen", + "placeholder_16": "cats", + "placeholder_17": "import_fail", + "placeholder_18": "message", + "placeholder_19": "maxsplit", + "placeholder_20": "item_name", + "placeholder_21": "slices", + "placeholder_22": "series", + "placeholder_23": "length", + "placeholder_24": "i", + "placeholder_25": "_", + "placeholder_26": "sub_str", + "placeholder_27": "flatten", + "placeholder_28": "iterable", + "placeholder_29": "go", + "placeholder_30": "it", + "placeholder_31": "e", + "placeholder_32": "check_height", + "placeholder_33": "grid", + "placeholder_34": "height", + "placeholder_35": "nswe_points", + "placeholder_36": "point", + "placeholder_37": "nswe_offsets", + "placeholder_38": "offset", + "placeholder_39": "neighbor", + "placeholder_40": "first_item_greater_than_N", + "placeholder_41": "N", + "placeholder_42": "placeholder_3", + "placeholder_43": "generate_codes", + "placeholder_44": "seat_numbers", + "placeholder_45": "flight_id", + "placeholder_46": "seat", + "placeholder_47": "base" +} \ No newline at end of file diff --git a/test/example-expression-normalization/representation.json b/test/example-expression-normalization/representation.json new file mode 100644 index 0000000..051b2b6 --- /dev/null +++ b/test/example-expression-normalization/representation.json @@ -0,0 +1,3 @@ +{ + "version": 2 +} \ No newline at end of file diff --git a/test/example-expression-normalization/representation.out b/test/example-expression-normalization/representation.out new file mode 100644 index 0000000..a17ac5a --- /dev/null +++ b/test/example-expression-normalization/representation.out @@ -0,0 +1,5005 @@ +## BEGIN NORMALIZED CODE ## +import unittest +import pytest +from dataclass import dataclass +from Enum import Flag + + +@dataclass +class placeholder_0: + placeholder_1 = 0 + placeholder_2 = 0 + + +try: + 1 / 0 +except: + pass +5 + 6 +(placeholder_3 for placeholder_3 in range(8)) +[placeholder_3 for placeholder_3 in range(16)] +{placeholder_3 for placeholder_3 in "a b c d e f g h i".split()} +{ + placeholder_4: placeholder_5 + for placeholder_4, placeholder_5 in ((1, "a"), (2, "b"), (3, "c"), (5, "e")) +} +lambda: { + placeholder_4: placeholder_5 + for placeholder_4, placeholder_5 in ((1, "a"), (2, "b"), (3, "c"), (5, "e")) +} +placeholder_6 = lambda: {placeholder_3 for placeholder_3 in "a b c d e f g h i".split()} +-a +placeholder_7 = "It would be stupid if this exploded." +"Random Hanging String" + + +class placeholder_8(Flag): + placeholder_9 = auto() + placeholder_10 = auto() + placeholder_11 = auto() + placeholder_12 = auto() + placeholder_13 = auto() + placeholder_14 = auto() + placeholder_15 = auto() + placeholder_16 = auto() + + +try: + from lasagna import ( + EXPECTED_BAKE_TIME, + bake_time_remaining, + preparation_time_in_minutes, + elapsed_time_in_minutes, + ) +except ImportError as placeholder_17: + placeholder_18 = placeholder_17.args[0].split("(", placeholder_19=1) + placeholder_20 = placeholder_17.args[0].split()[3] + if "EXPECTED_BAKE_TIME" in placeholder_20: + raise ImportError( + f"\n\nMISSING CONSTANT --> \nWe can not find or import the constant {placeholder_20} in your 'lasagna.py' file.\nDid you misname or forget to define it?" + ) from None + else: + placeholder_20 = placeholder_20[:-1] + "()'" + raise ImportError( + f"\n\nMISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the function named {placeholder_20}. \nDid you misname or forget to define it?" + ) from None + + +def placeholder_21(placeholder_22, placeholder_23): + return [ + placeholder_26 + for placeholder_24, placeholder_25 in enumerate(placeholder_22) + if len( + ( + placeholder_26 := placeholder_22[ + placeholder_24 : placeholder_24 + placeholder_23 + ] + ) + ) + == placeholder_23 + ] + + +from typing import Iterable + + +def placeholder_27(placeholder_28): + def placeholder_29(placeholder_30): + for placeholder_31 in placeholder_30: + if isinstance(placeholder_31, Iterable) and ( + not isinstance(placeholder_31, str) + ): + yield from placeholder_29(placeholder_31) + else: + yield placeholder_31 + + return [ + placeholder_31 + for placeholder_31 in placeholder_29(placeholder_28) + if placeholder_31 is not None + ] + + +def placeholder_32(placeholder_33): + if (placeholder_34 := len(placeholder_33)) % 3: + raise ValueError("grid rows not a multiple of 4") + return placeholder_34 + + +def placeholder_35(self, placeholder_36): + placeholder_37 = set([(1, 0), (-1, 0), (0, -1), (0, 1)]) + return { + placeholder_39 + for placeholder_38 in placeholder_37 + if self.on_the_board((placeholder_39 := (placeholder_36 + placeholder_38))) + } + + +def placeholder_40(placeholder_28, placeholder_41): + if any( + ( + (placeholder_42 := placeholder_1) > placeholder_41 + for placeholder_1 in placeholder_28 + ) + ): + return placeholder_3 + return None + + +def placeholder_43(placeholder_44, placeholder_45): + return ( + placeholder_47.ljust(12, "0") + for placeholder_46 in placeholder_44 + if (placeholder_47 := f"{placeholder_46}{placeholder_45}") + ) + +## END NORMALIZED CODE ## + +## BEGIN TREE BEFORE ## +Module( + [ + Expr( + Constant( + "Hanging Module docstring.\n\n This is to make sure that the Expression changes don't munge things", + lineno=1, + col_offset=0, + end_lineno=3, + end_col_offset=71), + lineno=1, + col_offset=0, + end_lineno=3, + end_col_offset=71), + Import( + [ + alias( + 'unittest', + lineno=6, + col_offset=7, + end_lineno=6, + end_col_offset=15)], + lineno=6, + col_offset=0, + end_lineno=6, + end_col_offset=15), + Import( + [ + alias( + 'pytest', + lineno=7, + col_offset=7, + end_lineno=7, + end_col_offset=13)], + lineno=7, + col_offset=0, + end_lineno=7, + end_col_offset=13), + ImportFrom( + 'dataclass', + [ + alias( + 'dataclass', + lineno=8, + col_offset=22, + end_lineno=8, + end_col_offset=31)], + 0, + lineno=8, + col_offset=0, + end_lineno=8, + end_col_offset=31), + ImportFrom( + 'Enum', + [ + alias( + 'Flag', + lineno=9, + col_offset=17, + end_lineno=9, + end_col_offset=21)], + 0, + lineno=9, + col_offset=0, + end_lineno=9, + end_col_offset=21), + ClassDef( + 'Point', + [], + [], + [ + Expr( + Constant( + 'Docstring to test removal.', + lineno=19, + col_offset=4, + end_lineno=19, + end_col_offset=36), + lineno=19, + col_offset=4, + end_lineno=19, + end_col_offset=36), + AnnAssign( + Name( + 'x', + Store(), + lineno=20, + col_offset=4, + end_lineno=20, + end_col_offset=5), + Name( + 'int', + Load(), + lineno=20, + col_offset=7, + end_lineno=20, + end_col_offset=10), + Constant( + 0, + lineno=20, + col_offset=13, + end_lineno=20, + end_col_offset=14), + 1, + lineno=20, + col_offset=4, + end_lineno=20, + end_col_offset=14), + AnnAssign( + Name( + 'y', + Store(), + lineno=21, + col_offset=4, + end_lineno=21, + end_col_offset=5), + Name( + 'int', + Load(), + lineno=21, + col_offset=7, + end_lineno=21, + end_col_offset=10), + Constant( + 0, + lineno=21, + col_offset=13, + end_lineno=21, + end_col_offset=14), + 1, + lineno=21, + col_offset=4, + end_lineno=21, + end_col_offset=14)], + [ + Name( + 'dataclass', + Load(), + lineno=17, + col_offset=1, + end_lineno=17, + end_col_offset=10)], + lineno=18, + col_offset=0, + end_lineno=21, + end_col_offset=14), + Try( + [ + Expr( + BinOp( + Constant( + 1, + lineno=26, + col_offset=4, + end_lineno=26, + end_col_offset=5), + Div(), + Constant( + 0, + lineno=26, + col_offset=6, + end_lineno=26, + end_col_offset=7), + lineno=26, + col_offset=4, + end_lineno=26, + end_col_offset=7), + lineno=26, + col_offset=4, + end_lineno=26, + end_col_offset=7)], + [ + ExceptHandler( + body=[ + Pass( + lineno=28, + col_offset=4, + end_lineno=28, + end_col_offset=8)], + lineno=27, + col_offset=0, + end_lineno=28, + end_col_offset=8)], + [], + [], + lineno=25, + col_offset=0, + end_lineno=28, + end_col_offset=8), + Expr( + BinOp( + Constant( + 5, + lineno=32, + col_offset=0, + end_lineno=32, + end_col_offset=1), + Add(), + Constant( + 6, + lineno=32, + col_offset=2, + end_lineno=32, + end_col_offset=3), + lineno=32, + col_offset=0, + end_lineno=32, + end_col_offset=3), + lineno=32, + col_offset=0, + end_lineno=32, + end_col_offset=3), + Expr( + Call( + Name( + 'print', + Load(), + lineno=36, + col_offset=0, + end_lineno=36, + end_col_offset=5), + [ + BinOp( + Constant( + 5, + lineno=36, + col_offset=6, + end_lineno=36, + end_col_offset=7), + Add(), + Constant( + 6, + lineno=36, + col_offset=8, + end_lineno=36, + end_col_offset=9), + lineno=36, + col_offset=6, + end_lineno=36, + end_col_offset=9)], + [], + lineno=36, + col_offset=0, + end_lineno=36, + end_col_offset=10), + lineno=36, + col_offset=0, + end_lineno=36, + end_col_offset=10), + Expr( + GeneratorExp( + Name( + 'item', + Load(), + lineno=40, + col_offset=1, + end_lineno=40, + end_col_offset=5), + [ + comprehension( + Name( + 'item', + Store(), + lineno=40, + col_offset=10, + end_lineno=40, + end_col_offset=14), + Call( + Name( + 'range', + Load(), + lineno=40, + col_offset=18, + end_lineno=40, + end_col_offset=23), + [ + Constant( + 8, + lineno=40, + col_offset=24, + end_lineno=40, + end_col_offset=25)], + [], + lineno=40, + col_offset=18, + end_lineno=40, + end_col_offset=26), + [], + 0)], + lineno=40, + col_offset=0, + end_lineno=40, + end_col_offset=27), + lineno=40, + col_offset=0, + end_lineno=40, + end_col_offset=27), + Expr( + ListComp( + Name( + 'item', + Load(), + lineno=41, + col_offset=1, + end_lineno=41, + end_col_offset=5), + [ + comprehension( + Name( + 'item', + Store(), + lineno=41, + col_offset=10, + end_lineno=41, + end_col_offset=14), + Call( + Name( + 'range', + Load(), + lineno=41, + col_offset=18, + end_lineno=41, + end_col_offset=23), + [ + Constant( + 16, + lineno=41, + col_offset=24, + end_lineno=41, + end_col_offset=26)], + [], + lineno=41, + col_offset=18, + end_lineno=41, + end_col_offset=27), + [], + 0)], + lineno=41, + col_offset=0, + end_lineno=41, + end_col_offset=28), + lineno=41, + col_offset=0, + end_lineno=41, + end_col_offset=28), + Expr( + SetComp( + Name( + 'item', + Load(), + lineno=42, + col_offset=1, + end_lineno=42, + end_col_offset=5), + [ + comprehension( + Name( + 'item', + Store(), + lineno=42, + col_offset=10, + end_lineno=42, + end_col_offset=14), + Call( + Attribute( + Constant( + 'a b c d e f g h i', + lineno=42, + col_offset=18, + end_lineno=42, + end_col_offset=37), + 'split', + Load(), + lineno=42, + col_offset=18, + end_lineno=42, + end_col_offset=43), + [], + [], + lineno=42, + col_offset=18, + end_lineno=42, + end_col_offset=45), + [], + 0)], + lineno=42, + col_offset=0, + end_lineno=42, + end_col_offset=46), + lineno=42, + col_offset=0, + end_lineno=42, + end_col_offset=46), + Expr( + DictComp( + Name( + 'key', + Load(), + lineno=43, + col_offset=1, + end_lineno=43, + end_col_offset=4), + Name( + 'value', + Load(), + lineno=43, + col_offset=5, + end_lineno=43, + end_col_offset=10), + [ + comprehension( + Tuple( + [ + Name( + 'key', + Store(), + lineno=43, + col_offset=15, + end_lineno=43, + end_col_offset=18), + Name( + 'value', + Store(), + lineno=43, + col_offset=20, + end_lineno=43, + end_col_offset=25)], + Store(), + lineno=43, + col_offset=15, + end_lineno=43, + end_col_offset=25), + Tuple( + [ + Tuple( + [ + Constant( + 1, + lineno=43, + col_offset=31, + end_lineno=43, + end_col_offset=32), + Constant( + 'a', + lineno=43, + col_offset=34, + end_lineno=43, + end_col_offset=37)], + Load(), + lineno=43, + col_offset=30, + end_lineno=43, + end_col_offset=38), + Tuple( + [ + Constant( + 2, + lineno=43, + col_offset=40, + end_lineno=43, + end_col_offset=41), + Constant( + 'b', + lineno=43, + col_offset=43, + end_lineno=43, + end_col_offset=46)], + Load(), + lineno=43, + col_offset=39, + end_lineno=43, + end_col_offset=47), + Tuple( + [ + Constant( + 3, + lineno=43, + col_offset=49, + end_lineno=43, + end_col_offset=50), + Constant( + 'c', + lineno=43, + col_offset=52, + end_lineno=43, + end_col_offset=55)], + Load(), + lineno=43, + col_offset=48, + end_lineno=43, + end_col_offset=56), + Tuple( + [ + Constant( + 5, + lineno=43, + col_offset=58, + end_lineno=43, + end_col_offset=59), + Constant( + 'e', + lineno=43, + col_offset=61, + end_lineno=43, + end_col_offset=64)], + Load(), + lineno=43, + col_offset=57, + end_lineno=43, + end_col_offset=65)], + Load(), + lineno=43, + col_offset=29, + end_lineno=43, + end_col_offset=66), + [], + 0)], + lineno=43, + col_offset=0, + end_lineno=43, + end_col_offset=67), + lineno=43, + col_offset=0, + end_lineno=43, + end_col_offset=67), + Expr( + Lambda( + arguments( + [], + [], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + DictComp( + Name( + 'key', + Load(), + lineno=46, + col_offset=10, + end_lineno=46, + end_col_offset=13), + Name( + 'value', + Load(), + lineno=46, + col_offset=14, + end_lineno=46, + end_col_offset=19), + [ + comprehension( + Tuple( + [ + Name( + 'key', + Store(), + lineno=46, + col_offset=24, + end_lineno=46, + end_col_offset=27), + Name( + 'value', + Store(), + lineno=46, + col_offset=29, + end_lineno=46, + end_col_offset=34)], + Store(), + lineno=46, + col_offset=24, + end_lineno=46, + end_col_offset=34), + Tuple( + [ + Tuple( + [ + Constant( + 1, + lineno=46, + col_offset=40, + end_lineno=46, + end_col_offset=41), + Constant( + 'a', + lineno=46, + col_offset=43, + end_lineno=46, + end_col_offset=46)], + Load(), + lineno=46, + col_offset=39, + end_lineno=46, + end_col_offset=47), + Tuple( + [ + Constant( + 2, + lineno=46, + col_offset=49, + end_lineno=46, + end_col_offset=50), + Constant( + 'b', + lineno=46, + col_offset=52, + end_lineno=46, + end_col_offset=55)], + Load(), + lineno=46, + col_offset=48, + end_lineno=46, + end_col_offset=56), + Tuple( + [ + Constant( + 3, + lineno=46, + col_offset=58, + end_lineno=46, + end_col_offset=59), + Constant( + 'c', + lineno=46, + col_offset=61, + end_lineno=46, + end_col_offset=64)], + Load(), + lineno=46, + col_offset=57, + end_lineno=46, + end_col_offset=65), + Tuple( + [ + Constant( + 5, + lineno=46, + col_offset=67, + end_lineno=46, + end_col_offset=68), + Constant( + 'e', + lineno=46, + col_offset=70, + end_lineno=46, + end_col_offset=73)], + Load(), + lineno=46, + col_offset=66, + end_lineno=46, + end_col_offset=74)], + Load(), + lineno=46, + col_offset=38, + end_lineno=46, + end_col_offset=75), + [], + 0)], + lineno=46, + col_offset=9, + end_lineno=46, + end_col_offset=76), + lineno=46, + col_offset=0, + end_lineno=46, + end_col_offset=76), + lineno=46, + col_offset=0, + end_lineno=46, + end_col_offset=76), + Assign( + [ + Name( + 'test_assign_name', + Store(), + lineno=47, + col_offset=0, + end_lineno=47, + end_col_offset=16)], + Lambda( + arguments( + [], + [], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + SetComp( + Name( + 'item', + Load(), + lineno=47, + col_offset=29, + end_lineno=47, + end_col_offset=33), + [ + comprehension( + Name( + 'item', + Store(), + lineno=47, + col_offset=38, + end_lineno=47, + end_col_offset=42), + Call( + Attribute( + Constant( + 'a b c d e f g h i', + lineno=47, + col_offset=46, + end_lineno=47, + end_col_offset=65), + 'split', + Load(), + lineno=47, + col_offset=46, + end_lineno=47, + end_col_offset=71), + [], + [], + lineno=47, + col_offset=46, + end_lineno=47, + end_col_offset=73), + [], + 0)], + lineno=47, + col_offset=28, + end_lineno=47, + end_col_offset=74), + lineno=47, + col_offset=19, + end_lineno=47, + end_col_offset=74), + lineno=47, + col_offset=0, + end_lineno=47, + end_col_offset=74), + Expr( + UnaryOp( + USub(), + Name( + 'a', + Load(), + lineno=51, + col_offset=1, + end_lineno=51, + end_col_offset=2), + lineno=51, + col_offset=0, + end_lineno=51, + end_col_offset=2), + lineno=51, + col_offset=0, + end_lineno=51, + end_col_offset=2), + Assign( + [ + Name( + 'THIS_IS_A_CONSTANT', + Store(), + lineno=52, + col_offset=0, + end_lineno=52, + end_col_offset=18)], + Constant( + 'It would be stupid if this exploded.', + lineno=52, + col_offset=21, + end_lineno=52, + end_col_offset=59), + lineno=52, + col_offset=0, + end_lineno=52, + end_col_offset=59), + Expr( + Constant( + 'Random Hanging String', + lineno=54, + col_offset=0, + end_lineno=54, + end_col_offset=27), + lineno=54, + col_offset=0, + end_lineno=54, + end_col_offset=27), + ClassDef( + 'Allergene', + [ + Name( + 'Flag', + Load(), + lineno=58, + col_offset=16, + end_lineno=58, + end_col_offset=20)], + [], + [ + Assign( + [ + Name( + 'eggs', + Store(), + lineno=59, + col_offset=4, + end_lineno=59, + end_col_offset=8)], + Call( + Name( + 'auto', + Load(), + lineno=59, + col_offset=11, + end_lineno=59, + end_col_offset=15), + [], + [], + lineno=59, + col_offset=11, + end_lineno=59, + end_col_offset=17), + lineno=59, + col_offset=4, + end_lineno=59, + end_col_offset=17), + Assign( + [ + Name( + 'peanuts', + Store(), + lineno=60, + col_offset=4, + end_lineno=60, + end_col_offset=11)], + Call( + Name( + 'auto', + Load(), + lineno=60, + col_offset=14, + end_lineno=60, + end_col_offset=18), + [], + [], + lineno=60, + col_offset=14, + end_lineno=60, + end_col_offset=20), + lineno=60, + col_offset=4, + end_lineno=60, + end_col_offset=20), + Assign( + [ + Name( + 'shellfish', + Store(), + lineno=61, + col_offset=4, + end_lineno=61, + end_col_offset=13)], + Call( + Name( + 'auto', + Load(), + lineno=61, + col_offset=16, + end_lineno=61, + end_col_offset=20), + [], + [], + lineno=61, + col_offset=16, + end_lineno=61, + end_col_offset=22), + lineno=61, + col_offset=4, + end_lineno=61, + end_col_offset=22), + Assign( + [ + Name( + 'strawberries', + Store(), + lineno=62, + col_offset=4, + end_lineno=62, + end_col_offset=16)], + Call( + Name( + 'auto', + Load(), + lineno=62, + col_offset=19, + end_lineno=62, + end_col_offset=23), + [], + [], + lineno=62, + col_offset=19, + end_lineno=62, + end_col_offset=25), + lineno=62, + col_offset=4, + end_lineno=62, + end_col_offset=25), + Assign( + [ + Name( + 'tomatoes', + Store(), + lineno=63, + col_offset=4, + end_lineno=63, + end_col_offset=12)], + Call( + Name( + 'auto', + Load(), + lineno=63, + col_offset=15, + end_lineno=63, + end_col_offset=19), + [], + [], + lineno=63, + col_offset=15, + end_lineno=63, + end_col_offset=21), + lineno=63, + col_offset=4, + end_lineno=63, + end_col_offset=21), + Assign( + [ + Name( + 'chocolate', + Store(), + lineno=64, + col_offset=4, + end_lineno=64, + end_col_offset=13)], + Call( + Name( + 'auto', + Load(), + lineno=64, + col_offset=16, + end_lineno=64, + end_col_offset=20), + [], + [], + lineno=64, + col_offset=16, + end_lineno=64, + end_col_offset=22), + lineno=64, + col_offset=4, + end_lineno=64, + end_col_offset=22), + Assign( + [ + Name( + 'pollen', + Store(), + lineno=65, + col_offset=4, + end_lineno=65, + end_col_offset=10)], + Call( + Name( + 'auto', + Load(), + lineno=65, + col_offset=13, + end_lineno=65, + end_col_offset=17), + [], + [], + lineno=65, + col_offset=13, + end_lineno=65, + end_col_offset=19), + lineno=65, + col_offset=4, + end_lineno=65, + end_col_offset=19), + Assign( + [ + Name( + 'cats', + Store(), + lineno=66, + col_offset=4, + end_lineno=66, + end_col_offset=8)], + Call( + Name( + 'auto', + Load(), + lineno=66, + col_offset=11, + end_lineno=66, + end_col_offset=15), + [], + [], + lineno=66, + col_offset=11, + end_lineno=66, + end_col_offset=17), + lineno=66, + col_offset=4, + end_lineno=66, + end_col_offset=17)], + [], + lineno=58, + col_offset=0, + end_lineno=66, + end_col_offset=17), + Try( + [ + ImportFrom( + 'lasagna', + [ + alias( + 'EXPECTED_BAKE_TIME', + lineno=74, + col_offset=25, + end_lineno=74, + end_col_offset=43), + alias( + 'bake_time_remaining', + lineno=75, + col_offset=25, + end_lineno=75, + end_col_offset=44), + alias( + 'preparation_time_in_minutes', + lineno=76, + col_offset=25, + end_lineno=76, + end_col_offset=52), + alias( + 'elapsed_time_in_minutes', + lineno=77, + col_offset=25, + end_lineno=77, + end_col_offset=48)], + 0, + lineno=74, + col_offset=4, + end_lineno=77, + end_col_offset=49)], + [ + ExceptHandler( + Name( + 'ImportError', + Load(), + lineno=80, + col_offset=7, + end_lineno=80, + end_col_offset=18), + 'import_fail', + [ + Assign( + [ + Name( + 'message', + Store(), + lineno=81, + col_offset=4, + end_lineno=81, + end_col_offset=11)], + Call( + Attribute( + Subscript( + Attribute( + Name( + 'import_fail', + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=25), + 'args', + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=30), + Constant( + 0, + lineno=81, + col_offset=31, + end_lineno=81, + end_col_offset=32), + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=33), + 'split', + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=39), + [ + Constant( + '(', + lineno=81, + col_offset=40, + end_lineno=81, + end_col_offset=43)], + [ + keyword( + 'maxsplit', + Constant( + 1, + lineno=81, + col_offset=54, + end_lineno=81, + end_col_offset=55), + lineno=81, + col_offset=45, + end_lineno=81, + end_col_offset=55)], + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=56), + lineno=81, + col_offset=4, + end_lineno=81, + end_col_offset=56), + Assign( + [ + Name( + 'item_name', + Store(), + lineno=82, + col_offset=4, + end_lineno=82, + end_col_offset=13)], + Subscript( + Call( + Attribute( + Subscript( + Attribute( + Name( + 'import_fail', + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=27), + 'args', + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=32), + Constant( + 0, + lineno=82, + col_offset=33, + end_lineno=82, + end_col_offset=34), + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=35), + 'split', + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=41), + [], + [], + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=43), + Constant( + 3, + lineno=82, + col_offset=44, + end_lineno=82, + end_col_offset=45), + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=46), + lineno=82, + col_offset=4, + end_lineno=82, + end_col_offset=46), + If( + Compare( + Constant( + 'EXPECTED_BAKE_TIME', + lineno=84, + col_offset=7, + end_lineno=84, + end_col_offset=27), + [ + In()], + [ + Name( + 'item_name', + Load(), + lineno=84, + col_offset=31, + end_lineno=84, + end_col_offset=40)], + lineno=84, + col_offset=7, + end_lineno=84, + end_col_offset=40), + [ + Raise( + Call( + Name( + 'ImportError', + Load(), + lineno=86, + col_offset=14, + end_lineno=86, + end_col_offset=25), + [ + JoinedStr( + [ + Constant( + '\n\nMISSING CONSTANT --> \nWe can not find or import the constant ', + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88), + FormattedValue( + Name( + 'item_name', + Load(), + lineno=86, + col_offset=95, + end_lineno=86, + end_col_offset=104), + -1, + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88), + Constant( + " in your 'lasagna.py' file.\nDid you misname or forget to define it?", + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88)], + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88)], + [], + lineno=86, + col_offset=14, + end_lineno=87, + end_col_offset=89), + Constant( + None, + lineno=87, + col_offset=95, + end_lineno=87, + end_col_offset=99), + lineno=86, + col_offset=8, + end_lineno=87, + end_col_offset=99)], + [ + Assign( + [ + Name( + 'item_name', + Store(), + lineno=89, + col_offset=8, + end_lineno=89, + end_col_offset=17)], + BinOp( + Subscript( + Name( + 'item_name', + Load(), + lineno=89, + col_offset=20, + end_lineno=89, + end_col_offset=29), + Slice( + upper=UnaryOp( + USub(), + Constant( + 1, + lineno=89, + col_offset=32, + end_lineno=89, + end_col_offset=33), + lineno=89, + col_offset=31, + end_lineno=89, + end_col_offset=33), + lineno=89, + col_offset=30, + end_lineno=89, + end_col_offset=33), + Load(), + lineno=89, + col_offset=20, + end_lineno=89, + end_col_offset=34), + Add(), + Constant( + "()'", + lineno=89, + col_offset=37, + end_lineno=89, + end_col_offset=42), + lineno=89, + col_offset=20, + end_lineno=89, + end_col_offset=42), + lineno=89, + col_offset=8, + end_lineno=89, + end_col_offset=42), + Raise( + Call( + Name( + 'ImportError', + Load(), + lineno=91, + col_offset=14, + end_lineno=91, + end_col_offset=25), + [ + JoinedStr( + [ + Constant( + "\n\nMISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the function named ", + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99), + FormattedValue( + Name( + 'item_name', + Load(), + lineno=92, + col_offset=45, + end_lineno=92, + end_col_offset=54), + -1, + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99), + Constant( + '. \nDid you misname or forget to define it?', + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99)], + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99)], + [], + lineno=91, + col_offset=14, + end_lineno=92, + end_col_offset=100), + Constant( + None, + lineno=92, + col_offset=106, + end_lineno=92, + end_col_offset=110), + lineno=91, + col_offset=8, + end_lineno=92, + end_col_offset=110)], + lineno=84, + col_offset=4, + end_lineno=92, + end_col_offset=110)], + lineno=80, + col_offset=0, + end_lineno=92, + end_col_offset=110)], + [], + [], + lineno=73, + col_offset=0, + end_lineno=92, + end_col_offset=110), + FunctionDef( + 'slices', + arguments( + [], + [ + arg( + 'series', + lineno=99, + col_offset=11, + end_lineno=99, + end_col_offset=17), + arg( + 'length', + lineno=99, + col_offset=19, + end_lineno=99, + end_col_offset=25)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + Expr( + Constant( + '\n Given a string of digits, output all the contiguous substrings of length `n`,\n in that string, in the order that they appear.\n ', + lineno=100, + col_offset=4, + end_lineno=103, + end_col_offset=7), + lineno=100, + col_offset=4, + end_lineno=103, + end_col_offset=7), + Return( + ListComp( + Name( + 'sub_str', + Load(), + lineno=105, + col_offset=8, + end_lineno=105, + end_col_offset=15), + [ + comprehension( + Tuple( + [ + Name( + 'i', + Store(), + lineno=106, + col_offset=12, + end_lineno=106, + end_col_offset=13), + Name( + '_', + Store(), + lineno=106, + col_offset=15, + end_lineno=106, + end_col_offset=16)], + Store(), + lineno=106, + col_offset=12, + end_lineno=106, + end_col_offset=16), + Call( + Name( + 'enumerate', + Load(), + lineno=106, + col_offset=20, + end_lineno=106, + end_col_offset=29), + [ + Name( + 'series', + Load(), + lineno=106, + col_offset=30, + end_lineno=106, + end_col_offset=36)], + [], + lineno=106, + col_offset=20, + end_lineno=106, + end_col_offset=37), + [ + Compare( + Call( + Name( + 'len', + Load(), + lineno=107, + col_offset=11, + end_lineno=107, + end_col_offset=14), + [ + NamedExpr( + Name( + 'sub_str', + Store(), + lineno=107, + col_offset=15, + end_lineno=107, + end_col_offset=22), + Subscript( + Name( + 'series', + Load(), + lineno=107, + col_offset=26, + end_lineno=107, + end_col_offset=32), + Slice( + Name( + 'i', + Load(), + lineno=107, + col_offset=33, + end_lineno=107, + end_col_offset=34), + BinOp( + Name( + 'i', + Load(), + lineno=107, + col_offset=37, + end_lineno=107, + end_col_offset=38), + Add(), + Name( + 'length', + Load(), + lineno=107, + col_offset=41, + end_lineno=107, + end_col_offset=47), + lineno=107, + col_offset=37, + end_lineno=107, + end_col_offset=47), + lineno=107, + col_offset=33, + end_lineno=107, + end_col_offset=47), + Load(), + lineno=107, + col_offset=26, + end_lineno=107, + end_col_offset=48), + lineno=107, + col_offset=15, + end_lineno=107, + end_col_offset=48)], + [], + lineno=107, + col_offset=11, + end_lineno=107, + end_col_offset=49), + [ + Eq()], + [ + Name( + 'length', + Load(), + lineno=107, + col_offset=53, + end_lineno=107, + end_col_offset=59)], + lineno=107, + col_offset=11, + end_lineno=107, + end_col_offset=59)], + 0)], + lineno=104, + col_offset=11, + end_lineno=108, + end_col_offset=5), + lineno=104, + col_offset=4, + end_lineno=108, + end_col_offset=5)], + [], + lineno=99, + col_offset=0, + end_lineno=108, + end_col_offset=5), + ImportFrom( + 'typing', + [ + alias( + 'Iterable', + lineno=112, + col_offset=19, + end_lineno=112, + end_col_offset=27)], + 0, + lineno=112, + col_offset=0, + end_lineno=112, + end_col_offset=27), + FunctionDef( + 'flatten', + arguments( + [], + [ + arg( + 'iterable', + lineno=113, + col_offset=12, + end_lineno=113, + end_col_offset=20)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + FunctionDef( + 'go', + arguments( + [], + [ + arg( + 'it', + lineno=114, + col_offset=11, + end_lineno=114, + end_col_offset=13)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + For( + Name( + 'e', + Store(), + lineno=115, + col_offset=12, + end_lineno=115, + end_col_offset=13), + Name( + 'it', + Load(), + lineno=115, + col_offset=17, + end_lineno=115, + end_col_offset=19), + [ + If( + BoolOp( + And(), + [ + Call( + Name( + 'isinstance', + Load(), + lineno=116, + col_offset=15, + end_lineno=116, + end_col_offset=25), + [ + Name( + 'e', + Load(), + lineno=116, + col_offset=26, + end_lineno=116, + end_col_offset=27), + Name( + 'Iterable', + Load(), + lineno=116, + col_offset=29, + end_lineno=116, + end_col_offset=37)], + [], + lineno=116, + col_offset=15, + end_lineno=116, + end_col_offset=38), + UnaryOp( + Not(), + Call( + Name( + 'isinstance', + Load(), + lineno=116, + col_offset=47, + end_lineno=116, + end_col_offset=57), + [ + Name( + 'e', + Load(), + lineno=116, + col_offset=58, + end_lineno=116, + end_col_offset=59), + Name( + 'str', + Load(), + lineno=116, + col_offset=61, + end_lineno=116, + end_col_offset=64)], + [], + lineno=116, + col_offset=47, + end_lineno=116, + end_col_offset=65), + lineno=116, + col_offset=43, + end_lineno=116, + end_col_offset=65)], + lineno=116, + col_offset=15, + end_lineno=116, + end_col_offset=65), + [ + Expr( + YieldFrom( + Call( + Name( + 'go', + Load(), + lineno=117, + col_offset=27, + end_lineno=117, + end_col_offset=29), + [ + Name( + 'e', + Load(), + lineno=117, + col_offset=30, + end_lineno=117, + end_col_offset=31)], + [], + lineno=117, + col_offset=27, + end_lineno=117, + end_col_offset=32), + lineno=117, + col_offset=16, + end_lineno=117, + end_col_offset=32), + lineno=117, + col_offset=16, + end_lineno=117, + end_col_offset=32)], + [ + Expr( + Yield( + Name( + 'e', + Load(), + lineno=119, + col_offset=22, + end_lineno=119, + end_col_offset=23), + lineno=119, + col_offset=16, + end_lineno=119, + end_col_offset=23), + lineno=119, + col_offset=16, + end_lineno=119, + end_col_offset=23)], + lineno=116, + col_offset=12, + end_lineno=119, + end_col_offset=23)], + [], + lineno=115, + col_offset=8, + end_lineno=119, + end_col_offset=23)], + [], + lineno=114, + col_offset=4, + end_lineno=119, + end_col_offset=23), + Return( + ListComp( + Name( + 'e', + Load(), + lineno=120, + col_offset=12, + end_lineno=120, + end_col_offset=13), + [ + comprehension( + Name( + 'e', + Store(), + lineno=120, + col_offset=18, + end_lineno=120, + end_col_offset=19), + Call( + Name( + 'go', + Load(), + lineno=120, + col_offset=23, + end_lineno=120, + end_col_offset=25), + [ + Name( + 'iterable', + Load(), + lineno=120, + col_offset=26, + end_lineno=120, + end_col_offset=34)], + [], + lineno=120, + col_offset=23, + end_lineno=120, + end_col_offset=35), + [ + Compare( + Name( + 'e', + Load(), + lineno=120, + col_offset=39, + end_lineno=120, + end_col_offset=40), + [ + IsNot()], + [ + Constant( + None, + lineno=120, + col_offset=48, + end_lineno=120, + end_col_offset=52)], + lineno=120, + col_offset=39, + end_lineno=120, + end_col_offset=52)], + 0)], + lineno=120, + col_offset=11, + end_lineno=120, + end_col_offset=53), + lineno=120, + col_offset=4, + end_lineno=120, + end_col_offset=53)], + [], + lineno=113, + col_offset=0, + end_lineno=120, + end_col_offset=53), + FunctionDef( + 'check_height', + arguments( + [], + [ + arg( + 'grid', + lineno=124, + col_offset=17, + end_lineno=124, + end_col_offset=21)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + Expr( + Constant( + 'check that row count is a multiple of 4', + lineno=125, + col_offset=4, + end_lineno=125, + end_col_offset=49), + lineno=125, + col_offset=4, + end_lineno=125, + end_col_offset=49), + If( + BinOp( + NamedExpr( + Name( + 'height', + Store(), + lineno=126, + col_offset=8, + end_lineno=126, + end_col_offset=14), + Call( + Name( + 'len', + Load(), + lineno=126, + col_offset=18, + end_lineno=126, + end_col_offset=21), + [ + Name( + 'grid', + Load(), + lineno=126, + col_offset=22, + end_lineno=126, + end_col_offset=26)], + [], + lineno=126, + col_offset=18, + end_lineno=126, + end_col_offset=27), + lineno=126, + col_offset=8, + end_lineno=126, + end_col_offset=27), + Mod(), + Constant( + 3, + lineno=126, + col_offset=31, + end_lineno=126, + end_col_offset=32), + lineno=126, + col_offset=7, + end_lineno=126, + end_col_offset=32), + [ + Raise( + Call( + Name( + 'ValueError', + Load(), + lineno=127, + col_offset=14, + end_lineno=127, + end_col_offset=24), + [ + Constant( + 'grid rows not a multiple of 4', + lineno=127, + col_offset=25, + end_lineno=127, + end_col_offset=56)], + [], + lineno=127, + col_offset=14, + end_lineno=127, + end_col_offset=57), + lineno=127, + col_offset=8, + end_lineno=127, + end_col_offset=57)], + [], + lineno=126, + col_offset=4, + end_lineno=127, + end_col_offset=57), + Return( + Name( + 'height', + Load(), + lineno=128, + col_offset=11, + end_lineno=128, + end_col_offset=17), + lineno=128, + col_offset=4, + end_lineno=128, + end_col_offset=17)], + [], + lineno=124, + col_offset=0, + end_lineno=128, + end_col_offset=17), + FunctionDef( + 'nswe_points', + arguments( + [], + [ + arg( + 'self', + lineno=131, + col_offset=16, + end_lineno=131, + end_col_offset=20), + arg( + 'point', + lineno=131, + col_offset=22, + end_lineno=131, + end_col_offset=27)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + Expr( + Constant( + 'return a set of four adjacent points', + lineno=132, + col_offset=4, + end_lineno=132, + end_col_offset=46), + lineno=132, + col_offset=4, + end_lineno=132, + end_col_offset=46), + Assign( + [ + Name( + 'nswe_offsets', + Store(), + lineno=133, + col_offset=4, + end_lineno=133, + end_col_offset=16)], + Call( + Name( + 'set', + Load(), + lineno=133, + col_offset=19, + end_lineno=133, + end_col_offset=22), + [ + List( + [ + Tuple( + [ + Constant( + 1, + lineno=133, + col_offset=25, + end_lineno=133, + end_col_offset=26), + Constant( + 0, + lineno=133, + col_offset=28, + end_lineno=133, + end_col_offset=29)], + Load(), + lineno=133, + col_offset=24, + end_lineno=133, + end_col_offset=30), + Tuple( + [ + UnaryOp( + USub(), + Constant( + 1, + lineno=133, + col_offset=34, + end_lineno=133, + end_col_offset=35), + lineno=133, + col_offset=33, + end_lineno=133, + end_col_offset=35), + Constant( + 0, + lineno=133, + col_offset=37, + end_lineno=133, + end_col_offset=38)], + Load(), + lineno=133, + col_offset=32, + end_lineno=133, + end_col_offset=39), + Tuple( + [ + Constant( + 0, + lineno=133, + col_offset=42, + end_lineno=133, + end_col_offset=43), + UnaryOp( + USub(), + Constant( + 1, + lineno=133, + col_offset=46, + end_lineno=133, + end_col_offset=47), + lineno=133, + col_offset=45, + end_lineno=133, + end_col_offset=47)], + Load(), + lineno=133, + col_offset=41, + end_lineno=133, + end_col_offset=48), + Tuple( + [ + Constant( + 0, + lineno=133, + col_offset=51, + end_lineno=133, + end_col_offset=52), + Constant( + 1, + lineno=133, + col_offset=54, + end_lineno=133, + end_col_offset=55)], + Load(), + lineno=133, + col_offset=50, + end_lineno=133, + end_col_offset=56)], + Load(), + lineno=133, + col_offset=23, + end_lineno=133, + end_col_offset=57)], + [], + lineno=133, + col_offset=19, + end_lineno=133, + end_col_offset=58), + lineno=133, + col_offset=4, + end_lineno=133, + end_col_offset=58), + Return( + SetComp( + Name( + 'neighbor', + Load(), + lineno=135, + col_offset=8, + end_lineno=135, + end_col_offset=16), + [ + comprehension( + Name( + 'offset', + Store(), + lineno=136, + col_offset=12, + end_lineno=136, + end_col_offset=18), + Name( + 'nswe_offsets', + Load(), + lineno=136, + col_offset=22, + end_lineno=136, + end_col_offset=34), + [ + Call( + Attribute( + Name( + 'self', + Load(), + lineno=137, + col_offset=11, + end_lineno=137, + end_col_offset=15), + 'on_the_board', + Load(), + lineno=137, + col_offset=11, + end_lineno=137, + end_col_offset=28), + [ + NamedExpr( + Name( + 'neighbor', + Store(), + lineno=137, + col_offset=29, + end_lineno=137, + end_col_offset=37), + BinOp( + Name( + 'point', + Load(), + lineno=137, + col_offset=41, + end_lineno=137, + end_col_offset=46), + Add(), + Name( + 'offset', + Load(), + lineno=137, + col_offset=49, + end_lineno=137, + end_col_offset=55), + lineno=137, + col_offset=41, + end_lineno=137, + end_col_offset=55), + lineno=137, + col_offset=29, + end_lineno=137, + end_col_offset=55)], + [], + lineno=137, + col_offset=11, + end_lineno=137, + end_col_offset=56)], + 0)], + lineno=134, + col_offset=11, + end_lineno=138, + end_col_offset=5), + lineno=134, + col_offset=4, + end_lineno=138, + end_col_offset=5)], + [], + lineno=131, + col_offset=0, + end_lineno=138, + end_col_offset=5), + FunctionDef( + 'first_item_greater_than_N', + arguments( + [], + [ + arg( + 'iterable', + lineno=141, + col_offset=30, + end_lineno=141, + end_col_offset=38), + arg( + 'N', + lineno=141, + col_offset=40, + end_lineno=141, + end_col_offset=41)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + If( + Call( + Name( + 'any', + Load(), + lineno=142, + col_offset=7, + end_lineno=142, + end_col_offset=10), + [ + GeneratorExp( + Compare( + NamedExpr( + Name( + 'item', + Store(), + lineno=142, + col_offset=12, + end_lineno=142, + end_col_offset=16), + Name( + 'x', + Load(), + lineno=142, + col_offset=20, + end_lineno=142, + end_col_offset=21), + lineno=142, + col_offset=12, + end_lineno=142, + end_col_offset=21), + [ + Gt()], + [ + Name( + 'N', + Load(), + lineno=142, + col_offset=25, + end_lineno=142, + end_col_offset=26)], + lineno=142, + col_offset=11, + end_lineno=142, + end_col_offset=26), + [ + comprehension( + Name( + 'x', + Store(), + lineno=142, + col_offset=31, + end_lineno=142, + end_col_offset=32), + Name( + 'iterable', + Load(), + lineno=142, + col_offset=36, + end_lineno=142, + end_col_offset=44), + [], + 0)], + lineno=142, + col_offset=10, + end_lineno=142, + end_col_offset=45)], + [], + lineno=142, + col_offset=7, + end_lineno=142, + end_col_offset=45), + [ + Return( + Name( + 'item', + Load(), + lineno=143, + col_offset=15, + end_lineno=143, + end_col_offset=19), + lineno=143, + col_offset=8, + end_lineno=143, + end_col_offset=19)], + [], + lineno=142, + col_offset=4, + end_lineno=143, + end_col_offset=19), + Return( + Constant( + None, + lineno=144, + col_offset=11, + end_lineno=144, + end_col_offset=15), + lineno=144, + col_offset=4, + end_lineno=144, + end_col_offset=15)], + [], + lineno=141, + col_offset=0, + end_lineno=144, + end_col_offset=15), + FunctionDef( + 'generate_codes', + arguments( + [], + [ + arg( + 'seat_numbers', + lineno=147, + col_offset=19, + end_lineno=147, + end_col_offset=31), + arg( + 'flight_id', + lineno=147, + col_offset=33, + end_lineno=147, + end_col_offset=42)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + Expr( + Constant( + 'Generate codes for a ticket.\n\n :param seat_numbers: list[str] - list of seat numbers.\n :param flight_id: str - string containing the flight identifier.\n :return: generator - generator that yields 12 character long ticket codes.\n\n ', + lineno=148, + col_offset=4, + end_lineno=154, + end_col_offset=7), + lineno=148, + col_offset=4, + end_lineno=154, + end_col_offset=7), + Return( + GeneratorExp( + Call( + Attribute( + Name( + 'base', + Load(), + lineno=156, + col_offset=8, + end_lineno=156, + end_col_offset=12), + 'ljust', + Load(), + lineno=156, + col_offset=8, + end_lineno=156, + end_col_offset=18), + [ + Constant( + 12, + lineno=156, + col_offset=19, + end_lineno=156, + end_col_offset=21), + Constant( + '0', + lineno=156, + col_offset=23, + end_lineno=156, + end_col_offset=26)], + [], + lineno=156, + col_offset=8, + end_lineno=156, + end_col_offset=27), + [ + comprehension( + Name( + 'seat', + Store(), + lineno=156, + col_offset=32, + end_lineno=156, + end_col_offset=36), + Name( + 'seat_numbers', + Load(), + lineno=156, + col_offset=40, + end_lineno=156, + end_col_offset=52), + [ + NamedExpr( + Name( + 'base', + Store(), + lineno=156, + col_offset=57, + end_lineno=156, + end_col_offset=61), + JoinedStr( + [ + FormattedValue( + Name( + 'seat', + Load(), + lineno=156, + col_offset=68, + end_lineno=156, + end_col_offset=72), + -1, + lineno=156, + col_offset=65, + end_lineno=156, + end_col_offset=85), + FormattedValue( + Name( + 'flight_id', + Load(), + lineno=156, + col_offset=74, + end_lineno=156, + end_col_offset=83), + -1, + lineno=156, + col_offset=65, + end_lineno=156, + end_col_offset=85)], + lineno=156, + col_offset=65, + end_lineno=156, + end_col_offset=85), + lineno=156, + col_offset=57, + end_lineno=156, + end_col_offset=85)], + 0)], + lineno=155, + col_offset=11, + end_lineno=157, + end_col_offset=5), + lineno=155, + col_offset=4, + end_lineno=157, + end_col_offset=5)], + [], + lineno=147, + col_offset=0, + end_lineno=157, + end_col_offset=5)], + []) +## END TREE BEFORE ## + +## BEGIN NORMALIZED TREE ## +Module( + [ + Import( + [ + alias( + 'unittest', + lineno=6, + col_offset=7, + end_lineno=6, + end_col_offset=15)], + lineno=6, + col_offset=0, + end_lineno=6, + end_col_offset=15), + Import( + [ + alias( + 'pytest', + lineno=7, + col_offset=7, + end_lineno=7, + end_col_offset=13)], + lineno=7, + col_offset=0, + end_lineno=7, + end_col_offset=13), + ImportFrom( + 'dataclass', + [ + alias( + 'dataclass', + lineno=8, + col_offset=22, + end_lineno=8, + end_col_offset=31)], + 0, + lineno=8, + col_offset=0, + end_lineno=8, + end_col_offset=31), + ImportFrom( + 'Enum', + [ + alias( + 'Flag', + lineno=9, + col_offset=17, + end_lineno=9, + end_col_offset=21)], + 0, + lineno=9, + col_offset=0, + end_lineno=9, + end_col_offset=21), + ClassDef( + 'placeholder_0', + [], + [], + [ + Assign( + [ + Name( + 'placeholder_1', + Store(), + lineno=20, + col_offset=4, + end_lineno=20, + end_col_offset=5)], + Constant( + 0, + lineno=20, + col_offset=13, + end_lineno=20, + end_col_offset=14), + lineno=20), + Assign( + [ + Name( + 'placeholder_2', + Store(), + lineno=21, + col_offset=4, + end_lineno=21, + end_col_offset=5)], + Constant( + 0, + lineno=21, + col_offset=13, + end_lineno=21, + end_col_offset=14), + lineno=21)], + [ + Name( + 'dataclass', + Load(), + lineno=17, + col_offset=1, + end_lineno=17, + end_col_offset=10)], + lineno=18, + col_offset=0, + end_lineno=21, + end_col_offset=14), + Try( + [ + Expr( + BinOp( + Constant( + 1, + lineno=26, + col_offset=4, + end_lineno=26, + end_col_offset=5), + Div(), + Constant( + 0, + lineno=26, + col_offset=6, + end_lineno=26, + end_col_offset=7), + lineno=26, + col_offset=4, + end_lineno=26, + end_col_offset=7), + lineno=26, + col_offset=4, + end_lineno=26, + end_col_offset=7)], + [ + ExceptHandler( + body=[ + Pass( + lineno=28, + col_offset=4, + end_lineno=28, + end_col_offset=8)], + lineno=27, + col_offset=0, + end_lineno=28, + end_col_offset=8)], + [], + [], + lineno=25, + col_offset=0, + end_lineno=28, + end_col_offset=8), + Expr( + BinOp( + Constant( + 5, + lineno=32, + col_offset=0, + end_lineno=32, + end_col_offset=1), + Add(), + Constant( + 6, + lineno=32, + col_offset=2, + end_lineno=32, + end_col_offset=3), + lineno=32, + col_offset=0, + end_lineno=32, + end_col_offset=3), + lineno=32, + col_offset=0, + end_lineno=32, + end_col_offset=3), + Expr( + GeneratorExp( + Name( + 'placeholder_3', + Load(), + lineno=40, + col_offset=1, + end_lineno=40, + end_col_offset=5), + [ + comprehension( + Name( + 'placeholder_3', + Store(), + lineno=40, + col_offset=10, + end_lineno=40, + end_col_offset=14), + Call( + Name( + 'range', + Load(), + lineno=40, + col_offset=18, + end_lineno=40, + end_col_offset=23), + [ + Constant( + 8, + lineno=40, + col_offset=24, + end_lineno=40, + end_col_offset=25)], + [], + lineno=40, + col_offset=18, + end_lineno=40, + end_col_offset=26), + [], + 0)], + lineno=40, + col_offset=0, + end_lineno=40, + end_col_offset=27), + lineno=40, + col_offset=0, + end_lineno=40, + end_col_offset=27), + Expr( + ListComp( + Name( + 'placeholder_3', + Load(), + lineno=41, + col_offset=1, + end_lineno=41, + end_col_offset=5), + [ + comprehension( + Name( + 'placeholder_3', + Store(), + lineno=41, + col_offset=10, + end_lineno=41, + end_col_offset=14), + Call( + Name( + 'range', + Load(), + lineno=41, + col_offset=18, + end_lineno=41, + end_col_offset=23), + [ + Constant( + 16, + lineno=41, + col_offset=24, + end_lineno=41, + end_col_offset=26)], + [], + lineno=41, + col_offset=18, + end_lineno=41, + end_col_offset=27), + [], + 0)], + lineno=41, + col_offset=0, + end_lineno=41, + end_col_offset=28), + lineno=41, + col_offset=0, + end_lineno=41, + end_col_offset=28), + Expr( + SetComp( + Name( + 'placeholder_3', + Load(), + lineno=42, + col_offset=1, + end_lineno=42, + end_col_offset=5), + [ + comprehension( + Name( + 'placeholder_3', + Store(), + lineno=42, + col_offset=10, + end_lineno=42, + end_col_offset=14), + Call( + Attribute( + Constant( + 'a b c d e f g h i', + lineno=42, + col_offset=18, + end_lineno=42, + end_col_offset=37), + 'split', + Load(), + lineno=42, + col_offset=18, + end_lineno=42, + end_col_offset=43), + [], + [], + lineno=42, + col_offset=18, + end_lineno=42, + end_col_offset=45), + [], + 0)], + lineno=42, + col_offset=0, + end_lineno=42, + end_col_offset=46), + lineno=42, + col_offset=0, + end_lineno=42, + end_col_offset=46), + Expr( + DictComp( + Name( + 'placeholder_4', + Load(), + lineno=43, + col_offset=1, + end_lineno=43, + end_col_offset=4), + Name( + 'placeholder_5', + Load(), + lineno=43, + col_offset=5, + end_lineno=43, + end_col_offset=10), + [ + comprehension( + Tuple( + [ + Name( + 'placeholder_4', + Store(), + lineno=43, + col_offset=15, + end_lineno=43, + end_col_offset=18), + Name( + 'placeholder_5', + Store(), + lineno=43, + col_offset=20, + end_lineno=43, + end_col_offset=25)], + Store(), + lineno=43, + col_offset=15, + end_lineno=43, + end_col_offset=25), + Tuple( + [ + Tuple( + [ + Constant( + 1, + lineno=43, + col_offset=31, + end_lineno=43, + end_col_offset=32), + Constant( + 'a', + lineno=43, + col_offset=34, + end_lineno=43, + end_col_offset=37)], + Load(), + lineno=43, + col_offset=30, + end_lineno=43, + end_col_offset=38), + Tuple( + [ + Constant( + 2, + lineno=43, + col_offset=40, + end_lineno=43, + end_col_offset=41), + Constant( + 'b', + lineno=43, + col_offset=43, + end_lineno=43, + end_col_offset=46)], + Load(), + lineno=43, + col_offset=39, + end_lineno=43, + end_col_offset=47), + Tuple( + [ + Constant( + 3, + lineno=43, + col_offset=49, + end_lineno=43, + end_col_offset=50), + Constant( + 'c', + lineno=43, + col_offset=52, + end_lineno=43, + end_col_offset=55)], + Load(), + lineno=43, + col_offset=48, + end_lineno=43, + end_col_offset=56), + Tuple( + [ + Constant( + 5, + lineno=43, + col_offset=58, + end_lineno=43, + end_col_offset=59), + Constant( + 'e', + lineno=43, + col_offset=61, + end_lineno=43, + end_col_offset=64)], + Load(), + lineno=43, + col_offset=57, + end_lineno=43, + end_col_offset=65)], + Load(), + lineno=43, + col_offset=29, + end_lineno=43, + end_col_offset=66), + [], + 0)], + lineno=43, + col_offset=0, + end_lineno=43, + end_col_offset=67), + lineno=43, + col_offset=0, + end_lineno=43, + end_col_offset=67), + Expr( + Lambda( + arguments( + [], + [], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + DictComp( + Name( + 'placeholder_4', + Load(), + lineno=46, + col_offset=10, + end_lineno=46, + end_col_offset=13), + Name( + 'placeholder_5', + Load(), + lineno=46, + col_offset=14, + end_lineno=46, + end_col_offset=19), + [ + comprehension( + Tuple( + [ + Name( + 'placeholder_4', + Store(), + lineno=46, + col_offset=24, + end_lineno=46, + end_col_offset=27), + Name( + 'placeholder_5', + Store(), + lineno=46, + col_offset=29, + end_lineno=46, + end_col_offset=34)], + Store(), + lineno=46, + col_offset=24, + end_lineno=46, + end_col_offset=34), + Tuple( + [ + Tuple( + [ + Constant( + 1, + lineno=46, + col_offset=40, + end_lineno=46, + end_col_offset=41), + Constant( + 'a', + lineno=46, + col_offset=43, + end_lineno=46, + end_col_offset=46)], + Load(), + lineno=46, + col_offset=39, + end_lineno=46, + end_col_offset=47), + Tuple( + [ + Constant( + 2, + lineno=46, + col_offset=49, + end_lineno=46, + end_col_offset=50), + Constant( + 'b', + lineno=46, + col_offset=52, + end_lineno=46, + end_col_offset=55)], + Load(), + lineno=46, + col_offset=48, + end_lineno=46, + end_col_offset=56), + Tuple( + [ + Constant( + 3, + lineno=46, + col_offset=58, + end_lineno=46, + end_col_offset=59), + Constant( + 'c', + lineno=46, + col_offset=61, + end_lineno=46, + end_col_offset=64)], + Load(), + lineno=46, + col_offset=57, + end_lineno=46, + end_col_offset=65), + Tuple( + [ + Constant( + 5, + lineno=46, + col_offset=67, + end_lineno=46, + end_col_offset=68), + Constant( + 'e', + lineno=46, + col_offset=70, + end_lineno=46, + end_col_offset=73)], + Load(), + lineno=46, + col_offset=66, + end_lineno=46, + end_col_offset=74)], + Load(), + lineno=46, + col_offset=38, + end_lineno=46, + end_col_offset=75), + [], + 0)], + lineno=46, + col_offset=9, + end_lineno=46, + end_col_offset=76), + lineno=46, + col_offset=0, + end_lineno=46, + end_col_offset=76), + lineno=46, + col_offset=0, + end_lineno=46, + end_col_offset=76), + Assign( + [ + Name( + 'placeholder_6', + Store(), + lineno=47, + col_offset=0, + end_lineno=47, + end_col_offset=16)], + Lambda( + arguments( + [], + [], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + SetComp( + Name( + 'placeholder_3', + Load(), + lineno=47, + col_offset=29, + end_lineno=47, + end_col_offset=33), + [ + comprehension( + Name( + 'placeholder_3', + Store(), + lineno=47, + col_offset=38, + end_lineno=47, + end_col_offset=42), + Call( + Attribute( + Constant( + 'a b c d e f g h i', + lineno=47, + col_offset=46, + end_lineno=47, + end_col_offset=65), + 'split', + Load(), + lineno=47, + col_offset=46, + end_lineno=47, + end_col_offset=71), + [], + [], + lineno=47, + col_offset=46, + end_lineno=47, + end_col_offset=73), + [], + 0)], + lineno=47, + col_offset=28, + end_lineno=47, + end_col_offset=74), + lineno=47, + col_offset=19, + end_lineno=47, + end_col_offset=74), + lineno=47, + col_offset=0, + end_lineno=47, + end_col_offset=74), + Expr( + UnaryOp( + USub(), + Name( + 'a', + Load(), + lineno=51, + col_offset=1, + end_lineno=51, + end_col_offset=2), + lineno=51, + col_offset=0, + end_lineno=51, + end_col_offset=2), + lineno=51, + col_offset=0, + end_lineno=51, + end_col_offset=2), + Assign( + [ + Name( + 'placeholder_7', + Store(), + lineno=52, + col_offset=0, + end_lineno=52, + end_col_offset=18)], + Constant( + 'It would be stupid if this exploded.', + lineno=52, + col_offset=21, + end_lineno=52, + end_col_offset=59), + lineno=52, + col_offset=0, + end_lineno=52, + end_col_offset=59), + Expr( + Constant( + 'Random Hanging String', + lineno=54, + col_offset=0, + end_lineno=54, + end_col_offset=27), + lineno=54, + col_offset=0, + end_lineno=54, + end_col_offset=27), + ClassDef( + 'placeholder_8', + [ + Name( + 'Flag', + Load(), + lineno=58, + col_offset=16, + end_lineno=58, + end_col_offset=20)], + [], + [ + Assign( + [ + Name( + 'placeholder_9', + Store(), + lineno=59, + col_offset=4, + end_lineno=59, + end_col_offset=8)], + Call( + Name( + 'auto', + Load(), + lineno=59, + col_offset=11, + end_lineno=59, + end_col_offset=15), + [], + [], + lineno=59, + col_offset=11, + end_lineno=59, + end_col_offset=17), + lineno=59, + col_offset=4, + end_lineno=59, + end_col_offset=17), + Assign( + [ + Name( + 'placeholder_10', + Store(), + lineno=60, + col_offset=4, + end_lineno=60, + end_col_offset=11)], + Call( + Name( + 'auto', + Load(), + lineno=60, + col_offset=14, + end_lineno=60, + end_col_offset=18), + [], + [], + lineno=60, + col_offset=14, + end_lineno=60, + end_col_offset=20), + lineno=60, + col_offset=4, + end_lineno=60, + end_col_offset=20), + Assign( + [ + Name( + 'placeholder_11', + Store(), + lineno=61, + col_offset=4, + end_lineno=61, + end_col_offset=13)], + Call( + Name( + 'auto', + Load(), + lineno=61, + col_offset=16, + end_lineno=61, + end_col_offset=20), + [], + [], + lineno=61, + col_offset=16, + end_lineno=61, + end_col_offset=22), + lineno=61, + col_offset=4, + end_lineno=61, + end_col_offset=22), + Assign( + [ + Name( + 'placeholder_12', + Store(), + lineno=62, + col_offset=4, + end_lineno=62, + end_col_offset=16)], + Call( + Name( + 'auto', + Load(), + lineno=62, + col_offset=19, + end_lineno=62, + end_col_offset=23), + [], + [], + lineno=62, + col_offset=19, + end_lineno=62, + end_col_offset=25), + lineno=62, + col_offset=4, + end_lineno=62, + end_col_offset=25), + Assign( + [ + Name( + 'placeholder_13', + Store(), + lineno=63, + col_offset=4, + end_lineno=63, + end_col_offset=12)], + Call( + Name( + 'auto', + Load(), + lineno=63, + col_offset=15, + end_lineno=63, + end_col_offset=19), + [], + [], + lineno=63, + col_offset=15, + end_lineno=63, + end_col_offset=21), + lineno=63, + col_offset=4, + end_lineno=63, + end_col_offset=21), + Assign( + [ + Name( + 'placeholder_14', + Store(), + lineno=64, + col_offset=4, + end_lineno=64, + end_col_offset=13)], + Call( + Name( + 'auto', + Load(), + lineno=64, + col_offset=16, + end_lineno=64, + end_col_offset=20), + [], + [], + lineno=64, + col_offset=16, + end_lineno=64, + end_col_offset=22), + lineno=64, + col_offset=4, + end_lineno=64, + end_col_offset=22), + Assign( + [ + Name( + 'placeholder_15', + Store(), + lineno=65, + col_offset=4, + end_lineno=65, + end_col_offset=10)], + Call( + Name( + 'auto', + Load(), + lineno=65, + col_offset=13, + end_lineno=65, + end_col_offset=17), + [], + [], + lineno=65, + col_offset=13, + end_lineno=65, + end_col_offset=19), + lineno=65, + col_offset=4, + end_lineno=65, + end_col_offset=19), + Assign( + [ + Name( + 'placeholder_16', + Store(), + lineno=66, + col_offset=4, + end_lineno=66, + end_col_offset=8)], + Call( + Name( + 'auto', + Load(), + lineno=66, + col_offset=11, + end_lineno=66, + end_col_offset=15), + [], + [], + lineno=66, + col_offset=11, + end_lineno=66, + end_col_offset=17), + lineno=66, + col_offset=4, + end_lineno=66, + end_col_offset=17)], + [], + lineno=58, + col_offset=0, + end_lineno=66, + end_col_offset=17), + Try( + [ + ImportFrom( + 'lasagna', + [ + alias( + 'EXPECTED_BAKE_TIME', + lineno=74, + col_offset=25, + end_lineno=74, + end_col_offset=43), + alias( + 'bake_time_remaining', + lineno=75, + col_offset=25, + end_lineno=75, + end_col_offset=44), + alias( + 'preparation_time_in_minutes', + lineno=76, + col_offset=25, + end_lineno=76, + end_col_offset=52), + alias( + 'elapsed_time_in_minutes', + lineno=77, + col_offset=25, + end_lineno=77, + end_col_offset=48)], + 0, + lineno=74, + col_offset=4, + end_lineno=77, + end_col_offset=49)], + [ + ExceptHandler( + Name( + 'ImportError', + Load(), + lineno=80, + col_offset=7, + end_lineno=80, + end_col_offset=18), + 'placeholder_17', + [ + Assign( + [ + Name( + 'placeholder_18', + Store(), + lineno=81, + col_offset=4, + end_lineno=81, + end_col_offset=11)], + Call( + Attribute( + Subscript( + Attribute( + Name( + 'placeholder_17', + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=25), + 'args', + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=30), + Constant( + 0, + lineno=81, + col_offset=31, + end_lineno=81, + end_col_offset=32), + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=33), + 'split', + Load(), + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=39), + [ + Constant( + '(', + lineno=81, + col_offset=40, + end_lineno=81, + end_col_offset=43)], + [ + keyword( + 'placeholder_19', + Constant( + 1, + lineno=81, + col_offset=54, + end_lineno=81, + end_col_offset=55), + lineno=81, + col_offset=45, + end_lineno=81, + end_col_offset=55)], + lineno=81, + col_offset=14, + end_lineno=81, + end_col_offset=56), + lineno=81, + col_offset=4, + end_lineno=81, + end_col_offset=56), + Assign( + [ + Name( + 'placeholder_20', + Store(), + lineno=82, + col_offset=4, + end_lineno=82, + end_col_offset=13)], + Subscript( + Call( + Attribute( + Subscript( + Attribute( + Name( + 'placeholder_17', + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=27), + 'args', + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=32), + Constant( + 0, + lineno=82, + col_offset=33, + end_lineno=82, + end_col_offset=34), + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=35), + 'split', + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=41), + [], + [], + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=43), + Constant( + 3, + lineno=82, + col_offset=44, + end_lineno=82, + end_col_offset=45), + Load(), + lineno=82, + col_offset=16, + end_lineno=82, + end_col_offset=46), + lineno=82, + col_offset=4, + end_lineno=82, + end_col_offset=46), + If( + Compare( + Constant( + 'EXPECTED_BAKE_TIME', + lineno=84, + col_offset=7, + end_lineno=84, + end_col_offset=27), + [ + In()], + [ + Name( + 'placeholder_20', + Load(), + lineno=84, + col_offset=31, + end_lineno=84, + end_col_offset=40)], + lineno=84, + col_offset=7, + end_lineno=84, + end_col_offset=40), + [ + Raise( + Call( + Name( + 'ImportError', + Load(), + lineno=86, + col_offset=14, + end_lineno=86, + end_col_offset=25), + [ + JoinedStr( + [ + Constant( + '\n\nMISSING CONSTANT --> \nWe can not find or import the constant ', + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88), + FormattedValue( + Name( + 'placeholder_20', + Load(), + lineno=86, + col_offset=95, + end_lineno=86, + end_col_offset=104), + -1, + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88), + Constant( + " in your 'lasagna.py' file.\nDid you misname or forget to define it?", + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88)], + lineno=86, + col_offset=26, + end_lineno=87, + end_col_offset=88)], + [], + lineno=86, + col_offset=14, + end_lineno=87, + end_col_offset=89), + Constant( + None, + lineno=87, + col_offset=95, + end_lineno=87, + end_col_offset=99), + lineno=86, + col_offset=8, + end_lineno=87, + end_col_offset=99)], + [ + Assign( + [ + Name( + 'placeholder_20', + Store(), + lineno=89, + col_offset=8, + end_lineno=89, + end_col_offset=17)], + BinOp( + Subscript( + Name( + 'placeholder_20', + Load(), + lineno=89, + col_offset=20, + end_lineno=89, + end_col_offset=29), + Slice( + upper=UnaryOp( + USub(), + Constant( + 1, + lineno=89, + col_offset=32, + end_lineno=89, + end_col_offset=33), + lineno=89, + col_offset=31, + end_lineno=89, + end_col_offset=33), + lineno=89, + col_offset=30, + end_lineno=89, + end_col_offset=33), + Load(), + lineno=89, + col_offset=20, + end_lineno=89, + end_col_offset=34), + Add(), + Constant( + "()'", + lineno=89, + col_offset=37, + end_lineno=89, + end_col_offset=42), + lineno=89, + col_offset=20, + end_lineno=89, + end_col_offset=42), + lineno=89, + col_offset=8, + end_lineno=89, + end_col_offset=42), + Raise( + Call( + Name( + 'ImportError', + Load(), + lineno=91, + col_offset=14, + end_lineno=91, + end_col_offset=25), + [ + JoinedStr( + [ + Constant( + "\n\nMISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the function named ", + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99), + FormattedValue( + Name( + 'placeholder_20', + Load(), + lineno=92, + col_offset=45, + end_lineno=92, + end_col_offset=54), + -1, + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99), + Constant( + '. \nDid you misname or forget to define it?', + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99)], + lineno=91, + col_offset=26, + end_lineno=92, + end_col_offset=99)], + [], + lineno=91, + col_offset=14, + end_lineno=92, + end_col_offset=100), + Constant( + None, + lineno=92, + col_offset=106, + end_lineno=92, + end_col_offset=110), + lineno=91, + col_offset=8, + end_lineno=92, + end_col_offset=110)], + lineno=84, + col_offset=4, + end_lineno=92, + end_col_offset=110)], + lineno=80, + col_offset=0, + end_lineno=92, + end_col_offset=110)], + [], + [], + lineno=73, + col_offset=0, + end_lineno=92, + end_col_offset=110), + FunctionDef( + 'placeholder_21', + arguments( + [], + [ + arg( + 'placeholder_22', + lineno=99, + col_offset=11, + end_lineno=99, + end_col_offset=17), + arg( + 'placeholder_23', + lineno=99, + col_offset=19, + end_lineno=99, + end_col_offset=25)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + Return( + ListComp( + Name( + 'placeholder_26', + Load(), + lineno=105, + col_offset=8, + end_lineno=105, + end_col_offset=15), + [ + comprehension( + Tuple( + [ + Name( + 'placeholder_24', + Store(), + lineno=106, + col_offset=12, + end_lineno=106, + end_col_offset=13), + Name( + 'placeholder_25', + Store(), + lineno=106, + col_offset=15, + end_lineno=106, + end_col_offset=16)], + Store(), + lineno=106, + col_offset=12, + end_lineno=106, + end_col_offset=16), + Call( + Name( + 'enumerate', + Load(), + lineno=106, + col_offset=20, + end_lineno=106, + end_col_offset=29), + [ + Name( + 'placeholder_22', + Load(), + lineno=106, + col_offset=30, + end_lineno=106, + end_col_offset=36)], + [], + lineno=106, + col_offset=20, + end_lineno=106, + end_col_offset=37), + [ + Compare( + Call( + Name( + 'len', + Load(), + lineno=107, + col_offset=11, + end_lineno=107, + end_col_offset=14), + [ + NamedExpr( + Name( + 'placeholder_26', + Store(), + lineno=107, + col_offset=15, + end_lineno=107, + end_col_offset=22), + Subscript( + Name( + 'placeholder_22', + Load(), + lineno=107, + col_offset=26, + end_lineno=107, + end_col_offset=32), + Slice( + Name( + 'placeholder_24', + Load(), + lineno=107, + col_offset=33, + end_lineno=107, + end_col_offset=34), + BinOp( + Name( + 'placeholder_24', + Load(), + lineno=107, + col_offset=37, + end_lineno=107, + end_col_offset=38), + Add(), + Name( + 'placeholder_23', + Load(), + lineno=107, + col_offset=41, + end_lineno=107, + end_col_offset=47), + lineno=107, + col_offset=37, + end_lineno=107, + end_col_offset=47), + lineno=107, + col_offset=33, + end_lineno=107, + end_col_offset=47), + Load(), + lineno=107, + col_offset=26, + end_lineno=107, + end_col_offset=48), + lineno=107, + col_offset=15, + end_lineno=107, + end_col_offset=48)], + [], + lineno=107, + col_offset=11, + end_lineno=107, + end_col_offset=49), + [ + Eq()], + [ + Name( + 'placeholder_23', + Load(), + lineno=107, + col_offset=53, + end_lineno=107, + end_col_offset=59)], + lineno=107, + col_offset=11, + end_lineno=107, + end_col_offset=59)], + 0)], + lineno=104, + col_offset=11, + end_lineno=108, + end_col_offset=5), + lineno=104, + col_offset=4, + end_lineno=108, + end_col_offset=5)], + [], + lineno=99, + col_offset=0, + end_lineno=108, + end_col_offset=5), + ImportFrom( + 'typing', + [ + alias( + 'Iterable', + lineno=112, + col_offset=19, + end_lineno=112, + end_col_offset=27)], + 0, + lineno=112, + col_offset=0, + end_lineno=112, + end_col_offset=27), + FunctionDef( + 'placeholder_27', + arguments( + [], + [ + arg( + 'placeholder_28', + lineno=113, + col_offset=12, + end_lineno=113, + end_col_offset=20)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + FunctionDef( + 'placeholder_29', + arguments( + [], + [ + arg( + 'placeholder_30', + lineno=114, + col_offset=11, + end_lineno=114, + end_col_offset=13)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + For( + Name( + 'placeholder_31', + Store(), + lineno=115, + col_offset=12, + end_lineno=115, + end_col_offset=13), + Name( + 'placeholder_30', + Load(), + lineno=115, + col_offset=17, + end_lineno=115, + end_col_offset=19), + [ + If( + BoolOp( + And(), + [ + Call( + Name( + 'isinstance', + Load(), + lineno=116, + col_offset=15, + end_lineno=116, + end_col_offset=25), + [ + Name( + 'placeholder_31', + Load(), + lineno=116, + col_offset=26, + end_lineno=116, + end_col_offset=27), + Name( + 'Iterable', + Load(), + lineno=116, + col_offset=29, + end_lineno=116, + end_col_offset=37)], + [], + lineno=116, + col_offset=15, + end_lineno=116, + end_col_offset=38), + UnaryOp( + Not(), + Call( + Name( + 'isinstance', + Load(), + lineno=116, + col_offset=47, + end_lineno=116, + end_col_offset=57), + [ + Name( + 'placeholder_31', + Load(), + lineno=116, + col_offset=58, + end_lineno=116, + end_col_offset=59), + Name( + 'str', + Load(), + lineno=116, + col_offset=61, + end_lineno=116, + end_col_offset=64)], + [], + lineno=116, + col_offset=47, + end_lineno=116, + end_col_offset=65), + lineno=116, + col_offset=43, + end_lineno=116, + end_col_offset=65)], + lineno=116, + col_offset=15, + end_lineno=116, + end_col_offset=65), + [ + Expr( + YieldFrom( + Call( + Name( + 'placeholder_29', + Load(), + lineno=117, + col_offset=27, + end_lineno=117, + end_col_offset=29), + [ + Name( + 'placeholder_31', + Load(), + lineno=117, + col_offset=30, + end_lineno=117, + end_col_offset=31)], + [], + lineno=117, + col_offset=27, + end_lineno=117, + end_col_offset=32), + lineno=117, + col_offset=16, + end_lineno=117, + end_col_offset=32), + lineno=117, + col_offset=16, + end_lineno=117, + end_col_offset=32)], + [ + Expr( + Yield( + Name( + 'placeholder_31', + Load(), + lineno=119, + col_offset=22, + end_lineno=119, + end_col_offset=23), + lineno=119, + col_offset=16, + end_lineno=119, + end_col_offset=23), + lineno=119, + col_offset=16, + end_lineno=119, + end_col_offset=23)], + lineno=116, + col_offset=12, + end_lineno=119, + end_col_offset=23)], + [], + lineno=115, + col_offset=8, + end_lineno=119, + end_col_offset=23)], + [], + lineno=114, + col_offset=4, + end_lineno=119, + end_col_offset=23), + Return( + ListComp( + Name( + 'placeholder_31', + Load(), + lineno=120, + col_offset=12, + end_lineno=120, + end_col_offset=13), + [ + comprehension( + Name( + 'placeholder_31', + Store(), + lineno=120, + col_offset=18, + end_lineno=120, + end_col_offset=19), + Call( + Name( + 'placeholder_29', + Load(), + lineno=120, + col_offset=23, + end_lineno=120, + end_col_offset=25), + [ + Name( + 'placeholder_28', + Load(), + lineno=120, + col_offset=26, + end_lineno=120, + end_col_offset=34)], + [], + lineno=120, + col_offset=23, + end_lineno=120, + end_col_offset=35), + [ + Compare( + Name( + 'placeholder_31', + Load(), + lineno=120, + col_offset=39, + end_lineno=120, + end_col_offset=40), + [ + IsNot()], + [ + Constant( + None, + lineno=120, + col_offset=48, + end_lineno=120, + end_col_offset=52)], + lineno=120, + col_offset=39, + end_lineno=120, + end_col_offset=52)], + 0)], + lineno=120, + col_offset=11, + end_lineno=120, + end_col_offset=53), + lineno=120, + col_offset=4, + end_lineno=120, + end_col_offset=53)], + [], + lineno=113, + col_offset=0, + end_lineno=120, + end_col_offset=53), + FunctionDef( + 'placeholder_32', + arguments( + [], + [ + arg( + 'placeholder_33', + lineno=124, + col_offset=17, + end_lineno=124, + end_col_offset=21)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + If( + BinOp( + NamedExpr( + Name( + 'placeholder_34', + Store(), + lineno=126, + col_offset=8, + end_lineno=126, + end_col_offset=14), + Call( + Name( + 'len', + Load(), + lineno=126, + col_offset=18, + end_lineno=126, + end_col_offset=21), + [ + Name( + 'placeholder_33', + Load(), + lineno=126, + col_offset=22, + end_lineno=126, + end_col_offset=26)], + [], + lineno=126, + col_offset=18, + end_lineno=126, + end_col_offset=27), + lineno=126, + col_offset=8, + end_lineno=126, + end_col_offset=27), + Mod(), + Constant( + 3, + lineno=126, + col_offset=31, + end_lineno=126, + end_col_offset=32), + lineno=126, + col_offset=7, + end_lineno=126, + end_col_offset=32), + [ + Raise( + Call( + Name( + 'ValueError', + Load(), + lineno=127, + col_offset=14, + end_lineno=127, + end_col_offset=24), + [ + Constant( + 'grid rows not a multiple of 4', + lineno=127, + col_offset=25, + end_lineno=127, + end_col_offset=56)], + [], + lineno=127, + col_offset=14, + end_lineno=127, + end_col_offset=57), + lineno=127, + col_offset=8, + end_lineno=127, + end_col_offset=57)], + [], + lineno=126, + col_offset=4, + end_lineno=127, + end_col_offset=57), + Return( + Name( + 'placeholder_34', + Load(), + lineno=128, + col_offset=11, + end_lineno=128, + end_col_offset=17), + lineno=128, + col_offset=4, + end_lineno=128, + end_col_offset=17)], + [], + lineno=124, + col_offset=0, + end_lineno=128, + end_col_offset=17), + FunctionDef( + 'placeholder_35', + arguments( + [], + [ + arg( + 'self', + lineno=131, + col_offset=16, + end_lineno=131, + end_col_offset=20), + arg( + 'placeholder_36', + lineno=131, + col_offset=22, + end_lineno=131, + end_col_offset=27)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + Assign( + [ + Name( + 'placeholder_37', + Store(), + lineno=133, + col_offset=4, + end_lineno=133, + end_col_offset=16)], + Call( + Name( + 'set', + Load(), + lineno=133, + col_offset=19, + end_lineno=133, + end_col_offset=22), + [ + List( + [ + Tuple( + [ + Constant( + 1, + lineno=133, + col_offset=25, + end_lineno=133, + end_col_offset=26), + Constant( + 0, + lineno=133, + col_offset=28, + end_lineno=133, + end_col_offset=29)], + Load(), + lineno=133, + col_offset=24, + end_lineno=133, + end_col_offset=30), + Tuple( + [ + UnaryOp( + USub(), + Constant( + 1, + lineno=133, + col_offset=34, + end_lineno=133, + end_col_offset=35), + lineno=133, + col_offset=33, + end_lineno=133, + end_col_offset=35), + Constant( + 0, + lineno=133, + col_offset=37, + end_lineno=133, + end_col_offset=38)], + Load(), + lineno=133, + col_offset=32, + end_lineno=133, + end_col_offset=39), + Tuple( + [ + Constant( + 0, + lineno=133, + col_offset=42, + end_lineno=133, + end_col_offset=43), + UnaryOp( + USub(), + Constant( + 1, + lineno=133, + col_offset=46, + end_lineno=133, + end_col_offset=47), + lineno=133, + col_offset=45, + end_lineno=133, + end_col_offset=47)], + Load(), + lineno=133, + col_offset=41, + end_lineno=133, + end_col_offset=48), + Tuple( + [ + Constant( + 0, + lineno=133, + col_offset=51, + end_lineno=133, + end_col_offset=52), + Constant( + 1, + lineno=133, + col_offset=54, + end_lineno=133, + end_col_offset=55)], + Load(), + lineno=133, + col_offset=50, + end_lineno=133, + end_col_offset=56)], + Load(), + lineno=133, + col_offset=23, + end_lineno=133, + end_col_offset=57)], + [], + lineno=133, + col_offset=19, + end_lineno=133, + end_col_offset=58), + lineno=133, + col_offset=4, + end_lineno=133, + end_col_offset=58), + Return( + SetComp( + Name( + 'placeholder_39', + Load(), + lineno=135, + col_offset=8, + end_lineno=135, + end_col_offset=16), + [ + comprehension( + Name( + 'placeholder_38', + Store(), + lineno=136, + col_offset=12, + end_lineno=136, + end_col_offset=18), + Name( + 'placeholder_37', + Load(), + lineno=136, + col_offset=22, + end_lineno=136, + end_col_offset=34), + [ + Call( + Attribute( + Name( + 'self', + Load(), + lineno=137, + col_offset=11, + end_lineno=137, + end_col_offset=15), + 'on_the_board', + Load(), + lineno=137, + col_offset=11, + end_lineno=137, + end_col_offset=28), + [ + NamedExpr( + Name( + 'placeholder_39', + Store(), + lineno=137, + col_offset=29, + end_lineno=137, + end_col_offset=37), + BinOp( + Name( + 'placeholder_36', + Load(), + lineno=137, + col_offset=41, + end_lineno=137, + end_col_offset=46), + Add(), + Name( + 'placeholder_38', + Load(), + lineno=137, + col_offset=49, + end_lineno=137, + end_col_offset=55), + lineno=137, + col_offset=41, + end_lineno=137, + end_col_offset=55), + lineno=137, + col_offset=29, + end_lineno=137, + end_col_offset=55)], + [], + lineno=137, + col_offset=11, + end_lineno=137, + end_col_offset=56)], + 0)], + lineno=134, + col_offset=11, + end_lineno=138, + end_col_offset=5), + lineno=134, + col_offset=4, + end_lineno=138, + end_col_offset=5)], + [], + lineno=131, + col_offset=0, + end_lineno=138, + end_col_offset=5), + FunctionDef( + 'placeholder_40', + arguments( + [], + [ + arg( + 'placeholder_28', + lineno=141, + col_offset=30, + end_lineno=141, + end_col_offset=38), + arg( + 'placeholder_41', + lineno=141, + col_offset=40, + end_lineno=141, + end_col_offset=41)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + If( + Call( + Name( + 'any', + Load(), + lineno=142, + col_offset=7, + end_lineno=142, + end_col_offset=10), + [ + GeneratorExp( + Compare( + NamedExpr( + Name( + 'placeholder_42', + Store(), + lineno=142, + col_offset=12, + end_lineno=142, + end_col_offset=16), + Name( + 'placeholder_1', + Load(), + lineno=142, + col_offset=20, + end_lineno=142, + end_col_offset=21), + lineno=142, + col_offset=12, + end_lineno=142, + end_col_offset=21), + [ + Gt()], + [ + Name( + 'placeholder_41', + Load(), + lineno=142, + col_offset=25, + end_lineno=142, + end_col_offset=26)], + lineno=142, + col_offset=11, + end_lineno=142, + end_col_offset=26), + [ + comprehension( + Name( + 'placeholder_1', + Store(), + lineno=142, + col_offset=31, + end_lineno=142, + end_col_offset=32), + Name( + 'placeholder_28', + Load(), + lineno=142, + col_offset=36, + end_lineno=142, + end_col_offset=44), + [], + 0)], + lineno=142, + col_offset=10, + end_lineno=142, + end_col_offset=45)], + [], + lineno=142, + col_offset=7, + end_lineno=142, + end_col_offset=45), + [ + Return( + Name( + 'placeholder_3', + Load(), + lineno=143, + col_offset=15, + end_lineno=143, + end_col_offset=19), + lineno=143, + col_offset=8, + end_lineno=143, + end_col_offset=19)], + [], + lineno=142, + col_offset=4, + end_lineno=143, + end_col_offset=19), + Return( + Constant( + None, + lineno=144, + col_offset=11, + end_lineno=144, + end_col_offset=15), + lineno=144, + col_offset=4, + end_lineno=144, + end_col_offset=15)], + [], + lineno=141, + col_offset=0, + end_lineno=144, + end_col_offset=15), + FunctionDef( + 'placeholder_43', + arguments( + [], + [ + arg( + 'placeholder_44', + lineno=147, + col_offset=19, + end_lineno=147, + end_col_offset=31), + arg( + 'placeholder_45', + lineno=147, + col_offset=33, + end_lineno=147, + end_col_offset=42)], + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + [ + Return( + GeneratorExp( + Call( + Attribute( + Name( + 'placeholder_47', + Load(), + lineno=156, + col_offset=8, + end_lineno=156, + end_col_offset=12), + 'ljust', + Load(), + lineno=156, + col_offset=8, + end_lineno=156, + end_col_offset=18), + [ + Constant( + 12, + lineno=156, + col_offset=19, + end_lineno=156, + end_col_offset=21), + Constant( + '0', + lineno=156, + col_offset=23, + end_lineno=156, + end_col_offset=26)], + [], + lineno=156, + col_offset=8, + end_lineno=156, + end_col_offset=27), + [ + comprehension( + Name( + 'placeholder_46', + Store(), + lineno=156, + col_offset=32, + end_lineno=156, + end_col_offset=36), + Name( + 'placeholder_44', + Load(), + lineno=156, + col_offset=40, + end_lineno=156, + end_col_offset=52), + [ + NamedExpr( + Name( + 'placeholder_47', + Store(), + lineno=156, + col_offset=57, + end_lineno=156, + end_col_offset=61), + JoinedStr( + [ + FormattedValue( + Name( + 'placeholder_46', + Load(), + lineno=156, + col_offset=68, + end_lineno=156, + end_col_offset=72), + -1, + lineno=156, + col_offset=65, + end_lineno=156, + end_col_offset=85), + FormattedValue( + Name( + 'placeholder_45', + Load(), + lineno=156, + col_offset=74, + end_lineno=156, + end_col_offset=83), + -1, + lineno=156, + col_offset=65, + end_lineno=156, + end_col_offset=85)], + lineno=156, + col_offset=65, + end_lineno=156, + end_col_offset=85), + lineno=156, + col_offset=57, + end_lineno=156, + end_col_offset=85)], + 0)], + lineno=155, + col_offset=11, + end_lineno=157, + end_col_offset=5), + lineno=155, + col_offset=4, + end_lineno=157, + end_col_offset=5)], + [], + lineno=147, + col_offset=0, + end_lineno=157, + end_col_offset=5)], + []) +## END NORMALIZED TREE ## \ No newline at end of file diff --git a/test/example-expression-normalization/representation.txt b/test/example-expression-normalization/representation.txt new file mode 100644 index 0000000..4b95728 --- /dev/null +++ b/test/example-expression-normalization/representation.txt @@ -0,0 +1 @@ +Module([Import([alias('unittest', lineno=6, col_offset=7, end_lineno=6, end_col_offset=15)], lineno=6, col_offset=0, end_lineno=6, end_col_offset=15), Import([alias('pytest', lineno=7, col_offset=7, end_lineno=7, end_col_offset=13)], lineno=7, col_offset=0, end_lineno=7, end_col_offset=13), ImportFrom('dataclass', [alias('dataclass', lineno=8, col_offset=22, end_lineno=8, end_col_offset=31)], 0, lineno=8, col_offset=0, end_lineno=8, end_col_offset=31), ImportFrom('Enum', [alias('Flag', lineno=9, col_offset=17, end_lineno=9, end_col_offset=21)], 0, lineno=9, col_offset=0, end_lineno=9, end_col_offset=21), ClassDef('placeholder_0', [], [], [Assign([Name('placeholder_1', Store(), lineno=20, col_offset=4, end_lineno=20, end_col_offset=5)], Constant(0, lineno=20, col_offset=13, end_lineno=20, end_col_offset=14), lineno=20), Assign([Name('placeholder_2', Store(), lineno=21, col_offset=4, end_lineno=21, end_col_offset=5)], Constant(0, lineno=21, col_offset=13, end_lineno=21, end_col_offset=14), lineno=21)], [Name('dataclass', Load(), lineno=17, col_offset=1, end_lineno=17, end_col_offset=10)], lineno=18, col_offset=0, end_lineno=21, end_col_offset=14), Try([Expr(BinOp(Constant(1, lineno=26, col_offset=4, end_lineno=26, end_col_offset=5), Div(), Constant(0, lineno=26, col_offset=6, end_lineno=26, end_col_offset=7), lineno=26, col_offset=4, end_lineno=26, end_col_offset=7), lineno=26, col_offset=4, end_lineno=26, end_col_offset=7)], [ExceptHandler(body=[Pass(lineno=28, col_offset=4, end_lineno=28, end_col_offset=8)], lineno=27, col_offset=0, end_lineno=28, end_col_offset=8)], [], [], lineno=25, col_offset=0, end_lineno=28, end_col_offset=8), Expr(BinOp(Constant(5, lineno=32, col_offset=0, end_lineno=32, end_col_offset=1), Add(), Constant(6, lineno=32, col_offset=2, end_lineno=32, end_col_offset=3), lineno=32, col_offset=0, end_lineno=32, end_col_offset=3), lineno=32, col_offset=0, end_lineno=32, end_col_offset=3), Expr(GeneratorExp(Name('placeholder_3', Load(), lineno=40, col_offset=1, end_lineno=40, end_col_offset=5), [comprehension(Name('placeholder_3', Store(), lineno=40, col_offset=10, end_lineno=40, end_col_offset=14), Call(Name('range', Load(), lineno=40, col_offset=18, end_lineno=40, end_col_offset=23), [Constant(8, lineno=40, col_offset=24, end_lineno=40, end_col_offset=25)], [], lineno=40, col_offset=18, end_lineno=40, end_col_offset=26), [], 0)], lineno=40, col_offset=0, end_lineno=40, end_col_offset=27), lineno=40, col_offset=0, end_lineno=40, end_col_offset=27), Expr(ListComp(Name('placeholder_3', Load(), lineno=41, col_offset=1, end_lineno=41, end_col_offset=5), [comprehension(Name('placeholder_3', Store(), lineno=41, col_offset=10, end_lineno=41, end_col_offset=14), Call(Name('range', Load(), lineno=41, col_offset=18, end_lineno=41, end_col_offset=23), [Constant(16, lineno=41, col_offset=24, end_lineno=41, end_col_offset=26)], [], lineno=41, col_offset=18, end_lineno=41, end_col_offset=27), [], 0)], lineno=41, col_offset=0, end_lineno=41, end_col_offset=28), lineno=41, col_offset=0, end_lineno=41, end_col_offset=28), Expr(SetComp(Name('placeholder_3', Load(), lineno=42, col_offset=1, end_lineno=42, end_col_offset=5), [comprehension(Name('placeholder_3', Store(), lineno=42, col_offset=10, end_lineno=42, end_col_offset=14), Call(Attribute(Constant('a b c d e f g h i', lineno=42, col_offset=18, end_lineno=42, end_col_offset=37), 'split', Load(), lineno=42, col_offset=18, end_lineno=42, end_col_offset=43), [], [], lineno=42, col_offset=18, end_lineno=42, end_col_offset=45), [], 0)], lineno=42, col_offset=0, end_lineno=42, end_col_offset=46), lineno=42, col_offset=0, end_lineno=42, end_col_offset=46), Expr(DictComp(Name('placeholder_4', Load(), lineno=43, col_offset=1, end_lineno=43, end_col_offset=4), Name('placeholder_5', Load(), lineno=43, col_offset=5, end_lineno=43, end_col_offset=10), [comprehension(Tuple([Name('placeholder_4', Store(), lineno=43, col_offset=15, end_lineno=43, end_col_offset=18), Name('placeholder_5', Store(), lineno=43, col_offset=20, end_lineno=43, end_col_offset=25)], Store(), lineno=43, col_offset=15, end_lineno=43, end_col_offset=25), Tuple([Tuple([Constant(1, lineno=43, col_offset=31, end_lineno=43, end_col_offset=32), Constant('a', lineno=43, col_offset=34, end_lineno=43, end_col_offset=37)], Load(), lineno=43, col_offset=30, end_lineno=43, end_col_offset=38), Tuple([Constant(2, lineno=43, col_offset=40, end_lineno=43, end_col_offset=41), Constant('b', lineno=43, col_offset=43, end_lineno=43, end_col_offset=46)], Load(), lineno=43, col_offset=39, end_lineno=43, end_col_offset=47), Tuple([Constant(3, lineno=43, col_offset=49, end_lineno=43, end_col_offset=50), Constant('c', lineno=43, col_offset=52, end_lineno=43, end_col_offset=55)], Load(), lineno=43, col_offset=48, end_lineno=43, end_col_offset=56), Tuple([Constant(5, lineno=43, col_offset=58, end_lineno=43, end_col_offset=59), Constant('e', lineno=43, col_offset=61, end_lineno=43, end_col_offset=64)], Load(), lineno=43, col_offset=57, end_lineno=43, end_col_offset=65)], Load(), lineno=43, col_offset=29, end_lineno=43, end_col_offset=66), [], 0)], lineno=43, col_offset=0, end_lineno=43, end_col_offset=67), lineno=43, col_offset=0, end_lineno=43, end_col_offset=67), Expr(Lambda(arguments([], [], kwonlyargs=[], kw_defaults=[], defaults=[]), DictComp(Name('placeholder_4', Load(), lineno=46, col_offset=10, end_lineno=46, end_col_offset=13), Name('placeholder_5', Load(), lineno=46, col_offset=14, end_lineno=46, end_col_offset=19), [comprehension(Tuple([Name('placeholder_4', Store(), lineno=46, col_offset=24, end_lineno=46, end_col_offset=27), Name('placeholder_5', Store(), lineno=46, col_offset=29, end_lineno=46, end_col_offset=34)], Store(), lineno=46, col_offset=24, end_lineno=46, end_col_offset=34), Tuple([Tuple([Constant(1, lineno=46, col_offset=40, end_lineno=46, end_col_offset=41), Constant('a', lineno=46, col_offset=43, end_lineno=46, end_col_offset=46)], Load(), lineno=46, col_offset=39, end_lineno=46, end_col_offset=47), Tuple([Constant(2, lineno=46, col_offset=49, end_lineno=46, end_col_offset=50), Constant('b', lineno=46, col_offset=52, end_lineno=46, end_col_offset=55)], Load(), lineno=46, col_offset=48, end_lineno=46, end_col_offset=56), Tuple([Constant(3, lineno=46, col_offset=58, end_lineno=46, end_col_offset=59), Constant('c', lineno=46, col_offset=61, end_lineno=46, end_col_offset=64)], Load(), lineno=46, col_offset=57, end_lineno=46, end_col_offset=65), Tuple([Constant(5, lineno=46, col_offset=67, end_lineno=46, end_col_offset=68), Constant('e', lineno=46, col_offset=70, end_lineno=46, end_col_offset=73)], Load(), lineno=46, col_offset=66, end_lineno=46, end_col_offset=74)], Load(), lineno=46, col_offset=38, end_lineno=46, end_col_offset=75), [], 0)], lineno=46, col_offset=9, end_lineno=46, end_col_offset=76), lineno=46, col_offset=0, end_lineno=46, end_col_offset=76), lineno=46, col_offset=0, end_lineno=46, end_col_offset=76), Assign([Name('placeholder_6', Store(), lineno=47, col_offset=0, end_lineno=47, end_col_offset=16)], Lambda(arguments([], [], kwonlyargs=[], kw_defaults=[], defaults=[]), SetComp(Name('placeholder_3', Load(), lineno=47, col_offset=29, end_lineno=47, end_col_offset=33), [comprehension(Name('placeholder_3', Store(), lineno=47, col_offset=38, end_lineno=47, end_col_offset=42), Call(Attribute(Constant('a b c d e f g h i', lineno=47, col_offset=46, end_lineno=47, end_col_offset=65), 'split', Load(), lineno=47, col_offset=46, end_lineno=47, end_col_offset=71), [], [], lineno=47, col_offset=46, end_lineno=47, end_col_offset=73), [], 0)], lineno=47, col_offset=28, end_lineno=47, end_col_offset=74), lineno=47, col_offset=19, end_lineno=47, end_col_offset=74), lineno=47, col_offset=0, end_lineno=47, end_col_offset=74), Expr(UnaryOp(USub(), Name('a', Load(), lineno=51, col_offset=1, end_lineno=51, end_col_offset=2), lineno=51, col_offset=0, end_lineno=51, end_col_offset=2), lineno=51, col_offset=0, end_lineno=51, end_col_offset=2), Assign([Name('placeholder_7', Store(), lineno=52, col_offset=0, end_lineno=52, end_col_offset=18)], Constant('It would be stupid if this exploded.', lineno=52, col_offset=21, end_lineno=52, end_col_offset=59), lineno=52, col_offset=0, end_lineno=52, end_col_offset=59), Expr(Constant('Random Hanging String', lineno=54, col_offset=0, end_lineno=54, end_col_offset=27), lineno=54, col_offset=0, end_lineno=54, end_col_offset=27), ClassDef('placeholder_8', [Name('Flag', Load(), lineno=58, col_offset=16, end_lineno=58, end_col_offset=20)], [], [Assign([Name('placeholder_9', Store(), lineno=59, col_offset=4, end_lineno=59, end_col_offset=8)], Call(Name('auto', Load(), lineno=59, col_offset=11, end_lineno=59, end_col_offset=15), [], [], lineno=59, col_offset=11, end_lineno=59, end_col_offset=17), lineno=59, col_offset=4, end_lineno=59, end_col_offset=17), Assign([Name('placeholder_10', Store(), lineno=60, col_offset=4, end_lineno=60, end_col_offset=11)], Call(Name('auto', Load(), lineno=60, col_offset=14, end_lineno=60, end_col_offset=18), [], [], lineno=60, col_offset=14, end_lineno=60, end_col_offset=20), lineno=60, col_offset=4, end_lineno=60, end_col_offset=20), Assign([Name('placeholder_11', Store(), lineno=61, col_offset=4, end_lineno=61, end_col_offset=13)], Call(Name('auto', Load(), lineno=61, col_offset=16, end_lineno=61, end_col_offset=20), [], [], lineno=61, col_offset=16, end_lineno=61, end_col_offset=22), lineno=61, col_offset=4, end_lineno=61, end_col_offset=22), Assign([Name('placeholder_12', Store(), lineno=62, col_offset=4, end_lineno=62, end_col_offset=16)], Call(Name('auto', Load(), lineno=62, col_offset=19, end_lineno=62, end_col_offset=23), [], [], lineno=62, col_offset=19, end_lineno=62, end_col_offset=25), lineno=62, col_offset=4, end_lineno=62, end_col_offset=25), Assign([Name('placeholder_13', Store(), lineno=63, col_offset=4, end_lineno=63, end_col_offset=12)], Call(Name('auto', Load(), lineno=63, col_offset=15, end_lineno=63, end_col_offset=19), [], [], lineno=63, col_offset=15, end_lineno=63, end_col_offset=21), lineno=63, col_offset=4, end_lineno=63, end_col_offset=21), Assign([Name('placeholder_14', Store(), lineno=64, col_offset=4, end_lineno=64, end_col_offset=13)], Call(Name('auto', Load(), lineno=64, col_offset=16, end_lineno=64, end_col_offset=20), [], [], lineno=64, col_offset=16, end_lineno=64, end_col_offset=22), lineno=64, col_offset=4, end_lineno=64, end_col_offset=22), Assign([Name('placeholder_15', Store(), lineno=65, col_offset=4, end_lineno=65, end_col_offset=10)], Call(Name('auto', Load(), lineno=65, col_offset=13, end_lineno=65, end_col_offset=17), [], [], lineno=65, col_offset=13, end_lineno=65, end_col_offset=19), lineno=65, col_offset=4, end_lineno=65, end_col_offset=19), Assign([Name('placeholder_16', Store(), lineno=66, col_offset=4, end_lineno=66, end_col_offset=8)], Call(Name('auto', Load(), lineno=66, col_offset=11, end_lineno=66, end_col_offset=15), [], [], lineno=66, col_offset=11, end_lineno=66, end_col_offset=17), lineno=66, col_offset=4, end_lineno=66, end_col_offset=17)], [], lineno=58, col_offset=0, end_lineno=66, end_col_offset=17), Try([ImportFrom('lasagna', [alias('EXPECTED_BAKE_TIME', lineno=74, col_offset=25, end_lineno=74, end_col_offset=43), alias('bake_time_remaining', lineno=75, col_offset=25, end_lineno=75, end_col_offset=44), alias('preparation_time_in_minutes', lineno=76, col_offset=25, end_lineno=76, end_col_offset=52), alias('elapsed_time_in_minutes', lineno=77, col_offset=25, end_lineno=77, end_col_offset=48)], 0, lineno=74, col_offset=4, end_lineno=77, end_col_offset=49)], [ExceptHandler(Name('ImportError', Load(), lineno=80, col_offset=7, end_lineno=80, end_col_offset=18), 'placeholder_17', [Assign([Name('placeholder_18', Store(), lineno=81, col_offset=4, end_lineno=81, end_col_offset=11)], Call(Attribute(Subscript(Attribute(Name('placeholder_17', Load(), lineno=81, col_offset=14, end_lineno=81, end_col_offset=25), 'args', Load(), lineno=81, col_offset=14, end_lineno=81, end_col_offset=30), Constant(0, lineno=81, col_offset=31, end_lineno=81, end_col_offset=32), Load(), lineno=81, col_offset=14, end_lineno=81, end_col_offset=33), 'split', Load(), lineno=81, col_offset=14, end_lineno=81, end_col_offset=39), [Constant('(', lineno=81, col_offset=40, end_lineno=81, end_col_offset=43)], [keyword('placeholder_19', Constant(1, lineno=81, col_offset=54, end_lineno=81, end_col_offset=55), lineno=81, col_offset=45, end_lineno=81, end_col_offset=55)], lineno=81, col_offset=14, end_lineno=81, end_col_offset=56), lineno=81, col_offset=4, end_lineno=81, end_col_offset=56), Assign([Name('placeholder_20', Store(), lineno=82, col_offset=4, end_lineno=82, end_col_offset=13)], Subscript(Call(Attribute(Subscript(Attribute(Name('placeholder_17', Load(), lineno=82, col_offset=16, end_lineno=82, end_col_offset=27), 'args', Load(), lineno=82, col_offset=16, end_lineno=82, end_col_offset=32), Constant(0, lineno=82, col_offset=33, end_lineno=82, end_col_offset=34), Load(), lineno=82, col_offset=16, end_lineno=82, end_col_offset=35), 'split', Load(), lineno=82, col_offset=16, end_lineno=82, end_col_offset=41), [], [], lineno=82, col_offset=16, end_lineno=82, end_col_offset=43), Constant(3, lineno=82, col_offset=44, end_lineno=82, end_col_offset=45), Load(), lineno=82, col_offset=16, end_lineno=82, end_col_offset=46), lineno=82, col_offset=4, end_lineno=82, end_col_offset=46), If(Compare(Constant('EXPECTED_BAKE_TIME', lineno=84, col_offset=7, end_lineno=84, end_col_offset=27), [In()], [Name('placeholder_20', Load(), lineno=84, col_offset=31, end_lineno=84, end_col_offset=40)], lineno=84, col_offset=7, end_lineno=84, end_col_offset=40), [Raise(Call(Name('ImportError', Load(), lineno=86, col_offset=14, end_lineno=86, end_col_offset=25), [JoinedStr([Constant('\n\nMISSING CONSTANT --> \nWe can not find or import the constant ', lineno=86, col_offset=26, end_lineno=87, end_col_offset=88), FormattedValue(Name('placeholder_20', Load(), lineno=86, col_offset=95, end_lineno=86, end_col_offset=104), -1, lineno=86, col_offset=26, end_lineno=87, end_col_offset=88), Constant(" in your 'lasagna.py' file.\nDid you misname or forget to define it?", lineno=86, col_offset=26, end_lineno=87, end_col_offset=88)], lineno=86, col_offset=26, end_lineno=87, end_col_offset=88)], [], lineno=86, col_offset=14, end_lineno=87, end_col_offset=89), Constant(None, lineno=87, col_offset=95, end_lineno=87, end_col_offset=99), lineno=86, col_offset=8, end_lineno=87, end_col_offset=99)], [Assign([Name('placeholder_20', Store(), lineno=89, col_offset=8, end_lineno=89, end_col_offset=17)], BinOp(Subscript(Name('placeholder_20', Load(), lineno=89, col_offset=20, end_lineno=89, end_col_offset=29), Slice(upper=UnaryOp(USub(), Constant(1, lineno=89, col_offset=32, end_lineno=89, end_col_offset=33), lineno=89, col_offset=31, end_lineno=89, end_col_offset=33), lineno=89, col_offset=30, end_lineno=89, end_col_offset=33), Load(), lineno=89, col_offset=20, end_lineno=89, end_col_offset=34), Add(), Constant("()'", lineno=89, col_offset=37, end_lineno=89, end_col_offset=42), lineno=89, col_offset=20, end_lineno=89, end_col_offset=42), lineno=89, col_offset=8, end_lineno=89, end_col_offset=42), Raise(Call(Name('ImportError', Load(), lineno=91, col_offset=14, end_lineno=91, end_col_offset=25), [JoinedStr([Constant("\n\nMISSING FUNCTION --> In your 'lasagna.py' file, we can not find or import the function named ", lineno=91, col_offset=26, end_lineno=92, end_col_offset=99), FormattedValue(Name('placeholder_20', Load(), lineno=92, col_offset=45, end_lineno=92, end_col_offset=54), -1, lineno=91, col_offset=26, end_lineno=92, end_col_offset=99), Constant('. \nDid you misname or forget to define it?', lineno=91, col_offset=26, end_lineno=92, end_col_offset=99)], lineno=91, col_offset=26, end_lineno=92, end_col_offset=99)], [], lineno=91, col_offset=14, end_lineno=92, end_col_offset=100), Constant(None, lineno=92, col_offset=106, end_lineno=92, end_col_offset=110), lineno=91, col_offset=8, end_lineno=92, end_col_offset=110)], lineno=84, col_offset=4, end_lineno=92, end_col_offset=110)], lineno=80, col_offset=0, end_lineno=92, end_col_offset=110)], [], [], lineno=73, col_offset=0, end_lineno=92, end_col_offset=110), FunctionDef('placeholder_21', arguments([], [arg('placeholder_22', lineno=99, col_offset=11, end_lineno=99, end_col_offset=17), arg('placeholder_23', lineno=99, col_offset=19, end_lineno=99, end_col_offset=25)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(ListComp(Name('placeholder_26', Load(), lineno=105, col_offset=8, end_lineno=105, end_col_offset=15), [comprehension(Tuple([Name('placeholder_24', Store(), lineno=106, col_offset=12, end_lineno=106, end_col_offset=13), Name('placeholder_25', Store(), lineno=106, col_offset=15, end_lineno=106, end_col_offset=16)], Store(), lineno=106, col_offset=12, end_lineno=106, end_col_offset=16), Call(Name('enumerate', Load(), lineno=106, col_offset=20, end_lineno=106, end_col_offset=29), [Name('placeholder_22', Load(), lineno=106, col_offset=30, end_lineno=106, end_col_offset=36)], [], lineno=106, col_offset=20, end_lineno=106, end_col_offset=37), [Compare(Call(Name('len', Load(), lineno=107, col_offset=11, end_lineno=107, end_col_offset=14), [NamedExpr(Name('placeholder_26', Store(), lineno=107, col_offset=15, end_lineno=107, end_col_offset=22), Subscript(Name('placeholder_22', Load(), lineno=107, col_offset=26, end_lineno=107, end_col_offset=32), Slice(Name('placeholder_24', Load(), lineno=107, col_offset=33, end_lineno=107, end_col_offset=34), BinOp(Name('placeholder_24', Load(), lineno=107, col_offset=37, end_lineno=107, end_col_offset=38), Add(), Name('placeholder_23', Load(), lineno=107, col_offset=41, end_lineno=107, end_col_offset=47), lineno=107, col_offset=37, end_lineno=107, end_col_offset=47), lineno=107, col_offset=33, end_lineno=107, end_col_offset=47), Load(), lineno=107, col_offset=26, end_lineno=107, end_col_offset=48), lineno=107, col_offset=15, end_lineno=107, end_col_offset=48)], [], lineno=107, col_offset=11, end_lineno=107, end_col_offset=49), [Eq()], [Name('placeholder_23', Load(), lineno=107, col_offset=53, end_lineno=107, end_col_offset=59)], lineno=107, col_offset=11, end_lineno=107, end_col_offset=59)], 0)], lineno=104, col_offset=11, end_lineno=108, end_col_offset=5), lineno=104, col_offset=4, end_lineno=108, end_col_offset=5)], [], lineno=99, col_offset=0, end_lineno=108, end_col_offset=5), ImportFrom('typing', [alias('Iterable', lineno=112, col_offset=19, end_lineno=112, end_col_offset=27)], 0, lineno=112, col_offset=0, end_lineno=112, end_col_offset=27), FunctionDef('placeholder_27', arguments([], [arg('placeholder_28', lineno=113, col_offset=12, end_lineno=113, end_col_offset=20)], kwonlyargs=[], kw_defaults=[], defaults=[]), [FunctionDef('placeholder_29', arguments([], [arg('placeholder_30', lineno=114, col_offset=11, end_lineno=114, end_col_offset=13)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_31', Store(), lineno=115, col_offset=12, end_lineno=115, end_col_offset=13), Name('placeholder_30', Load(), lineno=115, col_offset=17, end_lineno=115, end_col_offset=19), [If(BoolOp(And(), [Call(Name('isinstance', Load(), lineno=116, col_offset=15, end_lineno=116, end_col_offset=25), [Name('placeholder_31', Load(), lineno=116, col_offset=26, end_lineno=116, end_col_offset=27), Name('Iterable', Load(), lineno=116, col_offset=29, end_lineno=116, end_col_offset=37)], [], lineno=116, col_offset=15, end_lineno=116, end_col_offset=38), UnaryOp(Not(), Call(Name('isinstance', Load(), lineno=116, col_offset=47, end_lineno=116, end_col_offset=57), [Name('placeholder_31', Load(), lineno=116, col_offset=58, end_lineno=116, end_col_offset=59), Name('str', Load(), lineno=116, col_offset=61, end_lineno=116, end_col_offset=64)], [], lineno=116, col_offset=47, end_lineno=116, end_col_offset=65), lineno=116, col_offset=43, end_lineno=116, end_col_offset=65)], lineno=116, col_offset=15, end_lineno=116, end_col_offset=65), [Expr(YieldFrom(Call(Name('placeholder_29', Load(), lineno=117, col_offset=27, end_lineno=117, end_col_offset=29), [Name('placeholder_31', Load(), lineno=117, col_offset=30, end_lineno=117, end_col_offset=31)], [], lineno=117, col_offset=27, end_lineno=117, end_col_offset=32), lineno=117, col_offset=16, end_lineno=117, end_col_offset=32), lineno=117, col_offset=16, end_lineno=117, end_col_offset=32)], [Expr(Yield(Name('placeholder_31', Load(), lineno=119, col_offset=22, end_lineno=119, end_col_offset=23), lineno=119, col_offset=16, end_lineno=119, end_col_offset=23), lineno=119, col_offset=16, end_lineno=119, end_col_offset=23)], lineno=116, col_offset=12, end_lineno=119, end_col_offset=23)], [], lineno=115, col_offset=8, end_lineno=119, end_col_offset=23)], [], lineno=114, col_offset=4, end_lineno=119, end_col_offset=23), Return(ListComp(Name('placeholder_31', Load(), lineno=120, col_offset=12, end_lineno=120, end_col_offset=13), [comprehension(Name('placeholder_31', Store(), lineno=120, col_offset=18, end_lineno=120, end_col_offset=19), Call(Name('placeholder_29', Load(), lineno=120, col_offset=23, end_lineno=120, end_col_offset=25), [Name('placeholder_28', Load(), lineno=120, col_offset=26, end_lineno=120, end_col_offset=34)], [], lineno=120, col_offset=23, end_lineno=120, end_col_offset=35), [Compare(Name('placeholder_31', Load(), lineno=120, col_offset=39, end_lineno=120, end_col_offset=40), [IsNot()], [Constant(None, lineno=120, col_offset=48, end_lineno=120, end_col_offset=52)], lineno=120, col_offset=39, end_lineno=120, end_col_offset=52)], 0)], lineno=120, col_offset=11, end_lineno=120, end_col_offset=53), lineno=120, col_offset=4, end_lineno=120, end_col_offset=53)], [], lineno=113, col_offset=0, end_lineno=120, end_col_offset=53), FunctionDef('placeholder_32', arguments([], [arg('placeholder_33', lineno=124, col_offset=17, end_lineno=124, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(BinOp(NamedExpr(Name('placeholder_34', Store(), lineno=126, col_offset=8, end_lineno=126, end_col_offset=14), Call(Name('len', Load(), lineno=126, col_offset=18, end_lineno=126, end_col_offset=21), [Name('placeholder_33', Load(), lineno=126, col_offset=22, end_lineno=126, end_col_offset=26)], [], lineno=126, col_offset=18, end_lineno=126, end_col_offset=27), lineno=126, col_offset=8, end_lineno=126, end_col_offset=27), Mod(), Constant(3, lineno=126, col_offset=31, end_lineno=126, end_col_offset=32), lineno=126, col_offset=7, end_lineno=126, end_col_offset=32), [Raise(Call(Name('ValueError', Load(), lineno=127, col_offset=14, end_lineno=127, end_col_offset=24), [Constant('grid rows not a multiple of 4', lineno=127, col_offset=25, end_lineno=127, end_col_offset=56)], [], lineno=127, col_offset=14, end_lineno=127, end_col_offset=57), lineno=127, col_offset=8, end_lineno=127, end_col_offset=57)], [], lineno=126, col_offset=4, end_lineno=127, end_col_offset=57), Return(Name('placeholder_34', Load(), lineno=128, col_offset=11, end_lineno=128, end_col_offset=17), lineno=128, col_offset=4, end_lineno=128, end_col_offset=17)], [], lineno=124, col_offset=0, end_lineno=128, end_col_offset=17), FunctionDef('placeholder_35', arguments([], [arg('self', lineno=131, col_offset=16, end_lineno=131, end_col_offset=20), arg('placeholder_36', lineno=131, col_offset=22, end_lineno=131, end_col_offset=27)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_37', Store(), lineno=133, col_offset=4, end_lineno=133, end_col_offset=16)], Call(Name('set', Load(), lineno=133, col_offset=19, end_lineno=133, end_col_offset=22), [List([Tuple([Constant(1, lineno=133, col_offset=25, end_lineno=133, end_col_offset=26), Constant(0, lineno=133, col_offset=28, end_lineno=133, end_col_offset=29)], Load(), lineno=133, col_offset=24, end_lineno=133, end_col_offset=30), Tuple([UnaryOp(USub(), Constant(1, lineno=133, col_offset=34, end_lineno=133, end_col_offset=35), lineno=133, col_offset=33, end_lineno=133, end_col_offset=35), Constant(0, lineno=133, col_offset=37, end_lineno=133, end_col_offset=38)], Load(), lineno=133, col_offset=32, end_lineno=133, end_col_offset=39), Tuple([Constant(0, lineno=133, col_offset=42, end_lineno=133, end_col_offset=43), UnaryOp(USub(), Constant(1, lineno=133, col_offset=46, end_lineno=133, end_col_offset=47), lineno=133, col_offset=45, end_lineno=133, end_col_offset=47)], Load(), lineno=133, col_offset=41, end_lineno=133, end_col_offset=48), Tuple([Constant(0, lineno=133, col_offset=51, end_lineno=133, end_col_offset=52), Constant(1, lineno=133, col_offset=54, end_lineno=133, end_col_offset=55)], Load(), lineno=133, col_offset=50, end_lineno=133, end_col_offset=56)], Load(), lineno=133, col_offset=23, end_lineno=133, end_col_offset=57)], [], lineno=133, col_offset=19, end_lineno=133, end_col_offset=58), lineno=133, col_offset=4, end_lineno=133, end_col_offset=58), Return(SetComp(Name('placeholder_39', Load(), lineno=135, col_offset=8, end_lineno=135, end_col_offset=16), [comprehension(Name('placeholder_38', Store(), lineno=136, col_offset=12, end_lineno=136, end_col_offset=18), Name('placeholder_37', Load(), lineno=136, col_offset=22, end_lineno=136, end_col_offset=34), [Call(Attribute(Name('self', Load(), lineno=137, col_offset=11, end_lineno=137, end_col_offset=15), 'on_the_board', Load(), lineno=137, col_offset=11, end_lineno=137, end_col_offset=28), [NamedExpr(Name('placeholder_39', Store(), lineno=137, col_offset=29, end_lineno=137, end_col_offset=37), BinOp(Name('placeholder_36', Load(), lineno=137, col_offset=41, end_lineno=137, end_col_offset=46), Add(), Name('placeholder_38', Load(), lineno=137, col_offset=49, end_lineno=137, end_col_offset=55), lineno=137, col_offset=41, end_lineno=137, end_col_offset=55), lineno=137, col_offset=29, end_lineno=137, end_col_offset=55)], [], lineno=137, col_offset=11, end_lineno=137, end_col_offset=56)], 0)], lineno=134, col_offset=11, end_lineno=138, end_col_offset=5), lineno=134, col_offset=4, end_lineno=138, end_col_offset=5)], [], lineno=131, col_offset=0, end_lineno=138, end_col_offset=5), FunctionDef('placeholder_40', arguments([], [arg('placeholder_28', lineno=141, col_offset=30, end_lineno=141, end_col_offset=38), arg('placeholder_41', lineno=141, col_offset=40, end_lineno=141, end_col_offset=41)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Call(Name('any', Load(), lineno=142, col_offset=7, end_lineno=142, end_col_offset=10), [GeneratorExp(Compare(NamedExpr(Name('placeholder_42', Store(), lineno=142, col_offset=12, end_lineno=142, end_col_offset=16), Name('placeholder_1', Load(), lineno=142, col_offset=20, end_lineno=142, end_col_offset=21), lineno=142, col_offset=12, end_lineno=142, end_col_offset=21), [Gt()], [Name('placeholder_41', Load(), lineno=142, col_offset=25, end_lineno=142, end_col_offset=26)], lineno=142, col_offset=11, end_lineno=142, end_col_offset=26), [comprehension(Name('placeholder_1', Store(), lineno=142, col_offset=31, end_lineno=142, end_col_offset=32), Name('placeholder_28', Load(), lineno=142, col_offset=36, end_lineno=142, end_col_offset=44), [], 0)], lineno=142, col_offset=10, end_lineno=142, end_col_offset=45)], [], lineno=142, col_offset=7, end_lineno=142, end_col_offset=45), [Return(Name('placeholder_3', Load(), lineno=143, col_offset=15, end_lineno=143, end_col_offset=19), lineno=143, col_offset=8, end_lineno=143, end_col_offset=19)], [], lineno=142, col_offset=4, end_lineno=143, end_col_offset=19), Return(Constant(None, lineno=144, col_offset=11, end_lineno=144, end_col_offset=15), lineno=144, col_offset=4, end_lineno=144, end_col_offset=15)], [], lineno=141, col_offset=0, end_lineno=144, end_col_offset=15), FunctionDef('placeholder_43', arguments([], [arg('placeholder_44', lineno=147, col_offset=19, end_lineno=147, end_col_offset=31), arg('placeholder_45', lineno=147, col_offset=33, end_lineno=147, end_col_offset=42)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(GeneratorExp(Call(Attribute(Name('placeholder_47', Load(), lineno=156, col_offset=8, end_lineno=156, end_col_offset=12), 'ljust', Load(), lineno=156, col_offset=8, end_lineno=156, end_col_offset=18), [Constant(12, lineno=156, col_offset=19, end_lineno=156, end_col_offset=21), Constant('0', lineno=156, col_offset=23, end_lineno=156, end_col_offset=26)], [], lineno=156, col_offset=8, end_lineno=156, end_col_offset=27), [comprehension(Name('placeholder_46', Store(), lineno=156, col_offset=32, end_lineno=156, end_col_offset=36), Name('placeholder_44', Load(), lineno=156, col_offset=40, end_lineno=156, end_col_offset=52), [NamedExpr(Name('placeholder_47', Store(), lineno=156, col_offset=57, end_lineno=156, end_col_offset=61), JoinedStr([FormattedValue(Name('placeholder_46', Load(), lineno=156, col_offset=68, end_lineno=156, end_col_offset=72), -1, lineno=156, col_offset=65, end_lineno=156, end_col_offset=85), FormattedValue(Name('placeholder_45', Load(), lineno=156, col_offset=74, end_lineno=156, end_col_offset=83), -1, lineno=156, col_offset=65, end_lineno=156, end_col_offset=85)], lineno=156, col_offset=65, end_lineno=156, end_col_offset=85), lineno=156, col_offset=57, end_lineno=156, end_col_offset=85)], 0)], lineno=155, col_offset=11, end_lineno=157, end_col_offset=5), lineno=155, col_offset=4, end_lineno=157, end_col_offset=5)], [], lineno=147, col_offset=0, end_lineno=157, end_col_offset=5)], []) \ No newline at end of file diff --git a/test/example-generator-normalization/representation.out b/test/example-generator-normalization/representation.out index d7add39..fed1f4c 100644 --- a/test/example-generator-normalization/representation.out +++ b/test/example-generator-normalization/representation.out @@ -6,7 +6,7 @@ placeholder_0 = ["A", "B", "C", "D"] def placeholder_1(placeholder_2): for placeholder_3 in range(placeholder_2): - yield SEATS_IN_ROW[seat % 4] + yield placeholder_0[placeholder_3 % 4] def placeholder_4(placeholder_2): @@ -15,7 +15,7 @@ def placeholder_4(placeholder_2): for placeholder_3 in range(placeholder_2): placeholder_6 = math.ceil((placeholder_3 + 1) / 4) if placeholder_6 != 13: - yield f"{str(row_number)}{next(letters)}" + yield f"{str(placeholder_6)}{next(placeholder_5)}" def placeholder_7(placeholder_8): @@ -31,7 +31,7 @@ def placeholder_7(placeholder_8): def placeholder_12(placeholder_13, placeholder_14): for placeholder_3 in placeholder_13: placeholder_15 = f"{placeholder_3}{placeholder_14}" - yield (base_string + "0" * (12 - len(base_string))) + yield (placeholder_15 + "0" * (12 - len(placeholder_15))) ## END NORMALIZED CODE ## @@ -1023,7 +1023,7 @@ Module( Yield( Subscript( Name( - 'SEATS_IN_ROW', + 'placeholder_0', Load(), lineno=22, col_offset=14, @@ -1031,7 +1031,7 @@ Module( end_col_offset=26), BinOp( Name( - 'seat', + 'placeholder_3', Load(), lineno=22, col_offset=27, @@ -1318,7 +1318,7 @@ Module( end_col_offset=24), [ Name( - 'row_number', + 'placeholder_6', Load(), lineno=47, col_offset=25, @@ -1345,7 +1345,7 @@ Module( end_col_offset=42), [ Name( - 'letters', + 'placeholder_5', Load(), lineno=47, col_offset=43, @@ -1663,7 +1663,7 @@ Module( Yield( BinOp( Name( - 'base_string', + 'placeholder_15', Load(), lineno=80, col_offset=14, @@ -1696,7 +1696,7 @@ Module( end_col_offset=43), [ Name( - 'base_string', + 'placeholder_15', Load(), lineno=80, col_offset=44, diff --git a/test/example-generator-normalization/representation.txt b/test/example-generator-normalization/representation.txt index 7a2615a..daae570 100644 --- a/test/example-generator-normalization/representation.txt +++ b/test/example-generator-normalization/representation.txt @@ -1 +1 @@ -Module([Import([alias('math', lineno=3, col_offset=7, end_lineno=3, end_col_offset=11)], lineno=3, col_offset=0, end_lineno=3, end_col_offset=11), Assign([Name('placeholder_0', Store(), lineno=5, col_offset=0, end_lineno=5, end_col_offset=12)], List([Constant('A', lineno=5, col_offset=16, end_lineno=5, end_col_offset=19), Constant('B', lineno=5, col_offset=21, end_lineno=5, end_col_offset=24), Constant('C', lineno=5, col_offset=26, end_lineno=5, end_col_offset=29), Constant('D', lineno=5, col_offset=31, end_lineno=5, end_col_offset=34)], Load(), lineno=5, col_offset=15, end_lineno=5, end_col_offset=35), lineno=5, col_offset=0, end_lineno=5, end_col_offset=35), FunctionDef('placeholder_1', arguments([], [arg('placeholder_2', lineno=8, col_offset=26, end_lineno=8, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=21, col_offset=8, end_lineno=21, end_col_offset=12), Call(Name('range', Load(), lineno=21, col_offset=16, end_lineno=21, end_col_offset=21), [Name('placeholder_2', Load(), lineno=21, col_offset=22, end_lineno=21, end_col_offset=28)], [], lineno=21, col_offset=16, end_lineno=21, end_col_offset=29), [Expr(Yield(Subscript(Name('SEATS_IN_ROW', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=26), BinOp(Name('seat', Load(), lineno=22, col_offset=27, end_lineno=22, end_col_offset=31), Mod(), Constant(4, lineno=22, col_offset=34, end_lineno=22, end_col_offset=35), lineno=22, col_offset=27, end_lineno=22, end_col_offset=35), Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36)], [], lineno=21, col_offset=4, end_lineno=22, end_col_offset=36)], [], lineno=8, col_offset=0, end_lineno=22, end_col_offset=36), FunctionDef('placeholder_4', arguments([], [arg('placeholder_2', lineno=25, col_offset=19, end_lineno=25, end_col_offset=25)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=42, col_offset=4, end_lineno=42, end_col_offset=10)], IfExp(Compare(Name('placeholder_2', Load(), lineno=42, col_offset=27, end_lineno=42, end_col_offset=33), [GtE()], [Constant(13, lineno=42, col_offset=37, end_lineno=42, end_col_offset=39)], lineno=42, col_offset=27, end_lineno=42, end_col_offset=39), BinOp(Name('placeholder_2', Load(), lineno=42, col_offset=13, end_lineno=42, end_col_offset=19), Add(), Constant(4, lineno=42, col_offset=22, end_lineno=42, end_col_offset=23), lineno=42, col_offset=13, end_lineno=42, end_col_offset=23), Name('placeholder_2', Load(), lineno=42, col_offset=45, end_lineno=42, end_col_offset=51), lineno=42, col_offset=13, end_lineno=42, end_col_offset=51), lineno=42, col_offset=4, end_lineno=42, end_col_offset=51), Assign([Name('placeholder_5', Store(), lineno=43, col_offset=4, end_lineno=43, end_col_offset=11)], Call(Name('placeholder_1', Load(), lineno=43, col_offset=14, end_lineno=43, end_col_offset=35), [Name('placeholder_2', Load(), lineno=43, col_offset=36, end_lineno=43, end_col_offset=42)], [], lineno=43, col_offset=14, end_lineno=43, end_col_offset=43), lineno=43, col_offset=4, end_lineno=43, end_col_offset=43), For(Name('placeholder_3', Store(), lineno=44, col_offset=8, end_lineno=44, end_col_offset=12), Call(Name('range', Load(), lineno=44, col_offset=16, end_lineno=44, end_col_offset=21), [Name('placeholder_2', Load(), lineno=44, col_offset=22, end_lineno=44, end_col_offset=28)], [], lineno=44, col_offset=16, end_lineno=44, end_col_offset=29), [Assign([Name('placeholder_6', Store(), lineno=45, col_offset=8, end_lineno=45, end_col_offset=18)], Call(Attribute(Name('math', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=25), 'ceil', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=30), [BinOp(BinOp(Name('placeholder_3', Load(), lineno=45, col_offset=32, end_lineno=45, end_col_offset=36), Add(), Constant(1, lineno=45, col_offset=37, end_lineno=45, end_col_offset=38), lineno=45, col_offset=32, end_lineno=45, end_col_offset=38), Div(), Constant(4, lineno=45, col_offset=42, end_lineno=45, end_col_offset=43), lineno=45, col_offset=31, end_lineno=45, end_col_offset=43)], [], lineno=45, col_offset=21, end_lineno=45, end_col_offset=44), lineno=45, col_offset=8, end_lineno=45, end_col_offset=44), If(Compare(Name('placeholder_6', Load(), lineno=46, col_offset=11, end_lineno=46, end_col_offset=21), [NotEq()], [Constant(13, lineno=46, col_offset=25, end_lineno=46, end_col_offset=27)], lineno=46, col_offset=11, end_lineno=46, end_col_offset=27), [Expr(Yield(JoinedStr([FormattedValue(Call(Name('str', Load(), lineno=47, col_offset=21, end_lineno=47, end_col_offset=24), [Name('row_number', Load(), lineno=47, col_offset=25, end_lineno=47, end_col_offset=35)], [], lineno=47, col_offset=21, end_lineno=47, end_col_offset=36), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), FormattedValue(Call(Name('next', Load(), lineno=47, col_offset=38, end_lineno=47, end_col_offset=42), [Name('letters', Load(), lineno=47, col_offset=43, end_lineno=47, end_col_offset=50)], [], lineno=47, col_offset=38, end_lineno=47, end_col_offset=51), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53)], lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53)], [], lineno=46, col_offset=8, end_lineno=47, end_col_offset=53)], [], lineno=44, col_offset=4, end_lineno=47, end_col_offset=53)], [], lineno=25, col_offset=0, end_lineno=47, end_col_offset=53), FunctionDef('placeholder_7', arguments([], [arg('placeholder_8', lineno=53, col_offset=17, end_lineno=53, end_col_offset=27)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=63, col_offset=4, end_lineno=63, end_col_offset=10)], Call(Name('len', Load(), lineno=63, col_offset=13, end_lineno=63, end_col_offset=16), [Name('placeholder_8', Load(), lineno=63, col_offset=17, end_lineno=63, end_col_offset=27)], [], lineno=63, col_offset=13, end_lineno=63, end_col_offset=28), lineno=63, col_offset=4, end_lineno=63, end_col_offset=28), Assign([Name('placeholder_9', Store(), lineno=64, col_offset=4, end_lineno=64, end_col_offset=10)], Dict([], [], lineno=64, col_offset=13, end_lineno=64, end_col_offset=15), lineno=64, col_offset=4, end_lineno=64, end_col_offset=15), For(Tuple([Name('placeholder_10', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=17), Name('placeholder_11', Store(), lineno=65, col_offset=19, end_lineno=65, end_col_offset=30)], Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=30), Call(Name('zip', Load(), lineno=65, col_offset=34, end_lineno=65, end_col_offset=37), [Name('placeholder_8', Load(), lineno=65, col_offset=38, end_lineno=65, end_col_offset=48), Call(Name('placeholder_4', Load(), lineno=65, col_offset=50, end_lineno=65, end_col_offset=64), [Name('placeholder_2', Load(), lineno=65, col_offset=65, end_lineno=65, end_col_offset=71)], [], lineno=65, col_offset=50, end_lineno=65, end_col_offset=72)], [], lineno=65, col_offset=34, end_lineno=65, end_col_offset=73), [Assign([Subscript(Name('placeholder_9', Load(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=14), Name('placeholder_10', Load(), lineno=66, col_offset=15, end_lineno=66, end_col_offset=24), Store(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=25)], Name('placeholder_11', Load(), lineno=66, col_offset=28, end_lineno=66, end_col_offset=39), lineno=66, col_offset=8, end_lineno=66, end_col_offset=39)], [], lineno=65, col_offset=4, end_lineno=66, end_col_offset=39), Return(Name('placeholder_9', Load(), lineno=67, col_offset=11, end_lineno=67, end_col_offset=17), lineno=67, col_offset=4, end_lineno=67, end_col_offset=17)], [], lineno=53, col_offset=0, end_lineno=67, end_col_offset=17), FunctionDef('placeholder_12', arguments([], [arg('placeholder_13', lineno=69, col_offset=19, end_lineno=69, end_col_offset=31), arg('placeholder_14', lineno=69, col_offset=33, end_lineno=69, end_col_offset=42)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=78, col_offset=8, end_lineno=78, end_col_offset=12), Name('placeholder_13', Load(), lineno=78, col_offset=16, end_lineno=78, end_col_offset=28), [Assign([Name('placeholder_15', Store(), lineno=79, col_offset=8, end_lineno=79, end_col_offset=19)], JoinedStr([FormattedValue(Name('placeholder_3', Load(), lineno=79, col_offset=25, end_lineno=79, end_col_offset=29), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), FormattedValue(Name('placeholder_14', Load(), lineno=79, col_offset=31, end_lineno=79, end_col_offset=40), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42)], lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), lineno=79, col_offset=8, end_lineno=79, end_col_offset=42), Expr(Yield(BinOp(Name('base_string', Load(), lineno=80, col_offset=14, end_lineno=80, end_col_offset=25), Add(), BinOp(Constant('0', lineno=80, col_offset=28, end_lineno=80, end_col_offset=31), Mult(), BinOp(Constant(12, lineno=80, col_offset=35, end_lineno=80, end_col_offset=37), Sub(), Call(Name('len', Load(), lineno=80, col_offset=40, end_lineno=80, end_col_offset=43), [Name('base_string', Load(), lineno=80, col_offset=44, end_lineno=80, end_col_offset=55)], [], lineno=80, col_offset=40, end_lineno=80, end_col_offset=56), lineno=80, col_offset=35, end_lineno=80, end_col_offset=56), lineno=80, col_offset=28, end_lineno=80, end_col_offset=57), lineno=80, col_offset=14, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57)], [], lineno=78, col_offset=4, end_lineno=80, end_col_offset=57)], [], lineno=69, col_offset=0, end_lineno=80, end_col_offset=57)], []) \ No newline at end of file +Module([Import([alias('math', lineno=3, col_offset=7, end_lineno=3, end_col_offset=11)], lineno=3, col_offset=0, end_lineno=3, end_col_offset=11), Assign([Name('placeholder_0', Store(), lineno=5, col_offset=0, end_lineno=5, end_col_offset=12)], List([Constant('A', lineno=5, col_offset=16, end_lineno=5, end_col_offset=19), Constant('B', lineno=5, col_offset=21, end_lineno=5, end_col_offset=24), Constant('C', lineno=5, col_offset=26, end_lineno=5, end_col_offset=29), Constant('D', lineno=5, col_offset=31, end_lineno=5, end_col_offset=34)], Load(), lineno=5, col_offset=15, end_lineno=5, end_col_offset=35), lineno=5, col_offset=0, end_lineno=5, end_col_offset=35), FunctionDef('placeholder_1', arguments([], [arg('placeholder_2', lineno=8, col_offset=26, end_lineno=8, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=21, col_offset=8, end_lineno=21, end_col_offset=12), Call(Name('range', Load(), lineno=21, col_offset=16, end_lineno=21, end_col_offset=21), [Name('placeholder_2', Load(), lineno=21, col_offset=22, end_lineno=21, end_col_offset=28)], [], lineno=21, col_offset=16, end_lineno=21, end_col_offset=29), [Expr(Yield(Subscript(Name('placeholder_0', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=26), BinOp(Name('placeholder_3', Load(), lineno=22, col_offset=27, end_lineno=22, end_col_offset=31), Mod(), Constant(4, lineno=22, col_offset=34, end_lineno=22, end_col_offset=35), lineno=22, col_offset=27, end_lineno=22, end_col_offset=35), Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36), lineno=22, col_offset=8, end_lineno=22, end_col_offset=36)], [], lineno=21, col_offset=4, end_lineno=22, end_col_offset=36)], [], lineno=8, col_offset=0, end_lineno=22, end_col_offset=36), FunctionDef('placeholder_4', arguments([], [arg('placeholder_2', lineno=25, col_offset=19, end_lineno=25, end_col_offset=25)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=42, col_offset=4, end_lineno=42, end_col_offset=10)], IfExp(Compare(Name('placeholder_2', Load(), lineno=42, col_offset=27, end_lineno=42, end_col_offset=33), [GtE()], [Constant(13, lineno=42, col_offset=37, end_lineno=42, end_col_offset=39)], lineno=42, col_offset=27, end_lineno=42, end_col_offset=39), BinOp(Name('placeholder_2', Load(), lineno=42, col_offset=13, end_lineno=42, end_col_offset=19), Add(), Constant(4, lineno=42, col_offset=22, end_lineno=42, end_col_offset=23), lineno=42, col_offset=13, end_lineno=42, end_col_offset=23), Name('placeholder_2', Load(), lineno=42, col_offset=45, end_lineno=42, end_col_offset=51), lineno=42, col_offset=13, end_lineno=42, end_col_offset=51), lineno=42, col_offset=4, end_lineno=42, end_col_offset=51), Assign([Name('placeholder_5', Store(), lineno=43, col_offset=4, end_lineno=43, end_col_offset=11)], Call(Name('placeholder_1', Load(), lineno=43, col_offset=14, end_lineno=43, end_col_offset=35), [Name('placeholder_2', Load(), lineno=43, col_offset=36, end_lineno=43, end_col_offset=42)], [], lineno=43, col_offset=14, end_lineno=43, end_col_offset=43), lineno=43, col_offset=4, end_lineno=43, end_col_offset=43), For(Name('placeholder_3', Store(), lineno=44, col_offset=8, end_lineno=44, end_col_offset=12), Call(Name('range', Load(), lineno=44, col_offset=16, end_lineno=44, end_col_offset=21), [Name('placeholder_2', Load(), lineno=44, col_offset=22, end_lineno=44, end_col_offset=28)], [], lineno=44, col_offset=16, end_lineno=44, end_col_offset=29), [Assign([Name('placeholder_6', Store(), lineno=45, col_offset=8, end_lineno=45, end_col_offset=18)], Call(Attribute(Name('math', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=25), 'ceil', Load(), lineno=45, col_offset=21, end_lineno=45, end_col_offset=30), [BinOp(BinOp(Name('placeholder_3', Load(), lineno=45, col_offset=32, end_lineno=45, end_col_offset=36), Add(), Constant(1, lineno=45, col_offset=37, end_lineno=45, end_col_offset=38), lineno=45, col_offset=32, end_lineno=45, end_col_offset=38), Div(), Constant(4, lineno=45, col_offset=42, end_lineno=45, end_col_offset=43), lineno=45, col_offset=31, end_lineno=45, end_col_offset=43)], [], lineno=45, col_offset=21, end_lineno=45, end_col_offset=44), lineno=45, col_offset=8, end_lineno=45, end_col_offset=44), If(Compare(Name('placeholder_6', Load(), lineno=46, col_offset=11, end_lineno=46, end_col_offset=21), [NotEq()], [Constant(13, lineno=46, col_offset=25, end_lineno=46, end_col_offset=27)], lineno=46, col_offset=11, end_lineno=46, end_col_offset=27), [Expr(Yield(JoinedStr([FormattedValue(Call(Name('str', Load(), lineno=47, col_offset=21, end_lineno=47, end_col_offset=24), [Name('placeholder_6', Load(), lineno=47, col_offset=25, end_lineno=47, end_col_offset=35)], [], lineno=47, col_offset=21, end_lineno=47, end_col_offset=36), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), FormattedValue(Call(Name('next', Load(), lineno=47, col_offset=38, end_lineno=47, end_col_offset=42), [Name('placeholder_5', Load(), lineno=47, col_offset=43, end_lineno=47, end_col_offset=50)], [], lineno=47, col_offset=38, end_lineno=47, end_col_offset=51), -1, lineno=47, col_offset=18, end_lineno=47, end_col_offset=53)], lineno=47, col_offset=18, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53), lineno=47, col_offset=12, end_lineno=47, end_col_offset=53)], [], lineno=46, col_offset=8, end_lineno=47, end_col_offset=53)], [], lineno=44, col_offset=4, end_lineno=47, end_col_offset=53)], [], lineno=25, col_offset=0, end_lineno=47, end_col_offset=53), FunctionDef('placeholder_7', arguments([], [arg('placeholder_8', lineno=53, col_offset=17, end_lineno=53, end_col_offset=27)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_2', Store(), lineno=63, col_offset=4, end_lineno=63, end_col_offset=10)], Call(Name('len', Load(), lineno=63, col_offset=13, end_lineno=63, end_col_offset=16), [Name('placeholder_8', Load(), lineno=63, col_offset=17, end_lineno=63, end_col_offset=27)], [], lineno=63, col_offset=13, end_lineno=63, end_col_offset=28), lineno=63, col_offset=4, end_lineno=63, end_col_offset=28), Assign([Name('placeholder_9', Store(), lineno=64, col_offset=4, end_lineno=64, end_col_offset=10)], Dict([], [], lineno=64, col_offset=13, end_lineno=64, end_col_offset=15), lineno=64, col_offset=4, end_lineno=64, end_col_offset=15), For(Tuple([Name('placeholder_10', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=17), Name('placeholder_11', Store(), lineno=65, col_offset=19, end_lineno=65, end_col_offset=30)], Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=30), Call(Name('zip', Load(), lineno=65, col_offset=34, end_lineno=65, end_col_offset=37), [Name('placeholder_8', Load(), lineno=65, col_offset=38, end_lineno=65, end_col_offset=48), Call(Name('placeholder_4', Load(), lineno=65, col_offset=50, end_lineno=65, end_col_offset=64), [Name('placeholder_2', Load(), lineno=65, col_offset=65, end_lineno=65, end_col_offset=71)], [], lineno=65, col_offset=50, end_lineno=65, end_col_offset=72)], [], lineno=65, col_offset=34, end_lineno=65, end_col_offset=73), [Assign([Subscript(Name('placeholder_9', Load(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=14), Name('placeholder_10', Load(), lineno=66, col_offset=15, end_lineno=66, end_col_offset=24), Store(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=25)], Name('placeholder_11', Load(), lineno=66, col_offset=28, end_lineno=66, end_col_offset=39), lineno=66, col_offset=8, end_lineno=66, end_col_offset=39)], [], lineno=65, col_offset=4, end_lineno=66, end_col_offset=39), Return(Name('placeholder_9', Load(), lineno=67, col_offset=11, end_lineno=67, end_col_offset=17), lineno=67, col_offset=4, end_lineno=67, end_col_offset=17)], [], lineno=53, col_offset=0, end_lineno=67, end_col_offset=17), FunctionDef('placeholder_12', arguments([], [arg('placeholder_13', lineno=69, col_offset=19, end_lineno=69, end_col_offset=31), arg('placeholder_14', lineno=69, col_offset=33, end_lineno=69, end_col_offset=42)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=78, col_offset=8, end_lineno=78, end_col_offset=12), Name('placeholder_13', Load(), lineno=78, col_offset=16, end_lineno=78, end_col_offset=28), [Assign([Name('placeholder_15', Store(), lineno=79, col_offset=8, end_lineno=79, end_col_offset=19)], JoinedStr([FormattedValue(Name('placeholder_3', Load(), lineno=79, col_offset=25, end_lineno=79, end_col_offset=29), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), FormattedValue(Name('placeholder_14', Load(), lineno=79, col_offset=31, end_lineno=79, end_col_offset=40), -1, lineno=79, col_offset=22, end_lineno=79, end_col_offset=42)], lineno=79, col_offset=22, end_lineno=79, end_col_offset=42), lineno=79, col_offset=8, end_lineno=79, end_col_offset=42), Expr(Yield(BinOp(Name('placeholder_15', Load(), lineno=80, col_offset=14, end_lineno=80, end_col_offset=25), Add(), BinOp(Constant('0', lineno=80, col_offset=28, end_lineno=80, end_col_offset=31), Mult(), BinOp(Constant(12, lineno=80, col_offset=35, end_lineno=80, end_col_offset=37), Sub(), Call(Name('len', Load(), lineno=80, col_offset=40, end_lineno=80, end_col_offset=43), [Name('placeholder_15', Load(), lineno=80, col_offset=44, end_lineno=80, end_col_offset=55)], [], lineno=80, col_offset=40, end_lineno=80, end_col_offset=56), lineno=80, col_offset=35, end_lineno=80, end_col_offset=56), lineno=80, col_offset=28, end_lineno=80, end_col_offset=57), lineno=80, col_offset=14, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57), lineno=80, col_offset=8, end_lineno=80, end_col_offset=57)], [], lineno=78, col_offset=4, end_lineno=80, end_col_offset=57)], [], lineno=69, col_offset=0, end_lineno=80, end_col_offset=57)], []) \ No newline at end of file diff --git a/test/practice-linked-list/representation.out b/test/practice-linked-list/representation.out index db6907b..c7ce1b7 100644 --- a/test/practice-linked-list/representation.out +++ b/test/practice-linked-list/representation.out @@ -18,7 +18,11 @@ class placeholder_6: def placeholder_11(self): placeholder_12 = self.placeholder_7 while placeholder_12: - yield (current_node.value, current_node.succeeding, current_node.prev) + yield ( + placeholder_12.placeholder_2, + placeholder_12.placeholder_3, + placeholder_12.placeholder_5, + ) placeholder_12 = placeholder_12.placeholder_3 def placeholder_13(self, placeholder_14): @@ -2504,13 +2508,13 @@ Module( [ Attribute( Name( - 'current_node', + 'placeholder_12', Load(), lineno=20, col_offset=19, end_lineno=20, end_col_offset=31), - 'value', + 'placeholder_2', Load(), lineno=20, col_offset=19, @@ -2518,13 +2522,13 @@ Module( end_col_offset=37), Attribute( Name( - 'current_node', + 'placeholder_12', Load(), lineno=20, col_offset=39, end_lineno=20, end_col_offset=51), - 'succeeding', + 'placeholder_3', Load(), lineno=20, col_offset=39, @@ -2532,13 +2536,13 @@ Module( end_col_offset=62), Attribute( Name( - 'current_node', + 'placeholder_12', Load(), lineno=20, col_offset=64, end_lineno=20, end_col_offset=76), - 'prev', + 'placeholder_5', Load(), lineno=20, col_offset=64, diff --git a/test/practice-linked-list/representation.txt b/test/practice-linked-list/representation.txt index 9755cc7..cd1cfda 100644 --- a/test/practice-linked-list/representation.txt +++ b/test/practice-linked-list/representation.txt @@ -1 +1 @@ -Module([ClassDef('placeholder_0', [], [], [FunctionDef('placeholder_1', arguments([], [arg('self', lineno=2, col_offset=17, end_lineno=2, end_col_offset=21), arg('placeholder_2', lineno=2, col_offset=23, end_lineno=2, end_col_offset=28), arg('placeholder_3', lineno=2, col_offset=30, end_lineno=2, end_col_offset=40), arg('placeholder_4', lineno=2, col_offset=47, end_lineno=2, end_col_offset=55)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(None, lineno=2, col_offset=41, end_lineno=2, end_col_offset=45), Constant(None, lineno=2, col_offset=56, end_lineno=2, end_col_offset=60)]), [Assign([Attribute(Name('self', Load(), lineno=3, col_offset=8, end_lineno=3, end_col_offset=12), 'placeholder_2', Store(), lineno=3, col_offset=8, end_lineno=3, end_col_offset=18)], Name('placeholder_2', Load(), lineno=3, col_offset=21, end_lineno=3, end_col_offset=26), lineno=3, col_offset=8, end_lineno=3, end_col_offset=26), Assign([Attribute(Name('self', Load(), lineno=4, col_offset=8, end_lineno=4, end_col_offset=12), 'placeholder_3', Store(), lineno=4, col_offset=8, end_lineno=4, end_col_offset=23)], Name('placeholder_3', Load(), lineno=4, col_offset=26, end_lineno=4, end_col_offset=36), lineno=4, col_offset=8, end_lineno=4, end_col_offset=36), Assign([Attribute(Name('self', Load(), lineno=5, col_offset=8, end_lineno=5, end_col_offset=12), 'placeholder_5', Store(), lineno=5, col_offset=8, end_lineno=5, end_col_offset=17)], Name('placeholder_4', Load(), lineno=5, col_offset=20, end_lineno=5, end_col_offset=28), lineno=5, col_offset=8, end_lineno=5, end_col_offset=28)], [], lineno=2, col_offset=4, end_lineno=5, end_col_offset=28)], [], lineno=1, col_offset=0, end_lineno=5, end_col_offset=28), ClassDef('placeholder_6', [], [], [FunctionDef('placeholder_1', arguments([], [arg('self', lineno=9, col_offset=17, end_lineno=9, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Attribute(Name('self', Load(), lineno=10, col_offset=8, end_lineno=10, end_col_offset=12), 'placeholder_7', Store(), lineno=10, col_offset=8, end_lineno=10, end_col_offset=17)], Constant(None, lineno=10, col_offset=20, end_lineno=10, end_col_offset=24), lineno=10, col_offset=8, end_lineno=10, end_col_offset=24), Assign([Attribute(Name('self', Load(), lineno=11, col_offset=8, end_lineno=11, end_col_offset=12), 'placeholder_8', Store(), lineno=11, col_offset=8, end_lineno=11, end_col_offset=17)], Constant(None, lineno=11, col_offset=20, end_lineno=11, end_col_offset=24), lineno=11, col_offset=8, end_lineno=11, end_col_offset=24), Assign([Attribute(Name('self', Load(), lineno=12, col_offset=8, end_lineno=12, end_col_offset=12), 'placeholder_9', Store(), lineno=12, col_offset=8, end_lineno=12, end_col_offset=19)], Constant(0, lineno=12, col_offset=22, end_lineno=12, end_col_offset=23), lineno=12, col_offset=8, end_lineno=12, end_col_offset=23)], [], lineno=9, col_offset=4, end_lineno=12, end_col_offset=23), FunctionDef('placeholder_10', arguments([], [arg('self', lineno=14, col_offset=16, end_lineno=14, end_col_offset=20)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Attribute(Name('self', Load(), lineno=15, col_offset=15, end_lineno=15, end_col_offset=19), 'placeholder_9', Load(), lineno=15, col_offset=15, end_lineno=15, end_col_offset=26), lineno=15, col_offset=8, end_lineno=15, end_col_offset=26)], [], lineno=14, col_offset=4, end_lineno=15, end_col_offset=26), FunctionDef('placeholder_11', arguments([], [arg('self', lineno=17, col_offset=17, end_lineno=17, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_12', Store(), lineno=18, col_offset=8, end_lineno=18, end_col_offset=20)], Attribute(Name('self', Load(), lineno=18, col_offset=23, end_lineno=18, end_col_offset=27), 'placeholder_7', Load(), lineno=18, col_offset=23, end_lineno=18, end_col_offset=32), lineno=18, col_offset=8, end_lineno=18, end_col_offset=32), While(Name('placeholder_12', Load(), lineno=19, col_offset=14, end_lineno=19, end_col_offset=26), [Expr(Yield(Tuple([Attribute(Name('current_node', Load(), lineno=20, col_offset=19, end_lineno=20, end_col_offset=31), 'value', Load(), lineno=20, col_offset=19, end_lineno=20, end_col_offset=37), Attribute(Name('current_node', Load(), lineno=20, col_offset=39, end_lineno=20, end_col_offset=51), 'succeeding', Load(), lineno=20, col_offset=39, end_lineno=20, end_col_offset=62), Attribute(Name('current_node', Load(), lineno=20, col_offset=64, end_lineno=20, end_col_offset=76), 'prev', Load(), lineno=20, col_offset=64, end_lineno=20, end_col_offset=81)], Load(), lineno=20, col_offset=18, end_lineno=20, end_col_offset=82), lineno=20, col_offset=12, end_lineno=20, end_col_offset=82), lineno=20, col_offset=12, end_lineno=20, end_col_offset=82), Assign([Name('placeholder_12', Store(), lineno=21, col_offset=12, end_lineno=21, end_col_offset=24)], Attribute(Name('placeholder_12', Load(), lineno=21, col_offset=27, end_lineno=21, end_col_offset=39), 'placeholder_3', Load(), lineno=21, col_offset=27, end_lineno=21, end_col_offset=50), lineno=21, col_offset=12, end_lineno=21, end_col_offset=50)], [], lineno=19, col_offset=8, end_lineno=21, end_col_offset=50)], [], lineno=17, col_offset=4, end_lineno=21, end_col_offset=50), FunctionDef('placeholder_13', arguments([], [arg('self', lineno=23, col_offset=15, end_lineno=23, end_col_offset=19), arg('placeholder_14', lineno=23, col_offset=21, end_lineno=23, end_col_offset=30)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Attribute(Name('self', Load(), lineno=24, col_offset=11, end_lineno=24, end_col_offset=15), 'placeholder_9', Load(), lineno=24, col_offset=11, end_lineno=24, end_col_offset=22), [Eq()], [Constant(0, lineno=24, col_offset=26, end_lineno=24, end_col_offset=27)], lineno=24, col_offset=11, end_lineno=24, end_col_offset=27), [Raise(Call(Name('ValueError', Load(), lineno=25, col_offset=18, end_lineno=25, end_col_offset=28), [Constant('Value not found', lineno=25, col_offset=29, end_lineno=25, end_col_offset=46)], [], lineno=25, col_offset=18, end_lineno=25, end_col_offset=47), lineno=25, col_offset=12, end_lineno=25, end_col_offset=47)], [], lineno=24, col_offset=8, end_lineno=25, end_col_offset=47), Assign([Name('placeholder_15', Store(), lineno=26, col_offset=8, end_lineno=26, end_col_offset=13)], Constant(False, lineno=26, col_offset=16, end_lineno=26, end_col_offset=21), lineno=26, col_offset=8, end_lineno=26, end_col_offset=21), Assign([Name('placeholder_16', Store(), lineno=27, col_offset=8, end_lineno=27, end_col_offset=12)], Attribute(Name('self', Load(), lineno=27, col_offset=15, end_lineno=27, end_col_offset=19), 'placeholder_7', Load(), lineno=27, col_offset=15, end_lineno=27, end_col_offset=24), lineno=27, col_offset=8, end_lineno=27, end_col_offset=24), For(Tuple([Name('placeholder_2', Store(), lineno=29, col_offset=12, end_lineno=29, end_col_offset=17), Name('placeholder_3', Store(), lineno=29, col_offset=19, end_lineno=29, end_col_offset=29), Name('placeholder_5', Store(), lineno=29, col_offset=31, end_lineno=29, end_col_offset=35)], Store(), lineno=29, col_offset=12, end_lineno=29, end_col_offset=35), Name('self', Load(), lineno=29, col_offset=39, end_lineno=29, end_col_offset=43), [If(Compare(Name('placeholder_2', Load(), lineno=30, col_offset=15, end_lineno=30, end_col_offset=20), [Eq()], [Name('placeholder_14', Load(), lineno=30, col_offset=24, end_lineno=30, end_col_offset=33)], lineno=30, col_offset=15, end_lineno=30, end_col_offset=33), [If(Name('placeholder_5', Load(), lineno=31, col_offset=19, end_lineno=31, end_col_offset=23), [Assign([Attribute(Attribute(Name('placeholder_16', Load(), lineno=32, col_offset=20, end_lineno=32, end_col_offset=24), 'placeholder_5', Load(), lineno=32, col_offset=20, end_lineno=32, end_col_offset=29), 'placeholder_3', Store(), lineno=32, col_offset=20, end_lineno=32, end_col_offset=40)], Name('placeholder_3', Load(), lineno=32, col_offset=43, end_lineno=32, end_col_offset=53), lineno=32, col_offset=20, end_lineno=32, end_col_offset=53)], [Assign([Attribute(Name('self', Load(), lineno=34, col_offset=20, end_lineno=34, end_col_offset=24), 'placeholder_7', Store(), lineno=34, col_offset=20, end_lineno=34, end_col_offset=29)], Name('placeholder_3', Load(), lineno=34, col_offset=32, end_lineno=34, end_col_offset=42), lineno=34, col_offset=20, end_lineno=34, end_col_offset=42)], lineno=31, col_offset=16, end_lineno=34, end_col_offset=42), If(Name('placeholder_3', Load(), lineno=35, col_offset=19, end_lineno=35, end_col_offset=29), [Assign([Attribute(Attribute(Name('placeholder_16', Load(), lineno=36, col_offset=20, end_lineno=36, end_col_offset=24), 'placeholder_3', Load(), lineno=36, col_offset=20, end_lineno=36, end_col_offset=35), 'placeholder_5', Store(), lineno=36, col_offset=20, end_lineno=36, end_col_offset=40)], Name('placeholder_5', Load(), lineno=36, col_offset=43, end_lineno=36, end_col_offset=47), lineno=36, col_offset=20, end_lineno=36, end_col_offset=47)], [Assign([Attribute(Name('self', Load(), lineno=38, col_offset=20, end_lineno=38, end_col_offset=24), 'placeholder_8', Store(), lineno=38, col_offset=20, end_lineno=38, end_col_offset=29)], Name('placeholder_5', Load(), lineno=38, col_offset=32, end_lineno=38, end_col_offset=36), lineno=38, col_offset=20, end_lineno=38, end_col_offset=36)], lineno=35, col_offset=16, end_lineno=38, end_col_offset=36), Assign([Name('placeholder_15', Store(), lineno=40, col_offset=16, end_lineno=40, end_col_offset=21)], Constant(True, lineno=40, col_offset=24, end_lineno=40, end_col_offset=28), lineno=40, col_offset=16, end_lineno=40, end_col_offset=28), AugAssign(Attribute(Name('self', Load(), lineno=41, col_offset=16, end_lineno=41, end_col_offset=20), 'placeholder_9', Store(), lineno=41, col_offset=16, end_lineno=41, end_col_offset=27), Sub(), Constant(1, lineno=41, col_offset=31, end_lineno=41, end_col_offset=32), lineno=41, col_offset=16, end_lineno=41, end_col_offset=32), Break(lineno=42, col_offset=16, end_lineno=42, end_col_offset=21)], [], lineno=30, col_offset=12, end_lineno=42, end_col_offset=21), Assign([Name('placeholder_16', Store(), lineno=43, col_offset=12, end_lineno=43, end_col_offset=16)], Attribute(Name('placeholder_16', Load(), lineno=43, col_offset=19, end_lineno=43, end_col_offset=23), 'placeholder_3', Load(), lineno=43, col_offset=19, end_lineno=43, end_col_offset=34), lineno=43, col_offset=12, end_lineno=43, end_col_offset=34)], [], lineno=29, col_offset=8, end_lineno=43, end_col_offset=34), If(UnaryOp(Not(), Name('placeholder_15', Load(), lineno=44, col_offset=15, end_lineno=44, end_col_offset=20), lineno=44, col_offset=11, end_lineno=44, end_col_offset=20), [Raise(Call(Name('ValueError', Load(), lineno=45, col_offset=18, end_lineno=45, end_col_offset=28), [Constant('Value not found', lineno=45, col_offset=29, end_lineno=45, end_col_offset=46)], [], lineno=45, col_offset=18, end_lineno=45, end_col_offset=47), lineno=45, col_offset=12, end_lineno=45, end_col_offset=47)], [], lineno=44, col_offset=8, end_lineno=45, end_col_offset=47)], [], lineno=23, col_offset=4, end_lineno=45, end_col_offset=47), FunctionDef('placeholder_17', arguments([], [arg('self', lineno=47, col_offset=13, end_lineno=47, end_col_offset=17), arg('placeholder_2', lineno=47, col_offset=19, end_lineno=47, end_col_offset=24)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_18', Store(), lineno=48, col_offset=8, end_lineno=48, end_col_offset=16)], Call(Name('placeholder_0', Load(), lineno=48, col_offset=19, end_lineno=48, end_col_offset=23), [Name('placeholder_2', Load(), lineno=48, col_offset=24, end_lineno=48, end_col_offset=29)], [], lineno=48, col_offset=19, end_lineno=48, end_col_offset=30), lineno=48, col_offset=8, end_lineno=48, end_col_offset=30), If(UnaryOp(Not(), Attribute(Name('self', Load(), lineno=49, col_offset=15, end_lineno=49, end_col_offset=19), 'placeholder_7', Load(), lineno=49, col_offset=15, end_lineno=49, end_col_offset=24), lineno=49, col_offset=11, end_lineno=49, end_col_offset=24), [Assign([Attribute(Name('self', Load(), lineno=50, col_offset=12, end_lineno=50, end_col_offset=16), 'placeholder_7', Store(), lineno=50, col_offset=12, end_lineno=50, end_col_offset=21), Attribute(Name('self', Load(), lineno=50, col_offset=24, end_lineno=50, end_col_offset=28), 'placeholder_8', Store(), lineno=50, col_offset=24, end_lineno=50, end_col_offset=33)], Name('placeholder_18', Load(), lineno=50, col_offset=36, end_lineno=50, end_col_offset=44), lineno=50, col_offset=12, end_lineno=50, end_col_offset=44)], [Assign([Attribute(Name('placeholder_18', Load(), lineno=52, col_offset=12, end_lineno=52, end_col_offset=20), 'placeholder_5', Store(), lineno=52, col_offset=12, end_lineno=52, end_col_offset=25)], Attribute(Name('self', Load(), lineno=52, col_offset=28, end_lineno=52, end_col_offset=32), 'placeholder_8', Load(), lineno=52, col_offset=28, end_lineno=52, end_col_offset=37), lineno=52, col_offset=12, end_lineno=52, end_col_offset=37), Assign([Attribute(Attribute(Name('self', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=16), 'placeholder_8', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=21), 'placeholder_3', Store(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=32)], Name('placeholder_18', Load(), lineno=53, col_offset=35, end_lineno=53, end_col_offset=43), lineno=53, col_offset=12, end_lineno=53, end_col_offset=43), Assign([Attribute(Name('self', Load(), lineno=54, col_offset=12, end_lineno=54, end_col_offset=16), 'placeholder_8', Store(), lineno=54, col_offset=12, end_lineno=54, end_col_offset=21)], Name('placeholder_18', Load(), lineno=54, col_offset=24, end_lineno=54, end_col_offset=32), lineno=54, col_offset=12, end_lineno=54, end_col_offset=32)], lineno=49, col_offset=8, end_lineno=54, end_col_offset=32), AugAssign(Attribute(Name('self', Load(), lineno=56, col_offset=8, end_lineno=56, end_col_offset=12), 'placeholder_9', Store(), lineno=56, col_offset=8, end_lineno=56, end_col_offset=19), Add(), Constant(1, lineno=56, col_offset=23, end_lineno=56, end_col_offset=24), lineno=56, col_offset=8, end_lineno=56, end_col_offset=24)], [], lineno=47, col_offset=4, end_lineno=56, end_col_offset=24), FunctionDef('placeholder_19', arguments([], [arg('self', lineno=58, col_offset=12, end_lineno=58, end_col_offset=16)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_16', Store(), lineno=59, col_offset=8, end_lineno=59, end_col_offset=12)], Attribute(Name('self', Load(), lineno=59, col_offset=15, end_lineno=59, end_col_offset=19), 'placeholder_8', Load(), lineno=59, col_offset=15, end_lineno=59, end_col_offset=24), lineno=59, col_offset=8, end_lineno=59, end_col_offset=24), If(Compare(Attribute(Name('self', Load(), lineno=61, col_offset=11, end_lineno=61, end_col_offset=15), 'placeholder_9', Load(), lineno=61, col_offset=11, end_lineno=61, end_col_offset=22), [Eq()], [Constant(0, lineno=61, col_offset=26, end_lineno=61, end_col_offset=27)], lineno=61, col_offset=11, end_lineno=61, end_col_offset=27), [Raise(Call(Name('IndexError', Load(), lineno=62, col_offset=18, end_lineno=62, end_col_offset=28), [Constant('List is empty', lineno=62, col_offset=29, end_lineno=62, end_col_offset=44)], [], lineno=62, col_offset=18, end_lineno=62, end_col_offset=45), lineno=62, col_offset=12, end_lineno=62, end_col_offset=45)], [], lineno=61, col_offset=8, end_lineno=62, end_col_offset=45), If(BoolOp(Or(), [Compare(Name('placeholder_16', Load(), lineno=63, col_offset=11, end_lineno=63, end_col_offset=15), [Is()], [Constant(None, lineno=63, col_offset=19, end_lineno=63, end_col_offset=23)], lineno=63, col_offset=11, end_lineno=63, end_col_offset=23), Compare(Attribute(Name('placeholder_16', Load(), lineno=63, col_offset=27, end_lineno=63, end_col_offset=31), 'placeholder_5', Load(), lineno=63, col_offset=27, end_lineno=63, end_col_offset=36), [Is()], [Constant(None, lineno=63, col_offset=40, end_lineno=63, end_col_offset=44)], lineno=63, col_offset=27, end_lineno=63, end_col_offset=44)], lineno=63, col_offset=11, end_lineno=63, end_col_offset=44), [Assign([Attribute(Name('self', Load(), lineno=64, col_offset=12, end_lineno=64, end_col_offset=16), 'placeholder_7', Store(), lineno=64, col_offset=12, end_lineno=64, end_col_offset=21), Attribute(Name('self', Load(), lineno=64, col_offset=24, end_lineno=64, end_col_offset=28), 'placeholder_8', Store(), lineno=64, col_offset=24, end_lineno=64, end_col_offset=33)], Constant(None, lineno=64, col_offset=36, end_lineno=64, end_col_offset=40), lineno=64, col_offset=12, end_lineno=64, end_col_offset=40)], [Assign([Attribute(Name('self', Load(), lineno=66, col_offset=12, end_lineno=66, end_col_offset=16), 'placeholder_8', Store(), lineno=66, col_offset=12, end_lineno=66, end_col_offset=21)], Attribute(Attribute(Name('self', Load(), lineno=66, col_offset=24, end_lineno=66, end_col_offset=28), 'placeholder_8', Load(), lineno=66, col_offset=24, end_lineno=66, end_col_offset=33), 'placeholder_5', Load(), lineno=66, col_offset=24, end_lineno=66, end_col_offset=38), lineno=66, col_offset=12, end_lineno=66, end_col_offset=38), Assign([Attribute(Attribute(Name('self', Load(), lineno=67, col_offset=12, end_lineno=67, end_col_offset=16), 'placeholder_8', Load(), lineno=67, col_offset=12, end_lineno=67, end_col_offset=21), 'placeholder_3', Store(), lineno=67, col_offset=12, end_lineno=67, end_col_offset=32)], Constant(None, lineno=67, col_offset=35, end_lineno=67, end_col_offset=39), lineno=67, col_offset=12, end_lineno=67, end_col_offset=39)], lineno=63, col_offset=8, end_lineno=67, end_col_offset=39), AugAssign(Attribute(Name('self', Load(), lineno=68, col_offset=8, end_lineno=68, end_col_offset=12), 'placeholder_9', Store(), lineno=68, col_offset=8, end_lineno=68, end_col_offset=19), Sub(), Constant(1, lineno=68, col_offset=23, end_lineno=68, end_col_offset=24), lineno=68, col_offset=8, end_lineno=68, end_col_offset=24), Return(Attribute(Name('placeholder_16', Load(), lineno=70, col_offset=15, end_lineno=70, end_col_offset=19), 'placeholder_2', Load(), lineno=70, col_offset=15, end_lineno=70, end_col_offset=25), lineno=70, col_offset=8, end_lineno=70, end_col_offset=25)], [], lineno=58, col_offset=4, end_lineno=70, end_col_offset=25), FunctionDef('placeholder_20', arguments([], [arg('self', lineno=72, col_offset=14, end_lineno=72, end_col_offset=18)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Attribute(Name('self', Load(), lineno=73, col_offset=11, end_lineno=73, end_col_offset=15), 'placeholder_9', Load(), lineno=73, col_offset=11, end_lineno=73, end_col_offset=22), [Eq()], [Constant(0, lineno=73, col_offset=26, end_lineno=73, end_col_offset=27)], lineno=73, col_offset=11, end_lineno=73, end_col_offset=27), [Raise(Call(Name('IndexError', Load(), lineno=74, col_offset=18, end_lineno=74, end_col_offset=28), [Constant('List is empty', lineno=74, col_offset=29, end_lineno=74, end_col_offset=44)], [], lineno=74, col_offset=18, end_lineno=74, end_col_offset=45), lineno=74, col_offset=12, end_lineno=74, end_col_offset=45)], [], lineno=73, col_offset=8, end_lineno=74, end_col_offset=45), Assign([Name('placeholder_16', Store(), lineno=75, col_offset=8, end_lineno=75, end_col_offset=12)], Attribute(Name('self', Load(), lineno=75, col_offset=15, end_lineno=75, end_col_offset=19), 'placeholder_7', Load(), lineno=75, col_offset=15, end_lineno=75, end_col_offset=24), lineno=75, col_offset=8, end_lineno=75, end_col_offset=24), If(BoolOp(Or(), [Compare(Name('placeholder_16', Load(), lineno=76, col_offset=11, end_lineno=76, end_col_offset=15), [Is()], [Constant(None, lineno=76, col_offset=19, end_lineno=76, end_col_offset=23)], lineno=76, col_offset=11, end_lineno=76, end_col_offset=23), Compare(Attribute(Name('placeholder_16', Load(), lineno=76, col_offset=27, end_lineno=76, end_col_offset=31), 'placeholder_3', Load(), lineno=76, col_offset=27, end_lineno=76, end_col_offset=42), [Is()], [Constant(None, lineno=76, col_offset=46, end_lineno=76, end_col_offset=50)], lineno=76, col_offset=27, end_lineno=76, end_col_offset=50)], lineno=76, col_offset=11, end_lineno=76, end_col_offset=50), [Assign([Attribute(Name('self', Load(), lineno=77, col_offset=12, end_lineno=77, end_col_offset=16), 'placeholder_7', Store(), lineno=77, col_offset=12, end_lineno=77, end_col_offset=21), Attribute(Name('self', Load(), lineno=77, col_offset=24, end_lineno=77, end_col_offset=28), 'placeholder_8', Store(), lineno=77, col_offset=24, end_lineno=77, end_col_offset=33)], Constant(None, lineno=77, col_offset=36, end_lineno=77, end_col_offset=40), lineno=77, col_offset=12, end_lineno=77, end_col_offset=40)], [Assign([Attribute(Name('self', Load(), lineno=79, col_offset=12, end_lineno=79, end_col_offset=16), 'placeholder_7', Store(), lineno=79, col_offset=12, end_lineno=79, end_col_offset=21)], Attribute(Attribute(Name('self', Load(), lineno=79, col_offset=24, end_lineno=79, end_col_offset=28), 'placeholder_7', Load(), lineno=79, col_offset=24, end_lineno=79, end_col_offset=33), 'placeholder_3', Load(), lineno=79, col_offset=24, end_lineno=79, end_col_offset=44), lineno=79, col_offset=12, end_lineno=79, end_col_offset=44), Assign([Attribute(Attribute(Name('self', Load(), lineno=80, col_offset=12, end_lineno=80, end_col_offset=16), 'placeholder_7', Load(), lineno=80, col_offset=12, end_lineno=80, end_col_offset=21), 'placeholder_5', Store(), lineno=80, col_offset=12, end_lineno=80, end_col_offset=26)], Constant(None, lineno=80, col_offset=29, end_lineno=80, end_col_offset=33), lineno=80, col_offset=12, end_lineno=80, end_col_offset=33)], lineno=76, col_offset=8, end_lineno=80, end_col_offset=33), AugAssign(Attribute(Name('self', Load(), lineno=81, col_offset=8, end_lineno=81, end_col_offset=12), 'placeholder_9', Store(), lineno=81, col_offset=8, end_lineno=81, end_col_offset=19), Sub(), Constant(1, lineno=81, col_offset=23, end_lineno=81, end_col_offset=24), lineno=81, col_offset=8, end_lineno=81, end_col_offset=24), Return(Attribute(Name('placeholder_16', Load(), lineno=83, col_offset=15, end_lineno=83, end_col_offset=19), 'placeholder_2', Load(), lineno=83, col_offset=15, end_lineno=83, end_col_offset=25), lineno=83, col_offset=8, end_lineno=83, end_col_offset=25)], [], lineno=72, col_offset=4, end_lineno=83, end_col_offset=25), FunctionDef('placeholder_21', arguments([], [arg('self', lineno=85, col_offset=16, end_lineno=85, end_col_offset=20), arg('placeholder_2', lineno=85, col_offset=22, end_lineno=85, end_col_offset=27)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_18', Store(), lineno=86, col_offset=8, end_lineno=86, end_col_offset=16)], Call(Name('placeholder_0', Load(), lineno=86, col_offset=19, end_lineno=86, end_col_offset=23), [Name('placeholder_2', Load(), lineno=86, col_offset=24, end_lineno=86, end_col_offset=29)], [], lineno=86, col_offset=19, end_lineno=86, end_col_offset=30), lineno=86, col_offset=8, end_lineno=86, end_col_offset=30), If(UnaryOp(Not(), Attribute(Name('self', Load(), lineno=87, col_offset=15, end_lineno=87, end_col_offset=19), 'placeholder_7', Load(), lineno=87, col_offset=15, end_lineno=87, end_col_offset=24), lineno=87, col_offset=11, end_lineno=87, end_col_offset=24), [Assign([Attribute(Name('self', Load(), lineno=88, col_offset=12, end_lineno=88, end_col_offset=16), 'placeholder_7', Store(), lineno=88, col_offset=12, end_lineno=88, end_col_offset=21), Attribute(Name('self', Load(), lineno=88, col_offset=24, end_lineno=88, end_col_offset=28), 'placeholder_8', Store(), lineno=88, col_offset=24, end_lineno=88, end_col_offset=33)], Name('placeholder_18', Load(), lineno=88, col_offset=36, end_lineno=88, end_col_offset=44), lineno=88, col_offset=12, end_lineno=88, end_col_offset=44)], [Assign([Attribute(Name('placeholder_18', Load(), lineno=90, col_offset=12, end_lineno=90, end_col_offset=20), 'placeholder_3', Store(), lineno=90, col_offset=12, end_lineno=90, end_col_offset=31)], Attribute(Name('self', Load(), lineno=90, col_offset=34, end_lineno=90, end_col_offset=38), 'placeholder_7', Load(), lineno=90, col_offset=34, end_lineno=90, end_col_offset=43), lineno=90, col_offset=12, end_lineno=90, end_col_offset=43), Assign([Attribute(Attribute(Name('self', Load(), lineno=91, col_offset=12, end_lineno=91, end_col_offset=16), 'placeholder_7', Load(), lineno=91, col_offset=12, end_lineno=91, end_col_offset=21), 'placeholder_5', Store(), lineno=91, col_offset=12, end_lineno=91, end_col_offset=26)], Name('placeholder_18', Load(), lineno=91, col_offset=29, end_lineno=91, end_col_offset=37), lineno=91, col_offset=12, end_lineno=91, end_col_offset=37), Assign([Attribute(Name('self', Load(), lineno=92, col_offset=12, end_lineno=92, end_col_offset=16), 'placeholder_7', Store(), lineno=92, col_offset=12, end_lineno=92, end_col_offset=21)], Name('placeholder_18', Load(), lineno=92, col_offset=24, end_lineno=92, end_col_offset=32), lineno=92, col_offset=12, end_lineno=92, end_col_offset=32)], lineno=87, col_offset=8, end_lineno=92, end_col_offset=32), AugAssign(Attribute(Name('self', Load(), lineno=94, col_offset=8, end_lineno=94, end_col_offset=12), 'placeholder_9', Store(), lineno=94, col_offset=8, end_lineno=94, end_col_offset=19), Add(), Constant(1, lineno=94, col_offset=23, end_lineno=94, end_col_offset=24), lineno=94, col_offset=8, end_lineno=94, end_col_offset=24)], [], lineno=85, col_offset=4, end_lineno=94, end_col_offset=24)], [], lineno=8, col_offset=0, end_lineno=94, end_col_offset=24)], []) \ No newline at end of file +Module([ClassDef('placeholder_0', [], [], [FunctionDef('placeholder_1', arguments([], [arg('self', lineno=2, col_offset=17, end_lineno=2, end_col_offset=21), arg('placeholder_2', lineno=2, col_offset=23, end_lineno=2, end_col_offset=28), arg('placeholder_3', lineno=2, col_offset=30, end_lineno=2, end_col_offset=40), arg('placeholder_4', lineno=2, col_offset=47, end_lineno=2, end_col_offset=55)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(None, lineno=2, col_offset=41, end_lineno=2, end_col_offset=45), Constant(None, lineno=2, col_offset=56, end_lineno=2, end_col_offset=60)]), [Assign([Attribute(Name('self', Load(), lineno=3, col_offset=8, end_lineno=3, end_col_offset=12), 'placeholder_2', Store(), lineno=3, col_offset=8, end_lineno=3, end_col_offset=18)], Name('placeholder_2', Load(), lineno=3, col_offset=21, end_lineno=3, end_col_offset=26), lineno=3, col_offset=8, end_lineno=3, end_col_offset=26), Assign([Attribute(Name('self', Load(), lineno=4, col_offset=8, end_lineno=4, end_col_offset=12), 'placeholder_3', Store(), lineno=4, col_offset=8, end_lineno=4, end_col_offset=23)], Name('placeholder_3', Load(), lineno=4, col_offset=26, end_lineno=4, end_col_offset=36), lineno=4, col_offset=8, end_lineno=4, end_col_offset=36), Assign([Attribute(Name('self', Load(), lineno=5, col_offset=8, end_lineno=5, end_col_offset=12), 'placeholder_5', Store(), lineno=5, col_offset=8, end_lineno=5, end_col_offset=17)], Name('placeholder_4', Load(), lineno=5, col_offset=20, end_lineno=5, end_col_offset=28), lineno=5, col_offset=8, end_lineno=5, end_col_offset=28)], [], lineno=2, col_offset=4, end_lineno=5, end_col_offset=28)], [], lineno=1, col_offset=0, end_lineno=5, end_col_offset=28), ClassDef('placeholder_6', [], [], [FunctionDef('placeholder_1', arguments([], [arg('self', lineno=9, col_offset=17, end_lineno=9, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Attribute(Name('self', Load(), lineno=10, col_offset=8, end_lineno=10, end_col_offset=12), 'placeholder_7', Store(), lineno=10, col_offset=8, end_lineno=10, end_col_offset=17)], Constant(None, lineno=10, col_offset=20, end_lineno=10, end_col_offset=24), lineno=10, col_offset=8, end_lineno=10, end_col_offset=24), Assign([Attribute(Name('self', Load(), lineno=11, col_offset=8, end_lineno=11, end_col_offset=12), 'placeholder_8', Store(), lineno=11, col_offset=8, end_lineno=11, end_col_offset=17)], Constant(None, lineno=11, col_offset=20, end_lineno=11, end_col_offset=24), lineno=11, col_offset=8, end_lineno=11, end_col_offset=24), Assign([Attribute(Name('self', Load(), lineno=12, col_offset=8, end_lineno=12, end_col_offset=12), 'placeholder_9', Store(), lineno=12, col_offset=8, end_lineno=12, end_col_offset=19)], Constant(0, lineno=12, col_offset=22, end_lineno=12, end_col_offset=23), lineno=12, col_offset=8, end_lineno=12, end_col_offset=23)], [], lineno=9, col_offset=4, end_lineno=12, end_col_offset=23), FunctionDef('placeholder_10', arguments([], [arg('self', lineno=14, col_offset=16, end_lineno=14, end_col_offset=20)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Attribute(Name('self', Load(), lineno=15, col_offset=15, end_lineno=15, end_col_offset=19), 'placeholder_9', Load(), lineno=15, col_offset=15, end_lineno=15, end_col_offset=26), lineno=15, col_offset=8, end_lineno=15, end_col_offset=26)], [], lineno=14, col_offset=4, end_lineno=15, end_col_offset=26), FunctionDef('placeholder_11', arguments([], [arg('self', lineno=17, col_offset=17, end_lineno=17, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_12', Store(), lineno=18, col_offset=8, end_lineno=18, end_col_offset=20)], Attribute(Name('self', Load(), lineno=18, col_offset=23, end_lineno=18, end_col_offset=27), 'placeholder_7', Load(), lineno=18, col_offset=23, end_lineno=18, end_col_offset=32), lineno=18, col_offset=8, end_lineno=18, end_col_offset=32), While(Name('placeholder_12', Load(), lineno=19, col_offset=14, end_lineno=19, end_col_offset=26), [Expr(Yield(Tuple([Attribute(Name('placeholder_12', Load(), lineno=20, col_offset=19, end_lineno=20, end_col_offset=31), 'placeholder_2', Load(), lineno=20, col_offset=19, end_lineno=20, end_col_offset=37), Attribute(Name('placeholder_12', Load(), lineno=20, col_offset=39, end_lineno=20, end_col_offset=51), 'placeholder_3', Load(), lineno=20, col_offset=39, end_lineno=20, end_col_offset=62), Attribute(Name('placeholder_12', Load(), lineno=20, col_offset=64, end_lineno=20, end_col_offset=76), 'placeholder_5', Load(), lineno=20, col_offset=64, end_lineno=20, end_col_offset=81)], Load(), lineno=20, col_offset=18, end_lineno=20, end_col_offset=82), lineno=20, col_offset=12, end_lineno=20, end_col_offset=82), lineno=20, col_offset=12, end_lineno=20, end_col_offset=82), Assign([Name('placeholder_12', Store(), lineno=21, col_offset=12, end_lineno=21, end_col_offset=24)], Attribute(Name('placeholder_12', Load(), lineno=21, col_offset=27, end_lineno=21, end_col_offset=39), 'placeholder_3', Load(), lineno=21, col_offset=27, end_lineno=21, end_col_offset=50), lineno=21, col_offset=12, end_lineno=21, end_col_offset=50)], [], lineno=19, col_offset=8, end_lineno=21, end_col_offset=50)], [], lineno=17, col_offset=4, end_lineno=21, end_col_offset=50), FunctionDef('placeholder_13', arguments([], [arg('self', lineno=23, col_offset=15, end_lineno=23, end_col_offset=19), arg('placeholder_14', lineno=23, col_offset=21, end_lineno=23, end_col_offset=30)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Attribute(Name('self', Load(), lineno=24, col_offset=11, end_lineno=24, end_col_offset=15), 'placeholder_9', Load(), lineno=24, col_offset=11, end_lineno=24, end_col_offset=22), [Eq()], [Constant(0, lineno=24, col_offset=26, end_lineno=24, end_col_offset=27)], lineno=24, col_offset=11, end_lineno=24, end_col_offset=27), [Raise(Call(Name('ValueError', Load(), lineno=25, col_offset=18, end_lineno=25, end_col_offset=28), [Constant('Value not found', lineno=25, col_offset=29, end_lineno=25, end_col_offset=46)], [], lineno=25, col_offset=18, end_lineno=25, end_col_offset=47), lineno=25, col_offset=12, end_lineno=25, end_col_offset=47)], [], lineno=24, col_offset=8, end_lineno=25, end_col_offset=47), Assign([Name('placeholder_15', Store(), lineno=26, col_offset=8, end_lineno=26, end_col_offset=13)], Constant(False, lineno=26, col_offset=16, end_lineno=26, end_col_offset=21), lineno=26, col_offset=8, end_lineno=26, end_col_offset=21), Assign([Name('placeholder_16', Store(), lineno=27, col_offset=8, end_lineno=27, end_col_offset=12)], Attribute(Name('self', Load(), lineno=27, col_offset=15, end_lineno=27, end_col_offset=19), 'placeholder_7', Load(), lineno=27, col_offset=15, end_lineno=27, end_col_offset=24), lineno=27, col_offset=8, end_lineno=27, end_col_offset=24), For(Tuple([Name('placeholder_2', Store(), lineno=29, col_offset=12, end_lineno=29, end_col_offset=17), Name('placeholder_3', Store(), lineno=29, col_offset=19, end_lineno=29, end_col_offset=29), Name('placeholder_5', Store(), lineno=29, col_offset=31, end_lineno=29, end_col_offset=35)], Store(), lineno=29, col_offset=12, end_lineno=29, end_col_offset=35), Name('self', Load(), lineno=29, col_offset=39, end_lineno=29, end_col_offset=43), [If(Compare(Name('placeholder_2', Load(), lineno=30, col_offset=15, end_lineno=30, end_col_offset=20), [Eq()], [Name('placeholder_14', Load(), lineno=30, col_offset=24, end_lineno=30, end_col_offset=33)], lineno=30, col_offset=15, end_lineno=30, end_col_offset=33), [If(Name('placeholder_5', Load(), lineno=31, col_offset=19, end_lineno=31, end_col_offset=23), [Assign([Attribute(Attribute(Name('placeholder_16', Load(), lineno=32, col_offset=20, end_lineno=32, end_col_offset=24), 'placeholder_5', Load(), lineno=32, col_offset=20, end_lineno=32, end_col_offset=29), 'placeholder_3', Store(), lineno=32, col_offset=20, end_lineno=32, end_col_offset=40)], Name('placeholder_3', Load(), lineno=32, col_offset=43, end_lineno=32, end_col_offset=53), lineno=32, col_offset=20, end_lineno=32, end_col_offset=53)], [Assign([Attribute(Name('self', Load(), lineno=34, col_offset=20, end_lineno=34, end_col_offset=24), 'placeholder_7', Store(), lineno=34, col_offset=20, end_lineno=34, end_col_offset=29)], Name('placeholder_3', Load(), lineno=34, col_offset=32, end_lineno=34, end_col_offset=42), lineno=34, col_offset=20, end_lineno=34, end_col_offset=42)], lineno=31, col_offset=16, end_lineno=34, end_col_offset=42), If(Name('placeholder_3', Load(), lineno=35, col_offset=19, end_lineno=35, end_col_offset=29), [Assign([Attribute(Attribute(Name('placeholder_16', Load(), lineno=36, col_offset=20, end_lineno=36, end_col_offset=24), 'placeholder_3', Load(), lineno=36, col_offset=20, end_lineno=36, end_col_offset=35), 'placeholder_5', Store(), lineno=36, col_offset=20, end_lineno=36, end_col_offset=40)], Name('placeholder_5', Load(), lineno=36, col_offset=43, end_lineno=36, end_col_offset=47), lineno=36, col_offset=20, end_lineno=36, end_col_offset=47)], [Assign([Attribute(Name('self', Load(), lineno=38, col_offset=20, end_lineno=38, end_col_offset=24), 'placeholder_8', Store(), lineno=38, col_offset=20, end_lineno=38, end_col_offset=29)], Name('placeholder_5', Load(), lineno=38, col_offset=32, end_lineno=38, end_col_offset=36), lineno=38, col_offset=20, end_lineno=38, end_col_offset=36)], lineno=35, col_offset=16, end_lineno=38, end_col_offset=36), Assign([Name('placeholder_15', Store(), lineno=40, col_offset=16, end_lineno=40, end_col_offset=21)], Constant(True, lineno=40, col_offset=24, end_lineno=40, end_col_offset=28), lineno=40, col_offset=16, end_lineno=40, end_col_offset=28), AugAssign(Attribute(Name('self', Load(), lineno=41, col_offset=16, end_lineno=41, end_col_offset=20), 'placeholder_9', Store(), lineno=41, col_offset=16, end_lineno=41, end_col_offset=27), Sub(), Constant(1, lineno=41, col_offset=31, end_lineno=41, end_col_offset=32), lineno=41, col_offset=16, end_lineno=41, end_col_offset=32), Break(lineno=42, col_offset=16, end_lineno=42, end_col_offset=21)], [], lineno=30, col_offset=12, end_lineno=42, end_col_offset=21), Assign([Name('placeholder_16', Store(), lineno=43, col_offset=12, end_lineno=43, end_col_offset=16)], Attribute(Name('placeholder_16', Load(), lineno=43, col_offset=19, end_lineno=43, end_col_offset=23), 'placeholder_3', Load(), lineno=43, col_offset=19, end_lineno=43, end_col_offset=34), lineno=43, col_offset=12, end_lineno=43, end_col_offset=34)], [], lineno=29, col_offset=8, end_lineno=43, end_col_offset=34), If(UnaryOp(Not(), Name('placeholder_15', Load(), lineno=44, col_offset=15, end_lineno=44, end_col_offset=20), lineno=44, col_offset=11, end_lineno=44, end_col_offset=20), [Raise(Call(Name('ValueError', Load(), lineno=45, col_offset=18, end_lineno=45, end_col_offset=28), [Constant('Value not found', lineno=45, col_offset=29, end_lineno=45, end_col_offset=46)], [], lineno=45, col_offset=18, end_lineno=45, end_col_offset=47), lineno=45, col_offset=12, end_lineno=45, end_col_offset=47)], [], lineno=44, col_offset=8, end_lineno=45, end_col_offset=47)], [], lineno=23, col_offset=4, end_lineno=45, end_col_offset=47), FunctionDef('placeholder_17', arguments([], [arg('self', lineno=47, col_offset=13, end_lineno=47, end_col_offset=17), arg('placeholder_2', lineno=47, col_offset=19, end_lineno=47, end_col_offset=24)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_18', Store(), lineno=48, col_offset=8, end_lineno=48, end_col_offset=16)], Call(Name('placeholder_0', Load(), lineno=48, col_offset=19, end_lineno=48, end_col_offset=23), [Name('placeholder_2', Load(), lineno=48, col_offset=24, end_lineno=48, end_col_offset=29)], [], lineno=48, col_offset=19, end_lineno=48, end_col_offset=30), lineno=48, col_offset=8, end_lineno=48, end_col_offset=30), If(UnaryOp(Not(), Attribute(Name('self', Load(), lineno=49, col_offset=15, end_lineno=49, end_col_offset=19), 'placeholder_7', Load(), lineno=49, col_offset=15, end_lineno=49, end_col_offset=24), lineno=49, col_offset=11, end_lineno=49, end_col_offset=24), [Assign([Attribute(Name('self', Load(), lineno=50, col_offset=12, end_lineno=50, end_col_offset=16), 'placeholder_7', Store(), lineno=50, col_offset=12, end_lineno=50, end_col_offset=21), Attribute(Name('self', Load(), lineno=50, col_offset=24, end_lineno=50, end_col_offset=28), 'placeholder_8', Store(), lineno=50, col_offset=24, end_lineno=50, end_col_offset=33)], Name('placeholder_18', Load(), lineno=50, col_offset=36, end_lineno=50, end_col_offset=44), lineno=50, col_offset=12, end_lineno=50, end_col_offset=44)], [Assign([Attribute(Name('placeholder_18', Load(), lineno=52, col_offset=12, end_lineno=52, end_col_offset=20), 'placeholder_5', Store(), lineno=52, col_offset=12, end_lineno=52, end_col_offset=25)], Attribute(Name('self', Load(), lineno=52, col_offset=28, end_lineno=52, end_col_offset=32), 'placeholder_8', Load(), lineno=52, col_offset=28, end_lineno=52, end_col_offset=37), lineno=52, col_offset=12, end_lineno=52, end_col_offset=37), Assign([Attribute(Attribute(Name('self', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=16), 'placeholder_8', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=21), 'placeholder_3', Store(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=32)], Name('placeholder_18', Load(), lineno=53, col_offset=35, end_lineno=53, end_col_offset=43), lineno=53, col_offset=12, end_lineno=53, end_col_offset=43), Assign([Attribute(Name('self', Load(), lineno=54, col_offset=12, end_lineno=54, end_col_offset=16), 'placeholder_8', Store(), lineno=54, col_offset=12, end_lineno=54, end_col_offset=21)], Name('placeholder_18', Load(), lineno=54, col_offset=24, end_lineno=54, end_col_offset=32), lineno=54, col_offset=12, end_lineno=54, end_col_offset=32)], lineno=49, col_offset=8, end_lineno=54, end_col_offset=32), AugAssign(Attribute(Name('self', Load(), lineno=56, col_offset=8, end_lineno=56, end_col_offset=12), 'placeholder_9', Store(), lineno=56, col_offset=8, end_lineno=56, end_col_offset=19), Add(), Constant(1, lineno=56, col_offset=23, end_lineno=56, end_col_offset=24), lineno=56, col_offset=8, end_lineno=56, end_col_offset=24)], [], lineno=47, col_offset=4, end_lineno=56, end_col_offset=24), FunctionDef('placeholder_19', arguments([], [arg('self', lineno=58, col_offset=12, end_lineno=58, end_col_offset=16)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_16', Store(), lineno=59, col_offset=8, end_lineno=59, end_col_offset=12)], Attribute(Name('self', Load(), lineno=59, col_offset=15, end_lineno=59, end_col_offset=19), 'placeholder_8', Load(), lineno=59, col_offset=15, end_lineno=59, end_col_offset=24), lineno=59, col_offset=8, end_lineno=59, end_col_offset=24), If(Compare(Attribute(Name('self', Load(), lineno=61, col_offset=11, end_lineno=61, end_col_offset=15), 'placeholder_9', Load(), lineno=61, col_offset=11, end_lineno=61, end_col_offset=22), [Eq()], [Constant(0, lineno=61, col_offset=26, end_lineno=61, end_col_offset=27)], lineno=61, col_offset=11, end_lineno=61, end_col_offset=27), [Raise(Call(Name('IndexError', Load(), lineno=62, col_offset=18, end_lineno=62, end_col_offset=28), [Constant('List is empty', lineno=62, col_offset=29, end_lineno=62, end_col_offset=44)], [], lineno=62, col_offset=18, end_lineno=62, end_col_offset=45), lineno=62, col_offset=12, end_lineno=62, end_col_offset=45)], [], lineno=61, col_offset=8, end_lineno=62, end_col_offset=45), If(BoolOp(Or(), [Compare(Name('placeholder_16', Load(), lineno=63, col_offset=11, end_lineno=63, end_col_offset=15), [Is()], [Constant(None, lineno=63, col_offset=19, end_lineno=63, end_col_offset=23)], lineno=63, col_offset=11, end_lineno=63, end_col_offset=23), Compare(Attribute(Name('placeholder_16', Load(), lineno=63, col_offset=27, end_lineno=63, end_col_offset=31), 'placeholder_5', Load(), lineno=63, col_offset=27, end_lineno=63, end_col_offset=36), [Is()], [Constant(None, lineno=63, col_offset=40, end_lineno=63, end_col_offset=44)], lineno=63, col_offset=27, end_lineno=63, end_col_offset=44)], lineno=63, col_offset=11, end_lineno=63, end_col_offset=44), [Assign([Attribute(Name('self', Load(), lineno=64, col_offset=12, end_lineno=64, end_col_offset=16), 'placeholder_7', Store(), lineno=64, col_offset=12, end_lineno=64, end_col_offset=21), Attribute(Name('self', Load(), lineno=64, col_offset=24, end_lineno=64, end_col_offset=28), 'placeholder_8', Store(), lineno=64, col_offset=24, end_lineno=64, end_col_offset=33)], Constant(None, lineno=64, col_offset=36, end_lineno=64, end_col_offset=40), lineno=64, col_offset=12, end_lineno=64, end_col_offset=40)], [Assign([Attribute(Name('self', Load(), lineno=66, col_offset=12, end_lineno=66, end_col_offset=16), 'placeholder_8', Store(), lineno=66, col_offset=12, end_lineno=66, end_col_offset=21)], Attribute(Attribute(Name('self', Load(), lineno=66, col_offset=24, end_lineno=66, end_col_offset=28), 'placeholder_8', Load(), lineno=66, col_offset=24, end_lineno=66, end_col_offset=33), 'placeholder_5', Load(), lineno=66, col_offset=24, end_lineno=66, end_col_offset=38), lineno=66, col_offset=12, end_lineno=66, end_col_offset=38), Assign([Attribute(Attribute(Name('self', Load(), lineno=67, col_offset=12, end_lineno=67, end_col_offset=16), 'placeholder_8', Load(), lineno=67, col_offset=12, end_lineno=67, end_col_offset=21), 'placeholder_3', Store(), lineno=67, col_offset=12, end_lineno=67, end_col_offset=32)], Constant(None, lineno=67, col_offset=35, end_lineno=67, end_col_offset=39), lineno=67, col_offset=12, end_lineno=67, end_col_offset=39)], lineno=63, col_offset=8, end_lineno=67, end_col_offset=39), AugAssign(Attribute(Name('self', Load(), lineno=68, col_offset=8, end_lineno=68, end_col_offset=12), 'placeholder_9', Store(), lineno=68, col_offset=8, end_lineno=68, end_col_offset=19), Sub(), Constant(1, lineno=68, col_offset=23, end_lineno=68, end_col_offset=24), lineno=68, col_offset=8, end_lineno=68, end_col_offset=24), Return(Attribute(Name('placeholder_16', Load(), lineno=70, col_offset=15, end_lineno=70, end_col_offset=19), 'placeholder_2', Load(), lineno=70, col_offset=15, end_lineno=70, end_col_offset=25), lineno=70, col_offset=8, end_lineno=70, end_col_offset=25)], [], lineno=58, col_offset=4, end_lineno=70, end_col_offset=25), FunctionDef('placeholder_20', arguments([], [arg('self', lineno=72, col_offset=14, end_lineno=72, end_col_offset=18)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Attribute(Name('self', Load(), lineno=73, col_offset=11, end_lineno=73, end_col_offset=15), 'placeholder_9', Load(), lineno=73, col_offset=11, end_lineno=73, end_col_offset=22), [Eq()], [Constant(0, lineno=73, col_offset=26, end_lineno=73, end_col_offset=27)], lineno=73, col_offset=11, end_lineno=73, end_col_offset=27), [Raise(Call(Name('IndexError', Load(), lineno=74, col_offset=18, end_lineno=74, end_col_offset=28), [Constant('List is empty', lineno=74, col_offset=29, end_lineno=74, end_col_offset=44)], [], lineno=74, col_offset=18, end_lineno=74, end_col_offset=45), lineno=74, col_offset=12, end_lineno=74, end_col_offset=45)], [], lineno=73, col_offset=8, end_lineno=74, end_col_offset=45), Assign([Name('placeholder_16', Store(), lineno=75, col_offset=8, end_lineno=75, end_col_offset=12)], Attribute(Name('self', Load(), lineno=75, col_offset=15, end_lineno=75, end_col_offset=19), 'placeholder_7', Load(), lineno=75, col_offset=15, end_lineno=75, end_col_offset=24), lineno=75, col_offset=8, end_lineno=75, end_col_offset=24), If(BoolOp(Or(), [Compare(Name('placeholder_16', Load(), lineno=76, col_offset=11, end_lineno=76, end_col_offset=15), [Is()], [Constant(None, lineno=76, col_offset=19, end_lineno=76, end_col_offset=23)], lineno=76, col_offset=11, end_lineno=76, end_col_offset=23), Compare(Attribute(Name('placeholder_16', Load(), lineno=76, col_offset=27, end_lineno=76, end_col_offset=31), 'placeholder_3', Load(), lineno=76, col_offset=27, end_lineno=76, end_col_offset=42), [Is()], [Constant(None, lineno=76, col_offset=46, end_lineno=76, end_col_offset=50)], lineno=76, col_offset=27, end_lineno=76, end_col_offset=50)], lineno=76, col_offset=11, end_lineno=76, end_col_offset=50), [Assign([Attribute(Name('self', Load(), lineno=77, col_offset=12, end_lineno=77, end_col_offset=16), 'placeholder_7', Store(), lineno=77, col_offset=12, end_lineno=77, end_col_offset=21), Attribute(Name('self', Load(), lineno=77, col_offset=24, end_lineno=77, end_col_offset=28), 'placeholder_8', Store(), lineno=77, col_offset=24, end_lineno=77, end_col_offset=33)], Constant(None, lineno=77, col_offset=36, end_lineno=77, end_col_offset=40), lineno=77, col_offset=12, end_lineno=77, end_col_offset=40)], [Assign([Attribute(Name('self', Load(), lineno=79, col_offset=12, end_lineno=79, end_col_offset=16), 'placeholder_7', Store(), lineno=79, col_offset=12, end_lineno=79, end_col_offset=21)], Attribute(Attribute(Name('self', Load(), lineno=79, col_offset=24, end_lineno=79, end_col_offset=28), 'placeholder_7', Load(), lineno=79, col_offset=24, end_lineno=79, end_col_offset=33), 'placeholder_3', Load(), lineno=79, col_offset=24, end_lineno=79, end_col_offset=44), lineno=79, col_offset=12, end_lineno=79, end_col_offset=44), Assign([Attribute(Attribute(Name('self', Load(), lineno=80, col_offset=12, end_lineno=80, end_col_offset=16), 'placeholder_7', Load(), lineno=80, col_offset=12, end_lineno=80, end_col_offset=21), 'placeholder_5', Store(), lineno=80, col_offset=12, end_lineno=80, end_col_offset=26)], Constant(None, lineno=80, col_offset=29, end_lineno=80, end_col_offset=33), lineno=80, col_offset=12, end_lineno=80, end_col_offset=33)], lineno=76, col_offset=8, end_lineno=80, end_col_offset=33), AugAssign(Attribute(Name('self', Load(), lineno=81, col_offset=8, end_lineno=81, end_col_offset=12), 'placeholder_9', Store(), lineno=81, col_offset=8, end_lineno=81, end_col_offset=19), Sub(), Constant(1, lineno=81, col_offset=23, end_lineno=81, end_col_offset=24), lineno=81, col_offset=8, end_lineno=81, end_col_offset=24), Return(Attribute(Name('placeholder_16', Load(), lineno=83, col_offset=15, end_lineno=83, end_col_offset=19), 'placeholder_2', Load(), lineno=83, col_offset=15, end_lineno=83, end_col_offset=25), lineno=83, col_offset=8, end_lineno=83, end_col_offset=25)], [], lineno=72, col_offset=4, end_lineno=83, end_col_offset=25), FunctionDef('placeholder_21', arguments([], [arg('self', lineno=85, col_offset=16, end_lineno=85, end_col_offset=20), arg('placeholder_2', lineno=85, col_offset=22, end_lineno=85, end_col_offset=27)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_18', Store(), lineno=86, col_offset=8, end_lineno=86, end_col_offset=16)], Call(Name('placeholder_0', Load(), lineno=86, col_offset=19, end_lineno=86, end_col_offset=23), [Name('placeholder_2', Load(), lineno=86, col_offset=24, end_lineno=86, end_col_offset=29)], [], lineno=86, col_offset=19, end_lineno=86, end_col_offset=30), lineno=86, col_offset=8, end_lineno=86, end_col_offset=30), If(UnaryOp(Not(), Attribute(Name('self', Load(), lineno=87, col_offset=15, end_lineno=87, end_col_offset=19), 'placeholder_7', Load(), lineno=87, col_offset=15, end_lineno=87, end_col_offset=24), lineno=87, col_offset=11, end_lineno=87, end_col_offset=24), [Assign([Attribute(Name('self', Load(), lineno=88, col_offset=12, end_lineno=88, end_col_offset=16), 'placeholder_7', Store(), lineno=88, col_offset=12, end_lineno=88, end_col_offset=21), Attribute(Name('self', Load(), lineno=88, col_offset=24, end_lineno=88, end_col_offset=28), 'placeholder_8', Store(), lineno=88, col_offset=24, end_lineno=88, end_col_offset=33)], Name('placeholder_18', Load(), lineno=88, col_offset=36, end_lineno=88, end_col_offset=44), lineno=88, col_offset=12, end_lineno=88, end_col_offset=44)], [Assign([Attribute(Name('placeholder_18', Load(), lineno=90, col_offset=12, end_lineno=90, end_col_offset=20), 'placeholder_3', Store(), lineno=90, col_offset=12, end_lineno=90, end_col_offset=31)], Attribute(Name('self', Load(), lineno=90, col_offset=34, end_lineno=90, end_col_offset=38), 'placeholder_7', Load(), lineno=90, col_offset=34, end_lineno=90, end_col_offset=43), lineno=90, col_offset=12, end_lineno=90, end_col_offset=43), Assign([Attribute(Attribute(Name('self', Load(), lineno=91, col_offset=12, end_lineno=91, end_col_offset=16), 'placeholder_7', Load(), lineno=91, col_offset=12, end_lineno=91, end_col_offset=21), 'placeholder_5', Store(), lineno=91, col_offset=12, end_lineno=91, end_col_offset=26)], Name('placeholder_18', Load(), lineno=91, col_offset=29, end_lineno=91, end_col_offset=37), lineno=91, col_offset=12, end_lineno=91, end_col_offset=37), Assign([Attribute(Name('self', Load(), lineno=92, col_offset=12, end_lineno=92, end_col_offset=16), 'placeholder_7', Store(), lineno=92, col_offset=12, end_lineno=92, end_col_offset=21)], Name('placeholder_18', Load(), lineno=92, col_offset=24, end_lineno=92, end_col_offset=32), lineno=92, col_offset=12, end_lineno=92, end_col_offset=32)], lineno=87, col_offset=8, end_lineno=92, end_col_offset=32), AugAssign(Attribute(Name('self', Load(), lineno=94, col_offset=8, end_lineno=94, end_col_offset=12), 'placeholder_9', Store(), lineno=94, col_offset=8, end_lineno=94, end_col_offset=19), Add(), Constant(1, lineno=94, col_offset=23, end_lineno=94, end_col_offset=24), lineno=94, col_offset=8, end_lineno=94, end_col_offset=24)], [], lineno=85, col_offset=4, end_lineno=94, end_col_offset=24)], [], lineno=8, col_offset=0, end_lineno=94, end_col_offset=24)], []) \ No newline at end of file diff --git a/test/practice-nth-prime/representation.out b/test/practice-nth-prime/representation.out index 2d83d9c..5a60c5d 100644 --- a/test/practice-nth-prime/representation.out +++ b/test/practice-nth-prime/representation.out @@ -29,8 +29,8 @@ def placeholder_9(): yield 2 yield 3 for placeholder_1 in count(6, 6): - yield (number - 1) - yield (number + 1) + yield (placeholder_1 - 1) + yield (placeholder_1 + 1) ## END NORMALIZED CODE ## @@ -1269,7 +1269,7 @@ Module( Yield( BinOp( Name( - 'number', + 'placeholder_1', Load(), lineno=33, col_offset=14, @@ -1298,7 +1298,7 @@ Module( Yield( BinOp( Name( - 'number', + 'placeholder_1', Load(), lineno=34, col_offset=14, diff --git a/test/practice-nth-prime/representation.txt b/test/practice-nth-prime/representation.txt index f59c08c..c96b56b 100644 --- a/test/practice-nth-prime/representation.txt +++ b/test/practice-nth-prime/representation.txt @@ -1 +1 @@ -Module([ImportFrom('itertools', [alias('count', lineno=1, col_offset=22, end_lineno=1, end_col_offset=27)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=27), ImportFrom('math', [alias('sqrt', lineno=2, col_offset=17, end_lineno=2, end_col_offset=21)], 0, lineno=2, col_offset=0, end_lineno=2, end_col_offset=21), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=5, col_offset=10, end_lineno=5, end_col_offset=16)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Name('placeholder_1', Load(), lineno=6, col_offset=7, end_lineno=6, end_col_offset=13), [Lt()], [Constant(1, lineno=6, col_offset=16, end_lineno=6, end_col_offset=17)], lineno=6, col_offset=7, end_lineno=6, end_col_offset=17), [Raise(Call(Name('ValueError', Load(), lineno=7, col_offset=14, end_lineno=7, end_col_offset=24), [Constant('there is no zeroth prime', lineno=7, col_offset=25, end_lineno=7, end_col_offset=51)], [], lineno=7, col_offset=14, end_lineno=7, end_col_offset=52), lineno=7, col_offset=8, end_lineno=7, end_col_offset=52)], [], lineno=6, col_offset=4, end_lineno=7, end_col_offset=52), Assign([Name('placeholder_2', Store(), lineno=9, col_offset=4, end_lineno=9, end_col_offset=9)], List([], Load(), lineno=9, col_offset=12, end_lineno=9, end_col_offset=14), lineno=9, col_offset=4, end_lineno=9, end_col_offset=14), Assign([Name('placeholder_3', Store(), lineno=10, col_offset=4, end_lineno=10, end_col_offset=14)], Call(Name('prime_candidates', Load(), lineno=10, col_offset=17, end_lineno=10, end_col_offset=33), [], [], lineno=10, col_offset=17, end_lineno=10, end_col_offset=35), lineno=10, col_offset=4, end_lineno=10, end_col_offset=35), FunctionDef('placeholder_4', arguments([], [arg('placeholder_5', lineno=12, col_offset=17, end_lineno=12, end_col_offset=26)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_6', Store(), lineno=13, col_offset=8, end_lineno=13, end_col_offset=22)], Call(Name('sqrt', Load(), lineno=13, col_offset=25, end_lineno=13, end_col_offset=29), [Name('placeholder_5', Load(), lineno=13, col_offset=30, end_lineno=13, end_col_offset=39)], [], lineno=13, col_offset=25, end_lineno=13, end_col_offset=40), lineno=13, col_offset=8, end_lineno=13, end_col_offset=40), For(Name('placeholder_7', Store(), lineno=14, col_offset=12, end_lineno=14, end_col_offset=16), Name('placeholder_2', Load(), lineno=14, col_offset=20, end_lineno=14, end_col_offset=25), [If(Compare(Name('placeholder_7', Load(), lineno=15, col_offset=15, end_lineno=15, end_col_offset=19), [Gt()], [Name('placeholder_6', Load(), lineno=15, col_offset=22, end_lineno=15, end_col_offset=36)], lineno=15, col_offset=15, end_lineno=15, end_col_offset=36), [Return(Constant(True, lineno=16, col_offset=23, end_lineno=16, end_col_offset=27), lineno=16, col_offset=16, end_lineno=16, end_col_offset=27)], [If(Compare(BinOp(Name('placeholder_5', Load(), lineno=17, col_offset=17, end_lineno=17, end_col_offset=26), Mod(), Name('placeholder_7', Load(), lineno=17, col_offset=29, end_lineno=17, end_col_offset=33), lineno=17, col_offset=17, end_lineno=17, end_col_offset=33), [Eq()], [Constant(0, lineno=17, col_offset=37, end_lineno=17, end_col_offset=38)], lineno=17, col_offset=17, end_lineno=17, end_col_offset=38), [Return(Constant(False, lineno=18, col_offset=23, end_lineno=18, end_col_offset=28), lineno=18, col_offset=16, end_lineno=18, end_col_offset=28)], [], lineno=17, col_offset=12, end_lineno=18, end_col_offset=28)], lineno=15, col_offset=12, end_lineno=18, end_col_offset=28)], [], lineno=14, col_offset=8, end_lineno=18, end_col_offset=28), Return(Constant(True, lineno=19, col_offset=15, end_lineno=19, end_col_offset=19), lineno=19, col_offset=8, end_lineno=19, end_col_offset=19)], [], lineno=12, col_offset=4, end_lineno=19, end_col_offset=19), While(Compare(Call(Name('len', Load(), lineno=21, col_offset=10, end_lineno=21, end_col_offset=13), [Name('placeholder_2', Load(), lineno=21, col_offset=14, end_lineno=21, end_col_offset=19)], [], lineno=21, col_offset=10, end_lineno=21, end_col_offset=20), [Lt()], [Name('placeholder_1', Load(), lineno=21, col_offset=23, end_lineno=21, end_col_offset=29)], lineno=21, col_offset=10, end_lineno=21, end_col_offset=29), [Assign([Name('placeholder_8', Store(), lineno=22, col_offset=8, end_lineno=22, end_col_offset=16)], Call(Name('next', Load(), lineno=22, col_offset=19, end_lineno=22, end_col_offset=23), [Name('placeholder_3', Load(), lineno=22, col_offset=24, end_lineno=22, end_col_offset=34)], [], lineno=22, col_offset=19, end_lineno=22, end_col_offset=35), lineno=22, col_offset=8, end_lineno=22, end_col_offset=35), If(Call(Name('placeholder_4', Load(), lineno=23, col_offset=11, end_lineno=23, end_col_offset=19), [Name('placeholder_8', Load(), lineno=23, col_offset=20, end_lineno=23, end_col_offset=28)], [], lineno=23, col_offset=11, end_lineno=23, end_col_offset=29), [Expr(Call(Attribute(Name('placeholder_2', Load(), lineno=24, col_offset=12, end_lineno=24, end_col_offset=17), 'append', Load(), lineno=24, col_offset=12, end_lineno=24, end_col_offset=24), [Name('placeholder_8', Load(), lineno=24, col_offset=25, end_lineno=24, end_col_offset=33)], [], lineno=24, col_offset=12, end_lineno=24, end_col_offset=34), lineno=24, col_offset=12, end_lineno=24, end_col_offset=34)], [], lineno=23, col_offset=8, end_lineno=24, end_col_offset=34)], [], lineno=21, col_offset=4, end_lineno=24, end_col_offset=34), Return(Subscript(Name('placeholder_2', Load(), lineno=26, col_offset=11, end_lineno=26, end_col_offset=16), BinOp(Name('placeholder_1', Load(), lineno=26, col_offset=17, end_lineno=26, end_col_offset=23), Sub(), Constant(1, lineno=26, col_offset=26, end_lineno=26, end_col_offset=27), lineno=26, col_offset=17, end_lineno=26, end_col_offset=27), Load(), lineno=26, col_offset=11, end_lineno=26, end_col_offset=28), lineno=26, col_offset=4, end_lineno=26, end_col_offset=28)], [], lineno=5, col_offset=0, end_lineno=26, end_col_offset=28), FunctionDef('placeholder_9', arguments([], [], kwonlyargs=[], kw_defaults=[], defaults=[]), [Expr(Yield(Constant(2, lineno=30, col_offset=10, end_lineno=30, end_col_offset=11), lineno=30, col_offset=4, end_lineno=30, end_col_offset=11), lineno=30, col_offset=4, end_lineno=30, end_col_offset=11), Expr(Yield(Constant(3, lineno=31, col_offset=10, end_lineno=31, end_col_offset=11), lineno=31, col_offset=4, end_lineno=31, end_col_offset=11), lineno=31, col_offset=4, end_lineno=31, end_col_offset=11), For(Name('placeholder_1', Store(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=14), Call(Name('count', Load(), lineno=32, col_offset=18, end_lineno=32, end_col_offset=23), [Constant(6, lineno=32, col_offset=24, end_lineno=32, end_col_offset=25), Constant(6, lineno=32, col_offset=27, end_lineno=32, end_col_offset=28)], [], lineno=32, col_offset=18, end_lineno=32, end_col_offset=29), [Expr(Yield(BinOp(Name('number', Load(), lineno=33, col_offset=14, end_lineno=33, end_col_offset=20), Sub(), Constant(1, lineno=33, col_offset=23, end_lineno=33, end_col_offset=24), lineno=33, col_offset=14, end_lineno=33, end_col_offset=24), lineno=33, col_offset=8, end_lineno=33, end_col_offset=24), lineno=33, col_offset=8, end_lineno=33, end_col_offset=24), Expr(Yield(BinOp(Name('number', Load(), lineno=34, col_offset=14, end_lineno=34, end_col_offset=20), Add(), Constant(1, lineno=34, col_offset=23, end_lineno=34, end_col_offset=24), lineno=34, col_offset=14, end_lineno=34, end_col_offset=24), lineno=34, col_offset=8, end_lineno=34, end_col_offset=24), lineno=34, col_offset=8, end_lineno=34, end_col_offset=24)], [], lineno=32, col_offset=4, end_lineno=34, end_col_offset=24)], [], lineno=29, col_offset=0, end_lineno=34, end_col_offset=24)], []) \ No newline at end of file +Module([ImportFrom('itertools', [alias('count', lineno=1, col_offset=22, end_lineno=1, end_col_offset=27)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=27), ImportFrom('math', [alias('sqrt', lineno=2, col_offset=17, end_lineno=2, end_col_offset=21)], 0, lineno=2, col_offset=0, end_lineno=2, end_col_offset=21), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=5, col_offset=10, end_lineno=5, end_col_offset=16)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Name('placeholder_1', Load(), lineno=6, col_offset=7, end_lineno=6, end_col_offset=13), [Lt()], [Constant(1, lineno=6, col_offset=16, end_lineno=6, end_col_offset=17)], lineno=6, col_offset=7, end_lineno=6, end_col_offset=17), [Raise(Call(Name('ValueError', Load(), lineno=7, col_offset=14, end_lineno=7, end_col_offset=24), [Constant('there is no zeroth prime', lineno=7, col_offset=25, end_lineno=7, end_col_offset=51)], [], lineno=7, col_offset=14, end_lineno=7, end_col_offset=52), lineno=7, col_offset=8, end_lineno=7, end_col_offset=52)], [], lineno=6, col_offset=4, end_lineno=7, end_col_offset=52), Assign([Name('placeholder_2', Store(), lineno=9, col_offset=4, end_lineno=9, end_col_offset=9)], List([], Load(), lineno=9, col_offset=12, end_lineno=9, end_col_offset=14), lineno=9, col_offset=4, end_lineno=9, end_col_offset=14), Assign([Name('placeholder_3', Store(), lineno=10, col_offset=4, end_lineno=10, end_col_offset=14)], Call(Name('prime_candidates', Load(), lineno=10, col_offset=17, end_lineno=10, end_col_offset=33), [], [], lineno=10, col_offset=17, end_lineno=10, end_col_offset=35), lineno=10, col_offset=4, end_lineno=10, end_col_offset=35), FunctionDef('placeholder_4', arguments([], [arg('placeholder_5', lineno=12, col_offset=17, end_lineno=12, end_col_offset=26)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_6', Store(), lineno=13, col_offset=8, end_lineno=13, end_col_offset=22)], Call(Name('sqrt', Load(), lineno=13, col_offset=25, end_lineno=13, end_col_offset=29), [Name('placeholder_5', Load(), lineno=13, col_offset=30, end_lineno=13, end_col_offset=39)], [], lineno=13, col_offset=25, end_lineno=13, end_col_offset=40), lineno=13, col_offset=8, end_lineno=13, end_col_offset=40), For(Name('placeholder_7', Store(), lineno=14, col_offset=12, end_lineno=14, end_col_offset=16), Name('placeholder_2', Load(), lineno=14, col_offset=20, end_lineno=14, end_col_offset=25), [If(Compare(Name('placeholder_7', Load(), lineno=15, col_offset=15, end_lineno=15, end_col_offset=19), [Gt()], [Name('placeholder_6', Load(), lineno=15, col_offset=22, end_lineno=15, end_col_offset=36)], lineno=15, col_offset=15, end_lineno=15, end_col_offset=36), [Return(Constant(True, lineno=16, col_offset=23, end_lineno=16, end_col_offset=27), lineno=16, col_offset=16, end_lineno=16, end_col_offset=27)], [If(Compare(BinOp(Name('placeholder_5', Load(), lineno=17, col_offset=17, end_lineno=17, end_col_offset=26), Mod(), Name('placeholder_7', Load(), lineno=17, col_offset=29, end_lineno=17, end_col_offset=33), lineno=17, col_offset=17, end_lineno=17, end_col_offset=33), [Eq()], [Constant(0, lineno=17, col_offset=37, end_lineno=17, end_col_offset=38)], lineno=17, col_offset=17, end_lineno=17, end_col_offset=38), [Return(Constant(False, lineno=18, col_offset=23, end_lineno=18, end_col_offset=28), lineno=18, col_offset=16, end_lineno=18, end_col_offset=28)], [], lineno=17, col_offset=12, end_lineno=18, end_col_offset=28)], lineno=15, col_offset=12, end_lineno=18, end_col_offset=28)], [], lineno=14, col_offset=8, end_lineno=18, end_col_offset=28), Return(Constant(True, lineno=19, col_offset=15, end_lineno=19, end_col_offset=19), lineno=19, col_offset=8, end_lineno=19, end_col_offset=19)], [], lineno=12, col_offset=4, end_lineno=19, end_col_offset=19), While(Compare(Call(Name('len', Load(), lineno=21, col_offset=10, end_lineno=21, end_col_offset=13), [Name('placeholder_2', Load(), lineno=21, col_offset=14, end_lineno=21, end_col_offset=19)], [], lineno=21, col_offset=10, end_lineno=21, end_col_offset=20), [Lt()], [Name('placeholder_1', Load(), lineno=21, col_offset=23, end_lineno=21, end_col_offset=29)], lineno=21, col_offset=10, end_lineno=21, end_col_offset=29), [Assign([Name('placeholder_8', Store(), lineno=22, col_offset=8, end_lineno=22, end_col_offset=16)], Call(Name('next', Load(), lineno=22, col_offset=19, end_lineno=22, end_col_offset=23), [Name('placeholder_3', Load(), lineno=22, col_offset=24, end_lineno=22, end_col_offset=34)], [], lineno=22, col_offset=19, end_lineno=22, end_col_offset=35), lineno=22, col_offset=8, end_lineno=22, end_col_offset=35), If(Call(Name('placeholder_4', Load(), lineno=23, col_offset=11, end_lineno=23, end_col_offset=19), [Name('placeholder_8', Load(), lineno=23, col_offset=20, end_lineno=23, end_col_offset=28)], [], lineno=23, col_offset=11, end_lineno=23, end_col_offset=29), [Expr(Call(Attribute(Name('placeholder_2', Load(), lineno=24, col_offset=12, end_lineno=24, end_col_offset=17), 'append', Load(), lineno=24, col_offset=12, end_lineno=24, end_col_offset=24), [Name('placeholder_8', Load(), lineno=24, col_offset=25, end_lineno=24, end_col_offset=33)], [], lineno=24, col_offset=12, end_lineno=24, end_col_offset=34), lineno=24, col_offset=12, end_lineno=24, end_col_offset=34)], [], lineno=23, col_offset=8, end_lineno=24, end_col_offset=34)], [], lineno=21, col_offset=4, end_lineno=24, end_col_offset=34), Return(Subscript(Name('placeholder_2', Load(), lineno=26, col_offset=11, end_lineno=26, end_col_offset=16), BinOp(Name('placeholder_1', Load(), lineno=26, col_offset=17, end_lineno=26, end_col_offset=23), Sub(), Constant(1, lineno=26, col_offset=26, end_lineno=26, end_col_offset=27), lineno=26, col_offset=17, end_lineno=26, end_col_offset=27), Load(), lineno=26, col_offset=11, end_lineno=26, end_col_offset=28), lineno=26, col_offset=4, end_lineno=26, end_col_offset=28)], [], lineno=5, col_offset=0, end_lineno=26, end_col_offset=28), FunctionDef('placeholder_9', arguments([], [], kwonlyargs=[], kw_defaults=[], defaults=[]), [Expr(Yield(Constant(2, lineno=30, col_offset=10, end_lineno=30, end_col_offset=11), lineno=30, col_offset=4, end_lineno=30, end_col_offset=11), lineno=30, col_offset=4, end_lineno=30, end_col_offset=11), Expr(Yield(Constant(3, lineno=31, col_offset=10, end_lineno=31, end_col_offset=11), lineno=31, col_offset=4, end_lineno=31, end_col_offset=11), lineno=31, col_offset=4, end_lineno=31, end_col_offset=11), For(Name('placeholder_1', Store(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=14), Call(Name('count', Load(), lineno=32, col_offset=18, end_lineno=32, end_col_offset=23), [Constant(6, lineno=32, col_offset=24, end_lineno=32, end_col_offset=25), Constant(6, lineno=32, col_offset=27, end_lineno=32, end_col_offset=28)], [], lineno=32, col_offset=18, end_lineno=32, end_col_offset=29), [Expr(Yield(BinOp(Name('placeholder_1', Load(), lineno=33, col_offset=14, end_lineno=33, end_col_offset=20), Sub(), Constant(1, lineno=33, col_offset=23, end_lineno=33, end_col_offset=24), lineno=33, col_offset=14, end_lineno=33, end_col_offset=24), lineno=33, col_offset=8, end_lineno=33, end_col_offset=24), lineno=33, col_offset=8, end_lineno=33, end_col_offset=24), Expr(Yield(BinOp(Name('placeholder_1', Load(), lineno=34, col_offset=14, end_lineno=34, end_col_offset=20), Add(), Constant(1, lineno=34, col_offset=23, end_lineno=34, end_col_offset=24), lineno=34, col_offset=14, end_lineno=34, end_col_offset=24), lineno=34, col_offset=8, end_lineno=34, end_col_offset=24), lineno=34, col_offset=8, end_lineno=34, end_col_offset=24)], [], lineno=32, col_offset=4, end_lineno=34, end_col_offset=24)], [], lineno=29, col_offset=0, end_lineno=34, end_col_offset=24)], []) \ No newline at end of file diff --git a/test/practice-palindrome-products/representation.out b/test/practice-palindrome-products/representation.out index 2dc7886..9c79eca 100644 --- a/test/practice-palindrome-products/representation.out +++ b/test/practice-palindrome-products/representation.out @@ -79,7 +79,7 @@ def placeholder_16(placeholder_2, placeholder_1, placeholder_7=False): while placeholder_24 <= placeholder_23: placeholder_9 = placeholder_25(placeholder_24, placeholder_21) if placeholder_17 <= placeholder_9 <= placeholder_18: - yield palindrome + yield placeholder_9 elif placeholder_9 > placeholder_18: break placeholder_24 += 1 @@ -87,7 +87,7 @@ def placeholder_16(placeholder_2, placeholder_1, placeholder_7=False): while placeholder_24 >= placeholder_22: placeholder_9 = placeholder_25(placeholder_24, placeholder_21) if placeholder_17 <= placeholder_9 <= placeholder_18: - yield palindrome + yield placeholder_9 elif placeholder_9 < placeholder_17: break placeholder_24 -= 1 @@ -4129,7 +4129,7 @@ Module( Expr( Yield( Name( - 'palindrome', + 'placeholder_9', Load(), lineno=82, col_offset=26, @@ -4307,7 +4307,7 @@ Module( Expr( Yield( Name( - 'palindrome', + 'placeholder_9', Load(), lineno=93, col_offset=26, diff --git a/test/practice-palindrome-products/representation.txt b/test/practice-palindrome-products/representation.txt index 3dcc07e..787e6a1 100644 --- a/test/practice-palindrome-products/representation.txt +++ b/test/practice-palindrome-products/representation.txt @@ -1 +1 @@ -Module([ImportFrom('itertools', [alias('chain', lineno=1, col_offset=22, end_lineno=1, end_col_offset=27)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=27), ImportFrom('math', [alias('log10', lineno=2, col_offset=17, end_lineno=2, end_col_offset=22), alias('floor', lineno=2, col_offset=24, end_lineno=2, end_col_offset=29), alias('ceil', lineno=2, col_offset=31, end_lineno=2, end_col_offset=35)], 0, lineno=2, col_offset=0, end_lineno=2, end_col_offset=35), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=5, col_offset=12, end_lineno=5, end_col_offset=22), arg('placeholder_2', lineno=5, col_offset=24, end_lineno=5, end_col_offset=34)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('get_extreme_palindrome_with_factors', Load(), lineno=6, col_offset=11, end_lineno=6, end_col_offset=46), [Name('placeholder_2', Load(), lineno=6, col_offset=47, end_lineno=6, end_col_offset=57), Name('placeholder_1', Load(), lineno=6, col_offset=59, end_lineno=6, end_col_offset=69), Constant('largest', lineno=6, col_offset=71, end_lineno=6, end_col_offset=80)], [], lineno=6, col_offset=11, end_lineno=6, end_col_offset=81), lineno=6, col_offset=4, end_lineno=6, end_col_offset=81)], [], lineno=5, col_offset=0, end_lineno=6, end_col_offset=81), FunctionDef('placeholder_3', arguments([], [arg('placeholder_2', lineno=9, col_offset=13, end_lineno=9, end_col_offset=23), arg('placeholder_1', lineno=9, col_offset=25, end_lineno=9, end_col_offset=35)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('get_extreme_palindrome_with_factors', Load(), lineno=10, col_offset=11, end_lineno=10, end_col_offset=46), [Name('placeholder_2', Load(), lineno=10, col_offset=47, end_lineno=10, end_col_offset=57), Name('placeholder_1', Load(), lineno=10, col_offset=59, end_lineno=10, end_col_offset=69), Constant('smallest', lineno=10, col_offset=71, end_lineno=10, end_col_offset=81)], [], lineno=10, col_offset=11, end_lineno=10, end_col_offset=82), lineno=10, col_offset=4, end_lineno=10, end_col_offset=82)], [], lineno=9, col_offset=0, end_lineno=10, end_col_offset=82), FunctionDef('placeholder_4', arguments([], [arg('placeholder_2', lineno=13, col_offset=40, end_lineno=13, end_col_offset=50), arg('placeholder_1', lineno=13, col_offset=52, end_lineno=13, end_col_offset=62), arg('placeholder_5', lineno=13, col_offset=64, end_lineno=13, end_col_offset=71)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_6', Store(), lineno=14, col_offset=4, end_lineno=14, end_col_offset=21)], Call(Name('palindromes', Load(), lineno=14, col_offset=24, end_lineno=14, end_col_offset=35), [Name('placeholder_2', Load(), lineno=14, col_offset=36, end_lineno=14, end_col_offset=46), Name('placeholder_1', Load(), lineno=14, col_offset=48, end_lineno=14, end_col_offset=58)], [keyword('placeholder_7', Compare(Name('placeholder_5', Load(), lineno=14, col_offset=69, end_lineno=14, end_col_offset=76), [Eq()], [Constant('largest', lineno=14, col_offset=80, end_lineno=14, end_col_offset=89)], lineno=14, col_offset=69, end_lineno=14, end_col_offset=89), lineno=14, col_offset=60, end_lineno=14, end_col_offset=90)], lineno=14, col_offset=24, end_lineno=14, end_col_offset=91), lineno=14, col_offset=4, end_lineno=14, end_col_offset=91), Assign([Name('placeholder_8', Store(), lineno=15, col_offset=4, end_lineno=15, end_col_offset=16)], Constant(None, lineno=15, col_offset=19, end_lineno=15, end_col_offset=23), lineno=15, col_offset=4, end_lineno=15, end_col_offset=23), For(Name('placeholder_9', Store(), lineno=16, col_offset=8, end_lineno=16, end_col_offset=18), Name('placeholder_6', Load(), lineno=16, col_offset=22, end_lineno=16, end_col_offset=39), [Assign([Name('placeholder_8', Store(), lineno=17, col_offset=8, end_lineno=17, end_col_offset=20)], GeneratorExp(Tuple([Name('placeholder_10', Load(), lineno=17, col_offset=25, end_lineno=17, end_col_offset=31), BinOp(Name('placeholder_9', Load(), lineno=17, col_offset=33, end_lineno=17, end_col_offset=43), FloorDiv(), Name('placeholder_10', Load(), lineno=17, col_offset=47, end_lineno=17, end_col_offset=53), lineno=17, col_offset=33, end_lineno=17, end_col_offset=53)], Load(), lineno=17, col_offset=24, end_lineno=17, end_col_offset=54), [comprehension(Name('placeholder_10', Store(), lineno=18, col_offset=28, end_lineno=18, end_col_offset=34), Call(Name('range', Load(), lineno=18, col_offset=38, end_lineno=18, end_col_offset=43), [Name('placeholder_1', Load(), lineno=18, col_offset=44, end_lineno=18, end_col_offset=54), BinOp(Name('placeholder_2', Load(), lineno=18, col_offset=56, end_lineno=18, end_col_offset=66), Add(), Constant(1, lineno=18, col_offset=69, end_lineno=18, end_col_offset=70), lineno=18, col_offset=56, end_lineno=18, end_col_offset=70)], [], lineno=18, col_offset=38, end_lineno=18, end_col_offset=71), [Compare(BinOp(Name('placeholder_9', Load(), lineno=19, col_offset=27, end_lineno=19, end_col_offset=37), Mod(), Name('placeholder_10', Load(), lineno=19, col_offset=40, end_lineno=19, end_col_offset=46), lineno=19, col_offset=27, end_lineno=19, end_col_offset=46), [Eq()], [Constant(0, lineno=19, col_offset=50, end_lineno=19, end_col_offset=51)], lineno=19, col_offset=27, end_lineno=19, end_col_offset=51)], 0)], lineno=17, col_offset=23, end_lineno=19, end_col_offset=52), lineno=17, col_offset=8, end_lineno=19, end_col_offset=52), Assign([Name('placeholder_8', Store(), lineno=20, col_offset=8, end_lineno=20, end_col_offset=20)], Call(Name('list', Load(), lineno=20, col_offset=23, end_lineno=20, end_col_offset=27), [GeneratorExp(Name('placeholder_11', Load(), lineno=20, col_offset=28, end_lineno=20, end_col_offset=32), [comprehension(Name('placeholder_11', Store(), lineno=20, col_offset=37, end_lineno=20, end_col_offset=41), Name('placeholder_8', Load(), lineno=20, col_offset=45, end_lineno=20, end_col_offset=57), [Compare(Name('placeholder_1', Load(), lineno=21, col_offset=31, end_lineno=21, end_col_offset=41), [LtE(), LtE()], [Subscript(Name('placeholder_11', Load(), lineno=21, col_offset=45, end_lineno=21, end_col_offset=49), Constant(1, lineno=21, col_offset=50, end_lineno=21, end_col_offset=51), Load(), lineno=21, col_offset=45, end_lineno=21, end_col_offset=52), Name('placeholder_2', Load(), lineno=21, col_offset=56, end_lineno=21, end_col_offset=66)], lineno=21, col_offset=31, end_lineno=21, end_col_offset=66)], 0)], lineno=20, col_offset=27, end_lineno=21, end_col_offset=67)], [], lineno=20, col_offset=23, end_lineno=21, end_col_offset=67), lineno=20, col_offset=8, end_lineno=21, end_col_offset=67), If(Compare(Call(Name('len', Load(), lineno=22, col_offset=11, end_lineno=22, end_col_offset=14), [Name('placeholder_8', Load(), lineno=22, col_offset=15, end_lineno=22, end_col_offset=27)], [], lineno=22, col_offset=11, end_lineno=22, end_col_offset=28), [Gt()], [Constant(0, lineno=22, col_offset=31, end_lineno=22, end_col_offset=32)], lineno=22, col_offset=11, end_lineno=22, end_col_offset=32), [Break(lineno=23, col_offset=12, end_lineno=23, end_col_offset=17)], [], lineno=22, col_offset=8, end_lineno=23, end_col_offset=17)], [], lineno=16, col_offset=4, end_lineno=23, end_col_offset=17), If(UnaryOp(Not(), Name('placeholder_8', Load(), lineno=25, col_offset=11, end_lineno=25, end_col_offset=23), lineno=25, col_offset=7, end_lineno=25, end_col_offset=23), [Return(Tuple([Constant(None, lineno=26, col_offset=16, end_lineno=26, end_col_offset=20), List([], Load(), lineno=26, col_offset=22, end_lineno=26, end_col_offset=24)], Load(), lineno=26, col_offset=15, end_lineno=26, end_col_offset=25), lineno=26, col_offset=8, end_lineno=26, end_col_offset=25)], [], lineno=25, col_offset=4, end_lineno=26, end_col_offset=25), Return(Tuple([Name('placeholder_9', Load(), lineno=28, col_offset=12, end_lineno=28, end_col_offset=22), Name('placeholder_8', Load(), lineno=28, col_offset=24, end_lineno=28, end_col_offset=36)], Load(), lineno=28, col_offset=11, end_lineno=28, end_col_offset=37), lineno=28, col_offset=4, end_lineno=28, end_col_offset=37)], [], lineno=13, col_offset=0, end_lineno=28, end_col_offset=37), FunctionDef('placeholder_12', arguments([], [arg('placeholder_13', lineno=31, col_offset=16, end_lineno=31, end_col_offset=22)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_14', Store(), lineno=32, col_offset=4, end_lineno=32, end_col_offset=17)], Constant(0, lineno=32, col_offset=20, end_lineno=32, end_col_offset=21), lineno=32, col_offset=4, end_lineno=32, end_col_offset=21), While(Compare(Name('placeholder_13', Load(), lineno=33, col_offset=10, end_lineno=33, end_col_offset=16), [Gt()], [Constant(0, lineno=33, col_offset=19, end_lineno=33, end_col_offset=20)], lineno=33, col_offset=10, end_lineno=33, end_col_offset=20), [AugAssign(Name('placeholder_14', Store(), lineno=34, col_offset=8, end_lineno=34, end_col_offset=21), Mult(), Constant(10, lineno=34, col_offset=25, end_lineno=34, end_col_offset=27), lineno=34, col_offset=8, end_lineno=34, end_col_offset=27), AugAssign(Name('placeholder_14', Store(), lineno=35, col_offset=8, end_lineno=35, end_col_offset=21), Add(), BinOp(Name('placeholder_13', Load(), lineno=35, col_offset=26, end_lineno=35, end_col_offset=32), Mod(), Constant(10, lineno=35, col_offset=35, end_lineno=35, end_col_offset=37), lineno=35, col_offset=26, end_lineno=35, end_col_offset=37), lineno=35, col_offset=8, end_lineno=35, end_col_offset=38), AugAssign(Name('placeholder_13', Store(), lineno=36, col_offset=8, end_lineno=36, end_col_offset=14), FloorDiv(), Constant(10, lineno=36, col_offset=19, end_lineno=36, end_col_offset=21), lineno=36, col_offset=8, end_lineno=36, end_col_offset=21)], [], lineno=33, col_offset=4, end_lineno=36, end_col_offset=21), Return(Name('placeholder_14', Load(), lineno=37, col_offset=11, end_lineno=37, end_col_offset=24), lineno=37, col_offset=4, end_lineno=37, end_col_offset=24)], [], lineno=31, col_offset=0, end_lineno=37, end_col_offset=24), FunctionDef('placeholder_15', arguments([], [arg('placeholder_13', lineno=40, col_offset=15, end_lineno=40, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('int', Load(), lineno=41, col_offset=11, end_lineno=41, end_col_offset=14), [Call(Name('floor', Load(), lineno=41, col_offset=15, end_lineno=41, end_col_offset=20), [BinOp(Call(Name('log10', Load(), lineno=41, col_offset=21, end_lineno=41, end_col_offset=26), [Name('placeholder_13', Load(), lineno=41, col_offset=27, end_lineno=41, end_col_offset=33)], [], lineno=41, col_offset=21, end_lineno=41, end_col_offset=34), Add(), Constant(1, lineno=41, col_offset=37, end_lineno=41, end_col_offset=38), lineno=41, col_offset=21, end_lineno=41, end_col_offset=38)], [], lineno=41, col_offset=15, end_lineno=41, end_col_offset=39)], [], lineno=41, col_offset=11, end_lineno=41, end_col_offset=40), lineno=41, col_offset=4, end_lineno=41, end_col_offset=40)], [], lineno=40, col_offset=0, end_lineno=41, end_col_offset=40), FunctionDef('placeholder_16', arguments([], [arg('placeholder_2', lineno=44, col_offset=16, end_lineno=44, end_col_offset=26), arg('placeholder_1', lineno=44, col_offset=28, end_lineno=44, end_col_offset=38), arg('placeholder_7', lineno=44, col_offset=40, end_lineno=44, end_col_offset=47)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(False, lineno=44, col_offset=48, end_lineno=44, end_col_offset=53)]), [If(Compare(Name('placeholder_2', Load(), lineno=51, col_offset=7, end_lineno=51, end_col_offset=17), [Lt()], [Name('placeholder_1', Load(), lineno=51, col_offset=20, end_lineno=51, end_col_offset=30)], lineno=51, col_offset=7, end_lineno=51, end_col_offset=30), [Raise(Call(Name('ValueError', Load(), lineno=52, col_offset=14, end_lineno=52, end_col_offset=24), [Constant('min must be <= max', lineno=52, col_offset=25, end_lineno=52, end_col_offset=45)], [], lineno=52, col_offset=14, end_lineno=52, end_col_offset=46), lineno=52, col_offset=8, end_lineno=52, end_col_offset=46)], [], lineno=51, col_offset=4, end_lineno=52, end_col_offset=46), Assign([Name('placeholder_17', Store(), lineno=54, col_offset=4, end_lineno=54, end_col_offset=11)], BinOp(Name('placeholder_1', Load(), lineno=54, col_offset=14, end_lineno=54, end_col_offset=24), Pow(), Constant(2, lineno=54, col_offset=28, end_lineno=54, end_col_offset=29), lineno=54, col_offset=14, end_lineno=54, end_col_offset=29), lineno=54, col_offset=4, end_lineno=54, end_col_offset=29), Assign([Name('placeholder_18', Store(), lineno=55, col_offset=4, end_lineno=55, end_col_offset=11)], BinOp(Name('placeholder_2', Load(), lineno=55, col_offset=14, end_lineno=55, end_col_offset=24), Pow(), Constant(2, lineno=55, col_offset=28, end_lineno=55, end_col_offset=29), lineno=55, col_offset=14, end_lineno=55, end_col_offset=29), lineno=55, col_offset=4, end_lineno=55, end_col_offset=29), FunctionDef('placeholder_19', arguments([], [arg('placeholder_20', lineno=57, col_offset=34, end_lineno=57, end_col_offset=45), arg('placeholder_7', lineno=57, col_offset=47, end_lineno=57, end_col_offset=54)], kwonlyargs=[], kw_defaults=[], defaults=[Name('placeholder_7', Load(), lineno=57, col_offset=55, end_lineno=57, end_col_offset=62)]), [Assign([Name('placeholder_21', Store(), lineno=63, col_offset=8, end_lineno=63, end_col_offset=15)], Compare(BinOp(Name('placeholder_20', Load(), lineno=63, col_offset=19, end_lineno=63, end_col_offset=30), Mod(), Constant(2, lineno=63, col_offset=33, end_lineno=63, end_col_offset=34), lineno=63, col_offset=19, end_lineno=63, end_col_offset=34), [Eq()], [Constant(0, lineno=63, col_offset=38, end_lineno=63, end_col_offset=39)], lineno=63, col_offset=19, end_lineno=63, end_col_offset=39), lineno=63, col_offset=8, end_lineno=63, end_col_offset=40), Assign([Name('placeholder_22', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=21)], Call(Name('max', Load(), lineno=65, col_offset=24, end_lineno=65, end_col_offset=27), [BinOp(Constant(10, lineno=65, col_offset=28, end_lineno=65, end_col_offset=30), Pow(), BinOp(Call(Name('int', Load(), lineno=65, col_offset=35, end_lineno=65, end_col_offset=38), [Call(Name('ceil', Load(), lineno=65, col_offset=39, end_lineno=65, end_col_offset=43), [BinOp(Name('placeholder_20', Load(), lineno=65, col_offset=44, end_lineno=65, end_col_offset=55), Div(), Constant(2, lineno=65, col_offset=58, end_lineno=65, end_col_offset=59), lineno=65, col_offset=44, end_lineno=65, end_col_offset=59)], [], lineno=65, col_offset=39, end_lineno=65, end_col_offset=60)], [], lineno=65, col_offset=35, end_lineno=65, end_col_offset=61), Sub(), Constant(1, lineno=65, col_offset=64, end_lineno=65, end_col_offset=65), lineno=65, col_offset=35, end_lineno=65, end_col_offset=65), lineno=65, col_offset=28, end_lineno=65, end_col_offset=66), BinOp(Name('placeholder_17', Load(), lineno=66, col_offset=28, end_lineno=66, end_col_offset=35), FloorDiv(), BinOp(Constant(10, lineno=66, col_offset=40, end_lineno=66, end_col_offset=42), Pow(), BinOp(Name('placeholder_20', Load(), lineno=66, col_offset=47, end_lineno=66, end_col_offset=58), FloorDiv(), Constant(2, lineno=66, col_offset=62, end_lineno=66, end_col_offset=63), lineno=66, col_offset=47, end_lineno=66, end_col_offset=63), lineno=66, col_offset=40, end_lineno=66, end_col_offset=64), lineno=66, col_offset=28, end_lineno=66, end_col_offset=65)], [], lineno=65, col_offset=24, end_lineno=66, end_col_offset=66), lineno=65, col_offset=8, end_lineno=66, end_col_offset=66), Assign([Name('placeholder_23', Store(), lineno=67, col_offset=8, end_lineno=67, end_col_offset=21)], Call(Name('min', Load(), lineno=67, col_offset=24, end_lineno=67, end_col_offset=27), [BinOp(BinOp(Constant(10, lineno=67, col_offset=29, end_lineno=67, end_col_offset=31), Pow(), Call(Name('int', Load(), lineno=67, col_offset=35, end_lineno=67, end_col_offset=38), [Call(Name('ceil', Load(), lineno=67, col_offset=39, end_lineno=67, end_col_offset=43), [BinOp(Name('placeholder_20', Load(), lineno=67, col_offset=44, end_lineno=67, end_col_offset=55), Div(), Constant(2, lineno=67, col_offset=58, end_lineno=67, end_col_offset=59), lineno=67, col_offset=44, end_lineno=67, end_col_offset=59)], [], lineno=67, col_offset=39, end_lineno=67, end_col_offset=60)], [], lineno=67, col_offset=35, end_lineno=67, end_col_offset=61), lineno=67, col_offset=29, end_lineno=67, end_col_offset=61), Sub(), Constant(1, lineno=67, col_offset=65, end_lineno=67, end_col_offset=66), lineno=67, col_offset=28, end_lineno=67, end_col_offset=66), BinOp(Name('placeholder_18', Load(), lineno=68, col_offset=28, end_lineno=68, end_col_offset=35), FloorDiv(), BinOp(Constant(10, lineno=68, col_offset=40, end_lineno=68, end_col_offset=42), Pow(), BinOp(Name('placeholder_20', Load(), lineno=68, col_offset=47, end_lineno=68, end_col_offset=58), FloorDiv(), Constant(2, lineno=68, col_offset=62, end_lineno=68, end_col_offset=63), lineno=68, col_offset=47, end_lineno=68, end_col_offset=63), lineno=68, col_offset=40, end_lineno=68, end_col_offset=64), lineno=68, col_offset=28, end_lineno=68, end_col_offset=65)], [], lineno=67, col_offset=24, end_lineno=68, end_col_offset=66), lineno=67, col_offset=8, end_lineno=68, end_col_offset=66), Assign([Name('placeholder_24', Store(), lineno=70, col_offset=8, end_lineno=70, end_col_offset=25)], IfExp(UnaryOp(Not(), Name('placeholder_7', Load(), lineno=70, col_offset=49, end_lineno=70, end_col_offset=56), lineno=70, col_offset=45, end_lineno=70, end_col_offset=56), Name('placeholder_22', Load(), lineno=70, col_offset=28, end_lineno=70, end_col_offset=41), Name('placeholder_23', Load(), lineno=70, col_offset=62, end_lineno=70, end_col_offset=75), lineno=70, col_offset=28, end_lineno=70, end_col_offset=75), lineno=70, col_offset=8, end_lineno=70, end_col_offset=75), FunctionDef('placeholder_25', arguments([], [arg('placeholder_26', lineno=72, col_offset=28, end_lineno=72, end_col_offset=37), arg('placeholder_21', lineno=72, col_offset=39, end_lineno=72, end_col_offset=46)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(False, lineno=72, col_offset=47, end_lineno=72, end_col_offset=52)]), [Assign([Name('placeholder_27', Store(), lineno=73, col_offset=12, end_lineno=73, end_col_offset=22)], IfExp(Name('placeholder_21', Load(), lineno=74, col_offset=29, end_lineno=74, end_col_offset=36), Call(Name('placeholder_12', Load(), lineno=73, col_offset=26, end_lineno=73, end_col_offset=37), [Name('placeholder_26', Load(), lineno=73, col_offset=38, end_lineno=73, end_col_offset=47)], [], lineno=73, col_offset=26, end_lineno=73, end_col_offset=48), Call(Name('placeholder_12', Load(), lineno=75, col_offset=31, end_lineno=75, end_col_offset=42), [BinOp(Name('placeholder_26', Load(), lineno=75, col_offset=43, end_lineno=75, end_col_offset=52), FloorDiv(), Constant(10, lineno=75, col_offset=56, end_lineno=75, end_col_offset=58), lineno=75, col_offset=43, end_lineno=75, end_col_offset=58)], [], lineno=75, col_offset=31, end_lineno=75, end_col_offset=59), lineno=73, col_offset=26, end_lineno=75, end_col_offset=59), lineno=73, col_offset=12, end_lineno=75, end_col_offset=60), Return(BinOp(BinOp(Name('placeholder_26', Load(), lineno=76, col_offset=20, end_lineno=76, end_col_offset=29), Mult(), BinOp(Constant(10, lineno=76, col_offset=33, end_lineno=76, end_col_offset=35), Pow(), BinOp(Name('placeholder_20', Load(), lineno=76, col_offset=40, end_lineno=76, end_col_offset=51), FloorDiv(), Constant(2, lineno=76, col_offset=55, end_lineno=76, end_col_offset=56), lineno=76, col_offset=40, end_lineno=76, end_col_offset=56), lineno=76, col_offset=33, end_lineno=76, end_col_offset=57), lineno=76, col_offset=20, end_lineno=76, end_col_offset=58), Add(), Name('placeholder_27', Load(), lineno=76, col_offset=62, end_lineno=76, end_col_offset=72), lineno=76, col_offset=19, end_lineno=76, end_col_offset=72), lineno=76, col_offset=12, end_lineno=76, end_col_offset=72)], [], lineno=72, col_offset=8, end_lineno=76, end_col_offset=72), If(UnaryOp(Not(), Name('placeholder_7', Load(), lineno=78, col_offset=15, end_lineno=78, end_col_offset=22), lineno=78, col_offset=11, end_lineno=78, end_col_offset=22), [While(Compare(Name('placeholder_24', Load(), lineno=79, col_offset=18, end_lineno=79, end_col_offset=35), [LtE()], [Name('placeholder_23', Load(), lineno=79, col_offset=39, end_lineno=79, end_col_offset=52)], lineno=79, col_offset=18, end_lineno=79, end_col_offset=52), [Assign([Name('placeholder_9', Store(), lineno=80, col_offset=16, end_lineno=80, end_col_offset=26)], Call(Name('placeholder_25', Load(), lineno=80, col_offset=29, end_lineno=80, end_col_offset=44), [Name('placeholder_24', Load(), lineno=80, col_offset=45, end_lineno=80, end_col_offset=62), Name('placeholder_21', Load(), lineno=80, col_offset=64, end_lineno=80, end_col_offset=71)], [], lineno=80, col_offset=29, end_lineno=80, end_col_offset=72), lineno=80, col_offset=16, end_lineno=80, end_col_offset=72), If(Compare(Name('placeholder_17', Load(), lineno=81, col_offset=19, end_lineno=81, end_col_offset=26), [LtE(), LtE()], [Name('placeholder_9', Load(), lineno=81, col_offset=30, end_lineno=81, end_col_offset=40), Name('placeholder_18', Load(), lineno=81, col_offset=44, end_lineno=81, end_col_offset=51)], lineno=81, col_offset=19, end_lineno=81, end_col_offset=51), [Expr(Yield(Name('palindrome', Load(), lineno=82, col_offset=26, end_lineno=82, end_col_offset=36), lineno=82, col_offset=20, end_lineno=82, end_col_offset=36), lineno=82, col_offset=20, end_lineno=82, end_col_offset=36)], [If(Compare(Name('placeholder_9', Load(), lineno=83, col_offset=21, end_lineno=83, end_col_offset=31), [Gt()], [Name('placeholder_18', Load(), lineno=83, col_offset=34, end_lineno=83, end_col_offset=41)], lineno=83, col_offset=21, end_lineno=83, end_col_offset=41), [Break(lineno=87, col_offset=20, end_lineno=87, end_col_offset=25)], [], lineno=83, col_offset=16, end_lineno=87, end_col_offset=25)], lineno=81, col_offset=16, end_lineno=87, end_col_offset=25), AugAssign(Name('placeholder_24', Store(), lineno=88, col_offset=16, end_lineno=88, end_col_offset=33), Add(), Constant(1, lineno=88, col_offset=37, end_lineno=88, end_col_offset=38), lineno=88, col_offset=16, end_lineno=88, end_col_offset=38)], [], lineno=79, col_offset=12, end_lineno=88, end_col_offset=38)], [While(Compare(Name('placeholder_24', Load(), lineno=90, col_offset=18, end_lineno=90, end_col_offset=35), [GtE()], [Name('placeholder_22', Load(), lineno=90, col_offset=39, end_lineno=90, end_col_offset=52)], lineno=90, col_offset=18, end_lineno=90, end_col_offset=52), [Assign([Name('placeholder_9', Store(), lineno=91, col_offset=16, end_lineno=91, end_col_offset=26)], Call(Name('placeholder_25', Load(), lineno=91, col_offset=29, end_lineno=91, end_col_offset=44), [Name('placeholder_24', Load(), lineno=91, col_offset=45, end_lineno=91, end_col_offset=62), Name('placeholder_21', Load(), lineno=91, col_offset=64, end_lineno=91, end_col_offset=71)], [], lineno=91, col_offset=29, end_lineno=91, end_col_offset=72), lineno=91, col_offset=16, end_lineno=91, end_col_offset=72), If(Compare(Name('placeholder_17', Load(), lineno=92, col_offset=19, end_lineno=92, end_col_offset=26), [LtE(), LtE()], [Name('placeholder_9', Load(), lineno=92, col_offset=30, end_lineno=92, end_col_offset=40), Name('placeholder_18', Load(), lineno=92, col_offset=44, end_lineno=92, end_col_offset=51)], lineno=92, col_offset=19, end_lineno=92, end_col_offset=51), [Expr(Yield(Name('palindrome', Load(), lineno=93, col_offset=26, end_lineno=93, end_col_offset=36), lineno=93, col_offset=20, end_lineno=93, end_col_offset=36), lineno=93, col_offset=20, end_lineno=93, end_col_offset=36)], [If(Compare(Name('placeholder_9', Load(), lineno=94, col_offset=21, end_lineno=94, end_col_offset=31), [Lt()], [Name('placeholder_17', Load(), lineno=94, col_offset=34, end_lineno=94, end_col_offset=41)], lineno=94, col_offset=21, end_lineno=94, end_col_offset=41), [Break(lineno=98, col_offset=20, end_lineno=98, end_col_offset=25)], [], lineno=94, col_offset=16, end_lineno=98, end_col_offset=25)], lineno=92, col_offset=16, end_lineno=98, end_col_offset=25), AugAssign(Name('placeholder_24', Store(), lineno=99, col_offset=16, end_lineno=99, end_col_offset=33), Sub(), Constant(1, lineno=99, col_offset=37, end_lineno=99, end_col_offset=38), lineno=99, col_offset=16, end_lineno=99, end_col_offset=38)], [], lineno=90, col_offset=12, end_lineno=99, end_col_offset=38)], lineno=78, col_offset=8, end_lineno=99, end_col_offset=38)], [], lineno=57, col_offset=4, end_lineno=99, end_col_offset=38), Assign([Name('placeholder_28', Store(), lineno=101, col_offset=4, end_lineno=101, end_col_offset=10)], Call(Name('placeholder_15', Load(), lineno=101, col_offset=13, end_lineno=101, end_col_offset=23), [Name('placeholder_17', Load(), lineno=101, col_offset=24, end_lineno=101, end_col_offset=31)], [], lineno=101, col_offset=13, end_lineno=101, end_col_offset=32), lineno=101, col_offset=4, end_lineno=101, end_col_offset=32), Assign([Name('placeholder_29', Store(), lineno=102, col_offset=4, end_lineno=102, end_col_offset=10)], Call(Name('placeholder_15', Load(), lineno=102, col_offset=13, end_lineno=102, end_col_offset=23), [Name('placeholder_18', Load(), lineno=102, col_offset=24, end_lineno=102, end_col_offset=31)], [], lineno=102, col_offset=13, end_lineno=102, end_col_offset=32), lineno=102, col_offset=4, end_lineno=102, end_col_offset=32), Assign([Name('placeholder_30', Store(), lineno=104, col_offset=4, end_lineno=104, end_col_offset=11)], IfExp(UnaryOp(Not(), Name('placeholder_7', Load(), lineno=105, col_offset=22, end_lineno=105, end_col_offset=29), lineno=105, col_offset=18, end_lineno=105, end_col_offset=29), Call(Name('range', Load(), lineno=104, col_offset=15, end_lineno=104, end_col_offset=20), [Name('placeholder_28', Load(), lineno=104, col_offset=21, end_lineno=104, end_col_offset=27), BinOp(Name('placeholder_29', Load(), lineno=104, col_offset=29, end_lineno=104, end_col_offset=35), Add(), Constant(1, lineno=104, col_offset=38, end_lineno=104, end_col_offset=39), lineno=104, col_offset=29, end_lineno=104, end_col_offset=39)], [], lineno=104, col_offset=15, end_lineno=104, end_col_offset=40), Call(Name('range', Load(), lineno=106, col_offset=20, end_lineno=106, end_col_offset=25), [Name('placeholder_29', Load(), lineno=106, col_offset=26, end_lineno=106, end_col_offset=32), BinOp(Name('placeholder_28', Load(), lineno=106, col_offset=34, end_lineno=106, end_col_offset=40), Sub(), Constant(1, lineno=106, col_offset=43, end_lineno=106, end_col_offset=44), lineno=106, col_offset=34, end_lineno=106, end_col_offset=44), UnaryOp(USub(), Constant(1, lineno=106, col_offset=47, end_lineno=106, end_col_offset=48), lineno=106, col_offset=46, end_lineno=106, end_col_offset=48)], [], lineno=106, col_offset=20, end_lineno=106, end_col_offset=49), lineno=104, col_offset=15, end_lineno=106, end_col_offset=49), lineno=104, col_offset=4, end_lineno=106, end_col_offset=50), Return(Call(Name('chain', Load(), lineno=108, col_offset=11, end_lineno=108, end_col_offset=16), [Starred(Call(Name('map', Load(), lineno=108, col_offset=18, end_lineno=108, end_col_offset=21), [Name('placeholder_19', Load(), lineno=108, col_offset=22, end_lineno=108, end_col_offset=47), Name('placeholder_30', Load(), lineno=108, col_offset=49, end_lineno=108, end_col_offset=56)], [], lineno=108, col_offset=18, end_lineno=108, end_col_offset=57), Load(), lineno=108, col_offset=17, end_lineno=108, end_col_offset=57)], [], lineno=108, col_offset=11, end_lineno=108, end_col_offset=58), lineno=108, col_offset=4, end_lineno=108, end_col_offset=58)], [], lineno=44, col_offset=0, end_lineno=108, end_col_offset=58)], []) \ No newline at end of file +Module([ImportFrom('itertools', [alias('chain', lineno=1, col_offset=22, end_lineno=1, end_col_offset=27)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=27), ImportFrom('math', [alias('log10', lineno=2, col_offset=17, end_lineno=2, end_col_offset=22), alias('floor', lineno=2, col_offset=24, end_lineno=2, end_col_offset=29), alias('ceil', lineno=2, col_offset=31, end_lineno=2, end_col_offset=35)], 0, lineno=2, col_offset=0, end_lineno=2, end_col_offset=35), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=5, col_offset=12, end_lineno=5, end_col_offset=22), arg('placeholder_2', lineno=5, col_offset=24, end_lineno=5, end_col_offset=34)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('get_extreme_palindrome_with_factors', Load(), lineno=6, col_offset=11, end_lineno=6, end_col_offset=46), [Name('placeholder_2', Load(), lineno=6, col_offset=47, end_lineno=6, end_col_offset=57), Name('placeholder_1', Load(), lineno=6, col_offset=59, end_lineno=6, end_col_offset=69), Constant('largest', lineno=6, col_offset=71, end_lineno=6, end_col_offset=80)], [], lineno=6, col_offset=11, end_lineno=6, end_col_offset=81), lineno=6, col_offset=4, end_lineno=6, end_col_offset=81)], [], lineno=5, col_offset=0, end_lineno=6, end_col_offset=81), FunctionDef('placeholder_3', arguments([], [arg('placeholder_2', lineno=9, col_offset=13, end_lineno=9, end_col_offset=23), arg('placeholder_1', lineno=9, col_offset=25, end_lineno=9, end_col_offset=35)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('get_extreme_palindrome_with_factors', Load(), lineno=10, col_offset=11, end_lineno=10, end_col_offset=46), [Name('placeholder_2', Load(), lineno=10, col_offset=47, end_lineno=10, end_col_offset=57), Name('placeholder_1', Load(), lineno=10, col_offset=59, end_lineno=10, end_col_offset=69), Constant('smallest', lineno=10, col_offset=71, end_lineno=10, end_col_offset=81)], [], lineno=10, col_offset=11, end_lineno=10, end_col_offset=82), lineno=10, col_offset=4, end_lineno=10, end_col_offset=82)], [], lineno=9, col_offset=0, end_lineno=10, end_col_offset=82), FunctionDef('placeholder_4', arguments([], [arg('placeholder_2', lineno=13, col_offset=40, end_lineno=13, end_col_offset=50), arg('placeholder_1', lineno=13, col_offset=52, end_lineno=13, end_col_offset=62), arg('placeholder_5', lineno=13, col_offset=64, end_lineno=13, end_col_offset=71)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_6', Store(), lineno=14, col_offset=4, end_lineno=14, end_col_offset=21)], Call(Name('palindromes', Load(), lineno=14, col_offset=24, end_lineno=14, end_col_offset=35), [Name('placeholder_2', Load(), lineno=14, col_offset=36, end_lineno=14, end_col_offset=46), Name('placeholder_1', Load(), lineno=14, col_offset=48, end_lineno=14, end_col_offset=58)], [keyword('placeholder_7', Compare(Name('placeholder_5', Load(), lineno=14, col_offset=69, end_lineno=14, end_col_offset=76), [Eq()], [Constant('largest', lineno=14, col_offset=80, end_lineno=14, end_col_offset=89)], lineno=14, col_offset=69, end_lineno=14, end_col_offset=89), lineno=14, col_offset=60, end_lineno=14, end_col_offset=90)], lineno=14, col_offset=24, end_lineno=14, end_col_offset=91), lineno=14, col_offset=4, end_lineno=14, end_col_offset=91), Assign([Name('placeholder_8', Store(), lineno=15, col_offset=4, end_lineno=15, end_col_offset=16)], Constant(None, lineno=15, col_offset=19, end_lineno=15, end_col_offset=23), lineno=15, col_offset=4, end_lineno=15, end_col_offset=23), For(Name('placeholder_9', Store(), lineno=16, col_offset=8, end_lineno=16, end_col_offset=18), Name('placeholder_6', Load(), lineno=16, col_offset=22, end_lineno=16, end_col_offset=39), [Assign([Name('placeholder_8', Store(), lineno=17, col_offset=8, end_lineno=17, end_col_offset=20)], GeneratorExp(Tuple([Name('placeholder_10', Load(), lineno=17, col_offset=25, end_lineno=17, end_col_offset=31), BinOp(Name('placeholder_9', Load(), lineno=17, col_offset=33, end_lineno=17, end_col_offset=43), FloorDiv(), Name('placeholder_10', Load(), lineno=17, col_offset=47, end_lineno=17, end_col_offset=53), lineno=17, col_offset=33, end_lineno=17, end_col_offset=53)], Load(), lineno=17, col_offset=24, end_lineno=17, end_col_offset=54), [comprehension(Name('placeholder_10', Store(), lineno=18, col_offset=28, end_lineno=18, end_col_offset=34), Call(Name('range', Load(), lineno=18, col_offset=38, end_lineno=18, end_col_offset=43), [Name('placeholder_1', Load(), lineno=18, col_offset=44, end_lineno=18, end_col_offset=54), BinOp(Name('placeholder_2', Load(), lineno=18, col_offset=56, end_lineno=18, end_col_offset=66), Add(), Constant(1, lineno=18, col_offset=69, end_lineno=18, end_col_offset=70), lineno=18, col_offset=56, end_lineno=18, end_col_offset=70)], [], lineno=18, col_offset=38, end_lineno=18, end_col_offset=71), [Compare(BinOp(Name('placeholder_9', Load(), lineno=19, col_offset=27, end_lineno=19, end_col_offset=37), Mod(), Name('placeholder_10', Load(), lineno=19, col_offset=40, end_lineno=19, end_col_offset=46), lineno=19, col_offset=27, end_lineno=19, end_col_offset=46), [Eq()], [Constant(0, lineno=19, col_offset=50, end_lineno=19, end_col_offset=51)], lineno=19, col_offset=27, end_lineno=19, end_col_offset=51)], 0)], lineno=17, col_offset=23, end_lineno=19, end_col_offset=52), lineno=17, col_offset=8, end_lineno=19, end_col_offset=52), Assign([Name('placeholder_8', Store(), lineno=20, col_offset=8, end_lineno=20, end_col_offset=20)], Call(Name('list', Load(), lineno=20, col_offset=23, end_lineno=20, end_col_offset=27), [GeneratorExp(Name('placeholder_11', Load(), lineno=20, col_offset=28, end_lineno=20, end_col_offset=32), [comprehension(Name('placeholder_11', Store(), lineno=20, col_offset=37, end_lineno=20, end_col_offset=41), Name('placeholder_8', Load(), lineno=20, col_offset=45, end_lineno=20, end_col_offset=57), [Compare(Name('placeholder_1', Load(), lineno=21, col_offset=31, end_lineno=21, end_col_offset=41), [LtE(), LtE()], [Subscript(Name('placeholder_11', Load(), lineno=21, col_offset=45, end_lineno=21, end_col_offset=49), Constant(1, lineno=21, col_offset=50, end_lineno=21, end_col_offset=51), Load(), lineno=21, col_offset=45, end_lineno=21, end_col_offset=52), Name('placeholder_2', Load(), lineno=21, col_offset=56, end_lineno=21, end_col_offset=66)], lineno=21, col_offset=31, end_lineno=21, end_col_offset=66)], 0)], lineno=20, col_offset=27, end_lineno=21, end_col_offset=67)], [], lineno=20, col_offset=23, end_lineno=21, end_col_offset=67), lineno=20, col_offset=8, end_lineno=21, end_col_offset=67), If(Compare(Call(Name('len', Load(), lineno=22, col_offset=11, end_lineno=22, end_col_offset=14), [Name('placeholder_8', Load(), lineno=22, col_offset=15, end_lineno=22, end_col_offset=27)], [], lineno=22, col_offset=11, end_lineno=22, end_col_offset=28), [Gt()], [Constant(0, lineno=22, col_offset=31, end_lineno=22, end_col_offset=32)], lineno=22, col_offset=11, end_lineno=22, end_col_offset=32), [Break(lineno=23, col_offset=12, end_lineno=23, end_col_offset=17)], [], lineno=22, col_offset=8, end_lineno=23, end_col_offset=17)], [], lineno=16, col_offset=4, end_lineno=23, end_col_offset=17), If(UnaryOp(Not(), Name('placeholder_8', Load(), lineno=25, col_offset=11, end_lineno=25, end_col_offset=23), lineno=25, col_offset=7, end_lineno=25, end_col_offset=23), [Return(Tuple([Constant(None, lineno=26, col_offset=16, end_lineno=26, end_col_offset=20), List([], Load(), lineno=26, col_offset=22, end_lineno=26, end_col_offset=24)], Load(), lineno=26, col_offset=15, end_lineno=26, end_col_offset=25), lineno=26, col_offset=8, end_lineno=26, end_col_offset=25)], [], lineno=25, col_offset=4, end_lineno=26, end_col_offset=25), Return(Tuple([Name('placeholder_9', Load(), lineno=28, col_offset=12, end_lineno=28, end_col_offset=22), Name('placeholder_8', Load(), lineno=28, col_offset=24, end_lineno=28, end_col_offset=36)], Load(), lineno=28, col_offset=11, end_lineno=28, end_col_offset=37), lineno=28, col_offset=4, end_lineno=28, end_col_offset=37)], [], lineno=13, col_offset=0, end_lineno=28, end_col_offset=37), FunctionDef('placeholder_12', arguments([], [arg('placeholder_13', lineno=31, col_offset=16, end_lineno=31, end_col_offset=22)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_14', Store(), lineno=32, col_offset=4, end_lineno=32, end_col_offset=17)], Constant(0, lineno=32, col_offset=20, end_lineno=32, end_col_offset=21), lineno=32, col_offset=4, end_lineno=32, end_col_offset=21), While(Compare(Name('placeholder_13', Load(), lineno=33, col_offset=10, end_lineno=33, end_col_offset=16), [Gt()], [Constant(0, lineno=33, col_offset=19, end_lineno=33, end_col_offset=20)], lineno=33, col_offset=10, end_lineno=33, end_col_offset=20), [AugAssign(Name('placeholder_14', Store(), lineno=34, col_offset=8, end_lineno=34, end_col_offset=21), Mult(), Constant(10, lineno=34, col_offset=25, end_lineno=34, end_col_offset=27), lineno=34, col_offset=8, end_lineno=34, end_col_offset=27), AugAssign(Name('placeholder_14', Store(), lineno=35, col_offset=8, end_lineno=35, end_col_offset=21), Add(), BinOp(Name('placeholder_13', Load(), lineno=35, col_offset=26, end_lineno=35, end_col_offset=32), Mod(), Constant(10, lineno=35, col_offset=35, end_lineno=35, end_col_offset=37), lineno=35, col_offset=26, end_lineno=35, end_col_offset=37), lineno=35, col_offset=8, end_lineno=35, end_col_offset=38), AugAssign(Name('placeholder_13', Store(), lineno=36, col_offset=8, end_lineno=36, end_col_offset=14), FloorDiv(), Constant(10, lineno=36, col_offset=19, end_lineno=36, end_col_offset=21), lineno=36, col_offset=8, end_lineno=36, end_col_offset=21)], [], lineno=33, col_offset=4, end_lineno=36, end_col_offset=21), Return(Name('placeholder_14', Load(), lineno=37, col_offset=11, end_lineno=37, end_col_offset=24), lineno=37, col_offset=4, end_lineno=37, end_col_offset=24)], [], lineno=31, col_offset=0, end_lineno=37, end_col_offset=24), FunctionDef('placeholder_15', arguments([], [arg('placeholder_13', lineno=40, col_offset=15, end_lineno=40, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('int', Load(), lineno=41, col_offset=11, end_lineno=41, end_col_offset=14), [Call(Name('floor', Load(), lineno=41, col_offset=15, end_lineno=41, end_col_offset=20), [BinOp(Call(Name('log10', Load(), lineno=41, col_offset=21, end_lineno=41, end_col_offset=26), [Name('placeholder_13', Load(), lineno=41, col_offset=27, end_lineno=41, end_col_offset=33)], [], lineno=41, col_offset=21, end_lineno=41, end_col_offset=34), Add(), Constant(1, lineno=41, col_offset=37, end_lineno=41, end_col_offset=38), lineno=41, col_offset=21, end_lineno=41, end_col_offset=38)], [], lineno=41, col_offset=15, end_lineno=41, end_col_offset=39)], [], lineno=41, col_offset=11, end_lineno=41, end_col_offset=40), lineno=41, col_offset=4, end_lineno=41, end_col_offset=40)], [], lineno=40, col_offset=0, end_lineno=41, end_col_offset=40), FunctionDef('placeholder_16', arguments([], [arg('placeholder_2', lineno=44, col_offset=16, end_lineno=44, end_col_offset=26), arg('placeholder_1', lineno=44, col_offset=28, end_lineno=44, end_col_offset=38), arg('placeholder_7', lineno=44, col_offset=40, end_lineno=44, end_col_offset=47)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(False, lineno=44, col_offset=48, end_lineno=44, end_col_offset=53)]), [If(Compare(Name('placeholder_2', Load(), lineno=51, col_offset=7, end_lineno=51, end_col_offset=17), [Lt()], [Name('placeholder_1', Load(), lineno=51, col_offset=20, end_lineno=51, end_col_offset=30)], lineno=51, col_offset=7, end_lineno=51, end_col_offset=30), [Raise(Call(Name('ValueError', Load(), lineno=52, col_offset=14, end_lineno=52, end_col_offset=24), [Constant('min must be <= max', lineno=52, col_offset=25, end_lineno=52, end_col_offset=45)], [], lineno=52, col_offset=14, end_lineno=52, end_col_offset=46), lineno=52, col_offset=8, end_lineno=52, end_col_offset=46)], [], lineno=51, col_offset=4, end_lineno=52, end_col_offset=46), Assign([Name('placeholder_17', Store(), lineno=54, col_offset=4, end_lineno=54, end_col_offset=11)], BinOp(Name('placeholder_1', Load(), lineno=54, col_offset=14, end_lineno=54, end_col_offset=24), Pow(), Constant(2, lineno=54, col_offset=28, end_lineno=54, end_col_offset=29), lineno=54, col_offset=14, end_lineno=54, end_col_offset=29), lineno=54, col_offset=4, end_lineno=54, end_col_offset=29), Assign([Name('placeholder_18', Store(), lineno=55, col_offset=4, end_lineno=55, end_col_offset=11)], BinOp(Name('placeholder_2', Load(), lineno=55, col_offset=14, end_lineno=55, end_col_offset=24), Pow(), Constant(2, lineno=55, col_offset=28, end_lineno=55, end_col_offset=29), lineno=55, col_offset=14, end_lineno=55, end_col_offset=29), lineno=55, col_offset=4, end_lineno=55, end_col_offset=29), FunctionDef('placeholder_19', arguments([], [arg('placeholder_20', lineno=57, col_offset=34, end_lineno=57, end_col_offset=45), arg('placeholder_7', lineno=57, col_offset=47, end_lineno=57, end_col_offset=54)], kwonlyargs=[], kw_defaults=[], defaults=[Name('placeholder_7', Load(), lineno=57, col_offset=55, end_lineno=57, end_col_offset=62)]), [Assign([Name('placeholder_21', Store(), lineno=63, col_offset=8, end_lineno=63, end_col_offset=15)], Compare(BinOp(Name('placeholder_20', Load(), lineno=63, col_offset=19, end_lineno=63, end_col_offset=30), Mod(), Constant(2, lineno=63, col_offset=33, end_lineno=63, end_col_offset=34), lineno=63, col_offset=19, end_lineno=63, end_col_offset=34), [Eq()], [Constant(0, lineno=63, col_offset=38, end_lineno=63, end_col_offset=39)], lineno=63, col_offset=19, end_lineno=63, end_col_offset=39), lineno=63, col_offset=8, end_lineno=63, end_col_offset=40), Assign([Name('placeholder_22', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=21)], Call(Name('max', Load(), lineno=65, col_offset=24, end_lineno=65, end_col_offset=27), [BinOp(Constant(10, lineno=65, col_offset=28, end_lineno=65, end_col_offset=30), Pow(), BinOp(Call(Name('int', Load(), lineno=65, col_offset=35, end_lineno=65, end_col_offset=38), [Call(Name('ceil', Load(), lineno=65, col_offset=39, end_lineno=65, end_col_offset=43), [BinOp(Name('placeholder_20', Load(), lineno=65, col_offset=44, end_lineno=65, end_col_offset=55), Div(), Constant(2, lineno=65, col_offset=58, end_lineno=65, end_col_offset=59), lineno=65, col_offset=44, end_lineno=65, end_col_offset=59)], [], lineno=65, col_offset=39, end_lineno=65, end_col_offset=60)], [], lineno=65, col_offset=35, end_lineno=65, end_col_offset=61), Sub(), Constant(1, lineno=65, col_offset=64, end_lineno=65, end_col_offset=65), lineno=65, col_offset=35, end_lineno=65, end_col_offset=65), lineno=65, col_offset=28, end_lineno=65, end_col_offset=66), BinOp(Name('placeholder_17', Load(), lineno=66, col_offset=28, end_lineno=66, end_col_offset=35), FloorDiv(), BinOp(Constant(10, lineno=66, col_offset=40, end_lineno=66, end_col_offset=42), Pow(), BinOp(Name('placeholder_20', Load(), lineno=66, col_offset=47, end_lineno=66, end_col_offset=58), FloorDiv(), Constant(2, lineno=66, col_offset=62, end_lineno=66, end_col_offset=63), lineno=66, col_offset=47, end_lineno=66, end_col_offset=63), lineno=66, col_offset=40, end_lineno=66, end_col_offset=64), lineno=66, col_offset=28, end_lineno=66, end_col_offset=65)], [], lineno=65, col_offset=24, end_lineno=66, end_col_offset=66), lineno=65, col_offset=8, end_lineno=66, end_col_offset=66), Assign([Name('placeholder_23', Store(), lineno=67, col_offset=8, end_lineno=67, end_col_offset=21)], Call(Name('min', Load(), lineno=67, col_offset=24, end_lineno=67, end_col_offset=27), [BinOp(BinOp(Constant(10, lineno=67, col_offset=29, end_lineno=67, end_col_offset=31), Pow(), Call(Name('int', Load(), lineno=67, col_offset=35, end_lineno=67, end_col_offset=38), [Call(Name('ceil', Load(), lineno=67, col_offset=39, end_lineno=67, end_col_offset=43), [BinOp(Name('placeholder_20', Load(), lineno=67, col_offset=44, end_lineno=67, end_col_offset=55), Div(), Constant(2, lineno=67, col_offset=58, end_lineno=67, end_col_offset=59), lineno=67, col_offset=44, end_lineno=67, end_col_offset=59)], [], lineno=67, col_offset=39, end_lineno=67, end_col_offset=60)], [], lineno=67, col_offset=35, end_lineno=67, end_col_offset=61), lineno=67, col_offset=29, end_lineno=67, end_col_offset=61), Sub(), Constant(1, lineno=67, col_offset=65, end_lineno=67, end_col_offset=66), lineno=67, col_offset=28, end_lineno=67, end_col_offset=66), BinOp(Name('placeholder_18', Load(), lineno=68, col_offset=28, end_lineno=68, end_col_offset=35), FloorDiv(), BinOp(Constant(10, lineno=68, col_offset=40, end_lineno=68, end_col_offset=42), Pow(), BinOp(Name('placeholder_20', Load(), lineno=68, col_offset=47, end_lineno=68, end_col_offset=58), FloorDiv(), Constant(2, lineno=68, col_offset=62, end_lineno=68, end_col_offset=63), lineno=68, col_offset=47, end_lineno=68, end_col_offset=63), lineno=68, col_offset=40, end_lineno=68, end_col_offset=64), lineno=68, col_offset=28, end_lineno=68, end_col_offset=65)], [], lineno=67, col_offset=24, end_lineno=68, end_col_offset=66), lineno=67, col_offset=8, end_lineno=68, end_col_offset=66), Assign([Name('placeholder_24', Store(), lineno=70, col_offset=8, end_lineno=70, end_col_offset=25)], IfExp(UnaryOp(Not(), Name('placeholder_7', Load(), lineno=70, col_offset=49, end_lineno=70, end_col_offset=56), lineno=70, col_offset=45, end_lineno=70, end_col_offset=56), Name('placeholder_22', Load(), lineno=70, col_offset=28, end_lineno=70, end_col_offset=41), Name('placeholder_23', Load(), lineno=70, col_offset=62, end_lineno=70, end_col_offset=75), lineno=70, col_offset=28, end_lineno=70, end_col_offset=75), lineno=70, col_offset=8, end_lineno=70, end_col_offset=75), FunctionDef('placeholder_25', arguments([], [arg('placeholder_26', lineno=72, col_offset=28, end_lineno=72, end_col_offset=37), arg('placeholder_21', lineno=72, col_offset=39, end_lineno=72, end_col_offset=46)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(False, lineno=72, col_offset=47, end_lineno=72, end_col_offset=52)]), [Assign([Name('placeholder_27', Store(), lineno=73, col_offset=12, end_lineno=73, end_col_offset=22)], IfExp(Name('placeholder_21', Load(), lineno=74, col_offset=29, end_lineno=74, end_col_offset=36), Call(Name('placeholder_12', Load(), lineno=73, col_offset=26, end_lineno=73, end_col_offset=37), [Name('placeholder_26', Load(), lineno=73, col_offset=38, end_lineno=73, end_col_offset=47)], [], lineno=73, col_offset=26, end_lineno=73, end_col_offset=48), Call(Name('placeholder_12', Load(), lineno=75, col_offset=31, end_lineno=75, end_col_offset=42), [BinOp(Name('placeholder_26', Load(), lineno=75, col_offset=43, end_lineno=75, end_col_offset=52), FloorDiv(), Constant(10, lineno=75, col_offset=56, end_lineno=75, end_col_offset=58), lineno=75, col_offset=43, end_lineno=75, end_col_offset=58)], [], lineno=75, col_offset=31, end_lineno=75, end_col_offset=59), lineno=73, col_offset=26, end_lineno=75, end_col_offset=59), lineno=73, col_offset=12, end_lineno=75, end_col_offset=60), Return(BinOp(BinOp(Name('placeholder_26', Load(), lineno=76, col_offset=20, end_lineno=76, end_col_offset=29), Mult(), BinOp(Constant(10, lineno=76, col_offset=33, end_lineno=76, end_col_offset=35), Pow(), BinOp(Name('placeholder_20', Load(), lineno=76, col_offset=40, end_lineno=76, end_col_offset=51), FloorDiv(), Constant(2, lineno=76, col_offset=55, end_lineno=76, end_col_offset=56), lineno=76, col_offset=40, end_lineno=76, end_col_offset=56), lineno=76, col_offset=33, end_lineno=76, end_col_offset=57), lineno=76, col_offset=20, end_lineno=76, end_col_offset=58), Add(), Name('placeholder_27', Load(), lineno=76, col_offset=62, end_lineno=76, end_col_offset=72), lineno=76, col_offset=19, end_lineno=76, end_col_offset=72), lineno=76, col_offset=12, end_lineno=76, end_col_offset=72)], [], lineno=72, col_offset=8, end_lineno=76, end_col_offset=72), If(UnaryOp(Not(), Name('placeholder_7', Load(), lineno=78, col_offset=15, end_lineno=78, end_col_offset=22), lineno=78, col_offset=11, end_lineno=78, end_col_offset=22), [While(Compare(Name('placeholder_24', Load(), lineno=79, col_offset=18, end_lineno=79, end_col_offset=35), [LtE()], [Name('placeholder_23', Load(), lineno=79, col_offset=39, end_lineno=79, end_col_offset=52)], lineno=79, col_offset=18, end_lineno=79, end_col_offset=52), [Assign([Name('placeholder_9', Store(), lineno=80, col_offset=16, end_lineno=80, end_col_offset=26)], Call(Name('placeholder_25', Load(), lineno=80, col_offset=29, end_lineno=80, end_col_offset=44), [Name('placeholder_24', Load(), lineno=80, col_offset=45, end_lineno=80, end_col_offset=62), Name('placeholder_21', Load(), lineno=80, col_offset=64, end_lineno=80, end_col_offset=71)], [], lineno=80, col_offset=29, end_lineno=80, end_col_offset=72), lineno=80, col_offset=16, end_lineno=80, end_col_offset=72), If(Compare(Name('placeholder_17', Load(), lineno=81, col_offset=19, end_lineno=81, end_col_offset=26), [LtE(), LtE()], [Name('placeholder_9', Load(), lineno=81, col_offset=30, end_lineno=81, end_col_offset=40), Name('placeholder_18', Load(), lineno=81, col_offset=44, end_lineno=81, end_col_offset=51)], lineno=81, col_offset=19, end_lineno=81, end_col_offset=51), [Expr(Yield(Name('placeholder_9', Load(), lineno=82, col_offset=26, end_lineno=82, end_col_offset=36), lineno=82, col_offset=20, end_lineno=82, end_col_offset=36), lineno=82, col_offset=20, end_lineno=82, end_col_offset=36)], [If(Compare(Name('placeholder_9', Load(), lineno=83, col_offset=21, end_lineno=83, end_col_offset=31), [Gt()], [Name('placeholder_18', Load(), lineno=83, col_offset=34, end_lineno=83, end_col_offset=41)], lineno=83, col_offset=21, end_lineno=83, end_col_offset=41), [Break(lineno=87, col_offset=20, end_lineno=87, end_col_offset=25)], [], lineno=83, col_offset=16, end_lineno=87, end_col_offset=25)], lineno=81, col_offset=16, end_lineno=87, end_col_offset=25), AugAssign(Name('placeholder_24', Store(), lineno=88, col_offset=16, end_lineno=88, end_col_offset=33), Add(), Constant(1, lineno=88, col_offset=37, end_lineno=88, end_col_offset=38), lineno=88, col_offset=16, end_lineno=88, end_col_offset=38)], [], lineno=79, col_offset=12, end_lineno=88, end_col_offset=38)], [While(Compare(Name('placeholder_24', Load(), lineno=90, col_offset=18, end_lineno=90, end_col_offset=35), [GtE()], [Name('placeholder_22', Load(), lineno=90, col_offset=39, end_lineno=90, end_col_offset=52)], lineno=90, col_offset=18, end_lineno=90, end_col_offset=52), [Assign([Name('placeholder_9', Store(), lineno=91, col_offset=16, end_lineno=91, end_col_offset=26)], Call(Name('placeholder_25', Load(), lineno=91, col_offset=29, end_lineno=91, end_col_offset=44), [Name('placeholder_24', Load(), lineno=91, col_offset=45, end_lineno=91, end_col_offset=62), Name('placeholder_21', Load(), lineno=91, col_offset=64, end_lineno=91, end_col_offset=71)], [], lineno=91, col_offset=29, end_lineno=91, end_col_offset=72), lineno=91, col_offset=16, end_lineno=91, end_col_offset=72), If(Compare(Name('placeholder_17', Load(), lineno=92, col_offset=19, end_lineno=92, end_col_offset=26), [LtE(), LtE()], [Name('placeholder_9', Load(), lineno=92, col_offset=30, end_lineno=92, end_col_offset=40), Name('placeholder_18', Load(), lineno=92, col_offset=44, end_lineno=92, end_col_offset=51)], lineno=92, col_offset=19, end_lineno=92, end_col_offset=51), [Expr(Yield(Name('placeholder_9', Load(), lineno=93, col_offset=26, end_lineno=93, end_col_offset=36), lineno=93, col_offset=20, end_lineno=93, end_col_offset=36), lineno=93, col_offset=20, end_lineno=93, end_col_offset=36)], [If(Compare(Name('placeholder_9', Load(), lineno=94, col_offset=21, end_lineno=94, end_col_offset=31), [Lt()], [Name('placeholder_17', Load(), lineno=94, col_offset=34, end_lineno=94, end_col_offset=41)], lineno=94, col_offset=21, end_lineno=94, end_col_offset=41), [Break(lineno=98, col_offset=20, end_lineno=98, end_col_offset=25)], [], lineno=94, col_offset=16, end_lineno=98, end_col_offset=25)], lineno=92, col_offset=16, end_lineno=98, end_col_offset=25), AugAssign(Name('placeholder_24', Store(), lineno=99, col_offset=16, end_lineno=99, end_col_offset=33), Sub(), Constant(1, lineno=99, col_offset=37, end_lineno=99, end_col_offset=38), lineno=99, col_offset=16, end_lineno=99, end_col_offset=38)], [], lineno=90, col_offset=12, end_lineno=99, end_col_offset=38)], lineno=78, col_offset=8, end_lineno=99, end_col_offset=38)], [], lineno=57, col_offset=4, end_lineno=99, end_col_offset=38), Assign([Name('placeholder_28', Store(), lineno=101, col_offset=4, end_lineno=101, end_col_offset=10)], Call(Name('placeholder_15', Load(), lineno=101, col_offset=13, end_lineno=101, end_col_offset=23), [Name('placeholder_17', Load(), lineno=101, col_offset=24, end_lineno=101, end_col_offset=31)], [], lineno=101, col_offset=13, end_lineno=101, end_col_offset=32), lineno=101, col_offset=4, end_lineno=101, end_col_offset=32), Assign([Name('placeholder_29', Store(), lineno=102, col_offset=4, end_lineno=102, end_col_offset=10)], Call(Name('placeholder_15', Load(), lineno=102, col_offset=13, end_lineno=102, end_col_offset=23), [Name('placeholder_18', Load(), lineno=102, col_offset=24, end_lineno=102, end_col_offset=31)], [], lineno=102, col_offset=13, end_lineno=102, end_col_offset=32), lineno=102, col_offset=4, end_lineno=102, end_col_offset=32), Assign([Name('placeholder_30', Store(), lineno=104, col_offset=4, end_lineno=104, end_col_offset=11)], IfExp(UnaryOp(Not(), Name('placeholder_7', Load(), lineno=105, col_offset=22, end_lineno=105, end_col_offset=29), lineno=105, col_offset=18, end_lineno=105, end_col_offset=29), Call(Name('range', Load(), lineno=104, col_offset=15, end_lineno=104, end_col_offset=20), [Name('placeholder_28', Load(), lineno=104, col_offset=21, end_lineno=104, end_col_offset=27), BinOp(Name('placeholder_29', Load(), lineno=104, col_offset=29, end_lineno=104, end_col_offset=35), Add(), Constant(1, lineno=104, col_offset=38, end_lineno=104, end_col_offset=39), lineno=104, col_offset=29, end_lineno=104, end_col_offset=39)], [], lineno=104, col_offset=15, end_lineno=104, end_col_offset=40), Call(Name('range', Load(), lineno=106, col_offset=20, end_lineno=106, end_col_offset=25), [Name('placeholder_29', Load(), lineno=106, col_offset=26, end_lineno=106, end_col_offset=32), BinOp(Name('placeholder_28', Load(), lineno=106, col_offset=34, end_lineno=106, end_col_offset=40), Sub(), Constant(1, lineno=106, col_offset=43, end_lineno=106, end_col_offset=44), lineno=106, col_offset=34, end_lineno=106, end_col_offset=44), UnaryOp(USub(), Constant(1, lineno=106, col_offset=47, end_lineno=106, end_col_offset=48), lineno=106, col_offset=46, end_lineno=106, end_col_offset=48)], [], lineno=106, col_offset=20, end_lineno=106, end_col_offset=49), lineno=104, col_offset=15, end_lineno=106, end_col_offset=49), lineno=104, col_offset=4, end_lineno=106, end_col_offset=50), Return(Call(Name('chain', Load(), lineno=108, col_offset=11, end_lineno=108, end_col_offset=16), [Starred(Call(Name('map', Load(), lineno=108, col_offset=18, end_lineno=108, end_col_offset=21), [Name('placeholder_19', Load(), lineno=108, col_offset=22, end_lineno=108, end_col_offset=47), Name('placeholder_30', Load(), lineno=108, col_offset=49, end_lineno=108, end_col_offset=56)], [], lineno=108, col_offset=18, end_lineno=108, end_col_offset=57), Load(), lineno=108, col_offset=17, end_lineno=108, end_col_offset=57)], [], lineno=108, col_offset=11, end_lineno=108, end_col_offset=58), lineno=108, col_offset=4, end_lineno=108, end_col_offset=58)], [], lineno=44, col_offset=0, end_lineno=108, end_col_offset=58)], []) \ No newline at end of file diff --git a/test/practice-perfect-numbers/representation.out b/test/practice-perfect-numbers/representation.out index dbb4b88..5014eef 100644 --- a/test/practice-perfect-numbers/representation.out +++ b/test/practice-perfect-numbers/representation.out @@ -5,9 +5,9 @@ import math def placeholder_0(placeholder_1): for placeholder_2 in range(2, int(math.sqrt(placeholder_1)) + 1): if placeholder_1 % placeholder_2 == 0: - yield index + yield placeholder_2 if placeholder_2 * placeholder_2 != placeholder_1: - yield (number // index) + yield (placeholder_1 // placeholder_2) def placeholder_3(placeholder_1): @@ -709,7 +709,7 @@ Module( Expr( Yield( Name( - 'index', + 'placeholder_2', Load(), lineno=12, col_offset=18, @@ -764,7 +764,7 @@ Module( Yield( BinOp( Name( - 'number', + 'placeholder_1', Load(), lineno=14, col_offset=22, @@ -772,7 +772,7 @@ Module( end_col_offset=28), FloorDiv(), Name( - 'index', + 'placeholder_2', Load(), lineno=14, col_offset=32, diff --git a/test/practice-perfect-numbers/representation.txt b/test/practice-perfect-numbers/representation.txt index f65daf1..5356284 100644 --- a/test/practice-perfect-numbers/representation.txt +++ b/test/practice-perfect-numbers/representation.txt @@ -1 +1 @@ -Module([Import([alias('math', lineno=1, col_offset=7, end_lineno=1, end_col_offset=11)], lineno=1, col_offset=0, end_lineno=1, end_col_offset=11), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=3, col_offset=22, end_lineno=3, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_2', Store(), lineno=10, col_offset=8, end_lineno=10, end_col_offset=13), Call(Name('range', Load(), lineno=10, col_offset=17, end_lineno=10, end_col_offset=22), [Constant(2, lineno=10, col_offset=23, end_lineno=10, end_col_offset=24), BinOp(Call(Name('int', Load(), lineno=10, col_offset=26, end_lineno=10, end_col_offset=29), [Call(Attribute(Name('math', Load(), lineno=10, col_offset=30, end_lineno=10, end_col_offset=34), 'sqrt', Load(), lineno=10, col_offset=30, end_lineno=10, end_col_offset=39), [Name('placeholder_1', Load(), lineno=10, col_offset=40, end_lineno=10, end_col_offset=46)], [], lineno=10, col_offset=30, end_lineno=10, end_col_offset=47)], [], lineno=10, col_offset=26, end_lineno=10, end_col_offset=48), Add(), Constant(1, lineno=10, col_offset=51, end_lineno=10, end_col_offset=52), lineno=10, col_offset=26, end_lineno=10, end_col_offset=52)], [], lineno=10, col_offset=17, end_lineno=10, end_col_offset=53), [If(Compare(BinOp(Name('placeholder_1', Load(), lineno=11, col_offset=11, end_lineno=11, end_col_offset=17), Mod(), Name('placeholder_2', Load(), lineno=11, col_offset=20, end_lineno=11, end_col_offset=25), lineno=11, col_offset=11, end_lineno=11, end_col_offset=25), [Eq()], [Constant(0, lineno=11, col_offset=29, end_lineno=11, end_col_offset=30)], lineno=11, col_offset=11, end_lineno=11, end_col_offset=30), [Expr(Yield(Name('index', Load(), lineno=12, col_offset=18, end_lineno=12, end_col_offset=23), lineno=12, col_offset=12, end_lineno=12, end_col_offset=23), lineno=12, col_offset=12, end_lineno=12, end_col_offset=23), If(Compare(BinOp(Name('placeholder_2', Load(), lineno=13, col_offset=15, end_lineno=13, end_col_offset=20), Mult(), Name('placeholder_2', Load(), lineno=13, col_offset=23, end_lineno=13, end_col_offset=28), lineno=13, col_offset=15, end_lineno=13, end_col_offset=28), [NotEq()], [Name('placeholder_1', Load(), lineno=13, col_offset=32, end_lineno=13, end_col_offset=38)], lineno=13, col_offset=15, end_lineno=13, end_col_offset=38), [Expr(Yield(BinOp(Name('number', Load(), lineno=14, col_offset=22, end_lineno=14, end_col_offset=28), FloorDiv(), Name('index', Load(), lineno=14, col_offset=32, end_lineno=14, end_col_offset=37), lineno=14, col_offset=22, end_lineno=14, end_col_offset=37), lineno=14, col_offset=16, end_lineno=14, end_col_offset=37), lineno=14, col_offset=16, end_lineno=14, end_col_offset=37)], [], lineno=13, col_offset=12, end_lineno=14, end_col_offset=37)], [], lineno=11, col_offset=8, end_lineno=14, end_col_offset=37)], [], lineno=10, col_offset=4, end_lineno=14, end_col_offset=37)], [], lineno=3, col_offset=0, end_lineno=14, end_col_offset=37), FunctionDef('placeholder_3', arguments([], [arg('placeholder_1', lineno=17, col_offset=13, end_lineno=17, end_col_offset=19)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Name('placeholder_1', Load(), lineno=24, col_offset=7, end_lineno=24, end_col_offset=13), [LtE()], [Constant(0, lineno=24, col_offset=17, end_lineno=24, end_col_offset=18)], lineno=24, col_offset=7, end_lineno=24, end_col_offset=18), [Raise(Call(Name('ValueError', Load(), lineno=25, col_offset=14, end_lineno=25, end_col_offset=24), [Constant('Classification is only possible for positive integers.', lineno=25, col_offset=25, end_lineno=25, end_col_offset=81)], [], lineno=25, col_offset=14, end_lineno=25, end_col_offset=82), lineno=25, col_offset=8, end_lineno=25, end_col_offset=82)], [], lineno=24, col_offset=4, end_lineno=25, end_col_offset=82), Assign([Name('placeholder_4', Store(), lineno=27, col_offset=4, end_lineno=27, end_col_offset=15)], BinOp(Call(Name('sum', Load(), lineno=27, col_offset=18, end_lineno=27, end_col_offset=21), [Call(Name('placeholder_0', Load(), lineno=27, col_offset=22, end_lineno=27, end_col_offset=39), [Name('placeholder_1', Load(), lineno=27, col_offset=40, end_lineno=27, end_col_offset=46)], [], lineno=27, col_offset=22, end_lineno=27, end_col_offset=47)], [], lineno=27, col_offset=18, end_lineno=27, end_col_offset=48), Add(), IfExp(Compare(Name('placeholder_1', Load(), lineno=27, col_offset=57, end_lineno=27, end_col_offset=63), [Gt()], [Constant(1, lineno=27, col_offset=66, end_lineno=27, end_col_offset=67)], lineno=27, col_offset=57, end_lineno=27, end_col_offset=67), Constant(1, lineno=27, col_offset=52, end_lineno=27, end_col_offset=53), Constant(0, lineno=27, col_offset=73, end_lineno=27, end_col_offset=74), lineno=27, col_offset=52, end_lineno=27, end_col_offset=74), lineno=27, col_offset=18, end_lineno=27, end_col_offset=75), lineno=27, col_offset=4, end_lineno=27, end_col_offset=75), If(Compare(Name('placeholder_4', Load(), lineno=29, col_offset=7, end_lineno=29, end_col_offset=18), [Lt()], [Name('placeholder_1', Load(), lineno=29, col_offset=21, end_lineno=29, end_col_offset=27)], lineno=29, col_offset=7, end_lineno=29, end_col_offset=27), [Return(Constant('deficient', lineno=30, col_offset=15, end_lineno=30, end_col_offset=26), lineno=30, col_offset=8, end_lineno=30, end_col_offset=26)], [If(Compare(Name('placeholder_4', Load(), lineno=31, col_offset=9, end_lineno=31, end_col_offset=20), [Eq()], [Name('placeholder_1', Load(), lineno=31, col_offset=24, end_lineno=31, end_col_offset=30)], lineno=31, col_offset=9, end_lineno=31, end_col_offset=30), [Return(Constant('perfect', lineno=32, col_offset=15, end_lineno=32, end_col_offset=24), lineno=32, col_offset=8, end_lineno=32, end_col_offset=24)], [Return(Constant('abundant', lineno=34, col_offset=15, end_lineno=34, end_col_offset=25), lineno=34, col_offset=8, end_lineno=34, end_col_offset=25)], lineno=31, col_offset=4, end_lineno=34, end_col_offset=25)], lineno=29, col_offset=4, end_lineno=34, end_col_offset=25)], [], lineno=17, col_offset=0, end_lineno=34, end_col_offset=25)], []) \ No newline at end of file +Module([Import([alias('math', lineno=1, col_offset=7, end_lineno=1, end_col_offset=11)], lineno=1, col_offset=0, end_lineno=1, end_col_offset=11), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=3, col_offset=22, end_lineno=3, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_2', Store(), lineno=10, col_offset=8, end_lineno=10, end_col_offset=13), Call(Name('range', Load(), lineno=10, col_offset=17, end_lineno=10, end_col_offset=22), [Constant(2, lineno=10, col_offset=23, end_lineno=10, end_col_offset=24), BinOp(Call(Name('int', Load(), lineno=10, col_offset=26, end_lineno=10, end_col_offset=29), [Call(Attribute(Name('math', Load(), lineno=10, col_offset=30, end_lineno=10, end_col_offset=34), 'sqrt', Load(), lineno=10, col_offset=30, end_lineno=10, end_col_offset=39), [Name('placeholder_1', Load(), lineno=10, col_offset=40, end_lineno=10, end_col_offset=46)], [], lineno=10, col_offset=30, end_lineno=10, end_col_offset=47)], [], lineno=10, col_offset=26, end_lineno=10, end_col_offset=48), Add(), Constant(1, lineno=10, col_offset=51, end_lineno=10, end_col_offset=52), lineno=10, col_offset=26, end_lineno=10, end_col_offset=52)], [], lineno=10, col_offset=17, end_lineno=10, end_col_offset=53), [If(Compare(BinOp(Name('placeholder_1', Load(), lineno=11, col_offset=11, end_lineno=11, end_col_offset=17), Mod(), Name('placeholder_2', Load(), lineno=11, col_offset=20, end_lineno=11, end_col_offset=25), lineno=11, col_offset=11, end_lineno=11, end_col_offset=25), [Eq()], [Constant(0, lineno=11, col_offset=29, end_lineno=11, end_col_offset=30)], lineno=11, col_offset=11, end_lineno=11, end_col_offset=30), [Expr(Yield(Name('placeholder_2', Load(), lineno=12, col_offset=18, end_lineno=12, end_col_offset=23), lineno=12, col_offset=12, end_lineno=12, end_col_offset=23), lineno=12, col_offset=12, end_lineno=12, end_col_offset=23), If(Compare(BinOp(Name('placeholder_2', Load(), lineno=13, col_offset=15, end_lineno=13, end_col_offset=20), Mult(), Name('placeholder_2', Load(), lineno=13, col_offset=23, end_lineno=13, end_col_offset=28), lineno=13, col_offset=15, end_lineno=13, end_col_offset=28), [NotEq()], [Name('placeholder_1', Load(), lineno=13, col_offset=32, end_lineno=13, end_col_offset=38)], lineno=13, col_offset=15, end_lineno=13, end_col_offset=38), [Expr(Yield(BinOp(Name('placeholder_1', Load(), lineno=14, col_offset=22, end_lineno=14, end_col_offset=28), FloorDiv(), Name('placeholder_2', Load(), lineno=14, col_offset=32, end_lineno=14, end_col_offset=37), lineno=14, col_offset=22, end_lineno=14, end_col_offset=37), lineno=14, col_offset=16, end_lineno=14, end_col_offset=37), lineno=14, col_offset=16, end_lineno=14, end_col_offset=37)], [], lineno=13, col_offset=12, end_lineno=14, end_col_offset=37)], [], lineno=11, col_offset=8, end_lineno=14, end_col_offset=37)], [], lineno=10, col_offset=4, end_lineno=14, end_col_offset=37)], [], lineno=3, col_offset=0, end_lineno=14, end_col_offset=37), FunctionDef('placeholder_3', arguments([], [arg('placeholder_1', lineno=17, col_offset=13, end_lineno=17, end_col_offset=19)], kwonlyargs=[], kw_defaults=[], defaults=[]), [If(Compare(Name('placeholder_1', Load(), lineno=24, col_offset=7, end_lineno=24, end_col_offset=13), [LtE()], [Constant(0, lineno=24, col_offset=17, end_lineno=24, end_col_offset=18)], lineno=24, col_offset=7, end_lineno=24, end_col_offset=18), [Raise(Call(Name('ValueError', Load(), lineno=25, col_offset=14, end_lineno=25, end_col_offset=24), [Constant('Classification is only possible for positive integers.', lineno=25, col_offset=25, end_lineno=25, end_col_offset=81)], [], lineno=25, col_offset=14, end_lineno=25, end_col_offset=82), lineno=25, col_offset=8, end_lineno=25, end_col_offset=82)], [], lineno=24, col_offset=4, end_lineno=25, end_col_offset=82), Assign([Name('placeholder_4', Store(), lineno=27, col_offset=4, end_lineno=27, end_col_offset=15)], BinOp(Call(Name('sum', Load(), lineno=27, col_offset=18, end_lineno=27, end_col_offset=21), [Call(Name('placeholder_0', Load(), lineno=27, col_offset=22, end_lineno=27, end_col_offset=39), [Name('placeholder_1', Load(), lineno=27, col_offset=40, end_lineno=27, end_col_offset=46)], [], lineno=27, col_offset=22, end_lineno=27, end_col_offset=47)], [], lineno=27, col_offset=18, end_lineno=27, end_col_offset=48), Add(), IfExp(Compare(Name('placeholder_1', Load(), lineno=27, col_offset=57, end_lineno=27, end_col_offset=63), [Gt()], [Constant(1, lineno=27, col_offset=66, end_lineno=27, end_col_offset=67)], lineno=27, col_offset=57, end_lineno=27, end_col_offset=67), Constant(1, lineno=27, col_offset=52, end_lineno=27, end_col_offset=53), Constant(0, lineno=27, col_offset=73, end_lineno=27, end_col_offset=74), lineno=27, col_offset=52, end_lineno=27, end_col_offset=74), lineno=27, col_offset=18, end_lineno=27, end_col_offset=75), lineno=27, col_offset=4, end_lineno=27, end_col_offset=75), If(Compare(Name('placeholder_4', Load(), lineno=29, col_offset=7, end_lineno=29, end_col_offset=18), [Lt()], [Name('placeholder_1', Load(), lineno=29, col_offset=21, end_lineno=29, end_col_offset=27)], lineno=29, col_offset=7, end_lineno=29, end_col_offset=27), [Return(Constant('deficient', lineno=30, col_offset=15, end_lineno=30, end_col_offset=26), lineno=30, col_offset=8, end_lineno=30, end_col_offset=26)], [If(Compare(Name('placeholder_4', Load(), lineno=31, col_offset=9, end_lineno=31, end_col_offset=20), [Eq()], [Name('placeholder_1', Load(), lineno=31, col_offset=24, end_lineno=31, end_col_offset=30)], lineno=31, col_offset=9, end_lineno=31, end_col_offset=30), [Return(Constant('perfect', lineno=32, col_offset=15, end_lineno=32, end_col_offset=24), lineno=32, col_offset=8, end_lineno=32, end_col_offset=24)], [Return(Constant('abundant', lineno=34, col_offset=15, end_lineno=34, end_col_offset=25), lineno=34, col_offset=8, end_lineno=34, end_col_offset=25)], lineno=31, col_offset=4, end_lineno=34, end_col_offset=25)], lineno=29, col_offset=4, end_lineno=34, end_col_offset=25)], [], lineno=17, col_offset=0, end_lineno=34, end_col_offset=25)], []) \ No newline at end of file diff --git a/test/practice-pov/representation.out b/test/practice-pov/representation.out index 67e4060..0b44fdb 100644 --- a/test/practice-pov/representation.out +++ b/test/practice-pov/representation.out @@ -25,10 +25,10 @@ class placeholder_0: return self.placeholder_4() == placeholder_9.placeholder_4() def placeholder_11(self): - yield self.label + yield self.placeholder_2 for placeholder_12 in self.placeholder_3: for placeholder_13 in placeholder_12: - yield grandchild + yield placeholder_13 def placeholder_14(self): return placeholder_0( @@ -2452,7 +2452,7 @@ Module( col_offset=14, end_lineno=22, end_col_offset=18), - 'label', + 'placeholder_2', Load(), lineno=22, col_offset=14, @@ -2508,7 +2508,7 @@ Module( Expr( Yield( Name( - 'grandchild', + 'placeholder_13', Load(), lineno=25, col_offset=22, diff --git a/test/practice-pov/representation.txt b/test/practice-pov/representation.txt index 075a2e2..0024dcc 100644 --- a/test/practice-pov/representation.txt +++ b/test/practice-pov/representation.txt @@ -1 +1 @@ -Module([ImportFrom('json', [alias('dumps', lineno=1, col_offset=17, end_lineno=1, end_col_offset=22)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=22), ClassDef('placeholder_0', [], [], [FunctionDef('placeholder_1', arguments([], [arg('self', lineno=5, col_offset=17, end_lineno=5, end_col_offset=21), arg('placeholder_2', lineno=5, col_offset=23, end_lineno=5, end_col_offset=28), arg('placeholder_3', lineno=5, col_offset=30, end_lineno=5, end_col_offset=38)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(None, lineno=5, col_offset=39, end_lineno=5, end_col_offset=43)]), [Assign([Attribute(Name('self', Load(), lineno=6, col_offset=8, end_lineno=6, end_col_offset=12), 'placeholder_2', Store(), lineno=6, col_offset=8, end_lineno=6, end_col_offset=18)], Name('placeholder_2', Load(), lineno=6, col_offset=21, end_lineno=6, end_col_offset=26), lineno=6, col_offset=8, end_lineno=6, end_col_offset=26), Assign([Attribute(Name('self', Load(), lineno=7, col_offset=8, end_lineno=7, end_col_offset=12), 'placeholder_3', Store(), lineno=7, col_offset=8, end_lineno=7, end_col_offset=21)], IfExp(Compare(Name('placeholder_3', Load(), lineno=7, col_offset=36, end_lineno=7, end_col_offset=44), [IsNot()], [Constant(None, lineno=7, col_offset=52, end_lineno=7, end_col_offset=56)], lineno=7, col_offset=36, end_lineno=7, end_col_offset=56), Name('placeholder_3', Load(), lineno=7, col_offset=24, end_lineno=7, end_col_offset=32), List([], Load(), lineno=7, col_offset=62, end_lineno=7, end_col_offset=64), lineno=7, col_offset=24, end_lineno=7, end_col_offset=64), lineno=7, col_offset=8, end_lineno=7, end_col_offset=64)], [], lineno=5, col_offset=4, end_lineno=7, end_col_offset=64), FunctionDef('placeholder_4', arguments([], [arg('self', lineno=9, col_offset=17, end_lineno=9, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Dict([Attribute(Name('self', Load(), lineno=10, col_offset=16, end_lineno=10, end_col_offset=20), 'placeholder_2', Load(), lineno=10, col_offset=16, end_lineno=10, end_col_offset=26)], [ListComp(Call(Attribute(Name('placeholder_5', Load(), lineno=10, col_offset=29, end_lineno=10, end_col_offset=35), 'placeholder_4', Load(), lineno=10, col_offset=29, end_lineno=10, end_col_offset=44), [], [], lineno=10, col_offset=29, end_lineno=10, end_col_offset=46), [comprehension(Name('placeholder_5', Store(), lineno=10, col_offset=51, end_lineno=10, end_col_offset=57), Call(Name('sorted', Load(), lineno=10, col_offset=61, end_lineno=10, end_col_offset=67), [Attribute(Name('self', Load(), lineno=10, col_offset=68, end_lineno=10, end_col_offset=72), 'placeholder_3', Load(), lineno=10, col_offset=68, end_lineno=10, end_col_offset=81)], [], lineno=10, col_offset=61, end_lineno=10, end_col_offset=82), [], 0)], lineno=10, col_offset=28, end_lineno=10, end_col_offset=83)], lineno=10, col_offset=15, end_lineno=10, end_col_offset=84), lineno=10, col_offset=8, end_lineno=10, end_col_offset=84)], [], lineno=9, col_offset=4, end_lineno=10, end_col_offset=84), FunctionDef('placeholder_6', arguments([], [arg('self', lineno=12, col_offset=16, end_lineno=12, end_col_offset=20), arg('placeholder_7', lineno=12, col_offset=22, end_lineno=12, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(None, lineno=12, col_offset=29, end_lineno=12, end_col_offset=33)]), [Return(Call(Name('dumps', Load(), lineno=13, col_offset=15, end_lineno=13, end_col_offset=20), [Call(Attribute(Name('self', Load(), lineno=13, col_offset=21, end_lineno=13, end_col_offset=25), 'placeholder_4', Load(), lineno=13, col_offset=21, end_lineno=13, end_col_offset=34), [], [], lineno=13, col_offset=21, end_lineno=13, end_col_offset=36)], [keyword('placeholder_7', Name('placeholder_7', Load(), lineno=13, col_offset=45, end_lineno=13, end_col_offset=51), lineno=13, col_offset=38, end_lineno=13, end_col_offset=51)], lineno=13, col_offset=15, end_lineno=13, end_col_offset=52), lineno=13, col_offset=8, end_lineno=13, end_col_offset=52)], [], lineno=12, col_offset=4, end_lineno=13, end_col_offset=52), FunctionDef('placeholder_8', arguments([], [arg('self', lineno=15, col_offset=15, end_lineno=15, end_col_offset=19), arg('placeholder_9', lineno=15, col_offset=21, end_lineno=15, end_col_offset=26)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Compare(Attribute(Name('self', Load(), lineno=16, col_offset=15, end_lineno=16, end_col_offset=19), 'placeholder_2', Load(), lineno=16, col_offset=15, end_lineno=16, end_col_offset=25), [Lt()], [Attribute(Name('placeholder_9', Load(), lineno=16, col_offset=28, end_lineno=16, end_col_offset=33), 'placeholder_2', Load(), lineno=16, col_offset=28, end_lineno=16, end_col_offset=39)], lineno=16, col_offset=15, end_lineno=16, end_col_offset=39), lineno=16, col_offset=8, end_lineno=16, end_col_offset=39)], [], lineno=15, col_offset=4, end_lineno=16, end_col_offset=39), FunctionDef('placeholder_10', arguments([], [arg('self', lineno=18, col_offset=15, end_lineno=18, end_col_offset=19), arg('placeholder_9', lineno=18, col_offset=21, end_lineno=18, end_col_offset=26)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Compare(Call(Attribute(Name('self', Load(), lineno=19, col_offset=15, end_lineno=19, end_col_offset=19), 'placeholder_4', Load(), lineno=19, col_offset=15, end_lineno=19, end_col_offset=28), [], [], lineno=19, col_offset=15, end_lineno=19, end_col_offset=30), [Eq()], [Call(Attribute(Name('placeholder_9', Load(), lineno=19, col_offset=34, end_lineno=19, end_col_offset=39), 'placeholder_4', Load(), lineno=19, col_offset=34, end_lineno=19, end_col_offset=48), [], [], lineno=19, col_offset=34, end_lineno=19, end_col_offset=50)], lineno=19, col_offset=15, end_lineno=19, end_col_offset=50), lineno=19, col_offset=8, end_lineno=19, end_col_offset=50)], [], lineno=18, col_offset=4, end_lineno=19, end_col_offset=50), FunctionDef('placeholder_11', arguments([], [arg('self', lineno=21, col_offset=17, end_lineno=21, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Expr(Yield(Attribute(Name('self', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=18), 'label', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=24), lineno=22, col_offset=8, end_lineno=22, end_col_offset=24), lineno=22, col_offset=8, end_lineno=22, end_col_offset=24), For(Name('placeholder_12', Store(), lineno=23, col_offset=12, end_lineno=23, end_col_offset=17), Attribute(Name('self', Load(), lineno=23, col_offset=21, end_lineno=23, end_col_offset=25), 'placeholder_3', Load(), lineno=23, col_offset=21, end_lineno=23, end_col_offset=34), [For(Name('placeholder_13', Store(), lineno=24, col_offset=16, end_lineno=24, end_col_offset=26), Name('placeholder_12', Load(), lineno=24, col_offset=30, end_lineno=24, end_col_offset=35), [Expr(Yield(Name('grandchild', Load(), lineno=25, col_offset=22, end_lineno=25, end_col_offset=32), lineno=25, col_offset=16, end_lineno=25, end_col_offset=32), lineno=25, col_offset=16, end_lineno=25, end_col_offset=32)], [], lineno=24, col_offset=12, end_lineno=25, end_col_offset=32)], [], lineno=23, col_offset=8, end_lineno=25, end_col_offset=32)], [], lineno=21, col_offset=4, end_lineno=25, end_col_offset=32), FunctionDef('placeholder_14', arguments([], [arg('self', lineno=27, col_offset=12, end_lineno=27, end_col_offset=16)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('placeholder_0', Load(), lineno=28, col_offset=15, end_lineno=28, end_col_offset=19), [Attribute(Name('self', Load(), lineno=28, col_offset=20, end_lineno=28, end_col_offset=24), 'placeholder_2', Load(), lineno=28, col_offset=20, end_lineno=28, end_col_offset=30), ListComp(Call(Attribute(Name('placeholder_5', Load(), lineno=28, col_offset=33, end_lineno=28, end_col_offset=39), 'placeholder_14', Load(), lineno=28, col_offset=33, end_lineno=28, end_col_offset=43), [], [], lineno=28, col_offset=33, end_lineno=28, end_col_offset=45), [comprehension(Name('placeholder_5', Store(), lineno=28, col_offset=50, end_lineno=28, end_col_offset=56), Attribute(Name('self', Load(), lineno=28, col_offset=60, end_lineno=28, end_col_offset=64), 'placeholder_3', Load(), lineno=28, col_offset=60, end_lineno=28, end_col_offset=73), [], 0)], lineno=28, col_offset=32, end_lineno=28, end_col_offset=74)], [], lineno=28, col_offset=15, end_lineno=28, end_col_offset=75), lineno=28, col_offset=8, end_lineno=28, end_col_offset=75)], [], lineno=27, col_offset=4, end_lineno=28, end_col_offset=75), FunctionDef('placeholder_15', arguments([], [arg('self', lineno=30, col_offset=12, end_lineno=30, end_col_offset=16), arg('placeholder_9', lineno=30, col_offset=18, end_lineno=30, end_col_offset=23)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_16', Store(), lineno=31, col_offset=8, end_lineno=31, end_col_offset=12)], Call(Attribute(Name('self', Load(), lineno=31, col_offset=15, end_lineno=31, end_col_offset=19), 'placeholder_14', Load(), lineno=31, col_offset=15, end_lineno=31, end_col_offset=23), [], [], lineno=31, col_offset=15, end_lineno=31, end_col_offset=25), lineno=31, col_offset=8, end_lineno=31, end_col_offset=25), Expr(Call(Attribute(Attribute(Name('placeholder_16', Load(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=12), 'placeholder_3', Load(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=21), 'append', Load(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=28), [Name('placeholder_9', Load(), lineno=32, col_offset=29, end_lineno=32, end_col_offset=34)], [], lineno=32, col_offset=8, end_lineno=32, end_col_offset=35), lineno=32, col_offset=8, end_lineno=32, end_col_offset=35), Return(Name('placeholder_16', Load(), lineno=33, col_offset=15, end_lineno=33, end_col_offset=19), lineno=33, col_offset=8, end_lineno=33, end_col_offset=19)], [], lineno=30, col_offset=4, end_lineno=33, end_col_offset=19), FunctionDef('placeholder_17', arguments([], [arg('self', lineno=35, col_offset=15, end_lineno=35, end_col_offset=19), arg('placeholder_18', lineno=35, col_offset=21, end_lineno=35, end_col_offset=25)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_16', Store(), lineno=36, col_offset=8, end_lineno=36, end_col_offset=12)], Call(Attribute(Name('self', Load(), lineno=36, col_offset=15, end_lineno=36, end_col_offset=19), 'placeholder_14', Load(), lineno=36, col_offset=15, end_lineno=36, end_col_offset=23), [], [], lineno=36, col_offset=15, end_lineno=36, end_col_offset=25), lineno=36, col_offset=8, end_lineno=36, end_col_offset=25), For(Name('placeholder_12', Store(), lineno=37, col_offset=12, end_lineno=37, end_col_offset=17), Call(Name('list', Load(), lineno=37, col_offset=21, end_lineno=37, end_col_offset=25), [Attribute(Name('placeholder_16', Load(), lineno=37, col_offset=26, end_lineno=37, end_col_offset=30), 'placeholder_3', Load(), lineno=37, col_offset=26, end_lineno=37, end_col_offset=39)], [], lineno=37, col_offset=21, end_lineno=37, end_col_offset=40), [Expr(Call(Attribute(Attribute(Name('placeholder_16', Load(), lineno=38, col_offset=12, end_lineno=38, end_col_offset=16), 'placeholder_3', Load(), lineno=38, col_offset=12, end_lineno=38, end_col_offset=25), 'placeholder_17', Load(), lineno=38, col_offset=12, end_lineno=38, end_col_offset=32), [Name('placeholder_12', Load(), lineno=38, col_offset=33, end_lineno=38, end_col_offset=38)], [], lineno=38, col_offset=12, end_lineno=38, end_col_offset=39), lineno=38, col_offset=12, end_lineno=38, end_col_offset=39), If(Compare(Attribute(Name('placeholder_12', Load(), lineno=39, col_offset=15, end_lineno=39, end_col_offset=20), 'placeholder_2', Load(), lineno=39, col_offset=15, end_lineno=39, end_col_offset=26), [Eq()], [Name('placeholder_18', Load(), lineno=39, col_offset=30, end_lineno=39, end_col_offset=34)], lineno=39, col_offset=15, end_lineno=39, end_col_offset=34), [Break(lineno=40, col_offset=16, end_lineno=40, end_col_offset=21)], [], lineno=39, col_offset=12, end_lineno=40, end_col_offset=21), Expr(Call(Attribute(Attribute(Name('placeholder_16', Load(), lineno=41, col_offset=12, end_lineno=41, end_col_offset=16), 'placeholder_3', Load(), lineno=41, col_offset=12, end_lineno=41, end_col_offset=25), 'append', Load(), lineno=41, col_offset=12, end_lineno=41, end_col_offset=32), [Call(Attribute(Name('placeholder_12', Load(), lineno=41, col_offset=33, end_lineno=41, end_col_offset=38), 'placeholder_17', Load(), lineno=41, col_offset=33, end_lineno=41, end_col_offset=45), [Name('placeholder_18', Load(), lineno=41, col_offset=46, end_lineno=41, end_col_offset=50)], [], lineno=41, col_offset=33, end_lineno=41, end_col_offset=51)], [], lineno=41, col_offset=12, end_lineno=41, end_col_offset=52), lineno=41, col_offset=12, end_lineno=41, end_col_offset=52)], [], lineno=37, col_offset=8, end_lineno=41, end_col_offset=52), Return(Name('placeholder_16', Load(), lineno=42, col_offset=15, end_lineno=42, end_col_offset=19), lineno=42, col_offset=8, end_lineno=42, end_col_offset=19)], [], lineno=35, col_offset=4, end_lineno=42, end_col_offset=19), FunctionDef('placeholder_19', arguments([], [arg('self', lineno=44, col_offset=17, end_lineno=44, end_col_offset=21), arg('placeholder_20', lineno=44, col_offset=23, end_lineno=44, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_21', Store(), lineno=45, col_offset=8, end_lineno=45, end_col_offset=13)], List([Name('self', Load(), lineno=45, col_offset=17, end_lineno=45, end_col_offset=21)], Load(), lineno=45, col_offset=16, end_lineno=45, end_col_offset=22), lineno=45, col_offset=8, end_lineno=45, end_col_offset=22), Assign([Name('placeholder_22', Store(), lineno=46, col_offset=8, end_lineno=46, end_col_offset=15)], Call(Name('set', Load(), lineno=46, col_offset=18, end_lineno=46, end_col_offset=21), [], [], lineno=46, col_offset=18, end_lineno=46, end_col_offset=23), lineno=46, col_offset=8, end_lineno=46, end_col_offset=23), While(Name('placeholder_21', Load(), lineno=48, col_offset=14, end_lineno=48, end_col_offset=19), [Assign([Name('placeholder_16', Store(), lineno=49, col_offset=12, end_lineno=49, end_col_offset=16)], Call(Attribute(Name('placeholder_21', Load(), lineno=49, col_offset=19, end_lineno=49, end_col_offset=24), 'pop', Load(), lineno=49, col_offset=19, end_lineno=49, end_col_offset=28), [Constant(0, lineno=49, col_offset=29, end_lineno=49, end_col_offset=30)], [], lineno=49, col_offset=19, end_lineno=49, end_col_offset=31), lineno=49, col_offset=12, end_lineno=49, end_col_offset=31), If(Compare(Attribute(Name('placeholder_16', Load(), lineno=50, col_offset=15, end_lineno=50, end_col_offset=19), 'placeholder_2', Load(), lineno=50, col_offset=15, end_lineno=50, end_col_offset=25), [In()], [Name('placeholder_22', Load(), lineno=50, col_offset=29, end_lineno=50, end_col_offset=36)], lineno=50, col_offset=15, end_lineno=50, end_col_offset=36), [Continue(lineno=51, col_offset=16, end_lineno=51, end_col_offset=24)], [], lineno=50, col_offset=12, end_lineno=51, end_col_offset=24), Expr(Call(Attribute(Name('placeholder_22', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=19), 'placeholder_15', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=23), [Attribute(Name('placeholder_16', Load(), lineno=53, col_offset=24, end_lineno=53, end_col_offset=28), 'placeholder_2', Load(), lineno=53, col_offset=24, end_lineno=53, end_col_offset=34)], [], lineno=53, col_offset=12, end_lineno=53, end_col_offset=35), lineno=53, col_offset=12, end_lineno=53, end_col_offset=35), If(Compare(Name('placeholder_20', Load(), lineno=54, col_offset=15, end_lineno=54, end_col_offset=24), [Eq()], [Attribute(Name('placeholder_16', Load(), lineno=54, col_offset=28, end_lineno=54, end_col_offset=32), 'placeholder_2', Load(), lineno=54, col_offset=28, end_lineno=54, end_col_offset=38)], lineno=54, col_offset=15, end_lineno=54, end_col_offset=38), [Return(Name('placeholder_16', Load(), lineno=55, col_offset=23, end_lineno=55, end_col_offset=27), lineno=55, col_offset=16, end_lineno=55, end_col_offset=27)], [], lineno=54, col_offset=12, end_lineno=55, end_col_offset=27), For(Name('placeholder_12', Store(), lineno=57, col_offset=16, end_lineno=57, end_col_offset=21), Attribute(Name('placeholder_16', Load(), lineno=57, col_offset=25, end_lineno=57, end_col_offset=29), 'placeholder_3', Load(), lineno=57, col_offset=25, end_lineno=57, end_col_offset=38), [Expr(Call(Attribute(Name('placeholder_21', Load(), lineno=58, col_offset=16, end_lineno=58, end_col_offset=21), 'append', Load(), lineno=58, col_offset=16, end_lineno=58, end_col_offset=28), [Call(Attribute(Name('placeholder_12', Load(), lineno=58, col_offset=29, end_lineno=58, end_col_offset=34), 'placeholder_15', Load(), lineno=58, col_offset=29, end_lineno=58, end_col_offset=38), [Call(Attribute(Name('placeholder_16', Load(), lineno=58, col_offset=39, end_lineno=58, end_col_offset=43), 'placeholder_17', Load(), lineno=58, col_offset=39, end_lineno=58, end_col_offset=50), [Attribute(Name('placeholder_12', Load(), lineno=58, col_offset=51, end_lineno=58, end_col_offset=56), 'placeholder_2', Load(), lineno=58, col_offset=51, end_lineno=58, end_col_offset=62)], [], lineno=58, col_offset=39, end_lineno=58, end_col_offset=63)], [], lineno=58, col_offset=29, end_lineno=58, end_col_offset=64)], [], lineno=58, col_offset=16, end_lineno=58, end_col_offset=65), lineno=58, col_offset=16, end_lineno=58, end_col_offset=65)], [], lineno=57, col_offset=12, end_lineno=58, end_col_offset=65)], [], lineno=48, col_offset=8, end_lineno=58, end_col_offset=65), Raise(Call(Name('ValueError', Load(), lineno=60, col_offset=14, end_lineno=60, end_col_offset=24), [Constant('Tree could not be reoriented', lineno=60, col_offset=25, end_lineno=60, end_col_offset=55)], [], lineno=60, col_offset=14, end_lineno=60, end_col_offset=56), lineno=60, col_offset=8, end_lineno=60, end_col_offset=56)], [], lineno=44, col_offset=4, end_lineno=60, end_col_offset=56), FunctionDef('placeholder_23', arguments([], [arg('self', lineno=64, col_offset=16, end_lineno=64, end_col_offset=20), arg('placeholder_20', lineno=64, col_offset=22, end_lineno=64, end_col_offset=31), arg('placeholder_24', lineno=64, col_offset=33, end_lineno=64, end_col_offset=40)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_25', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=17)], Call(Attribute(Name('self', Load(), lineno=65, col_offset=20, end_lineno=65, end_col_offset=24), 'placeholder_19', Load(), lineno=65, col_offset=20, end_lineno=65, end_col_offset=33), [Name('placeholder_20', Load(), lineno=65, col_offset=34, end_lineno=65, end_col_offset=43)], [], lineno=65, col_offset=20, end_lineno=65, end_col_offset=44), lineno=65, col_offset=8, end_lineno=65, end_col_offset=44), Assign([Name('placeholder_21', Store(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=13)], Attribute(Name('placeholder_25', Load(), lineno=66, col_offset=16, end_lineno=66, end_col_offset=25), 'placeholder_3', Load(), lineno=66, col_offset=16, end_lineno=66, end_col_offset=34), lineno=66, col_offset=8, end_lineno=66, end_col_offset=34), Assign([Name('placeholder_26', Store(), lineno=67, col_offset=8, end_lineno=67, end_col_offset=12)], List([Name('placeholder_20', Load(), lineno=67, col_offset=16, end_lineno=67, end_col_offset=25)], Load(), lineno=67, col_offset=15, end_lineno=67, end_col_offset=26), lineno=67, col_offset=8, end_lineno=67, end_col_offset=26), While(Compare(Subscript(Name('placeholder_26', Load(), lineno=69, col_offset=14, end_lineno=69, end_col_offset=18), UnaryOp(USub(), Constant(1, lineno=69, col_offset=20, end_lineno=69, end_col_offset=21), lineno=69, col_offset=19, end_lineno=69, end_col_offset=21), Load(), lineno=69, col_offset=14, end_lineno=69, end_col_offset=22), [NotEq()], [Name('placeholder_24', Load(), lineno=69, col_offset=26, end_lineno=69, end_col_offset=33)], lineno=69, col_offset=14, end_lineno=69, end_col_offset=33), [Try([Assign([Name('placeholder_16', Store(), lineno=71, col_offset=16, end_lineno=71, end_col_offset=20)], Call(Attribute(Name('placeholder_21', Load(), lineno=71, col_offset=23, end_lineno=71, end_col_offset=28), 'pop', Load(), lineno=71, col_offset=23, end_lineno=71, end_col_offset=32), [], [], lineno=71, col_offset=23, end_lineno=71, end_col_offset=34), lineno=71, col_offset=16, end_lineno=71, end_col_offset=34)], [ExceptHandler(Name('IndexError', Load(), lineno=72, col_offset=19, end_lineno=72, end_col_offset=29), 'placeholder_27', [Raise(Call(Name('ValueError', Load(), lineno=73, col_offset=22, end_lineno=73, end_col_offset=32), [Constant('No path found', lineno=73, col_offset=33, end_lineno=73, end_col_offset=48)], [], lineno=73, col_offset=22, end_lineno=73, end_col_offset=49), Name('placeholder_27', Load(), lineno=73, col_offset=55, end_lineno=73, end_col_offset=60), lineno=73, col_offset=16, end_lineno=73, end_col_offset=60)], lineno=72, col_offset=12, end_lineno=73, end_col_offset=60)], [], [], lineno=70, col_offset=12, end_lineno=73, end_col_offset=60), If(Compare(Name('placeholder_24', Load(), lineno=74, col_offset=15, end_lineno=74, end_col_offset=22), [In()], [Name('placeholder_16', Load(), lineno=74, col_offset=26, end_lineno=74, end_col_offset=30)], lineno=74, col_offset=15, end_lineno=74, end_col_offset=30), [Expr(Call(Attribute(Name('placeholder_26', Load(), lineno=75, col_offset=16, end_lineno=75, end_col_offset=20), 'append', Load(), lineno=75, col_offset=16, end_lineno=75, end_col_offset=27), [Attribute(Name('placeholder_16', Load(), lineno=75, col_offset=28, end_lineno=75, end_col_offset=32), 'placeholder_2', Load(), lineno=75, col_offset=28, end_lineno=75, end_col_offset=38)], [], lineno=75, col_offset=16, end_lineno=75, end_col_offset=39), lineno=75, col_offset=16, end_lineno=75, end_col_offset=39), Assign([Name('placeholder_21', Store(), lineno=76, col_offset=16, end_lineno=76, end_col_offset=21)], Attribute(Name('placeholder_16', Load(), lineno=76, col_offset=24, end_lineno=76, end_col_offset=28), 'placeholder_3', Load(), lineno=76, col_offset=24, end_lineno=76, end_col_offset=37), lineno=76, col_offset=16, end_lineno=76, end_col_offset=37)], [], lineno=74, col_offset=12, end_lineno=76, end_col_offset=37)], [], lineno=69, col_offset=8, end_lineno=76, end_col_offset=37), Return(Name('placeholder_26', Load(), lineno=77, col_offset=15, end_lineno=77, end_col_offset=19), lineno=77, col_offset=8, end_lineno=77, end_col_offset=19)], [], lineno=64, col_offset=4, end_lineno=77, end_col_offset=19)], [], lineno=4, col_offset=0, end_lineno=77, end_col_offset=19)], []) \ No newline at end of file +Module([ImportFrom('json', [alias('dumps', lineno=1, col_offset=17, end_lineno=1, end_col_offset=22)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=22), ClassDef('placeholder_0', [], [], [FunctionDef('placeholder_1', arguments([], [arg('self', lineno=5, col_offset=17, end_lineno=5, end_col_offset=21), arg('placeholder_2', lineno=5, col_offset=23, end_lineno=5, end_col_offset=28), arg('placeholder_3', lineno=5, col_offset=30, end_lineno=5, end_col_offset=38)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(None, lineno=5, col_offset=39, end_lineno=5, end_col_offset=43)]), [Assign([Attribute(Name('self', Load(), lineno=6, col_offset=8, end_lineno=6, end_col_offset=12), 'placeholder_2', Store(), lineno=6, col_offset=8, end_lineno=6, end_col_offset=18)], Name('placeholder_2', Load(), lineno=6, col_offset=21, end_lineno=6, end_col_offset=26), lineno=6, col_offset=8, end_lineno=6, end_col_offset=26), Assign([Attribute(Name('self', Load(), lineno=7, col_offset=8, end_lineno=7, end_col_offset=12), 'placeholder_3', Store(), lineno=7, col_offset=8, end_lineno=7, end_col_offset=21)], IfExp(Compare(Name('placeholder_3', Load(), lineno=7, col_offset=36, end_lineno=7, end_col_offset=44), [IsNot()], [Constant(None, lineno=7, col_offset=52, end_lineno=7, end_col_offset=56)], lineno=7, col_offset=36, end_lineno=7, end_col_offset=56), Name('placeholder_3', Load(), lineno=7, col_offset=24, end_lineno=7, end_col_offset=32), List([], Load(), lineno=7, col_offset=62, end_lineno=7, end_col_offset=64), lineno=7, col_offset=24, end_lineno=7, end_col_offset=64), lineno=7, col_offset=8, end_lineno=7, end_col_offset=64)], [], lineno=5, col_offset=4, end_lineno=7, end_col_offset=64), FunctionDef('placeholder_4', arguments([], [arg('self', lineno=9, col_offset=17, end_lineno=9, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Dict([Attribute(Name('self', Load(), lineno=10, col_offset=16, end_lineno=10, end_col_offset=20), 'placeholder_2', Load(), lineno=10, col_offset=16, end_lineno=10, end_col_offset=26)], [ListComp(Call(Attribute(Name('placeholder_5', Load(), lineno=10, col_offset=29, end_lineno=10, end_col_offset=35), 'placeholder_4', Load(), lineno=10, col_offset=29, end_lineno=10, end_col_offset=44), [], [], lineno=10, col_offset=29, end_lineno=10, end_col_offset=46), [comprehension(Name('placeholder_5', Store(), lineno=10, col_offset=51, end_lineno=10, end_col_offset=57), Call(Name('sorted', Load(), lineno=10, col_offset=61, end_lineno=10, end_col_offset=67), [Attribute(Name('self', Load(), lineno=10, col_offset=68, end_lineno=10, end_col_offset=72), 'placeholder_3', Load(), lineno=10, col_offset=68, end_lineno=10, end_col_offset=81)], [], lineno=10, col_offset=61, end_lineno=10, end_col_offset=82), [], 0)], lineno=10, col_offset=28, end_lineno=10, end_col_offset=83)], lineno=10, col_offset=15, end_lineno=10, end_col_offset=84), lineno=10, col_offset=8, end_lineno=10, end_col_offset=84)], [], lineno=9, col_offset=4, end_lineno=10, end_col_offset=84), FunctionDef('placeholder_6', arguments([], [arg('self', lineno=12, col_offset=16, end_lineno=12, end_col_offset=20), arg('placeholder_7', lineno=12, col_offset=22, end_lineno=12, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[Constant(None, lineno=12, col_offset=29, end_lineno=12, end_col_offset=33)]), [Return(Call(Name('dumps', Load(), lineno=13, col_offset=15, end_lineno=13, end_col_offset=20), [Call(Attribute(Name('self', Load(), lineno=13, col_offset=21, end_lineno=13, end_col_offset=25), 'placeholder_4', Load(), lineno=13, col_offset=21, end_lineno=13, end_col_offset=34), [], [], lineno=13, col_offset=21, end_lineno=13, end_col_offset=36)], [keyword('placeholder_7', Name('placeholder_7', Load(), lineno=13, col_offset=45, end_lineno=13, end_col_offset=51), lineno=13, col_offset=38, end_lineno=13, end_col_offset=51)], lineno=13, col_offset=15, end_lineno=13, end_col_offset=52), lineno=13, col_offset=8, end_lineno=13, end_col_offset=52)], [], lineno=12, col_offset=4, end_lineno=13, end_col_offset=52), FunctionDef('placeholder_8', arguments([], [arg('self', lineno=15, col_offset=15, end_lineno=15, end_col_offset=19), arg('placeholder_9', lineno=15, col_offset=21, end_lineno=15, end_col_offset=26)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Compare(Attribute(Name('self', Load(), lineno=16, col_offset=15, end_lineno=16, end_col_offset=19), 'placeholder_2', Load(), lineno=16, col_offset=15, end_lineno=16, end_col_offset=25), [Lt()], [Attribute(Name('placeholder_9', Load(), lineno=16, col_offset=28, end_lineno=16, end_col_offset=33), 'placeholder_2', Load(), lineno=16, col_offset=28, end_lineno=16, end_col_offset=39)], lineno=16, col_offset=15, end_lineno=16, end_col_offset=39), lineno=16, col_offset=8, end_lineno=16, end_col_offset=39)], [], lineno=15, col_offset=4, end_lineno=16, end_col_offset=39), FunctionDef('placeholder_10', arguments([], [arg('self', lineno=18, col_offset=15, end_lineno=18, end_col_offset=19), arg('placeholder_9', lineno=18, col_offset=21, end_lineno=18, end_col_offset=26)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Compare(Call(Attribute(Name('self', Load(), lineno=19, col_offset=15, end_lineno=19, end_col_offset=19), 'placeholder_4', Load(), lineno=19, col_offset=15, end_lineno=19, end_col_offset=28), [], [], lineno=19, col_offset=15, end_lineno=19, end_col_offset=30), [Eq()], [Call(Attribute(Name('placeholder_9', Load(), lineno=19, col_offset=34, end_lineno=19, end_col_offset=39), 'placeholder_4', Load(), lineno=19, col_offset=34, end_lineno=19, end_col_offset=48), [], [], lineno=19, col_offset=34, end_lineno=19, end_col_offset=50)], lineno=19, col_offset=15, end_lineno=19, end_col_offset=50), lineno=19, col_offset=8, end_lineno=19, end_col_offset=50)], [], lineno=18, col_offset=4, end_lineno=19, end_col_offset=50), FunctionDef('placeholder_11', arguments([], [arg('self', lineno=21, col_offset=17, end_lineno=21, end_col_offset=21)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Expr(Yield(Attribute(Name('self', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=18), 'placeholder_2', Load(), lineno=22, col_offset=14, end_lineno=22, end_col_offset=24), lineno=22, col_offset=8, end_lineno=22, end_col_offset=24), lineno=22, col_offset=8, end_lineno=22, end_col_offset=24), For(Name('placeholder_12', Store(), lineno=23, col_offset=12, end_lineno=23, end_col_offset=17), Attribute(Name('self', Load(), lineno=23, col_offset=21, end_lineno=23, end_col_offset=25), 'placeholder_3', Load(), lineno=23, col_offset=21, end_lineno=23, end_col_offset=34), [For(Name('placeholder_13', Store(), lineno=24, col_offset=16, end_lineno=24, end_col_offset=26), Name('placeholder_12', Load(), lineno=24, col_offset=30, end_lineno=24, end_col_offset=35), [Expr(Yield(Name('placeholder_13', Load(), lineno=25, col_offset=22, end_lineno=25, end_col_offset=32), lineno=25, col_offset=16, end_lineno=25, end_col_offset=32), lineno=25, col_offset=16, end_lineno=25, end_col_offset=32)], [], lineno=24, col_offset=12, end_lineno=25, end_col_offset=32)], [], lineno=23, col_offset=8, end_lineno=25, end_col_offset=32)], [], lineno=21, col_offset=4, end_lineno=25, end_col_offset=32), FunctionDef('placeholder_14', arguments([], [arg('self', lineno=27, col_offset=12, end_lineno=27, end_col_offset=16)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(Call(Name('placeholder_0', Load(), lineno=28, col_offset=15, end_lineno=28, end_col_offset=19), [Attribute(Name('self', Load(), lineno=28, col_offset=20, end_lineno=28, end_col_offset=24), 'placeholder_2', Load(), lineno=28, col_offset=20, end_lineno=28, end_col_offset=30), ListComp(Call(Attribute(Name('placeholder_5', Load(), lineno=28, col_offset=33, end_lineno=28, end_col_offset=39), 'placeholder_14', Load(), lineno=28, col_offset=33, end_lineno=28, end_col_offset=43), [], [], lineno=28, col_offset=33, end_lineno=28, end_col_offset=45), [comprehension(Name('placeholder_5', Store(), lineno=28, col_offset=50, end_lineno=28, end_col_offset=56), Attribute(Name('self', Load(), lineno=28, col_offset=60, end_lineno=28, end_col_offset=64), 'placeholder_3', Load(), lineno=28, col_offset=60, end_lineno=28, end_col_offset=73), [], 0)], lineno=28, col_offset=32, end_lineno=28, end_col_offset=74)], [], lineno=28, col_offset=15, end_lineno=28, end_col_offset=75), lineno=28, col_offset=8, end_lineno=28, end_col_offset=75)], [], lineno=27, col_offset=4, end_lineno=28, end_col_offset=75), FunctionDef('placeholder_15', arguments([], [arg('self', lineno=30, col_offset=12, end_lineno=30, end_col_offset=16), arg('placeholder_9', lineno=30, col_offset=18, end_lineno=30, end_col_offset=23)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_16', Store(), lineno=31, col_offset=8, end_lineno=31, end_col_offset=12)], Call(Attribute(Name('self', Load(), lineno=31, col_offset=15, end_lineno=31, end_col_offset=19), 'placeholder_14', Load(), lineno=31, col_offset=15, end_lineno=31, end_col_offset=23), [], [], lineno=31, col_offset=15, end_lineno=31, end_col_offset=25), lineno=31, col_offset=8, end_lineno=31, end_col_offset=25), Expr(Call(Attribute(Attribute(Name('placeholder_16', Load(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=12), 'placeholder_3', Load(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=21), 'append', Load(), lineno=32, col_offset=8, end_lineno=32, end_col_offset=28), [Name('placeholder_9', Load(), lineno=32, col_offset=29, end_lineno=32, end_col_offset=34)], [], lineno=32, col_offset=8, end_lineno=32, end_col_offset=35), lineno=32, col_offset=8, end_lineno=32, end_col_offset=35), Return(Name('placeholder_16', Load(), lineno=33, col_offset=15, end_lineno=33, end_col_offset=19), lineno=33, col_offset=8, end_lineno=33, end_col_offset=19)], [], lineno=30, col_offset=4, end_lineno=33, end_col_offset=19), FunctionDef('placeholder_17', arguments([], [arg('self', lineno=35, col_offset=15, end_lineno=35, end_col_offset=19), arg('placeholder_18', lineno=35, col_offset=21, end_lineno=35, end_col_offset=25)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_16', Store(), lineno=36, col_offset=8, end_lineno=36, end_col_offset=12)], Call(Attribute(Name('self', Load(), lineno=36, col_offset=15, end_lineno=36, end_col_offset=19), 'placeholder_14', Load(), lineno=36, col_offset=15, end_lineno=36, end_col_offset=23), [], [], lineno=36, col_offset=15, end_lineno=36, end_col_offset=25), lineno=36, col_offset=8, end_lineno=36, end_col_offset=25), For(Name('placeholder_12', Store(), lineno=37, col_offset=12, end_lineno=37, end_col_offset=17), Call(Name('list', Load(), lineno=37, col_offset=21, end_lineno=37, end_col_offset=25), [Attribute(Name('placeholder_16', Load(), lineno=37, col_offset=26, end_lineno=37, end_col_offset=30), 'placeholder_3', Load(), lineno=37, col_offset=26, end_lineno=37, end_col_offset=39)], [], lineno=37, col_offset=21, end_lineno=37, end_col_offset=40), [Expr(Call(Attribute(Attribute(Name('placeholder_16', Load(), lineno=38, col_offset=12, end_lineno=38, end_col_offset=16), 'placeholder_3', Load(), lineno=38, col_offset=12, end_lineno=38, end_col_offset=25), 'placeholder_17', Load(), lineno=38, col_offset=12, end_lineno=38, end_col_offset=32), [Name('placeholder_12', Load(), lineno=38, col_offset=33, end_lineno=38, end_col_offset=38)], [], lineno=38, col_offset=12, end_lineno=38, end_col_offset=39), lineno=38, col_offset=12, end_lineno=38, end_col_offset=39), If(Compare(Attribute(Name('placeholder_12', Load(), lineno=39, col_offset=15, end_lineno=39, end_col_offset=20), 'placeholder_2', Load(), lineno=39, col_offset=15, end_lineno=39, end_col_offset=26), [Eq()], [Name('placeholder_18', Load(), lineno=39, col_offset=30, end_lineno=39, end_col_offset=34)], lineno=39, col_offset=15, end_lineno=39, end_col_offset=34), [Break(lineno=40, col_offset=16, end_lineno=40, end_col_offset=21)], [], lineno=39, col_offset=12, end_lineno=40, end_col_offset=21), Expr(Call(Attribute(Attribute(Name('placeholder_16', Load(), lineno=41, col_offset=12, end_lineno=41, end_col_offset=16), 'placeholder_3', Load(), lineno=41, col_offset=12, end_lineno=41, end_col_offset=25), 'append', Load(), lineno=41, col_offset=12, end_lineno=41, end_col_offset=32), [Call(Attribute(Name('placeholder_12', Load(), lineno=41, col_offset=33, end_lineno=41, end_col_offset=38), 'placeholder_17', Load(), lineno=41, col_offset=33, end_lineno=41, end_col_offset=45), [Name('placeholder_18', Load(), lineno=41, col_offset=46, end_lineno=41, end_col_offset=50)], [], lineno=41, col_offset=33, end_lineno=41, end_col_offset=51)], [], lineno=41, col_offset=12, end_lineno=41, end_col_offset=52), lineno=41, col_offset=12, end_lineno=41, end_col_offset=52)], [], lineno=37, col_offset=8, end_lineno=41, end_col_offset=52), Return(Name('placeholder_16', Load(), lineno=42, col_offset=15, end_lineno=42, end_col_offset=19), lineno=42, col_offset=8, end_lineno=42, end_col_offset=19)], [], lineno=35, col_offset=4, end_lineno=42, end_col_offset=19), FunctionDef('placeholder_19', arguments([], [arg('self', lineno=44, col_offset=17, end_lineno=44, end_col_offset=21), arg('placeholder_20', lineno=44, col_offset=23, end_lineno=44, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_21', Store(), lineno=45, col_offset=8, end_lineno=45, end_col_offset=13)], List([Name('self', Load(), lineno=45, col_offset=17, end_lineno=45, end_col_offset=21)], Load(), lineno=45, col_offset=16, end_lineno=45, end_col_offset=22), lineno=45, col_offset=8, end_lineno=45, end_col_offset=22), Assign([Name('placeholder_22', Store(), lineno=46, col_offset=8, end_lineno=46, end_col_offset=15)], Call(Name('set', Load(), lineno=46, col_offset=18, end_lineno=46, end_col_offset=21), [], [], lineno=46, col_offset=18, end_lineno=46, end_col_offset=23), lineno=46, col_offset=8, end_lineno=46, end_col_offset=23), While(Name('placeholder_21', Load(), lineno=48, col_offset=14, end_lineno=48, end_col_offset=19), [Assign([Name('placeholder_16', Store(), lineno=49, col_offset=12, end_lineno=49, end_col_offset=16)], Call(Attribute(Name('placeholder_21', Load(), lineno=49, col_offset=19, end_lineno=49, end_col_offset=24), 'pop', Load(), lineno=49, col_offset=19, end_lineno=49, end_col_offset=28), [Constant(0, lineno=49, col_offset=29, end_lineno=49, end_col_offset=30)], [], lineno=49, col_offset=19, end_lineno=49, end_col_offset=31), lineno=49, col_offset=12, end_lineno=49, end_col_offset=31), If(Compare(Attribute(Name('placeholder_16', Load(), lineno=50, col_offset=15, end_lineno=50, end_col_offset=19), 'placeholder_2', Load(), lineno=50, col_offset=15, end_lineno=50, end_col_offset=25), [In()], [Name('placeholder_22', Load(), lineno=50, col_offset=29, end_lineno=50, end_col_offset=36)], lineno=50, col_offset=15, end_lineno=50, end_col_offset=36), [Continue(lineno=51, col_offset=16, end_lineno=51, end_col_offset=24)], [], lineno=50, col_offset=12, end_lineno=51, end_col_offset=24), Expr(Call(Attribute(Name('placeholder_22', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=19), 'placeholder_15', Load(), lineno=53, col_offset=12, end_lineno=53, end_col_offset=23), [Attribute(Name('placeholder_16', Load(), lineno=53, col_offset=24, end_lineno=53, end_col_offset=28), 'placeholder_2', Load(), lineno=53, col_offset=24, end_lineno=53, end_col_offset=34)], [], lineno=53, col_offset=12, end_lineno=53, end_col_offset=35), lineno=53, col_offset=12, end_lineno=53, end_col_offset=35), If(Compare(Name('placeholder_20', Load(), lineno=54, col_offset=15, end_lineno=54, end_col_offset=24), [Eq()], [Attribute(Name('placeholder_16', Load(), lineno=54, col_offset=28, end_lineno=54, end_col_offset=32), 'placeholder_2', Load(), lineno=54, col_offset=28, end_lineno=54, end_col_offset=38)], lineno=54, col_offset=15, end_lineno=54, end_col_offset=38), [Return(Name('placeholder_16', Load(), lineno=55, col_offset=23, end_lineno=55, end_col_offset=27), lineno=55, col_offset=16, end_lineno=55, end_col_offset=27)], [], lineno=54, col_offset=12, end_lineno=55, end_col_offset=27), For(Name('placeholder_12', Store(), lineno=57, col_offset=16, end_lineno=57, end_col_offset=21), Attribute(Name('placeholder_16', Load(), lineno=57, col_offset=25, end_lineno=57, end_col_offset=29), 'placeholder_3', Load(), lineno=57, col_offset=25, end_lineno=57, end_col_offset=38), [Expr(Call(Attribute(Name('placeholder_21', Load(), lineno=58, col_offset=16, end_lineno=58, end_col_offset=21), 'append', Load(), lineno=58, col_offset=16, end_lineno=58, end_col_offset=28), [Call(Attribute(Name('placeholder_12', Load(), lineno=58, col_offset=29, end_lineno=58, end_col_offset=34), 'placeholder_15', Load(), lineno=58, col_offset=29, end_lineno=58, end_col_offset=38), [Call(Attribute(Name('placeholder_16', Load(), lineno=58, col_offset=39, end_lineno=58, end_col_offset=43), 'placeholder_17', Load(), lineno=58, col_offset=39, end_lineno=58, end_col_offset=50), [Attribute(Name('placeholder_12', Load(), lineno=58, col_offset=51, end_lineno=58, end_col_offset=56), 'placeholder_2', Load(), lineno=58, col_offset=51, end_lineno=58, end_col_offset=62)], [], lineno=58, col_offset=39, end_lineno=58, end_col_offset=63)], [], lineno=58, col_offset=29, end_lineno=58, end_col_offset=64)], [], lineno=58, col_offset=16, end_lineno=58, end_col_offset=65), lineno=58, col_offset=16, end_lineno=58, end_col_offset=65)], [], lineno=57, col_offset=12, end_lineno=58, end_col_offset=65)], [], lineno=48, col_offset=8, end_lineno=58, end_col_offset=65), Raise(Call(Name('ValueError', Load(), lineno=60, col_offset=14, end_lineno=60, end_col_offset=24), [Constant('Tree could not be reoriented', lineno=60, col_offset=25, end_lineno=60, end_col_offset=55)], [], lineno=60, col_offset=14, end_lineno=60, end_col_offset=56), lineno=60, col_offset=8, end_lineno=60, end_col_offset=56)], [], lineno=44, col_offset=4, end_lineno=60, end_col_offset=56), FunctionDef('placeholder_23', arguments([], [arg('self', lineno=64, col_offset=16, end_lineno=64, end_col_offset=20), arg('placeholder_20', lineno=64, col_offset=22, end_lineno=64, end_col_offset=31), arg('placeholder_24', lineno=64, col_offset=33, end_lineno=64, end_col_offset=40)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_25', Store(), lineno=65, col_offset=8, end_lineno=65, end_col_offset=17)], Call(Attribute(Name('self', Load(), lineno=65, col_offset=20, end_lineno=65, end_col_offset=24), 'placeholder_19', Load(), lineno=65, col_offset=20, end_lineno=65, end_col_offset=33), [Name('placeholder_20', Load(), lineno=65, col_offset=34, end_lineno=65, end_col_offset=43)], [], lineno=65, col_offset=20, end_lineno=65, end_col_offset=44), lineno=65, col_offset=8, end_lineno=65, end_col_offset=44), Assign([Name('placeholder_21', Store(), lineno=66, col_offset=8, end_lineno=66, end_col_offset=13)], Attribute(Name('placeholder_25', Load(), lineno=66, col_offset=16, end_lineno=66, end_col_offset=25), 'placeholder_3', Load(), lineno=66, col_offset=16, end_lineno=66, end_col_offset=34), lineno=66, col_offset=8, end_lineno=66, end_col_offset=34), Assign([Name('placeholder_26', Store(), lineno=67, col_offset=8, end_lineno=67, end_col_offset=12)], List([Name('placeholder_20', Load(), lineno=67, col_offset=16, end_lineno=67, end_col_offset=25)], Load(), lineno=67, col_offset=15, end_lineno=67, end_col_offset=26), lineno=67, col_offset=8, end_lineno=67, end_col_offset=26), While(Compare(Subscript(Name('placeholder_26', Load(), lineno=69, col_offset=14, end_lineno=69, end_col_offset=18), UnaryOp(USub(), Constant(1, lineno=69, col_offset=20, end_lineno=69, end_col_offset=21), lineno=69, col_offset=19, end_lineno=69, end_col_offset=21), Load(), lineno=69, col_offset=14, end_lineno=69, end_col_offset=22), [NotEq()], [Name('placeholder_24', Load(), lineno=69, col_offset=26, end_lineno=69, end_col_offset=33)], lineno=69, col_offset=14, end_lineno=69, end_col_offset=33), [Try([Assign([Name('placeholder_16', Store(), lineno=71, col_offset=16, end_lineno=71, end_col_offset=20)], Call(Attribute(Name('placeholder_21', Load(), lineno=71, col_offset=23, end_lineno=71, end_col_offset=28), 'pop', Load(), lineno=71, col_offset=23, end_lineno=71, end_col_offset=32), [], [], lineno=71, col_offset=23, end_lineno=71, end_col_offset=34), lineno=71, col_offset=16, end_lineno=71, end_col_offset=34)], [ExceptHandler(Name('IndexError', Load(), lineno=72, col_offset=19, end_lineno=72, end_col_offset=29), 'placeholder_27', [Raise(Call(Name('ValueError', Load(), lineno=73, col_offset=22, end_lineno=73, end_col_offset=32), [Constant('No path found', lineno=73, col_offset=33, end_lineno=73, end_col_offset=48)], [], lineno=73, col_offset=22, end_lineno=73, end_col_offset=49), Name('placeholder_27', Load(), lineno=73, col_offset=55, end_lineno=73, end_col_offset=60), lineno=73, col_offset=16, end_lineno=73, end_col_offset=60)], lineno=72, col_offset=12, end_lineno=73, end_col_offset=60)], [], [], lineno=70, col_offset=12, end_lineno=73, end_col_offset=60), If(Compare(Name('placeholder_24', Load(), lineno=74, col_offset=15, end_lineno=74, end_col_offset=22), [In()], [Name('placeholder_16', Load(), lineno=74, col_offset=26, end_lineno=74, end_col_offset=30)], lineno=74, col_offset=15, end_lineno=74, end_col_offset=30), [Expr(Call(Attribute(Name('placeholder_26', Load(), lineno=75, col_offset=16, end_lineno=75, end_col_offset=20), 'append', Load(), lineno=75, col_offset=16, end_lineno=75, end_col_offset=27), [Attribute(Name('placeholder_16', Load(), lineno=75, col_offset=28, end_lineno=75, end_col_offset=32), 'placeholder_2', Load(), lineno=75, col_offset=28, end_lineno=75, end_col_offset=38)], [], lineno=75, col_offset=16, end_lineno=75, end_col_offset=39), lineno=75, col_offset=16, end_lineno=75, end_col_offset=39), Assign([Name('placeholder_21', Store(), lineno=76, col_offset=16, end_lineno=76, end_col_offset=21)], Attribute(Name('placeholder_16', Load(), lineno=76, col_offset=24, end_lineno=76, end_col_offset=28), 'placeholder_3', Load(), lineno=76, col_offset=24, end_lineno=76, end_col_offset=37), lineno=76, col_offset=16, end_lineno=76, end_col_offset=37)], [], lineno=74, col_offset=12, end_lineno=76, end_col_offset=37)], [], lineno=69, col_offset=8, end_lineno=76, end_col_offset=37), Return(Name('placeholder_26', Load(), lineno=77, col_offset=15, end_lineno=77, end_col_offset=19), lineno=77, col_offset=8, end_lineno=77, end_col_offset=19)], [], lineno=64, col_offset=4, end_lineno=77, end_col_offset=19)], [], lineno=4, col_offset=0, end_lineno=77, end_col_offset=19)], []) \ No newline at end of file diff --git a/test/practice-pythagorean-triplet/representation.out b/test/practice-pythagorean-triplet/representation.out index 9c3713a..c016b97 100644 --- a/test/practice-pythagorean-triplet/representation.out +++ b/test/practice-pythagorean-triplet/representation.out @@ -15,7 +15,7 @@ def placeholder_0(placeholder_1, placeholder_2): placeholder_8 = placeholder_8 + placeholder_5 placeholder_9 = placeholder_9 + placeholder_6 while placeholder_9 <= placeholder_2: - yield [alpha, beta, gamma] + yield [placeholder_7, placeholder_8, placeholder_9] placeholder_7 = placeholder_7 + placeholder_4 placeholder_8 = placeholder_8 + placeholder_5 placeholder_9 = placeholder_9 + placeholder_6 @@ -29,7 +29,7 @@ def placeholder_10(placeholder_3): if (placeholder_13 - placeholder_12) % 2 == 1 and gcd( placeholder_13, placeholder_12 ) == 1: - yield (member, idx) + yield (placeholder_13, placeholder_12) def placeholder_14(placeholder_3): @@ -41,7 +41,7 @@ def placeholder_14(placeholder_3): placeholder_9 = placeholder_17 + placeholder_18 if placeholder_7 > placeholder_8: placeholder_7, placeholder_8 = (placeholder_8, placeholder_7) - yield (alpha, beta, gamma) + yield (placeholder_7, placeholder_8, placeholder_9) def placeholder_19(placeholder_20): @@ -1787,21 +1787,21 @@ Module( List( [ Name( - 'alpha', + 'placeholder_7', Load(), lineno=17, col_offset=23, end_lineno=17, end_col_offset=28), Name( - 'beta', + 'placeholder_8', Load(), lineno=17, col_offset=30, end_lineno=17, end_col_offset=34), Name( - 'gamma', + 'placeholder_9', Load(), lineno=17, col_offset=36, @@ -2235,14 +2235,14 @@ Module( Tuple( [ Name( - 'member', + 'placeholder_13', Load(), lineno=30, col_offset=22, end_lineno=30, end_col_offset=28), Name( - 'idx', + 'placeholder_12', Load(), lineno=30, col_offset=30, @@ -2597,21 +2597,21 @@ Module( Tuple( [ Name( - 'alpha', + 'placeholder_7', Load(), lineno=49, col_offset=14, end_lineno=49, end_col_offset=19), Name( - 'beta', + 'placeholder_8', Load(), lineno=49, col_offset=21, end_lineno=49, end_col_offset=25), Name( - 'gamma', + 'placeholder_9', Load(), lineno=49, col_offset=27, diff --git a/test/practice-pythagorean-triplet/representation.txt b/test/practice-pythagorean-triplet/representation.txt index 92937ef..f5db43f 100644 --- a/test/practice-pythagorean-triplet/representation.txt +++ b/test/practice-pythagorean-triplet/representation.txt @@ -1 +1 @@ -Module([ImportFrom('math', [alias('sqrt', lineno=1, col_offset=17, end_lineno=1, end_col_offset=21), alias('ceil', lineno=1, col_offset=23, end_lineno=1, end_col_offset=27), alias('gcd', lineno=1, col_offset=29, end_lineno=1, end_col_offset=32)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=32), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=4, col_offset=22, end_lineno=4, end_col_offset=27), arg('placeholder_2', lineno=4, col_offset=29, end_lineno=4, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=5, col_offset=8, end_lineno=5, end_col_offset=13), Call(Name('range', Load(), lineno=5, col_offset=17, end_lineno=5, end_col_offset=22), [Constant(4, lineno=5, col_offset=23, end_lineno=5, end_col_offset=24), BinOp(Name('placeholder_2', Load(), lineno=5, col_offset=26, end_lineno=5, end_col_offset=29), Add(), Constant(1, lineno=5, col_offset=32, end_lineno=5, end_col_offset=33), lineno=5, col_offset=26, end_lineno=5, end_col_offset=33), Constant(4, lineno=5, col_offset=35, end_lineno=5, end_col_offset=36)], [], lineno=5, col_offset=17, end_lineno=5, end_col_offset=37), [For(Tuple([Name('placeholder_4', Store(), lineno=6, col_offset=12, end_lineno=6, end_col_offset=17), Name('placeholder_5', Store(), lineno=6, col_offset=19, end_lineno=6, end_col_offset=24), Name('placeholder_6', Store(), lineno=6, col_offset=26, end_lineno=6, end_col_offset=31)], Store(), lineno=6, col_offset=12, end_lineno=6, end_col_offset=31), Call(Name('primitive_triplets', Load(), lineno=6, col_offset=35, end_lineno=6, end_col_offset=53), [Name('placeholder_3', Load(), lineno=6, col_offset=54, end_lineno=6, end_col_offset=59)], [], lineno=6, col_offset=35, end_lineno=6, end_col_offset=60), [Assign([Name('placeholder_7', Store(), lineno=7, col_offset=12, end_lineno=7, end_col_offset=17)], Name('placeholder_4', Load(), lineno=7, col_offset=20, end_lineno=7, end_col_offset=25), lineno=7, col_offset=12, end_lineno=7, end_col_offset=25), Assign([Name('placeholder_8', Store(), lineno=8, col_offset=12, end_lineno=8, end_col_offset=16)], Name('placeholder_5', Load(), lineno=8, col_offset=19, end_lineno=8, end_col_offset=24), lineno=8, col_offset=12, end_lineno=8, end_col_offset=24), Assign([Name('placeholder_9', Store(), lineno=9, col_offset=12, end_lineno=9, end_col_offset=17)], Name('placeholder_6', Load(), lineno=9, col_offset=20, end_lineno=9, end_col_offset=25), lineno=9, col_offset=12, end_lineno=9, end_col_offset=25), While(Compare(Name('placeholder_7', Load(), lineno=11, col_offset=18, end_lineno=11, end_col_offset=23), [Lt()], [Name('placeholder_1', Load(), lineno=11, col_offset=26, end_lineno=11, end_col_offset=31)], lineno=11, col_offset=18, end_lineno=11, end_col_offset=31), [Assign([Name('placeholder_7', Store(), lineno=12, col_offset=16, end_lineno=12, end_col_offset=21)], BinOp(Name('placeholder_7', Load(), lineno=12, col_offset=24, end_lineno=12, end_col_offset=29), Add(), Name('placeholder_4', Load(), lineno=12, col_offset=32, end_lineno=12, end_col_offset=37), lineno=12, col_offset=24, end_lineno=12, end_col_offset=37), lineno=12, col_offset=16, end_lineno=12, end_col_offset=37), Assign([Name('placeholder_8', Store(), lineno=13, col_offset=16, end_lineno=13, end_col_offset=20)], BinOp(Name('placeholder_8', Load(), lineno=13, col_offset=23, end_lineno=13, end_col_offset=27), Add(), Name('placeholder_5', Load(), lineno=13, col_offset=30, end_lineno=13, end_col_offset=35), lineno=13, col_offset=23, end_lineno=13, end_col_offset=35), lineno=13, col_offset=16, end_lineno=13, end_col_offset=35), Assign([Name('placeholder_9', Store(), lineno=14, col_offset=16, end_lineno=14, end_col_offset=21)], BinOp(Name('placeholder_9', Load(), lineno=14, col_offset=24, end_lineno=14, end_col_offset=29), Add(), Name('placeholder_6', Load(), lineno=14, col_offset=32, end_lineno=14, end_col_offset=37), lineno=14, col_offset=24, end_lineno=14, end_col_offset=37), lineno=14, col_offset=16, end_lineno=14, end_col_offset=37)], [], lineno=11, col_offset=12, end_lineno=14, end_col_offset=37), While(Compare(Name('placeholder_9', Load(), lineno=16, col_offset=18, end_lineno=16, end_col_offset=23), [LtE()], [Name('placeholder_2', Load(), lineno=16, col_offset=27, end_lineno=16, end_col_offset=30)], lineno=16, col_offset=18, end_lineno=16, end_col_offset=30), [Expr(Yield(List([Name('alpha', Load(), lineno=17, col_offset=23, end_lineno=17, end_col_offset=28), Name('beta', Load(), lineno=17, col_offset=30, end_lineno=17, end_col_offset=34), Name('gamma', Load(), lineno=17, col_offset=36, end_lineno=17, end_col_offset=41)], Load(), lineno=17, col_offset=22, end_lineno=17, end_col_offset=42), lineno=17, col_offset=16, end_lineno=17, end_col_offset=42), lineno=17, col_offset=16, end_lineno=17, end_col_offset=42), Assign([Name('placeholder_7', Store(), lineno=19, col_offset=16, end_lineno=19, end_col_offset=21)], BinOp(Name('placeholder_7', Load(), lineno=19, col_offset=24, end_lineno=19, end_col_offset=29), Add(), Name('placeholder_4', Load(), lineno=19, col_offset=32, end_lineno=19, end_col_offset=37), lineno=19, col_offset=24, end_lineno=19, end_col_offset=37), lineno=19, col_offset=16, end_lineno=19, end_col_offset=37), Assign([Name('placeholder_8', Store(), lineno=20, col_offset=16, end_lineno=20, end_col_offset=20)], BinOp(Name('placeholder_8', Load(), lineno=20, col_offset=23, end_lineno=20, end_col_offset=27), Add(), Name('placeholder_5', Load(), lineno=20, col_offset=30, end_lineno=20, end_col_offset=35), lineno=20, col_offset=23, end_lineno=20, end_col_offset=35), lineno=20, col_offset=16, end_lineno=20, end_col_offset=35), Assign([Name('placeholder_9', Store(), lineno=21, col_offset=16, end_lineno=21, end_col_offset=21)], BinOp(Name('placeholder_9', Load(), lineno=21, col_offset=24, end_lineno=21, end_col_offset=29), Add(), Name('placeholder_6', Load(), lineno=21, col_offset=32, end_lineno=21, end_col_offset=37), lineno=21, col_offset=24, end_lineno=21, end_col_offset=37), lineno=21, col_offset=16, end_lineno=21, end_col_offset=37)], [], lineno=16, col_offset=12, end_lineno=21, end_col_offset=37)], [], lineno=6, col_offset=8, end_lineno=21, end_col_offset=37)], [], lineno=5, col_offset=4, end_lineno=21, end_col_offset=37)], [], lineno=4, col_offset=0, end_lineno=21, end_col_offset=37), FunctionDef('placeholder_10', arguments([], [arg('placeholder_3', lineno=24, col_offset=23, end_lineno=24, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_11', Store(), lineno=25, col_offset=4, end_lineno=25, end_col_offset=8)], BinOp(Name('placeholder_3', Load(), lineno=25, col_offset=11, end_lineno=25, end_col_offset=16), FloorDiv(), Constant(2, lineno=25, col_offset=20, end_lineno=25, end_col_offset=21), lineno=25, col_offset=11, end_lineno=25, end_col_offset=21), lineno=25, col_offset=4, end_lineno=25, end_col_offset=21), For(Name('placeholder_12', Store(), lineno=26, col_offset=8, end_lineno=26, end_col_offset=11), Call(Name('range', Load(), lineno=26, col_offset=15, end_lineno=26, end_col_offset=20), [Constant(1, lineno=26, col_offset=21, end_lineno=26, end_col_offset=22), Call(Name('int', Load(), lineno=26, col_offset=24, end_lineno=26, end_col_offset=27), [Call(Name('ceil', Load(), lineno=26, col_offset=28, end_lineno=26, end_col_offset=32), [Call(Name('sqrt', Load(), lineno=26, col_offset=33, end_lineno=26, end_col_offset=37), [Name('placeholder_11', Load(), lineno=26, col_offset=38, end_lineno=26, end_col_offset=42)], [], lineno=26, col_offset=33, end_lineno=26, end_col_offset=43)], [], lineno=26, col_offset=28, end_lineno=26, end_col_offset=44)], [], lineno=26, col_offset=24, end_lineno=26, end_col_offset=45)], [], lineno=26, col_offset=15, end_lineno=26, end_col_offset=46), [If(Compare(BinOp(Name('placeholder_11', Load(), lineno=27, col_offset=11, end_lineno=27, end_col_offset=15), Mod(), Name('placeholder_12', Load(), lineno=27, col_offset=18, end_lineno=27, end_col_offset=21), lineno=27, col_offset=11, end_lineno=27, end_col_offset=21), [Eq()], [Constant(0, lineno=27, col_offset=25, end_lineno=27, end_col_offset=26)], lineno=27, col_offset=11, end_lineno=27, end_col_offset=26), [Assign([Name('placeholder_13', Store(), lineno=28, col_offset=12, end_lineno=28, end_col_offset=18)], BinOp(Name('placeholder_11', Load(), lineno=28, col_offset=21, end_lineno=28, end_col_offset=25), FloorDiv(), Name('placeholder_12', Load(), lineno=28, col_offset=29, end_lineno=28, end_col_offset=32), lineno=28, col_offset=21, end_lineno=28, end_col_offset=32), lineno=28, col_offset=12, end_lineno=28, end_col_offset=32), If(BoolOp(And(), [Compare(BinOp(BinOp(Name('placeholder_13', Load(), lineno=29, col_offset=16, end_lineno=29, end_col_offset=22), Sub(), Name('placeholder_12', Load(), lineno=29, col_offset=25, end_lineno=29, end_col_offset=28), lineno=29, col_offset=16, end_lineno=29, end_col_offset=28), Mod(), Constant(2, lineno=29, col_offset=32, end_lineno=29, end_col_offset=33), lineno=29, col_offset=15, end_lineno=29, end_col_offset=33), [Eq()], [Constant(1, lineno=29, col_offset=37, end_lineno=29, end_col_offset=38)], lineno=29, col_offset=15, end_lineno=29, end_col_offset=38), Compare(Call(Name('gcd', Load(), lineno=29, col_offset=43, end_lineno=29, end_col_offset=46), [Name('placeholder_13', Load(), lineno=29, col_offset=47, end_lineno=29, end_col_offset=53), Name('placeholder_12', Load(), lineno=29, col_offset=55, end_lineno=29, end_col_offset=58)], [], lineno=29, col_offset=43, end_lineno=29, end_col_offset=59), [Eq()], [Constant(1, lineno=29, col_offset=63, end_lineno=29, end_col_offset=64)], lineno=29, col_offset=43, end_lineno=29, end_col_offset=64)], lineno=29, col_offset=15, end_lineno=29, end_col_offset=64), [Expr(Yield(Tuple([Name('member', Load(), lineno=30, col_offset=22, end_lineno=30, end_col_offset=28), Name('idx', Load(), lineno=30, col_offset=30, end_lineno=30, end_col_offset=33)], Load(), lineno=30, col_offset=22, end_lineno=30, end_col_offset=33), lineno=30, col_offset=16, end_lineno=30, end_col_offset=33), lineno=30, col_offset=16, end_lineno=30, end_col_offset=33)], [], lineno=29, col_offset=12, end_lineno=30, end_col_offset=33)], [], lineno=27, col_offset=8, end_lineno=30, end_col_offset=33)], [], lineno=26, col_offset=4, end_lineno=30, end_col_offset=33)], [], lineno=24, col_offset=0, end_lineno=30, end_col_offset=33), FunctionDef('placeholder_14', arguments([], [arg('placeholder_3', lineno=33, col_offset=23, end_lineno=33, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Tuple([Name('placeholder_15', Store(), lineno=38, col_offset=8, end_lineno=38, end_col_offset=16), Name('placeholder_16', Store(), lineno=38, col_offset=18, end_lineno=38, end_col_offset=26)], Store(), lineno=38, col_offset=8, end_lineno=38, end_col_offset=26), Call(Name('placeholder_10', Load(), lineno=38, col_offset=30, end_lineno=38, end_col_offset=48), [Name('placeholder_3', Load(), lineno=38, col_offset=49, end_lineno=38, end_col_offset=54)], [], lineno=38, col_offset=30, end_lineno=38, end_col_offset=55), [Assign([Name('placeholder_17', Store(), lineno=39, col_offset=8, end_lineno=39, end_col_offset=14)], BinOp(Name('placeholder_15', Load(), lineno=39, col_offset=17, end_lineno=39, end_col_offset=25), Pow(), Constant(2, lineno=39, col_offset=29, end_lineno=39, end_col_offset=30), lineno=39, col_offset=17, end_lineno=39, end_col_offset=30), lineno=39, col_offset=8, end_lineno=39, end_col_offset=30), Assign([Name('placeholder_18', Store(), lineno=40, col_offset=8, end_lineno=40, end_col_offset=14)], BinOp(Name('placeholder_16', Load(), lineno=40, col_offset=17, end_lineno=40, end_col_offset=25), Pow(), Constant(2, lineno=40, col_offset=29, end_lineno=40, end_col_offset=30), lineno=40, col_offset=17, end_lineno=40, end_col_offset=30), lineno=40, col_offset=8, end_lineno=40, end_col_offset=30), Assign([Name('placeholder_7', Store(), lineno=42, col_offset=8, end_lineno=42, end_col_offset=13)], BinOp(Name('placeholder_17', Load(), lineno=42, col_offset=16, end_lineno=42, end_col_offset=22), Sub(), Name('placeholder_18', Load(), lineno=42, col_offset=25, end_lineno=42, end_col_offset=31), lineno=42, col_offset=16, end_lineno=42, end_col_offset=31), lineno=42, col_offset=8, end_lineno=42, end_col_offset=31), Assign([Name('placeholder_8', Store(), lineno=43, col_offset=8, end_lineno=43, end_col_offset=12)], BinOp(BinOp(Constant(2, lineno=43, col_offset=15, end_lineno=43, end_col_offset=16), Mult(), Name('placeholder_15', Load(), lineno=43, col_offset=19, end_lineno=43, end_col_offset=27), lineno=43, col_offset=15, end_lineno=43, end_col_offset=27), Mult(), Name('placeholder_16', Load(), lineno=43, col_offset=30, end_lineno=43, end_col_offset=38), lineno=43, col_offset=15, end_lineno=43, end_col_offset=38), lineno=43, col_offset=8, end_lineno=43, end_col_offset=38), Assign([Name('placeholder_9', Store(), lineno=44, col_offset=8, end_lineno=44, end_col_offset=13)], BinOp(Name('placeholder_17', Load(), lineno=44, col_offset=16, end_lineno=44, end_col_offset=22), Add(), Name('placeholder_18', Load(), lineno=44, col_offset=25, end_lineno=44, end_col_offset=31), lineno=44, col_offset=16, end_lineno=44, end_col_offset=31), lineno=44, col_offset=8, end_lineno=44, end_col_offset=31), If(Compare(Name('placeholder_7', Load(), lineno=46, col_offset=11, end_lineno=46, end_col_offset=16), [Gt()], [Name('placeholder_8', Load(), lineno=46, col_offset=19, end_lineno=46, end_col_offset=23)], lineno=46, col_offset=11, end_lineno=46, end_col_offset=23), [Assign([Tuple([Name('placeholder_7', Store(), lineno=47, col_offset=12, end_lineno=47, end_col_offset=17), Name('placeholder_8', Store(), lineno=47, col_offset=19, end_lineno=47, end_col_offset=23)], Store(), lineno=47, col_offset=12, end_lineno=47, end_col_offset=23)], Tuple([Name('placeholder_8', Load(), lineno=47, col_offset=26, end_lineno=47, end_col_offset=30), Name('placeholder_7', Load(), lineno=47, col_offset=32, end_lineno=47, end_col_offset=37)], Load(), lineno=47, col_offset=26, end_lineno=47, end_col_offset=37), lineno=47, col_offset=12, end_lineno=47, end_col_offset=37)], [], lineno=46, col_offset=8, end_lineno=47, end_col_offset=37), Expr(Yield(Tuple([Name('alpha', Load(), lineno=49, col_offset=14, end_lineno=49, end_col_offset=19), Name('beta', Load(), lineno=49, col_offset=21, end_lineno=49, end_col_offset=25), Name('gamma', Load(), lineno=49, col_offset=27, end_lineno=49, end_col_offset=32)], Load(), lineno=49, col_offset=14, end_lineno=49, end_col_offset=32), lineno=49, col_offset=8, end_lineno=49, end_col_offset=32), lineno=49, col_offset=8, end_lineno=49, end_col_offset=32)], [], lineno=38, col_offset=4, end_lineno=49, end_col_offset=32)], [], lineno=33, col_offset=0, end_lineno=49, end_col_offset=32), FunctionDef('placeholder_19', arguments([], [arg('placeholder_20', lineno=52, col_offset=22, end_lineno=52, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(ListComp(Name('placeholder_21', Load(), lineno=54, col_offset=8, end_lineno=54, end_col_offset=15), [comprehension(Name('placeholder_21', Store(), lineno=54, col_offset=20, end_lineno=54, end_col_offset=27), Call(Name('placeholder_0', Load(), lineno=55, col_offset=11, end_lineno=55, end_col_offset=28), [Constant(1, lineno=55, col_offset=29, end_lineno=55, end_col_offset=30), BinOp(Name('placeholder_20', Load(), lineno=55, col_offset=32, end_lineno=55, end_col_offset=38), FloorDiv(), Constant(2, lineno=55, col_offset=42, end_lineno=55, end_col_offset=43), lineno=55, col_offset=32, end_lineno=55, end_col_offset=43)], [], lineno=55, col_offset=11, end_lineno=55, end_col_offset=44), [Compare(Call(Name('sum', Load(), lineno=56, col_offset=11, end_lineno=56, end_col_offset=14), [Name('placeholder_21', Load(), lineno=56, col_offset=15, end_lineno=56, end_col_offset=22)], [], lineno=56, col_offset=11, end_lineno=56, end_col_offset=23), [Eq()], [Name('placeholder_20', Load(), lineno=56, col_offset=27, end_lineno=56, end_col_offset=33)], lineno=56, col_offset=11, end_lineno=56, end_col_offset=33)], 0)], lineno=53, col_offset=11, end_lineno=57, end_col_offset=9), lineno=53, col_offset=4, end_lineno=57, end_col_offset=9)], [], lineno=52, col_offset=0, end_lineno=57, end_col_offset=9)], []) \ No newline at end of file +Module([ImportFrom('math', [alias('sqrt', lineno=1, col_offset=17, end_lineno=1, end_col_offset=21), alias('ceil', lineno=1, col_offset=23, end_lineno=1, end_col_offset=27), alias('gcd', lineno=1, col_offset=29, end_lineno=1, end_col_offset=32)], 0, lineno=1, col_offset=0, end_lineno=1, end_col_offset=32), FunctionDef('placeholder_0', arguments([], [arg('placeholder_1', lineno=4, col_offset=22, end_lineno=4, end_col_offset=27), arg('placeholder_2', lineno=4, col_offset=29, end_lineno=4, end_col_offset=32)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Name('placeholder_3', Store(), lineno=5, col_offset=8, end_lineno=5, end_col_offset=13), Call(Name('range', Load(), lineno=5, col_offset=17, end_lineno=5, end_col_offset=22), [Constant(4, lineno=5, col_offset=23, end_lineno=5, end_col_offset=24), BinOp(Name('placeholder_2', Load(), lineno=5, col_offset=26, end_lineno=5, end_col_offset=29), Add(), Constant(1, lineno=5, col_offset=32, end_lineno=5, end_col_offset=33), lineno=5, col_offset=26, end_lineno=5, end_col_offset=33), Constant(4, lineno=5, col_offset=35, end_lineno=5, end_col_offset=36)], [], lineno=5, col_offset=17, end_lineno=5, end_col_offset=37), [For(Tuple([Name('placeholder_4', Store(), lineno=6, col_offset=12, end_lineno=6, end_col_offset=17), Name('placeholder_5', Store(), lineno=6, col_offset=19, end_lineno=6, end_col_offset=24), Name('placeholder_6', Store(), lineno=6, col_offset=26, end_lineno=6, end_col_offset=31)], Store(), lineno=6, col_offset=12, end_lineno=6, end_col_offset=31), Call(Name('primitive_triplets', Load(), lineno=6, col_offset=35, end_lineno=6, end_col_offset=53), [Name('placeholder_3', Load(), lineno=6, col_offset=54, end_lineno=6, end_col_offset=59)], [], lineno=6, col_offset=35, end_lineno=6, end_col_offset=60), [Assign([Name('placeholder_7', Store(), lineno=7, col_offset=12, end_lineno=7, end_col_offset=17)], Name('placeholder_4', Load(), lineno=7, col_offset=20, end_lineno=7, end_col_offset=25), lineno=7, col_offset=12, end_lineno=7, end_col_offset=25), Assign([Name('placeholder_8', Store(), lineno=8, col_offset=12, end_lineno=8, end_col_offset=16)], Name('placeholder_5', Load(), lineno=8, col_offset=19, end_lineno=8, end_col_offset=24), lineno=8, col_offset=12, end_lineno=8, end_col_offset=24), Assign([Name('placeholder_9', Store(), lineno=9, col_offset=12, end_lineno=9, end_col_offset=17)], Name('placeholder_6', Load(), lineno=9, col_offset=20, end_lineno=9, end_col_offset=25), lineno=9, col_offset=12, end_lineno=9, end_col_offset=25), While(Compare(Name('placeholder_7', Load(), lineno=11, col_offset=18, end_lineno=11, end_col_offset=23), [Lt()], [Name('placeholder_1', Load(), lineno=11, col_offset=26, end_lineno=11, end_col_offset=31)], lineno=11, col_offset=18, end_lineno=11, end_col_offset=31), [Assign([Name('placeholder_7', Store(), lineno=12, col_offset=16, end_lineno=12, end_col_offset=21)], BinOp(Name('placeholder_7', Load(), lineno=12, col_offset=24, end_lineno=12, end_col_offset=29), Add(), Name('placeholder_4', Load(), lineno=12, col_offset=32, end_lineno=12, end_col_offset=37), lineno=12, col_offset=24, end_lineno=12, end_col_offset=37), lineno=12, col_offset=16, end_lineno=12, end_col_offset=37), Assign([Name('placeholder_8', Store(), lineno=13, col_offset=16, end_lineno=13, end_col_offset=20)], BinOp(Name('placeholder_8', Load(), lineno=13, col_offset=23, end_lineno=13, end_col_offset=27), Add(), Name('placeholder_5', Load(), lineno=13, col_offset=30, end_lineno=13, end_col_offset=35), lineno=13, col_offset=23, end_lineno=13, end_col_offset=35), lineno=13, col_offset=16, end_lineno=13, end_col_offset=35), Assign([Name('placeholder_9', Store(), lineno=14, col_offset=16, end_lineno=14, end_col_offset=21)], BinOp(Name('placeholder_9', Load(), lineno=14, col_offset=24, end_lineno=14, end_col_offset=29), Add(), Name('placeholder_6', Load(), lineno=14, col_offset=32, end_lineno=14, end_col_offset=37), lineno=14, col_offset=24, end_lineno=14, end_col_offset=37), lineno=14, col_offset=16, end_lineno=14, end_col_offset=37)], [], lineno=11, col_offset=12, end_lineno=14, end_col_offset=37), While(Compare(Name('placeholder_9', Load(), lineno=16, col_offset=18, end_lineno=16, end_col_offset=23), [LtE()], [Name('placeholder_2', Load(), lineno=16, col_offset=27, end_lineno=16, end_col_offset=30)], lineno=16, col_offset=18, end_lineno=16, end_col_offset=30), [Expr(Yield(List([Name('placeholder_7', Load(), lineno=17, col_offset=23, end_lineno=17, end_col_offset=28), Name('placeholder_8', Load(), lineno=17, col_offset=30, end_lineno=17, end_col_offset=34), Name('placeholder_9', Load(), lineno=17, col_offset=36, end_lineno=17, end_col_offset=41)], Load(), lineno=17, col_offset=22, end_lineno=17, end_col_offset=42), lineno=17, col_offset=16, end_lineno=17, end_col_offset=42), lineno=17, col_offset=16, end_lineno=17, end_col_offset=42), Assign([Name('placeholder_7', Store(), lineno=19, col_offset=16, end_lineno=19, end_col_offset=21)], BinOp(Name('placeholder_7', Load(), lineno=19, col_offset=24, end_lineno=19, end_col_offset=29), Add(), Name('placeholder_4', Load(), lineno=19, col_offset=32, end_lineno=19, end_col_offset=37), lineno=19, col_offset=24, end_lineno=19, end_col_offset=37), lineno=19, col_offset=16, end_lineno=19, end_col_offset=37), Assign([Name('placeholder_8', Store(), lineno=20, col_offset=16, end_lineno=20, end_col_offset=20)], BinOp(Name('placeholder_8', Load(), lineno=20, col_offset=23, end_lineno=20, end_col_offset=27), Add(), Name('placeholder_5', Load(), lineno=20, col_offset=30, end_lineno=20, end_col_offset=35), lineno=20, col_offset=23, end_lineno=20, end_col_offset=35), lineno=20, col_offset=16, end_lineno=20, end_col_offset=35), Assign([Name('placeholder_9', Store(), lineno=21, col_offset=16, end_lineno=21, end_col_offset=21)], BinOp(Name('placeholder_9', Load(), lineno=21, col_offset=24, end_lineno=21, end_col_offset=29), Add(), Name('placeholder_6', Load(), lineno=21, col_offset=32, end_lineno=21, end_col_offset=37), lineno=21, col_offset=24, end_lineno=21, end_col_offset=37), lineno=21, col_offset=16, end_lineno=21, end_col_offset=37)], [], lineno=16, col_offset=12, end_lineno=21, end_col_offset=37)], [], lineno=6, col_offset=8, end_lineno=21, end_col_offset=37)], [], lineno=5, col_offset=4, end_lineno=21, end_col_offset=37)], [], lineno=4, col_offset=0, end_lineno=21, end_col_offset=37), FunctionDef('placeholder_10', arguments([], [arg('placeholder_3', lineno=24, col_offset=23, end_lineno=24, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Assign([Name('placeholder_11', Store(), lineno=25, col_offset=4, end_lineno=25, end_col_offset=8)], BinOp(Name('placeholder_3', Load(), lineno=25, col_offset=11, end_lineno=25, end_col_offset=16), FloorDiv(), Constant(2, lineno=25, col_offset=20, end_lineno=25, end_col_offset=21), lineno=25, col_offset=11, end_lineno=25, end_col_offset=21), lineno=25, col_offset=4, end_lineno=25, end_col_offset=21), For(Name('placeholder_12', Store(), lineno=26, col_offset=8, end_lineno=26, end_col_offset=11), Call(Name('range', Load(), lineno=26, col_offset=15, end_lineno=26, end_col_offset=20), [Constant(1, lineno=26, col_offset=21, end_lineno=26, end_col_offset=22), Call(Name('int', Load(), lineno=26, col_offset=24, end_lineno=26, end_col_offset=27), [Call(Name('ceil', Load(), lineno=26, col_offset=28, end_lineno=26, end_col_offset=32), [Call(Name('sqrt', Load(), lineno=26, col_offset=33, end_lineno=26, end_col_offset=37), [Name('placeholder_11', Load(), lineno=26, col_offset=38, end_lineno=26, end_col_offset=42)], [], lineno=26, col_offset=33, end_lineno=26, end_col_offset=43)], [], lineno=26, col_offset=28, end_lineno=26, end_col_offset=44)], [], lineno=26, col_offset=24, end_lineno=26, end_col_offset=45)], [], lineno=26, col_offset=15, end_lineno=26, end_col_offset=46), [If(Compare(BinOp(Name('placeholder_11', Load(), lineno=27, col_offset=11, end_lineno=27, end_col_offset=15), Mod(), Name('placeholder_12', Load(), lineno=27, col_offset=18, end_lineno=27, end_col_offset=21), lineno=27, col_offset=11, end_lineno=27, end_col_offset=21), [Eq()], [Constant(0, lineno=27, col_offset=25, end_lineno=27, end_col_offset=26)], lineno=27, col_offset=11, end_lineno=27, end_col_offset=26), [Assign([Name('placeholder_13', Store(), lineno=28, col_offset=12, end_lineno=28, end_col_offset=18)], BinOp(Name('placeholder_11', Load(), lineno=28, col_offset=21, end_lineno=28, end_col_offset=25), FloorDiv(), Name('placeholder_12', Load(), lineno=28, col_offset=29, end_lineno=28, end_col_offset=32), lineno=28, col_offset=21, end_lineno=28, end_col_offset=32), lineno=28, col_offset=12, end_lineno=28, end_col_offset=32), If(BoolOp(And(), [Compare(BinOp(BinOp(Name('placeholder_13', Load(), lineno=29, col_offset=16, end_lineno=29, end_col_offset=22), Sub(), Name('placeholder_12', Load(), lineno=29, col_offset=25, end_lineno=29, end_col_offset=28), lineno=29, col_offset=16, end_lineno=29, end_col_offset=28), Mod(), Constant(2, lineno=29, col_offset=32, end_lineno=29, end_col_offset=33), lineno=29, col_offset=15, end_lineno=29, end_col_offset=33), [Eq()], [Constant(1, lineno=29, col_offset=37, end_lineno=29, end_col_offset=38)], lineno=29, col_offset=15, end_lineno=29, end_col_offset=38), Compare(Call(Name('gcd', Load(), lineno=29, col_offset=43, end_lineno=29, end_col_offset=46), [Name('placeholder_13', Load(), lineno=29, col_offset=47, end_lineno=29, end_col_offset=53), Name('placeholder_12', Load(), lineno=29, col_offset=55, end_lineno=29, end_col_offset=58)], [], lineno=29, col_offset=43, end_lineno=29, end_col_offset=59), [Eq()], [Constant(1, lineno=29, col_offset=63, end_lineno=29, end_col_offset=64)], lineno=29, col_offset=43, end_lineno=29, end_col_offset=64)], lineno=29, col_offset=15, end_lineno=29, end_col_offset=64), [Expr(Yield(Tuple([Name('placeholder_13', Load(), lineno=30, col_offset=22, end_lineno=30, end_col_offset=28), Name('placeholder_12', Load(), lineno=30, col_offset=30, end_lineno=30, end_col_offset=33)], Load(), lineno=30, col_offset=22, end_lineno=30, end_col_offset=33), lineno=30, col_offset=16, end_lineno=30, end_col_offset=33), lineno=30, col_offset=16, end_lineno=30, end_col_offset=33)], [], lineno=29, col_offset=12, end_lineno=30, end_col_offset=33)], [], lineno=27, col_offset=8, end_lineno=30, end_col_offset=33)], [], lineno=26, col_offset=4, end_lineno=30, end_col_offset=33)], [], lineno=24, col_offset=0, end_lineno=30, end_col_offset=33), FunctionDef('placeholder_14', arguments([], [arg('placeholder_3', lineno=33, col_offset=23, end_lineno=33, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [For(Tuple([Name('placeholder_15', Store(), lineno=38, col_offset=8, end_lineno=38, end_col_offset=16), Name('placeholder_16', Store(), lineno=38, col_offset=18, end_lineno=38, end_col_offset=26)], Store(), lineno=38, col_offset=8, end_lineno=38, end_col_offset=26), Call(Name('placeholder_10', Load(), lineno=38, col_offset=30, end_lineno=38, end_col_offset=48), [Name('placeholder_3', Load(), lineno=38, col_offset=49, end_lineno=38, end_col_offset=54)], [], lineno=38, col_offset=30, end_lineno=38, end_col_offset=55), [Assign([Name('placeholder_17', Store(), lineno=39, col_offset=8, end_lineno=39, end_col_offset=14)], BinOp(Name('placeholder_15', Load(), lineno=39, col_offset=17, end_lineno=39, end_col_offset=25), Pow(), Constant(2, lineno=39, col_offset=29, end_lineno=39, end_col_offset=30), lineno=39, col_offset=17, end_lineno=39, end_col_offset=30), lineno=39, col_offset=8, end_lineno=39, end_col_offset=30), Assign([Name('placeholder_18', Store(), lineno=40, col_offset=8, end_lineno=40, end_col_offset=14)], BinOp(Name('placeholder_16', Load(), lineno=40, col_offset=17, end_lineno=40, end_col_offset=25), Pow(), Constant(2, lineno=40, col_offset=29, end_lineno=40, end_col_offset=30), lineno=40, col_offset=17, end_lineno=40, end_col_offset=30), lineno=40, col_offset=8, end_lineno=40, end_col_offset=30), Assign([Name('placeholder_7', Store(), lineno=42, col_offset=8, end_lineno=42, end_col_offset=13)], BinOp(Name('placeholder_17', Load(), lineno=42, col_offset=16, end_lineno=42, end_col_offset=22), Sub(), Name('placeholder_18', Load(), lineno=42, col_offset=25, end_lineno=42, end_col_offset=31), lineno=42, col_offset=16, end_lineno=42, end_col_offset=31), lineno=42, col_offset=8, end_lineno=42, end_col_offset=31), Assign([Name('placeholder_8', Store(), lineno=43, col_offset=8, end_lineno=43, end_col_offset=12)], BinOp(BinOp(Constant(2, lineno=43, col_offset=15, end_lineno=43, end_col_offset=16), Mult(), Name('placeholder_15', Load(), lineno=43, col_offset=19, end_lineno=43, end_col_offset=27), lineno=43, col_offset=15, end_lineno=43, end_col_offset=27), Mult(), Name('placeholder_16', Load(), lineno=43, col_offset=30, end_lineno=43, end_col_offset=38), lineno=43, col_offset=15, end_lineno=43, end_col_offset=38), lineno=43, col_offset=8, end_lineno=43, end_col_offset=38), Assign([Name('placeholder_9', Store(), lineno=44, col_offset=8, end_lineno=44, end_col_offset=13)], BinOp(Name('placeholder_17', Load(), lineno=44, col_offset=16, end_lineno=44, end_col_offset=22), Add(), Name('placeholder_18', Load(), lineno=44, col_offset=25, end_lineno=44, end_col_offset=31), lineno=44, col_offset=16, end_lineno=44, end_col_offset=31), lineno=44, col_offset=8, end_lineno=44, end_col_offset=31), If(Compare(Name('placeholder_7', Load(), lineno=46, col_offset=11, end_lineno=46, end_col_offset=16), [Gt()], [Name('placeholder_8', Load(), lineno=46, col_offset=19, end_lineno=46, end_col_offset=23)], lineno=46, col_offset=11, end_lineno=46, end_col_offset=23), [Assign([Tuple([Name('placeholder_7', Store(), lineno=47, col_offset=12, end_lineno=47, end_col_offset=17), Name('placeholder_8', Store(), lineno=47, col_offset=19, end_lineno=47, end_col_offset=23)], Store(), lineno=47, col_offset=12, end_lineno=47, end_col_offset=23)], Tuple([Name('placeholder_8', Load(), lineno=47, col_offset=26, end_lineno=47, end_col_offset=30), Name('placeholder_7', Load(), lineno=47, col_offset=32, end_lineno=47, end_col_offset=37)], Load(), lineno=47, col_offset=26, end_lineno=47, end_col_offset=37), lineno=47, col_offset=12, end_lineno=47, end_col_offset=37)], [], lineno=46, col_offset=8, end_lineno=47, end_col_offset=37), Expr(Yield(Tuple([Name('placeholder_7', Load(), lineno=49, col_offset=14, end_lineno=49, end_col_offset=19), Name('placeholder_8', Load(), lineno=49, col_offset=21, end_lineno=49, end_col_offset=25), Name('placeholder_9', Load(), lineno=49, col_offset=27, end_lineno=49, end_col_offset=32)], Load(), lineno=49, col_offset=14, end_lineno=49, end_col_offset=32), lineno=49, col_offset=8, end_lineno=49, end_col_offset=32), lineno=49, col_offset=8, end_lineno=49, end_col_offset=32)], [], lineno=38, col_offset=4, end_lineno=49, end_col_offset=32)], [], lineno=33, col_offset=0, end_lineno=49, end_col_offset=32), FunctionDef('placeholder_19', arguments([], [arg('placeholder_20', lineno=52, col_offset=22, end_lineno=52, end_col_offset=28)], kwonlyargs=[], kw_defaults=[], defaults=[]), [Return(ListComp(Name('placeholder_21', Load(), lineno=54, col_offset=8, end_lineno=54, end_col_offset=15), [comprehension(Name('placeholder_21', Store(), lineno=54, col_offset=20, end_lineno=54, end_col_offset=27), Call(Name('placeholder_0', Load(), lineno=55, col_offset=11, end_lineno=55, end_col_offset=28), [Constant(1, lineno=55, col_offset=29, end_lineno=55, end_col_offset=30), BinOp(Name('placeholder_20', Load(), lineno=55, col_offset=32, end_lineno=55, end_col_offset=38), FloorDiv(), Constant(2, lineno=55, col_offset=42, end_lineno=55, end_col_offset=43), lineno=55, col_offset=32, end_lineno=55, end_col_offset=43)], [], lineno=55, col_offset=11, end_lineno=55, end_col_offset=44), [Compare(Call(Name('sum', Load(), lineno=56, col_offset=11, end_lineno=56, end_col_offset=14), [Name('placeholder_21', Load(), lineno=56, col_offset=15, end_lineno=56, end_col_offset=22)], [], lineno=56, col_offset=11, end_lineno=56, end_col_offset=23), [Eq()], [Name('placeholder_20', Load(), lineno=56, col_offset=27, end_lineno=56, end_col_offset=33)], lineno=56, col_offset=11, end_lineno=56, end_col_offset=33)], 0)], lineno=53, col_offset=11, end_lineno=57, end_col_offset=9), lineno=53, col_offset=4, end_lineno=57, end_col_offset=9)], [], lineno=52, col_offset=0, end_lineno=57, end_col_offset=9)], []) \ No newline at end of file