| 70 | }; |
| 71 | |
| 72 | int Pyc::ByteToOpcode(int maj, int min, int opcode) |
| 73 | { |
| 74 | switch (maj) { |
| 75 | case 1: |
| 76 | switch (min) { |
| 77 | case 0: return python_1_0_map(opcode); |
| 78 | case 1: return python_1_1_map(opcode); |
| 79 | case 3: return python_1_3_map(opcode); |
| 80 | case 4: return python_1_4_map(opcode); |
| 81 | case 5: return python_1_5_map(opcode); |
| 82 | case 6: return python_1_6_map(opcode); |
| 83 | } |
| 84 | break; |
| 85 | case 2: |
| 86 | switch (min) { |
| 87 | case 0: return python_2_0_map(opcode); |
| 88 | case 1: return python_2_1_map(opcode); |
| 89 | case 2: return python_2_2_map(opcode); |
| 90 | case 3: return python_2_3_map(opcode); |
| 91 | case 4: return python_2_4_map(opcode); |
| 92 | case 5: return python_2_5_map(opcode); |
| 93 | case 6: return python_2_6_map(opcode); |
| 94 | case 7: return python_2_7_map(opcode); |
| 95 | } |
| 96 | break; |
| 97 | case 3: |
| 98 | switch (min) { |
| 99 | case 0: return python_3_0_map(opcode); |
| 100 | case 1: return python_3_1_map(opcode); |
| 101 | case 2: return python_3_2_map(opcode); |
| 102 | case 3: return python_3_3_map(opcode); |
| 103 | case 4: return python_3_4_map(opcode); |
| 104 | case 5: return python_3_5_map(opcode); |
| 105 | case 6: return python_3_6_map(opcode); |
| 106 | case 7: return python_3_7_map(opcode); |
| 107 | case 8: return python_3_8_map(opcode); |
| 108 | case 9: return python_3_9_map(opcode); |
| 109 | case 10: return python_3_10_map(opcode); |
| 110 | case 11: return python_3_11_map(opcode); |
| 111 | case 12: return python_3_12_map(opcode); |
| 112 | case 13: return python_3_13_map(opcode); |
| 113 | case 14: return python_3_14_map(opcode); |
| 114 | } |
| 115 | break; |
| 116 | } |
| 117 | return PYC_INVALID_OPCODE; |
| 118 | } |
| 119 | |
| 120 | void print_const(std::ostream& pyc_output, PycRef<PycObject> obj, PycModule* mod, |
| 121 | const char* parent_f_string_quote, bool das_decrypt_print) |
nothing calls this directly
no outgoing calls
no test coverage detected