DECIDING CONDITIONAL TERMINATION

被引:11
|
作者
Bozga, Marius [1 ]
Iosif, Radu [1 ]
Konecny, Filip [2 ]
机构
[1] Univ Grenoble Alpes, CNRS, VERIMAG, F-38000 Grenoble, France
[2] EPFL IC IIF LARA, CH-1015 Lausanne, Switzerland
关键词
Integer Programs; Periodic Relations; Recurrent Sets; Termination Preconditions; LINEAR RANKING; INTEGER; PROGRAMS;
D O I
10.2168/LMCS-10(3:8)2014
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We address the problem of conditional termination, which is that of defining the set of initial configurations from which a given program always terminates. First we define the dual set, of initial configurations from which a non-terminating execution exists, as the greatest fixpoint of the function that maps a set of states into its pre-image with respect to the transition relation. This definition allows to compute the weakest non-termination precondition if at least one of the following holds: (i) the transition relation is deterministic, (ii) the descending Kleene sequence over-approximating the greatest fixpoint converges in finitely many steps, or (iii) the transition relation is well founded. We show that this is the case for two classes of relations, namely octagonal and finite monoid affine relations. Moreover, since the closed forms of these relations can be defined in Presburger arithmetic, we obtain the decidability of the termination problem for such loops. We show that the weakest non-termination precondition for octagonal relations can be computed in time polynomial in the size of the binary representation of the relation. Furthermore, for every well-founded octagonal relation, we prove the existence of an effectively computable well-founded witness relation for which a linear ranking function exists. For the class of linear affine relations we show that the weakest non-termination precondition can be defined in Presburger arithmetic if the relation has the finite monoid property. Otherwise, for a more general subclass, called polynomially bounded affine relations, we give a method of under-approximating the termination preconditions. Finally, we apply the method of computing weakest non-termination preconditions for conjunctive relations (octagonal or affine) to computing termination preconditions for programs with complex transition relations. We provide algorithms for computing transition invariants and termination preconditions, and define a class of programs, whose control structure has no nested loops, for which these algorithms provide precise results. Moreover, it is shown that, for programs with no nested control loops, and whose loops are labeled with octagonal constraints, the dual problem i. e. the existence of infinite runs, is NP-complete.
引用
收藏
页数:61
相关论文
共 50 条
  • [31] Dependency pairs for proving termination properties of conditional term rewriting systems
    Lucas, Salvador
    Meseguer, Jose
    JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING, 2017, 86 (01) : 236 - 268
  • [32] SIMPLIFYING CONDITIONAL TERM REWRITING-SYSTEMS - UNIFICATION, TERMINATION AND CONFLUENCE
    KAPLAN, S
    JOURNAL OF SYMBOLIC COMPUTATION, 1987, 4 (03) : 295 - 334
  • [33] Active rules termination analysis through conditional formula containing updatable variable
    Xiong, Zhongmin
    Wang, Wei
    Pei, Jian
    ADVANCES IN DATA AND WEB MANAGEMENT, PROCEEDINGS, 2007, 4505 : 281 - +
  • [34] Restitution as a Prerequisite for Case Termination: Analyzing Conditional Exoneration in Russian Criminal Procedure
    Grinenko, Aleksandr
    Ivanov, Dmitriy
    Kleshchina, Elena
    Alyshkin, Vladislav
    Bezryadin, Viktor
    JURNAL CITA HUKUM-INDONESIAN LAW JOURNAL, 2024, 12 (01): : 1 - 12
  • [35] On termination and confluence properties of disjoint and constructor-sharing conditional rewrite systems
    Gramlich, B
    THEORETICAL COMPUTER SCIENCE, 1996, 165 (01) : 97 - 131
  • [36] Conditional termination check min-sum algorithm for efficient LDPC decoders
    Cho, Keol
    Chung, Ki-Seok
    IEICE ELECTRONICS EXPRESS, 2015, 12 (24):
  • [37] Operational Termination of Conditional Rewriting with Built-in Numbers and Semantic Data Structures
    Falke, Stephan
    Kapur, Deepak
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 237 (75-90) : 75 - 90
  • [38] On termination and confluence properties of disjoint and constructor-sharing conditional rewrite systems
    Universitaet Kaiserslautern, Kaiserslautern, Germany
    Theor Comput Sci, 1 (97-131):
  • [39] 'DECIDING'
    STAFFOR, W
    HUDSON REVIEW, 1982, 35 (03): : 397 - 397
  • [40] ON DECIDING
    HEINTEL, P
    KRAINZ, EE
    GRUPPENDYNAMIK-ZEITSCHRIFT FUR ANGEWANDTE SOZIALPSYCHOLOGIE, 1986, 17 (02): : 117 - 133