def get_instructions(self):
<EOL>if self.cached_instructions:<EOL><INDENT>for i in self.cached_instructions:<EOL><INDENT>yield i<EOL><DEDENT><DEDENT>else:<EOL><INDENT>lsa = LinearSweepAlgorithm()<EOL>for i in lsa.get_instructions(self.CM, self.size, self.insn,<EOL>self.idx):<EOL><INDENT>yield i<EOL><DEDENT><DEDENT>
Get the instructions

:rtype: a generator of each :class:`Instruction` (or a cached list of instructions if you have setup instructions)