Compilation of slice assignment