English

Multiphase-Linear Ranking Functions and their Relation to Recurrent Sets

Programming Languages 2019-01-15 v2

Abstract

Multiphase ranking functions (MΦ\PhiRFs) are tuples f1,,fd\langle f_1,\ldots,f_d \rangle of linear functions that are often used to prove termination of loops in which the computation progresses through a number of "phases". Our work provides new insights regarding such functions for loops described by a conjunction of linear constraints (Single-Path Constraint loops). The decision problem existence of a MΦ\PhiRF asks to determine whether a given SLC loop admits a MΦ\PhiRF, and the corresponding bounded decision problem restricts the search to MΦ\PhiRFs of depth dd, where the parameter dd is part of the input. The algorithmic and complexity aspects of the bounded problem have been completely settled in a recent work. In this paper we make progress regarding the existence problem, without a given depth bound. In particular, we present an approach that reveals some important insights into the structure of these functions. Interestingly, it relates the problem of seeking MΦ\PhiRFs to that of seeking recurrent sets (used to prove non-termination). It also helps in identifying classes of loops for which MΦ\PhiRFs are sufficient. Our research has led to a new representation for single-path loops, the difference polyhedron replacing the customary transition polyhedron. This representation yields new insights on MΦ\PhiRFs and SLC loops in general. For example, a result on bounded SLC loops becomes straightforward.

Keywords

Cite

@article{arxiv.1811.07340,
  title  = {Multiphase-Linear Ranking Functions and their Relation to Recurrent Sets},
  author = {Amir M. Ben-Amram and Jesús J. Doménech and Samir Genaim},
  journal= {arXiv preprint arXiv:1811.07340},
  year   = {2019}
}
R2 v1 2026-06-23T05:19:33.762Z