def __init__(self, raw_gadget):
    '\n        Gadget constructor\n        :param str raw_gadget: raw line output from ROPgadget\n        '
    self.offset = raw_gadget[:raw_gadget.find(':')]
    self.instruction_string = raw_gadget[(raw_gadget.find(':') + 2):]
    self.instructions = []
    for instr in self.instruction_string.split(' ; '):
        self.instructions.append(Instruction(instr))
    self.score = 0.0
Gadget constructor
:param str raw_gadget: raw line output from ROPgadget
def __init__(self, raw_gadget):
    '\n        Gadget constructor\n        :param str raw_gadget: raw line output from ROPgadget\n        '
    self.offset = raw_gadget[:raw_gadget.find(':')]
    self.instruction_string = raw_gadget[(raw_gadget.find(':') + 2):]
    self.instructions = []
    for instr in self.instruction_string.split(' ; '):
        self.instructions.append(Instruction(instr))
    self.score = 0.0