def off_to_pos(self, off):
idx = <NUM_LIT:0><EOL>nb = <NUM_LIT:0><EOL>for i in self.get_instructions():<EOL><INDENT>if idx == off:<EOL><INDENT>return nb<EOL><DEDENT>nb += <NUM_LIT:1><EOL>idx += i.get_length()<EOL><DEDENT>return -<NUM_LIT:1><EOL>
Get the position of an instruction by using the address

:param off: address of the instruction
:type off: int

:rtype: int