Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr ListComp Call NameLoad BinOpBitAnd NameLoad Num comprehension NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body ImportFrom alias Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Num Num Call NameLoad NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad NameLoad Num NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Num Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Num Num Assign NameStore BinOpMult ListLoad NameLoad Num Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body AugAssignAdd NameStore ListLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore ListLoad TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad NameLoad AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body For TupleStore NameStore NameStore NameLoad body Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad ListLoad NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad ListLoad NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num Assign NameStore ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad ListLoad NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad ListLoad NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad NameLoad Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad NameLoad NameLoad Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assert CompareEq NameLoad Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assert CompareEq NameLoad Call NameLoad ListLoad NameLoad Num NameLoad Num NameLoad Num NameLoad Num NameLoad NameLoad Num NameLoad NameLoad Num NameLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assert CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Call NameLoad While Num body Assign NameStore Call NameLoad NameLoad Num Num If Call AttributeLoad NameLoad attr body Break Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Assign NameStore Call NameLoad Assert CompareEq NameLoad Num decorator_list decorator_list Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad Print Call AttributeLoad Str attr ListComp Call NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad
N/A N/A py N/A operator pypy.jit.tl.tlopcode * pypy.translator.c.test test_boehm pypy.annotation policy list2bytecode N/A N/A insn N/A N/A N/A N/A N/A join N/A N/A chr N/A i 255 N/A i insn N/A TestTL N/A N/A test_boehm AbstractGCTestClass N/A pypy.jit.tl.tl interp N/A interp N/A staticmethod interp test_tl_push N/A N/A self N/A N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 16 16 N/A test_tl_pop N/A N/A self N/A N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 16 PUSH 42 PUSH 100 POP 42 N/A test_tl_add N/A N/A self N/A N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 42 PUSH 100 ADD 142 N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 16 PUSH 42 PUSH 100 ADD 142 N/A test_tl_error N/A N/A self N/A N/A N/A N/A N/A N/A py test raises IndexError N/A self interp N/A list2bytecode N/A POP N/A N/A N/A N/A py test raises IndexError N/A self interp N/A list2bytecode N/A ADD N/A N/A N/A N/A py test raises IndexError N/A self interp N/A list2bytecode N/A PUSH 100 ADD N/A test_tl_invalid_codetype N/A N/A self N/A N/A N/A N/A N/A N/A py test raises TypeError N/A self interp N/A INVALID N/A test_tl_invalid_bytecode N/A N/A self N/A N/A N/A N/A N/A N/A py test raises RuntimeError N/A self interp N/A list2bytecode N/A INVALID N/A test_tl_translatable N/A N/A self N/A N/A N/A code N/A list2bytecode N/A PUSH 42 PUSH 100 ADD N/A fn N/A N/A self getcompiled N/A self interp N/A str int int N/A N/A N/A N/A self interp code 0 0 N/A fn code 0 0 N/A test_swap N/A N/A self N/A N/A N/A code N/A PUSH 42 PUSH 84 N/A N/A N/A N/A self interp N/A list2bytecode code 84 N/A N/A N/A code append SWAP N/A N/A N/A N/A self interp N/A list2bytecode code 42 N/A N/A N/A code append POP N/A N/A N/A N/A self interp N/A list2bytecode code 84 N/A test_pick N/A N/A self N/A N/A N/A values N/A 7 8 9 N/A code N/A N/A v N/A values N/A -1 N/A N/A N/A N/A code extend N/A PUSH v N/A N/A i v N/A enumerate values N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A code N/A PICK i v N/A test_put N/A N/A self N/A N/A N/A values N/A 1 2 7 -3 N/A code N/A N/A PUSH 0 N/A len values N/A N/A i v N/A enumerate values N/A N/A code N/A PUSH v PUT i N/A N/A i v N/A enumerate values N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A code N/A PICK i v N/A N/A ops N/A N/A ADD N/A operator add N/A N/A 2 4 N/A 1 1 N/A -1 1 N/A SUB N/A operator sub N/A N/A 2 4 N/A 4 2 N/A 1 1 N/A MUL N/A operator mul N/A N/A 2 4 N/A 4 2 N/A 1 1 N/A -1 6 N/A 0 5 N/A DIV N/A operator div N/A N/A 2 4 N/A 4 2 N/A 1 1 N/A -4 -2 N/A 0 9 N/A 9 -3 N/A EQ N/A operator eq N/A N/A 0 0 N/A 0 1 N/A 1 0 N/A 1 1 N/A -1 0 N/A 0 -1 N/A -1 -1 N/A 1 -1 N/A -1 1 N/A NE N/A operator ne N/A N/A 0 0 N/A 0 1 N/A 1 0 N/A 1 1 N/A -1 0 N/A 0 -1 N/A -1 -1 N/A 1 -1 N/A -1 1 N/A LT N/A operator lt N/A N/A 0 0 N/A 0 1 N/A 1 0 N/A 1 1 N/A -1 0 N/A 0 -1 N/A -1 -1 N/A 1 -1 N/A -1 1 N/A LE N/A operator le N/A N/A 0 0 N/A 0 1 N/A 1 0 N/A 1 1 N/A -1 0 N/A 0 -1 N/A -1 -1 N/A 1 -1 N/A -1 1 N/A GT N/A operator gt N/A N/A 0 0 N/A 0 1 N/A 1 0 N/A 1 1 N/A -1 0 N/A 0 -1 N/A -1 -1 N/A 1 -1 N/A -1 1 N/A GE N/A operator ge N/A N/A 0 0 N/A 0 1 N/A 1 0 N/A 1 1 N/A -1 0 N/A 0 -1 N/A -1 -1 N/A 1 -1 N/A -1 1 test_ops N/A N/A self N/A N/A N/A N/A insn pyop values N/A self ops N/A N/A N/A first second values N/A N/A code N/A PUSH first PUSH second insn N/A N/A N/A N/A self interp N/A list2bytecode code N/A pyop first second N/A test_branch_forward N/A N/A self N/A N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 1 PUSH 0 BR_COND 2 PUSH -1 -1 N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 1 PUSH 1 BR_COND 2 PUSH -1 1 N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 1 PUSH -1 BR_COND 2 PUSH -1 1 N/A test_branch_backwards N/A N/A self N/A N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 0 PUSH 1 BR_COND 6 PUSH -1 PUSH 3 BR_COND 4 PUSH 2 BR_COND -10 -1 N/A test_branch0 N/A N/A self N/A N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 7 PUSH 1 BR_COND 0 7 N/A test_return N/A N/A self N/A N/A N/A N/A N/A N/A py test raises IndexError N/A self interp N/A list2bytecode N/A RETURN N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 7 RETURN PUSH 5 7 N/A test_rot N/A N/A self N/A N/A N/A code N/A PUSH 1 PUSH 2 PUSH 3 ROLL 3 N/A N/A N/A N/A self interp N/A list2bytecode code 1 N/A N/A N/A N/A self interp N/A list2bytecode N/A code N/A POP 3 N/A N/A N/A N/A self interp N/A list2bytecode N/A code N/A POP POP 2 N/A N/A N/A N/A py test raises IndexError N/A self interp N/A list2bytecode N/A PUSH 1 PUSH 2 PUSH 3 ROLL 4 N/A code N/A PUSH 1 PUSH 2 PUSH 3 ROLL -3 N/A N/A N/A N/A self interp N/A list2bytecode code 2 N/A N/A N/A N/A self interp N/A list2bytecode N/A code N/A POP 1 N/A N/A N/A N/A self interp N/A list2bytecode N/A code N/A POP POP 3 N/A N/A N/A N/A py test raises IndexError N/A self interp N/A list2bytecode N/A PUSH 1 PUSH 2 PUSH 3 ROLL -4 N/A test_call_ret N/A N/A self N/A N/A N/A N/A N/A N/A self interp N/A list2bytecode N/A CALL 1 RETURN PUSH 2 2 N/A N/A N/A N/A self interp N/A list2bytecode N/A PUSH 6 CALL 2 MUL RETURN PUSH 7 RETURN 42 N/A test_compile_branch_backwards N/A N/A self N/A N/A N/A code N/A compile 
    main:
        PUSH 0
        PUSH 1
        BR_COND somename
    label1:
        PUSH -1
        PUSH 3
        BR_COND end
    somename:   ;
        PUSH 2  //
        BR_COND label1//
    end:// comment
        //
    //
    //comment
     N/A N/A code N/A list2bytecode N/A PUSH 0 PUSH 1 BR_COND 6 PUSH -1 PUSH 3 BR_COND 4 PUSH 2 BR_COND -10 N/A test_compile_call_ret N/A N/A self N/A N/A N/A code N/A compile PUSH 1
        CALL func1
        PUSH 3
        CALL func2
        RETURN

    func1:
        PUSH 2
        RETURN  # comment

    func2:
        PUSH 4   ;comment
        PUSH 5
        ADD
        RETURN N/A N/A code N/A list2bytecode N/A PUSH 1 CALL 5 PUSH 3 CALL 4 RETURN PUSH 2 RETURN PUSH 4 PUSH 5 ADD RETURN N/A test_factorial_seven N/A N/A self N/A N/A N/A code N/A compile 
                PUSH 1   #  accumulator
                PUSH 7   #  N

            start:
                PICK 0
                PUSH 1
                LE
                BR_COND exit

                SWAP
                PICK 1
                MUL
                SWAP
                PUSH 1
                SUB
                PUSH 1
                BR_COND start

            exit:
                POP
                RETURN
         N/A res N/A N/A self interp code N/A N/A res 5040 N/A test_factorial_seven_harder N/A N/A self N/A N/A N/A code N/A compile 
                PUSH 1   #  accumulator
                PUSH 7   #  N

            start:
                PICK 0
                PUSH 1
                LE
                PUSH exit
                BR_COND_STK

                SWAP
                PICK 1
                MUL
                SWAP
                PUSH 1
                SUB
                PUSH 1
                BR_COND start

            exit:
                NOP      # BR_COND_STK skips this instruction
                POP
                RETURN
         N/A res N/A N/A self interp code N/A N/A res 5040 N/A test_factorial_with_arg N/A N/A self N/A N/A N/A code N/A compile FACTORIAL_SOURCE N/A res N/A N/A self interp code 0 6 N/A N/A res 720 N/A test_translate_factorial N/A N/A self N/A N/A N/A N/A N/A N/A py test skip ? N/A code N/A compile FACTORIAL_SOURCE N/A interp N/A self interp driver N/A N/A N/A N/A N/A bench N/A Benchmark N/A 1 N/A N/A res N/A interp code 0 2500 N/A N/A N/A bench stop N/A N/A N/A res N/A N/A fn N/A N/A self getcompiled driver N/A N/A res N/A fn N/A N/A res 0 N/A N/A N/A FACTORIAL_SOURCE 
            PUSH 1   #  accumulator
            PUSHARG

        start:
            PICK 0
            PUSH 1
            LE
            BR_COND exit

            SWAP
            PICK 1
            MUL
            SWAP
            PUSH 1
            SUB
            PUSH 1
            BR_COND start

        exit:
            POP
            RETURN
     N/A N/A __name__ __main__ N/A N/A code N/A compile FACTORIAL_SOURCE N/A N/A N/A , join N/A N/A str N/A ord c N/A c code