Size-Change Termination Analysis in k-Bits
Abstract
Size-change termination analysis is a simple and powerful technique successfully applied for a variety of programming paradigms. A main advantage is that termination for size-change graphs is decidable and based on simple linear ranking functions. A main disadvantage is that the size-change termination problem is PSPACE-complete. Proving size change termination may have to consider exponentially many size change graphs. This paper is concerned with the representation of large sets of size-change graphs. The approach is constraint based and the novelty is that sets of size-change graphs are represented as disjunctions of size-change constraints. A constraint solver to facilitate size-change termination analysis is obtained by interpreting size-change constraints over a sufficiently large but finite non-negative integer domain. A Boolean k-bit modeling of size change graphs using binary decision diagrams leads to a concise representation. Experimental evaluation indicates that the 2-bit representation facilitates an efficient implementation which is guaranteed complete for our entire benchmark suite.
BibTeX
@inproceedings{codish2006size,
author = {Michael Codish and Vitaly Lagoon and Peter Schachte and Peter J. Stuckey},
title = {{Size-Change Termination Analysis in k-Bits}},
booktitle = {ESOP},
year = {2006},
doi = {10.1007/11693024\_16},
}Ask Althea to put this paper to the test.
| Bit-Precise Procedure-Modular Termination Analysis | ACM Trans. Program. Lang. Syst · 2018 |
| Unrestricted Termination and Non-termination Arguments for Bit-Vector Programs | arXiv · 2014 |
| Ranking Function Synthesis for Bit-Vector Relations | Tacas · 2010 |
| A Framework for Memory Efficient Context-Sensitive Program Analysis | Theory · 2022 |
| Bound Analysis of Imperative Programs with the Size-change Abstraction (extended version) | arXiv · 2012 |
| Saturn: A SAT-Based Tool for Bug Detection | Cav · 2005 |