“…The class of "affine programs" (affine access functions to arrays in affine bounded loop nests) has been tackled in the past by many researchers, since they occur frequently and are resource-consuming, in applications like digital audio/video, imaging, graphics, compression/decompression, etc. In this context, array linearization [28], cache access optimization [11,5,15], and memory size computation [32,33] reduce to the problem of counting the number of images of integer points in a polytope (or a Zpolytope 1 ) by an affine function, or equivalently counting the solutions to a Presburger formula. If the considered programs contain unknown variables at compile-time, this problem has to be solved analytically, and the solution has to be expressed as a function of these parameters.…”