decodeProgramBinary function
Implementation
Program decodeProgramBinary(List<int> bytes) =>
switch (decodeBallFileBinary(bytes)) {
BallProgramFile(:final program) => program,
BallModuleFile() => throw BallFileFormatException(
'expected a Program ball file but got a Module',
),
};