def get_jump_targets(code, opc):
offsets = []<EOL>for offset, op, arg in unpack_opargs_bytecode(code, opc):<EOL><INDENT>if arg is not None:<EOL><INDENT>jump_offset = -<NUM_LIT:1><EOL>if op in opc.JREL_OPS:<EOL><INDENT>op_len = op_size(op, opc)<EOL>jump_offset = offset + op_len + arg<EOL><DEDENT>elif op in opc.JABS_OPS:<EOL><INDENT>jump_offset = arg<EOL><DEDENT>if jump_offset >= <NUM_LIT:0>:<EOL><INDENT>if jump_offset not in offsets:<EOL><INDENT>offsets.append(jump_offset)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return offsets<EOL>
Returns a list of instruction offsets in the supplied bytecode
    which are the targets of some sort of jump instruction.