Minimizing memory strides using integer transformations of parametric polytopes