The displacement's 58-bit two's complement, or the modulus itself when
it is out of range (no displacement encodes to it).
296def sm90BranchComplement = (lambda unrestricted target : SM90BranchTarget .
297 eliminate SM90BranchTarget (lambda unrestricted current : SM90BranchTarget . Nat) target
298 (branch SM90BranchForward bytes .
299 naturalSelect (nat-less-than bytes sm90BranchForwardLimit) bytes sm90BranchModulus)
300 (branch SM90BranchBackward bytes .
301 naturalSelect (naturalAnd (nat-less-than 0 bytes) (naturalLessOrEqual bytes sm90BranchForwardLimit))
302 (nat-subtract sm90BranchModulus bytes) sm90BranchModulus))The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.