def check_branch_target_of_operation(self):
    "\n        :return void: Increases gadget's score if the gadget has an intermediate instruction that performs certain\n                      operations on the indirect branch target register family.\n        "
    last_instr = self.instructions[(len(self.instructions) - 1)]
    target_family = Instruction.get_operand_register_family(last_instr.op1)
    for i in range((len(self.instructions) - 1)):
        cur_instr = self.instructions[i]
        if (not cur_instr.creates_value()):
            continue
        if (Instruction.get_operand_register_family(cur_instr.op1) == target_family):
            if (cur_instr.opcode in ['shl', 'shr', 'sar', 'sal', 'ror', 'rol', 'rcr', 'rcl']):
                self.score += 3.0
            else:
                self.score += 2.0
:return void: Increases gadget's score if the gadget has an intermediate instruction that performs certain
              operations on the indirect branch target register family.
def check_branch_target_of_operation(self):
    "\n        :return void: Increases gadget's score if the gadget has an intermediate instruction that performs certain\n                      operations on the indirect branch target register family.\n        "
    last_instr = self.instructions[(len(self.instructions) - 1)]
    target_family = Instruction.get_operand_register_family(last_instr.op1)
    for i in range((len(self.instructions) - 1)):
        cur_instr = self.instructions[i]
        if (not cur_instr.creates_value()):
            continue
        if (Instruction.get_operand_register_family(cur_instr.op1) == target_family):
            if (cur_instr.opcode in ['shl', 'shr', 'sar', 'sal', 'ror', 'rol', 'rcr', 'rcl']):
                self.score += 3.0
            else:
                self.score += 2.0