def has_invalid_ret_offset(self):
    "\n        :return boolean: Returns True if the gadget is 'ret' ending and contains a constant offset that is not byte\n                         aligned or is greater than 32 bytes, False otherwise\n        "
    last_instr = self.instructions[(len(self.instructions) - 1)]
    if (last_instr.opcode.startswith('ret') and (last_instr.op1 is not None)):
        offset = Instruction.get_operand_as_constant(last_instr.op1)
        if (((offset % 2) != 0) or (offset > 32)):
            return True
    return False
:return boolean: Returns True if the gadget is 'ret' ending and contains a constant offset that is not byte
                 aligned or is greater than 32 bytes, False otherwise
def has_invalid_ret_offset(self):
    "\n        :return boolean: Returns True if the gadget is 'ret' ending and contains a constant offset that is not byte\n                         aligned or is greater than 32 bytes, False otherwise\n        "
    last_instr = self.instructions[(len(self.instructions) - 1)]
    if (last_instr.opcode.startswith('ret') and (last_instr.op1 is not None)):
        offset = Instruction.get_operand_as_constant(last_instr.op1)
        if (((offset % 2) != 0) or (offset > 32)):
            return True
    return False