fn flatten_sparse_transition( sparse: &[Transition], state_id_layout: &Layout, ) -> (Vec<u8>, Vec<u8>)