@staticmethod<EOL><INDENT>def upper(bits, i, stride):<DEDENT>
if stride >= <NUM_LIT:1>:<EOL><INDENT>offset = i % stride<EOL>max = StridedInterval.max_int(bits)  <EOL>max_offset = max % stride<EOL>if max_offset >= offset:<EOL><INDENT>o = max - (max_offset - offset)<EOL><DEDENT>else:<EOL><INDENT>o = max - ((max_offset + stride) - offset)<EOL><DEDENT>return o<EOL><DEDENT>else:<EOL><INDENT>return StridedInterval.max_int(bits)<EOL><DEDENT>
:return: