def contains_intermediate_GPI(self):
    "\n        :return boolean: Returns True if the gadget's intermediate instructions contain a GPI (or a generic interrupt),\n                         False otherwise.\n        "
    for i in range((len(self.instructions) - 1)):
        cur_opcode = self.instructions[i].opcode
        cur_target = self.instructions[i].op1
        if (cur_opcode.startswith('ret') or (cur_opcode == 'syscall') or (cur_opcode == 'sysenter') or cur_opcode.startswith('int') or (('jmp' in cur_opcode) and (not Instruction.is_constant(cur_target))) or (('call' in cur_opcode) and (not Instruction.is_constant(cur_target)))):
            return True
    return False
:return boolean: Returns True if the gadget's intermediate instructions contain a GPI (or a generic interrupt),
                 False otherwise.
def contains_intermediate_GPI(self):
    "\n        :return boolean: Returns True if the gadget's intermediate instructions contain a GPI (or a generic interrupt),\n                         False otherwise.\n        "
    for i in range((len(self.instructions) - 1)):
        cur_opcode = self.instructions[i].opcode
        cur_target = self.instructions[i].op1
        if (cur_opcode.startswith('ret') or (cur_opcode == 'syscall') or (cur_opcode == 'sysenter') or cur_opcode.startswith('int') or (('jmp' in cur_opcode) and (not Instruction.is_constant(cur_target))) or (('call' in cur_opcode) and (not Instruction.is_constant(cur_target)))):
            return True
    return False