Counting solutions to Presburger formulas
- 1 June 1994
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 29 (6) , 121-134
- https://doi.org/10.1145/773473.178254
Abstract
We describe methods that are able to count the number of integer solutions to selected free variables of a Presburger formula, or sum a polynomial over all integer solutions of selected free variables of a Presburger formula. This answer is given symbolically, in terms of symbolic constants (the remaining free variables in the Presburger formula).For example, we can create a Presburger formula who's solutions correspond to the iterations of a loop. By counting these, we obtain an estimate of the execution time of the loop.In more complicated applications, we can create Presburger formulas who's solutions correspond to the distinct memory locations or cache lines touched by a loop, the flops executed by a loop, or the array elements that need to be communicated at a particular point in a distributed computation. By counting the number of solutions, we can evaluate the computation/memory balance of a computation, determine if a loop is load balanced and evaluate message traffic and allocate message buffers.Keywords
This publication has 5 references indexed in Scilit:
- Static analysis of upper and lower bounds on dependences and parallelismACM Transactions on Programming Languages and Systems, 1994
- A practical algorithm for exact array dependence analysisCommunications of the ACM, 1992
- Processor allocation and loop scheduling on multiprocessor computersPublished by Association for Computing Machinery (ACM) ,1992
- Scanning polyhedra with DO loopsPublished by Association for Computing Machinery (ACM) ,1991
- Strategies for cache and local memory management by global program transformationJournal of Parallel and Distributed Computing, 1988