def check_contains_leave(self):
    '\n        :return void: Increases gadget\'s score if the gadget has an intermediate "leave" instruction.\n        '
    for i in range(1, (len(self.instructions) - 1)):
        if (self.instructions[i].opcode == 'leave'):
            self.score += 2.0
            return
:return void: Increases gadget's score if the gadget has an intermediate "leave" instruction.
def check_contains_leave(self):
    '\n        :return void: Increases gadget\'s score if the gadget has an intermediate "leave" instruction.\n        '
    for i in range(1, (len(self.instructions) - 1)):
        if (self.instructions[i].opcode == 'leave'):
            self.score += 2.0
            return