pub fn decode_batch(bytes: &[u8]) -> Result<IrBatch, IrError>
Decode an IR batch from JSON bytes. Phase 1 uses JSON; Phase 2 replaces with FlatBuffers.