|
668 | 668 | { |
669 | 669 | "src": "a, b = 1, 2", |
670 | 670 | "constants": ["1", "2"], |
671 | | - "names": ["b_1", "a_1"], |
| 671 | + "names": ["a_1", "b_1"], |
672 | 672 | "instructions": [["LoadConst",0], ["LoadConst",1], ["BuildTuple",2], ["UnpackSequence",2], ["StoreName",0], ["StoreName",1], ["ReturnValue",0]], |
673 | 673 | "annotations": {} |
674 | 674 | }, |
675 | 675 | { |
676 | 676 | "src": "a, b, c = 1, 2, 3", |
677 | 677 | "constants": ["1", "2", "3"], |
678 | | - "names": ["c_1", "b_1", "a_1"], |
| 678 | + "names": ["a_1", "b_1", "c_1"], |
679 | 679 | "instructions": [["LoadConst",0], ["LoadConst",1], ["LoadConst",2], ["BuildTuple",3], ["UnpackSequence",3], ["StoreName",0], ["StoreName",1], ["StoreName",2], ["ReturnValue",0]], |
680 | 680 | "annotations": {} |
681 | 681 | }, |
|
988 | 988 | { |
989 | 989 | "src": "*a, b = [1, 2, 3]", |
990 | 990 | "constants": ["1", "2", "3"], |
991 | | - "names": ["b_1", "a_1"], |
| 991 | + "names": ["a_1", "b_1"], |
992 | 992 | "instructions": [["LoadConst",0], ["LoadConst",1], ["LoadConst",2], ["BuildList",3], ["UnpackEx",1], ["StoreName",0], ["StoreName",1], ["ReturnValue",0]], |
993 | 993 | "annotations": {} |
994 | 994 | }, |
995 | 995 | { |
996 | 996 | "src": "a, *b = [1, 2, 3]", |
997 | 997 | "constants": ["1", "2", "3"], |
998 | | - "names": ["b_1", "a_1"], |
| 998 | + "names": ["a_1", "b_1"], |
999 | 999 | "instructions": [["LoadConst",0], ["LoadConst",1], ["LoadConst",2], ["BuildList",3], ["UnpackEx",256], ["StoreName",0], ["StoreName",1], ["ReturnValue",0]], |
1000 | 1000 | "annotations": {} |
1001 | 1001 | }, |
1002 | 1002 | { |
1003 | 1003 | "src": "a, *b, c = [1, 2, 3, 4]", |
1004 | 1004 | "constants": ["1", "2", "3", "4"], |
1005 | | - "names": ["c_1", "b_1", "a_1"], |
| 1005 | + "names": ["a_1", "b_1", "c_1"], |
1006 | 1006 | "instructions": [["LoadConst",0], ["LoadConst",1], ["LoadConst",2], ["LoadConst",3], ["BuildList",4], ["UnpackEx",257], ["StoreName",0], ["StoreName",1], ["StoreName",2], ["ReturnValue",0]], |
1007 | 1007 | "annotations": {} |
1008 | 1008 | }, |
|
1095 | 1095 | { |
1096 | 1096 | "src": "for a, b in x:\n pass", |
1097 | 1097 | "constants": [], |
1098 | | - "names": ["x_0", "b_1", "a_1", "a_0", "a_2", "b_0", "b_2"], |
| 1098 | + "names": ["x_0", "a_1", "b_1", "a_0", "a_2", "b_0", "b_2"], |
1099 | 1099 | "instructions": [["LoadName",0], ["GetIter",0], ["ForIter",7], ["UnpackSequence",2], ["StoreName",1], ["StoreName",2], ["Jump",2], ["Phi",4], ["Phi",6], ["ReturnValue",0]], |
1100 | 1100 | "annotations": {} |
1101 | 1101 | }, |
1102 | 1102 | { |
1103 | 1103 | "src": "for a, b, c in x:\n pass", |
1104 | 1104 | "constants": [], |
1105 | | - "names": ["x_0", "c_1", "b_1", "a_1", "a_0", "a_2", "b_0", "b_2", "c_0", "c_2"], |
| 1105 | + "names": ["x_0", "a_1", "b_1", "c_1", "a_0", "a_2", "b_0", "b_2", "c_0", "c_2"], |
1106 | 1106 | "instructions": [["LoadName",0], ["GetIter",0], ["ForIter",8], ["UnpackSequence",3], ["StoreName",1], ["StoreName",2], ["StoreName",3], ["Jump",2], ["Phi",5], ["Phi",7], ["Phi",9], ["ReturnValue",0]], |
1107 | 1107 | "annotations": {} |
1108 | 1108 | }, |
|
1155 | 1155 | { |
1156 | 1156 | "src": "for (a, b) in x:\n pass", |
1157 | 1157 | "constants": [], |
1158 | | - "names": ["x_0", "b_1", "a_1", "a_0", "a_2", "b_0", "b_2"], |
| 1158 | + "names": ["x_0", "a_1", "b_1", "a_0", "a_2", "b_0", "b_2"], |
1159 | 1159 | "instructions": [["LoadName",0], ["GetIter",0], ["ForIter",7], ["UnpackSequence",2], ["StoreName",1], ["StoreName",2], ["Jump",2], ["Phi",4], ["Phi",6], ["ReturnValue",0]], |
1160 | 1160 | "annotations": {} |
1161 | 1161 | }, |
1162 | 1162 | { |
1163 | 1163 | "src": "for a, *b in x:\n pass", |
1164 | 1164 | "constants": [], |
1165 | | - "names": ["x_0", "b_1", "a_1", "a_0", "a_2", "b_0", "b_2"], |
| 1165 | + "names": ["x_0", "a_1", "b_1", "a_0", "a_2", "b_0", "b_2"], |
1166 | 1166 | "instructions": [["LoadName",0], ["GetIter",0], ["ForIter",7], ["UnpackEx",256], ["StoreName",1], ["StoreName",2], ["Jump",2], ["Phi",4], ["Phi",6], ["ReturnValue",0]], |
1167 | 1167 | "annotations": {} |
1168 | 1168 | }, |
|
1543 | 1543 | { |
1544 | 1544 | "src": "x = {k: v for k, v in items}", |
1545 | 1545 | "constants": [], |
1546 | | - "names": ["k_0", "v_0", "items_0", "v_1", "k_1", "x_1"], |
1547 | | - "instructions": [["BuildDict",0], ["LoadName",2], ["GetIter",0], ["ForIter",11], ["UnpackSequence",2], ["StoreName",3], ["StoreName",4], ["LoadName",4], ["LoadName",3], ["MapAdd",0], ["Jump",3], ["StoreName",5], ["ReturnValue",0]], |
| 1546 | + "names": ["k_0", "v_0", "items_0", "k_1", "v_1", "x_1"], |
| 1547 | + "instructions": [["BuildDict",0], ["LoadName",2], ["GetIter",0], ["ForIter",11], ["UnpackSequence",2], ["StoreName",3], ["StoreName",4], ["LoadName",3], ["LoadName",4], ["MapAdd",0], ["Jump",3], ["StoreName",5], ["ReturnValue",0]], |
1548 | 1548 | "annotations": {} |
1549 | | - } |
| 1549 | + }, |
1550 | 1550 | { |
1551 | 1551 | "src": "a[0] = 1", |
1552 | 1552 | "constants": ["0","1"], |
|
0 commit comments