|
859 | 859 | "annotations": {} |
860 | 860 | }, |
861 | 861 | { |
862 | | - "src": "x = [i for i in range(3)]", |
863 | | - "constants": ["3"], |
864 | | - "names": ["i_0", "i_1", "x_1"], |
865 | | - "instructions": [["LoadName",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",7], ["StoreName",1], ["Jump",4], ["ListComp",0], ["StoreName",2], ["ReturnValue",0]], |
866 | | - "annotations": {} |
| 862 | + "src": "x = [i for i in range(3)]", |
| 863 | + "constants": ["3"], |
| 864 | + "names": ["i_0", "i_1", "x_1"], |
| 865 | + "instructions": [["BuildList",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",9], ["StoreName",1], ["LoadName",1], ["ListAppend",0], ["Jump",4], ["StoreName",2], ["ReturnValue",0]], |
| 866 | + "annotations": {} |
867 | 867 | }, |
868 | 868 | { |
869 | 869 | "src": "x = (y := 5)", |
|
1021 | 1021 | "annotations": {} |
1022 | 1022 | }, |
1023 | 1023 | { |
1024 | | - "src": "x = [i for i in range(3) for j in range(2)]", |
1025 | | - "constants": ["3", "2"], |
1026 | | - "names": ["i_0", "i_1", "j_1", "x_1"], |
1027 | | - "instructions": [["LoadName",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",13], ["StoreName",1], ["LoadConst",1], ["CallRange",1], ["GetIter",0], ["ForIter",12], ["StoreName",2], ["Jump",9], ["Jump",4], ["ListComp",0], ["StoreName",3], ["ReturnValue",0]], |
1028 | | - "annotations": {} |
| 1024 | + "src": "x = [i for i in range(3) for j in range(2)]", |
| 1025 | + "constants": ["3", "2"], |
| 1026 | + "names": ["i_0", "i_1", "j_1", "x_1"], |
| 1027 | + "instructions": [["BuildList",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",15], ["StoreName",1], ["LoadConst",1], ["CallRange",1], ["GetIter",0], ["ForIter",14], ["StoreName",2], ["LoadName",1], ["ListAppend",0], ["Jump",9], ["Jump",4], ["StoreName",3], ["ReturnValue",0]], |
| 1028 | + "annotations": {} |
1029 | 1029 | }, |
1030 | 1030 | { |
1031 | 1031 | "src": "with a, b:\n pass", |
|
1063 | 1063 | "annotations": {} |
1064 | 1064 | }, |
1065 | 1065 | { |
1066 | | - "src": "x = [i for i in range(10) if i > 2 if i < 8]", |
1067 | | - "constants": ["10", "2", "8"], |
1068 | | - "names": ["i_0", "i_1", "x_1"], |
1069 | | - "instructions": [["LoadName",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",15], ["StoreName",1], ["LoadName",1], ["LoadConst",1], ["Gt",0], ["JumpIfFalse",4], ["LoadName",1], ["LoadConst",2], ["Lt",0], ["JumpIfFalse",4], ["Jump",4], ["ListComp",0], ["StoreName",2], ["ReturnValue",0]], |
| 1066 | + "src": "x = [i for i in range(10) if i > 2 if i < 8]", |
| 1067 | + "constants": ["10", "2", "8"], |
| 1068 | + "names": ["i_0", "i_1", "x_1"], |
| 1069 | + "instructions": [["BuildList",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",17], ["StoreName",1], ["LoadName",1], ["LoadConst",1], ["Gt",0], ["JumpIfFalse",4], ["LoadName",1], ["LoadConst",2], ["Lt",0], ["JumpIfFalse",4], ["LoadName",1], ["ListAppend",0], ["Jump",4], ["StoreName",2], ["ReturnValue",0]], |
1070 | 1070 | "annotations": {} |
1071 | 1071 | }, |
1072 | 1072 | { |
1073 | | - "src": "x = (i for i in range(3))", |
1074 | | - "constants": ["3"], |
1075 | | - "names": ["i_0", "i_1", "x_1"], |
1076 | | - "instructions": [["LoadName",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",7], ["StoreName",1], ["Jump",4], ["GenExpr",0], ["StoreName",2], ["ReturnValue",0]], |
| 1073 | + "src": "x = (i for i in range(3))", |
| 1074 | + "constants": ["3"], |
| 1075 | + "names": ["i_0", "i_1", "x_1"], |
| 1076 | + "instructions": [["BuildList",0], ["LoadConst",0], ["CallRange",1], ["GetIter",0], ["ForIter",9], ["StoreName",1], ["LoadName",1], ["ListAppend",0], ["Jump",4], ["StoreName",2], ["ReturnValue",0]], |
1077 | 1077 | "annotations": {} |
1078 | 1078 | }, |
1079 | 1079 | { |
|
1541 | 1541 | "annotations": {} |
1542 | 1542 | }, |
1543 | 1543 | { |
1544 | | - "src": "x = {k: v for k, v in items}", |
1545 | | - "constants": [], |
1546 | | - "names": ["k_0","v_0","items_0","v_1","k_1","x_1"], |
1547 | | - "instructions": [["LoadName",0],["LoadName",1],["LoadName",2],["GetIter",0],["ForIter",9],["UnpackSequence",2],["StoreName",3],["StoreName",4],["Jump",4],["DictComp",0],["StoreName",5],["ReturnValue",0]], |
| 1544 | + "src": "x = {k: v for k, v in items}", |
| 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]], |
1548 | 1548 | "annotations": {} |
1549 | | - }, |
| 1549 | + } |
1550 | 1550 | { |
1551 | 1551 | "src": "a[0] = 1", |
1552 | 1552 | "constants": ["0","1"], |
|
0 commit comments