Byte Module Interface Specification

(0) CHARACTERISTICS

-type specified: byte

-features: deterministic, non-parameterized

-foreign types:

(1) SYNTAX

ACCESS-PROGRAMS

Program Name
Arg#1Arg#2
IntToBytebyte:VOint:V

(2) CANONICAL TRACES

canonical(T) i:<int>0 i i MaxByte() [T = IntToByte(*, i) ]

_ IntToByte(*, 0)

AUXILIARY FUNCTIONS

MaxByte: <int>

MaxByte() = 511

EOF: <byte>

EOF() = _

(3) SEMANTICS

ACCESS-PROGRAMS

Legality(IntToByte((n, v), i)) =

ConditionValue
0 i i MaxByte()%legal%
0 > i i > MaxByte()%fatal%

IntToByte((n, v) , i) = IntToByte(*, i)