@@ -427,7 +427,7 @@ def foo(x):
427427 return foo
428428
429429dis_nested_0 = """\
430- %3d 0 LOAD_CLOSURE 0 (y)
430+ %3d 0 LOAD_CLOSURE 2 (y)
431431 2 BUILD_TUPLE 1
432432 4 LOAD_CONST 1 (<code object foo at 0x..., file "%s", line %d>)
433433 6 LOAD_CONST 2 ('_h.<locals>.foo')
@@ -444,12 +444,12 @@ def foo(x):
444444
445445dis_nested_1 = """%s
446446Disassembly of <code object foo at 0x..., file "%s", line %d>:
447- %3d 0 LOAD_CLOSURE 0 (x)
447+ %3d 0 LOAD_CLOSURE 1 (x)
448448 2 BUILD_TUPLE 1
449449 4 LOAD_CONST 1 (<code object <listcomp> at 0x..., file "%s", line %d>)
450450 6 LOAD_CONST 2 ('_h.<locals>.foo.<locals>.<listcomp>')
451451 8 MAKE_FUNCTION 8 (closure)
452- 10 LOAD_DEREF 1 (y)
452+ 10 LOAD_DEREF 2 (y)
453453 12 GET_ITER
454454 14 CALL_FUNCTION 1
455455 16 RETURN_VALUE
@@ -467,7 +467,7 @@ def foo(x):
467467 2 LOAD_FAST 0 (.0)
468468 >> 4 FOR_ITER 6 (to 18)
469469 6 STORE_FAST 1 (z)
470- 8 LOAD_DEREF 0 (x)
470+ 8 LOAD_DEREF 2 (x)
471471 10 LOAD_FAST 1 (z)
472472 12 BINARY_ADD
473473 14 LIST_APPEND 2
@@ -962,16 +962,16 @@ def jumpy():
962962Instruction = dis .Instruction
963963expected_opinfo_outer = [
964964 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 8 , argval = (3 , 4 ), argrepr = '(3, 4)' , offset = 0 , starts_line = 2 , is_jump_target = False ),
965- Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 2 , starts_line = None , is_jump_target = False ),
966- Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 4 , starts_line = None , is_jump_target = False ),
965+ Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 3 , argval = 'a' , argrepr = 'a' , offset = 2 , starts_line = None , is_jump_target = False ),
966+ Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 4 , argval = 'b' , argrepr = 'b' , offset = 4 , starts_line = None , is_jump_target = False ),
967967 Instruction (opname = 'BUILD_TUPLE' , opcode = 102 , arg = 2 , argval = 2 , argrepr = '' , offset = 6 , starts_line = None , is_jump_target = False ),
968968 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 3 , argval = code_object_f , argrepr = repr (code_object_f ), offset = 8 , starts_line = None , is_jump_target = False ),
969969 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 4 , argval = 'outer.<locals>.f' , argrepr = "'outer.<locals>.f'" , offset = 10 , starts_line = None , is_jump_target = False ),
970970 Instruction (opname = 'MAKE_FUNCTION' , opcode = 132 , arg = 9 , argval = 9 , argrepr = 'defaults, closure' , offset = 12 , starts_line = None , is_jump_target = False ),
971971 Instruction (opname = 'STORE_FAST' , opcode = 125 , arg = 2 , argval = 'f' , argrepr = 'f' , offset = 14 , starts_line = None , is_jump_target = False ),
972972 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 0 , argval = 'print' , argrepr = 'print' , offset = 16 , starts_line = 7 , is_jump_target = False ),
973- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 18 , starts_line = None , is_jump_target = False ),
974- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 20 , starts_line = None , is_jump_target = False ),
973+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 3 , argval = 'a' , argrepr = 'a' , offset = 18 , starts_line = None , is_jump_target = False ),
974+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 4 , argval = 'b' , argrepr = 'b' , offset = 20 , starts_line = None , is_jump_target = False ),
975975 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 5 , argval = '' , argrepr = "''" , offset = 22 , starts_line = None , is_jump_target = False ),
976976 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 6 , argval = 1 , argrepr = '1' , offset = 24 , starts_line = None , is_jump_target = False ),
977977 Instruction (opname = 'BUILD_LIST' , opcode = 103 , arg = 0 , argval = 0 , argrepr = '' , offset = 26 , starts_line = None , is_jump_target = False ),
@@ -985,20 +985,20 @@ def jumpy():
985985
986986expected_opinfo_f = [
987987 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 5 , argval = (5 , 6 ), argrepr = '(5, 6)' , offset = 0 , starts_line = 3 , is_jump_target = False ),
988- Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 2 , argval = 'a' , argrepr = 'a' , offset = 2 , starts_line = None , is_jump_target = False ),
989- Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 3 , argval = 'b' , argrepr = 'b' , offset = 4 , starts_line = None , is_jump_target = False ),
990- Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 6 , starts_line = None , is_jump_target = False ),
991- Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 8 , starts_line = None , is_jump_target = False ),
988+ Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 5 , argval = 'a' , argrepr = 'a' , offset = 2 , starts_line = None , is_jump_target = False ),
989+ Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 6 , argval = 'b' , argrepr = 'b' , offset = 4 , starts_line = None , is_jump_target = False ),
990+ Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 3 , argval = 'c' , argrepr = 'c' , offset = 6 , starts_line = None , is_jump_target = False ),
991+ Instruction (opname = 'LOAD_CLOSURE' , opcode = 135 , arg = 4 , argval = 'd' , argrepr = 'd' , offset = 8 , starts_line = None , is_jump_target = False ),
992992 Instruction (opname = 'BUILD_TUPLE' , opcode = 102 , arg = 4 , argval = 4 , argrepr = '' , offset = 10 , starts_line = None , is_jump_target = False ),
993993 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 3 , argval = code_object_inner , argrepr = repr (code_object_inner ), offset = 12 , starts_line = None , is_jump_target = False ),
994994 Instruction (opname = 'LOAD_CONST' , opcode = 100 , arg = 4 , argval = 'outer.<locals>.f.<locals>.inner' , argrepr = "'outer.<locals>.f.<locals>.inner'" , offset = 14 , starts_line = None , is_jump_target = False ),
995995 Instruction (opname = 'MAKE_FUNCTION' , opcode = 132 , arg = 9 , argval = 9 , argrepr = 'defaults, closure' , offset = 16 , starts_line = None , is_jump_target = False ),
996996 Instruction (opname = 'STORE_FAST' , opcode = 125 , arg = 2 , argval = 'inner' , argrepr = 'inner' , offset = 18 , starts_line = None , is_jump_target = False ),
997997 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 0 , argval = 'print' , argrepr = 'print' , offset = 20 , starts_line = 5 , is_jump_target = False ),
998- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 2 , argval = 'a' , argrepr = 'a' , offset = 22 , starts_line = None , is_jump_target = False ),
999- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 3 , argval = 'b' , argrepr = 'b' , offset = 24 , starts_line = None , is_jump_target = False ),
1000- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 0 , argval = 'c' , argrepr = 'c' , offset = 26 , starts_line = None , is_jump_target = False ),
1001- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 1 , argval = 'd' , argrepr = 'd' , offset = 28 , starts_line = None , is_jump_target = False ),
998+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 5 , argval = 'a' , argrepr = 'a' , offset = 22 , starts_line = None , is_jump_target = False ),
999+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 6 , argval = 'b' , argrepr = 'b' , offset = 24 , starts_line = None , is_jump_target = False ),
1000+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 3 , argval = 'c' , argrepr = 'c' , offset = 26 , starts_line = None , is_jump_target = False ),
1001+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 4 , argval = 'd' , argrepr = 'd' , offset = 28 , starts_line = None , is_jump_target = False ),
10021002 Instruction (opname = 'CALL_FUNCTION' , opcode = 131 , arg = 4 , argval = 4 , argrepr = '' , offset = 30 , starts_line = None , is_jump_target = False ),
10031003 Instruction (opname = 'POP_TOP' , opcode = 1 , arg = None , argval = None , argrepr = '' , offset = 32 , starts_line = None , is_jump_target = False ),
10041004 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 2 , argval = 'inner' , argrepr = 'inner' , offset = 34 , starts_line = 6 , is_jump_target = False ),
@@ -1007,10 +1007,10 @@ def jumpy():
10071007
10081008expected_opinfo_inner = [
10091009 Instruction (opname = 'LOAD_GLOBAL' , opcode = 116 , arg = 0 , argval = 'print' , argrepr = 'print' , offset = 0 , starts_line = 4 , is_jump_target = False ),
1010- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 0 , argval = 'a' , argrepr = 'a' , offset = 2 , starts_line = None , is_jump_target = False ),
1011- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 1 , argval = 'b' , argrepr = 'b' , offset = 4 , starts_line = None , is_jump_target = False ),
1012- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 2 , argval = 'c' , argrepr = 'c' , offset = 6 , starts_line = None , is_jump_target = False ),
1013- Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 3 , argval = 'd' , argrepr = 'd' , offset = 8 , starts_line = None , is_jump_target = False ),
1010+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 2 , argval = 'a' , argrepr = 'a' , offset = 2 , starts_line = None , is_jump_target = False ),
1011+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 3 , argval = 'b' , argrepr = 'b' , offset = 4 , starts_line = None , is_jump_target = False ),
1012+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 4 , argval = 'c' , argrepr = 'c' , offset = 6 , starts_line = None , is_jump_target = False ),
1013+ Instruction (opname = 'LOAD_DEREF' , opcode = 136 , arg = 5 , argval = 'd' , argrepr = 'd' , offset = 8 , starts_line = None , is_jump_target = False ),
10141014 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 0 , argval = 'e' , argrepr = 'e' , offset = 10 , starts_line = None , is_jump_target = False ),
10151015 Instruction (opname = 'LOAD_FAST' , opcode = 124 , arg = 1 , argval = 'f' , argrepr = 'f' , offset = 12 , starts_line = None , is_jump_target = False ),
10161016 Instruction (opname = 'CALL_FUNCTION' , opcode = 131 , arg = 6 , argval = 6 , argrepr = '' , offset = 14 , starts_line = None , is_jump_target = False ),
0 commit comments