# This file is generated by Tools/cases_generator/generate_cases.py # from: # Python/bytecodes.c # Do not edit! _specializations = { "RESUME": [ "RESUME_CHECK", ], "TO_BOOL": [ "TO_BOOL_ALWAYS_TRUE", "TO_BOOL_BOOL", "TO_BOOL_INT", "TO_BOOL_LIST", "TO_BOOL_NONE", "TO_BOOL_STR", ], "BINARY_OP": [ "BINARY_OP_MULTIPLY_INT", "BINARY_OP_ADD_INT", "BINARY_OP_SUBTRACT_INT", "BINARY_OP_MULTIPLY_FLOAT", "BINARY_OP_ADD_FLOAT", "BINARY_OP_SUBTRACT_FLOAT", "BINARY_OP_ADD_UNICODE", ], "BINARY_SUBSCR": [ "BINARY_SUBSCR_DICT", "BINARY_SUBSCR_GETITEM", "BINARY_SUBSCR_LIST_INT", "BINARY_SUBSCR_STR_INT", "BINARY_SUBSCR_TUPLE_INT", ], "STORE_SUBSCR": [ "STORE_SUBSCR_DICT", "STORE_SUBSCR_LIST_INT", ], "SEND": [ "SEND_GEN", ], "UNPACK_SEQUENCE": [ "UNPACK_SEQUENCE_TWO_TUPLE", "UNPACK_SEQUENCE_TUPLE", "UNPACK_SEQUENCE_LIST", ], "STORE_ATTR": [ "STORE_ATTR_INSTANCE_VALUE", "STORE_ATTR_SLOT", "STORE_ATTR_WITH_HINT", ], "LOAD_GLOBAL": [ "LOAD_GLOBAL_MODULE", "LOAD_GLOBAL_BUILTIN", ], "LOAD_SUPER_ATTR": [ "LOAD_SUPER_ATTR_ATTR", "LOAD_SUPER_ATTR_METHOD", ], "LOAD_ATTR": [ "LOAD_ATTR_INSTANCE_VALUE", "LOAD_ATTR_MODULE", "LOAD_ATTR_WITH_HINT", "LOAD_ATTR_SLOT", "LOAD_ATTR_CLASS", "LOAD_ATTR_PROPERTY", "LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN", "LOAD_ATTR_METHOD_WITH_VALUES", "LOAD_ATTR_METHOD_NO_DICT", "LOAD_ATTR_METHOD_LAZY_DICT", "LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES", "LOAD_ATTR_NONDESCRIPTOR_NO_DICT", ], "COMPARE_OP": [ "COMPARE_OP_FLOAT", "COMPARE_OP_INT", "COMPARE_OP_STR", ], "FOR_ITER": [ "FOR_ITER_LIST", "FOR_ITER_TUPLE", "FOR_ITER_RANGE", "FOR_ITER_GEN", ], "CALL": [ "CALL_BOUND_METHOD_EXACT_ARGS", "CALL_PY_EXACT_ARGS", "CALL_PY_WITH_DEFAULTS", "CALL_TYPE_1", "CALL_STR_1", "CALL_TUPLE_1", "CALL_BUILTIN_CLASS", "CALL_BUILTIN_O", "CALL_BUILTIN_FAST", "CALL_BUILTIN_FAST_WITH_KEYWORDS", "CALL_LEN", "CALL_ISINSTANCE", "CALL_LIST_APPEND", "CALL_METHOD_DESCRIPTOR_O", "CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS", "CALL_METHOD_DESCRIPTOR_NOARGS", "CALL_METHOD_DESCRIPTOR_FAST", "CALL_ALLOC_AND_ENTER_INIT", ], } # An irregular case: _specializations["BINARY_OP"].append("BINARY_OP_INPLACE_ADD_UNICODE") _specialized_opmap = { 'BINARY_OP_INPLACE_ADD_UNICODE': 3, 'BINARY_OP_ADD_FLOAT': 150, 'BINARY_OP_ADD_INT': 151, 'BINARY_OP_ADD_UNICODE': 152, 'BINARY_OP_MULTIPLY_FLOAT': 153, 'BINARY_OP_MULTIPLY_INT': 154, 'BINARY_OP_SUBTRACT_FLOAT': 155, 'BINARY_OP_SUBTRACT_INT': 156, 'BINARY_SUBSCR_DICT': 157, 'BINARY_SUBSCR_GETITEM': 158, 'BINARY_SUBSCR_LIST_INT': 159, 'BINARY_SUBSCR_STR_INT': 160, 'BINARY_SUBSCR_TUPLE_INT': 161, 'CALL_ALLOC_AND_ENTER_INIT': 162, 'CALL_BOUND_METHOD_EXACT_ARGS': 163, 'CALL_BUILTIN_CLASS': 164, 'CALL_BUILTIN_FAST': 165, 'CALL_BUILTIN_FAST_WITH_KEYWORDS': 166, 'CALL_BUILTIN_O': 167, 'CALL_ISINSTANCE': 168, 'CALL_LEN': 169, 'CALL_LIST_APPEND': 170, 'CALL_METHOD_DESCRIPTOR_FAST': 171, 'CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS': 172, 'CALL_METHOD_DESCRIPTOR_NOARGS': 173, 'CALL_METHOD_DESCRIPTOR_O': 174, 'CALL_PY_EXACT_ARGS': 175, 'CALL_PY_WITH_DEFAULTS': 176, 'CALL_STR_1': 177, 'CALL_TUPLE_1': 178, 'CALL_TYPE_1': 179, 'COMPARE_OP_FLOAT': 180, 'COMPARE_OP_INT': 181, 'COMPARE_OP_STR': 182, 'FOR_ITER_GEN': 183, 'FOR_ITER_LIST': 184, 'FOR_ITER_RANGE': 185, 'FOR_ITER_TUPLE': 186, 'LOAD_ATTR_CLASS': 187, 'LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN': 188, 'LOAD_ATTR_INSTANCE_VALUE': 189, 'LOAD_ATTR_METHOD_LAZY_DICT': 190, 'LOAD_ATTR_METHOD_NO_DICT': 191, 'LOAD_ATTR_METHOD_WITH_VALUES': 192, 'LOAD_ATTR_MODULE': 193, 'LOAD_ATTR_NONDESCRIPTOR_NO_DICT': 194, 'LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES': 195, 'LOAD_ATTR_PROPERTY': 196, 'LOAD_ATTR_SLOT': 197, 'LOAD_ATTR_WITH_HINT': 198, 'LOAD_GLOBAL_BUILTIN': 199, 'LOAD_GLOBAL_MODULE': 200, 'LOAD_SUPER_ATTR_ATTR': 201, 'LOAD_SUPER_ATTR_METHOD': 202, 'RESUME_CHECK': 203, 'SEND_GEN': 204, 'STORE_ATTR_INSTANCE_VALUE': 205, 'STORE_ATTR_SLOT': 206, 'STORE_ATTR_WITH_HINT': 207, 'STORE_SUBSCR_DICT': 208, 'STORE_SUBSCR_LIST_INT': 209, 'TO_BOOL_ALWAYS_TRUE': 210, 'TO_BOOL_BOOL': 211, 'TO_BOOL_INT': 212, 'TO_BOOL_LIST': 213, 'TO_BOOL_NONE': 214, 'TO_BOOL_STR': 215, 'UNPACK_SEQUENCE_LIST': 216, 'UNPACK_SEQUENCE_TUPLE': 217, 'UNPACK_SEQUENCE_TWO_TUPLE': 218, } opmap = { 'CACHE': 0, 'BEFORE_ASYNC_WITH': 1, 'BEFORE_WITH': 2, 'BINARY_SLICE': 4, 'BINARY_SUBSCR': 5, 'CHECK_EG_MATCH': 6, 'CHECK_EXC_MATCH': 7, 'CLEANUP_THROW': 8, 'DELETE_SUBSCR': 9, 'END_ASYNC_FOR': 10, 'END_FOR': 11, 'END_SEND': 12, 'EXIT_INIT_CHECK': 13, 'FORMAT_SIMPLE': 14, 'FORMAT_WITH_SPEC': 15, 'GET_AITER': 16, 'RESERVED': 17, 'GET_ANEXT': 18, 'GET_ITER': 19, 'GET_LEN': 20, 'GET_YIELD_FROM_ITER': 21, 'INTERPRETER_EXIT': 22, 'LOAD_ASSERTION_ERROR': 23, 'LOAD_BUILD_CLASS': 24, 'LOAD_LOCALS': 25, 'MAKE_FUNCTION': 26, 'MATCH_KEYS': 27, 'MATCH_MAPPING': 28, 'MATCH_SEQUENCE': 29, 'NOP': 30, 'POP_EXCEPT': 31, 'POP_TOP': 32, 'PUSH_EXC_INFO': 33, 'PUSH_NULL': 34, 'RETURN_GENERATOR': 35, 'RETURN_VALUE': 36, 'SETUP_ANNOTATIONS': 37, 'STORE_SLICE': 38, 'STORE_SUBSCR': 39, 'TO_BOOL': 40, 'UNARY_INVERT': 41, 'UNARY_NEGATIVE': 42, 'UNARY_NOT': 43, 'WITH_EXCEPT_START': 44, 'YIELD_VALUE': 45, 'BINARY_OP': 46, 'BUILD_CONST_KEY_MAP': 47, 'BUILD_LIST': 48, 'BUILD_MAP': 49, 'BUILD_SET': 50, 'BUILD_SLICE': 51, 'BUILD_STRING': 52, 'BUILD_TUPLE': 53, 'CALL': 54, 'CALL_FUNCTION_EX': 55, 'CALL_INTRINSIC_1': 56, 'CALL_INTRINSIC_2': 57, 'CALL_KW': 58, 'COMPARE_OP': 59, 'CONTAINS_OP': 60, 'CONVERT_VALUE': 61, 'COPY': 62, 'COPY_FREE_VARS': 63, 'DELETE_ATTR': 64, 'DELETE_DEREF': 65, 'DELETE_FAST': 66, 'DELETE_GLOBAL': 67, 'DELETE_NAME': 68, 'DICT_MERGE': 69, 'DICT_UPDATE': 70, 'ENTER_EXECUTOR': 71, 'EXTENDED_ARG': 72, 'FOR_ITER': 73, 'GET_AWAITABLE': 74, 'IMPORT_FROM': 75, 'IMPORT_NAME': 76, 'IS_OP': 77, 'JUMP_BACKWARD': 78, 'JUMP_BACKWARD_NO_INTERRUPT': 79, 'JUMP_FORWARD': 80, 'LIST_APPEND': 81, 'LIST_EXTEND': 82, 'LOAD_ATTR': 83, 'LOAD_CONST': 84, 'LOAD_DEREF': 85, 'LOAD_FAST': 86, 'LOAD_FAST_AND_CLEAR': 87, 'LOAD_FAST_CHECK': 88, 'LOAD_FAST_LOAD_FAST': 89, 'LOAD_FROM_DICT_OR_DEREF': 90, 'LOAD_FROM_DICT_OR_GLOBALS': 91, 'LOAD_GLOBAL': 92, 'LOAD_NAME': 93, 'LOAD_SUPER_ATTR': 94, 'MAKE_CELL': 95, 'MAP_ADD': 96, 'MATCH_CLASS': 97, 'POP_JUMP_IF_FALSE': 98, 'POP_JUMP_IF_NONE': 99, 'POP_JUMP_IF_NOT_NONE': 100, 'POP_JUMP_IF_TRUE': 101, 'RAISE_VARARGS': 102, 'RERAISE': 103, 'RETURN_CONST': 104, 'SEND': 105, 'SET_ADD': 106, 'SET_FUNCTION_ATTRIBUTE': 107, 'SET_UPDATE': 108, 'STORE_ATTR': 109, 'STORE_DEREF': 110, 'STORE_FAST': 111, 'STORE_FAST_LOAD_FAST': 112, 'STORE_FAST_STORE_FAST': 113, 'STORE_GLOBAL': 114, 'STORE_NAME': 115, 'SWAP': 116, 'UNPACK_EX': 117, 'UNPACK_SEQUENCE': 118, 'RESUME': 149, 'INSTRUMENTED_RESUME': 236, 'INSTRUMENTED_END_FOR': 237, 'INSTRUMENTED_END_SEND': 238, 'INSTRUMENTED_RETURN_VALUE': 239, 'INSTRUMENTED_RETURN_CONST': 240, 'INSTRUMENTED_YIELD_VALUE': 241, 'INSTRUMENTED_LOAD_SUPER_ATTR': 242, 'INSTRUMENTED_FOR_ITER': 243, 'INSTRUMENTED_CALL': 244, 'INSTRUMENTED_CALL_KW': 245, 'INSTRUMENTED_CALL_FUNCTION_EX': 246, 'INSTRUMENTED_INSTRUCTION': 247, 'INSTRUMENTED_JUMP_FORWARD': 248, 'INSTRUMENTED_JUMP_BACKWARD': 249, 'INSTRUMENTED_POP_JUMP_IF_TRUE': 250, 'INSTRUMENTED_POP_JUMP_IF_FALSE': 251, 'INSTRUMENTED_POP_JUMP_IF_NONE': 252, 'INSTRUMENTED_POP_JUMP_IF_NOT_NONE': 253, 'INSTRUMENTED_LINE': 254, 'JUMP': 256, 'JUMP_NO_INTERRUPT': 257, 'LOAD_CLOSURE': 258, 'LOAD_METHOD': 259, 'LOAD_SUPER_METHOD': 260, 'LOAD_ZERO_SUPER_ATTR': 261, 'LOAD_ZERO_SUPER_METHOD': 262, 'POP_BLOCK': 263, 'SETUP_CLEANUP': 264, 'SETUP_FINALLY': 265, 'SETUP_WITH': 266, 'STORE_FAST_MAYBE_NULL': 267, } MIN_INSTRUMENTED_OPCODE = 236 HAVE_ARGUMENT = 46