@staticmethod
def _is_noop_insn(insn):
    """
        Check if the instruction does nothing.

        :param insn: The capstone insn object.
        :return: True if the instruction does no-op, False otherwise.
        """
    insn_name = insn.insn_name()
    if insn_name == 'nop':
        return True
    elif insn_name == 'lea':
        op0, op1 = insn.operands
        if op0.type == 1 and op1.type == 3:
            if (op0.reg == op1.mem.base and op1.mem.index == 0 and op1.mem.
                disp == 0):
                return True
    elif insn_name == 'mov':
        op0, op1 = insn.operands
        if op0.type == 1 and op1.type == 1:
            if op0.reg == op1.reg:
                return True
    return False
