def check_register_ops(self):
    "\n        :return void: Increases gadget's score if it contains operations on a value carrying or a bystander register\n        "
    first_instr = self.instructions[0]
    if ((not first_instr.creates_value()) or ('xchg' in first_instr.opcode)):
        first_family = None
    else:
        first_family = Instruction.get_operand_register_family(first_instr.op1)
    for i in range(1, (len(self.instructions) - 1)):
        cur_instr = self.instructions[i]
        if (not cur_instr.creates_value()):
            continue
        if ((first_family is not None) and (first_family == Instruction.get_operand_register_family(cur_instr.op1))):
            if (cur_instr.opcode in ['shl', 'shr', 'sar', 'sal', 'ror', 'rol', 'rcr', 'rcl']):
                self.score += 1.5
            else:
                self.score += 1.0
        elif (('xchg' not in cur_instr.opcode) and (cur_instr.opcode != 'pop')):
            if ((cur_instr.op2 is not None) and (Instruction.get_operand_register_family(cur_instr.op2) is not None)):
                self.score += 1.0
            else:
                self.score += 0.5
:return void: Increases gadget's score if it contains operations on a value carrying or a bystander register
def check_register_ops(self):
    "\n        \n        "
    first_instr = self.instructions[0]
    if ((not first_instr.creates_value()) or ('xchg' in first_instr.opcode)):
        first_family = None
    else:
        first_family = Instruction.get_operand_register_family(first_instr.op1)
    for i in range(1, (len(self.instructions) - 1)):
        cur_instr = self.instructions[i]
        if (not cur_instr.creates_value()):
            continue
        if ((first_family is not None) and (first_family == Instruction.get_operand_register_family(cur_instr.op1))):
            if (cur_instr.opcode in ['shl', 'shr', 'sar', 'sal', 'ror', 'rol', 'rcr', 'rcl']):
                self.score += 1.5
            else:
                self.score += 1.0
        elif (('xchg' not in cur_instr.opcode) and (cur_instr.opcode != 'pop')):
            if ((cur_instr.op2 is not None) and (Instruction.get_operand_register_family(cur_instr.op2) is not None)):
                self.score += 1.0
            else:
                self.score += 0.5