Analytical computation of Ehrhart polynomials: Enabling more compiler analyses and optimizations