'Returns a gadget with the exact sequence of instructions specified
in the ``instructions`` argument.'

def find_gadget(self, instructions):

    n = len(instructions)
    for gadget in self.gadgets.values():
        if (tuple(gadget.insns)[:n] == tuple(instructions)):
            return gadget
