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 条
  • [41] Deciding For or Deciding With: Student Involvement in Repertoire Selection
    Rotjan, Matthew
    MUSIC EDUCATORS JOURNAL, 2021, 107 (04) : 28 - 34
  • [42] A synthesis-oriented conditional stability criterion for microwave multidevice circuits with complex termination impedances
    Centurelli, F
    Scotti, G
    Tommasino, P
    Trifiletti, A
    IEEE MICROWAVE AND GUIDED WAVE LETTERS, 2000, 10 (11): : 460 - 462
  • [43] Combining typing and size constraints for checking the termination of higher-order conditional rewrite systems
    Blanqui, Frederic
    Riba, Colin
    LOGIC FOR PROGRAMMING, ARTIFICIAL INTELLIGENCE, AND REASONING, PROCEEDINGS, 2006, 4246 : 105 - +
  • [44] Sin and Suffering: Pregnant Women's Justifications for Deciding on Pregnancy Termination Due to Beta-Thalassemia Major in Southeast of Iran
    Moudi, Zahra
    Phanodi, Zenab
    Vedadhir, Abouali
    NURSING AND MIDWIFERY STUDIES, 2019, 8 (02) : 91 - 96
  • [45] Deciding to stop work or deciding how work is done?
    Havinga, Jop
    Bancroft, Kym
    Rae, Andrew
    Safety Science, 2021, 141
  • [46] Deciding for the patient
    Bérubé, M
    HASTINGS CENTER REPORT, 2004, 34 (05) : 13 - 13
  • [47] Deciding with children
    Massie, John
    ARCHIVES OF DISEASE IN CHILDHOOD, 2022, 107 (12) : 1128 - +
  • [48] DECIDING ON AN FMS
    不详
    AMERICAN MACHINIST, 1983, 127 (05) : 109 - 110
  • [49] Deciding in advance
    Fox, Joshua
    PSYCHOLOGIST, 2016, 29 (04) : 250 - 250
  • [50] Deciding later
    Flottau, J
    AVIATION WEEK & SPACE TECHNOLOGY, 2003, 158 (10): : 51 - 52