pub fn encode_instructions(ixs: &[Instruction]) -> AnyIx
encodes a set of instructions into the AnyIx format