Synthesis of ranking functions using extremal counterexamples
Authors:
Open Access
- 3 June 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 608-618
Abstract
We present a complete method for synthesizing lexicographic linear ranking functions (and thus proving termination), supported by inductive invariants, in the case where the transition relation of the program includes disjunctions and existentials (large block encoding of control flow). Previous work would either synthesize a ranking function at every basic block head, not just loop headers, which reduces the scope of programs that may be proved to be terminating, or expand large block transitions including tests into (exponentially many) elementary transitions, prior to computing the ranking function, resulting in a very large global constraint system. In contrast, our algorithm incrementally refines a global linear constraint system according to extremal counterexamples: only constraints that exclude spurious solutions are included. Experiments with our tool Termite show marked performance and scalability improvements compared to other systems.Keywords
Funding Information
- European Research Council (306595)
This publication has 35 references indexed in Scilit:
- PAGAI: A Path Sensitive Static AnalyserElectronic Notes in Theoretical Computer Science, 2012
- Proving program terminationCommunications of the ACM, 2011
- Accelerated Invariant Generation for C Programs with Aspic and C2fsmElectronic Notes in Theoretical Computer Science, 2010
- A Modular Static Analysis Approach to Affine Loop Invariants DetectionElectronic Notes in Theoretical Computer Science, 2010
- The reachability-bound problemACM SIGPLAN Notices, 2010
- Verified validation of lazy code motionACM SIGPLAN Notices, 2009
- Some efficient solutions to the affine scheduling problem. Part II. Multidimensional timeInternational Journal of Parallel Programming, 1992
- Some efficient solutions to the affine scheduling problem. I. One-dimensional timeInternational Journal of Parallel Programming, 1992
- Efficiently computing static single assignment form and the control dependence graphACM Transactions on Programming Languages and Systems, 1991
- A Linear Time Algorithm for Finding Minimum Cutsets in Reducible GraphsSIAM Journal on Computing, 1979