Multiphase-Linear Ranking Functions and their Relation to Recurrent Sets

Abstract

Multiphase ranking functions (M) are tuples f1,…,fd 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 asks to determine whether a given SLC loop admits a M, and the corresponding bounded decision problem restricts the search to M of depth d, where the parameter d 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 to that of seeking recurrent sets (used to prove non-termination). It also helps in identifying classes of loops for which M 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 and SLC loops in general. For example, a result on bounded SLC loops becomes straightforward.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…