def max(self) -> int:
if self.signed:<EOL><INDENT>v = (<NUM_LIT:1> << (self.bits - <NUM_LIT:1>)) - <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>v = (<NUM_LIT:1> << self.bits) - <NUM_LIT:1><EOL><DEDENT>if self.lsb0:<EOL><INDENT>v = v - (v % <NUM_LIT:2>)<EOL><DEDENT>return v<EOL>
Get the maximum value this immediate can have

:return: Maximum value of this immediate