Unrestricted Termination and Non-termination Arguments for Bit-Vector Programs

被引:15
|
作者
David, Cristina [1 ]
Kroening, Daniel [1 ]
Lewis, Matt [1 ]
机构
[1] Univ Oxford, Oxford OX1 2JD, England
来源
基金
英国工程与自然科学研究理事会; 欧洲研究理事会;
关键词
Termination; Non-Termination; Lexicographic Ranking Functions; Bit-vector Ranking Functions; Floating-Point Ranking Functions; LINEAR RANKING; PROOFS;
D O I
10.1007/978-3-662-46669-8_8
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Proving program termination is typically done by finding a well-founded ranking function for the program states. Existing termination provers typically find ranking functions using either linear algebra or templates. As such they are often restricted to finding linear ranking functions over mathematical integers. This class of functions is insufficient for proving termination of many terminating programs, and furthermore a termination argument for a program operating on mathematical integers does not always lead to a termination argument for the same program operating on fixed-width machine integers. We propose a termination analysis able to generate nonlinear, lexicographic ranking functions and nonlinear recurrence sets that are correct for fixed-width machine arithmetic and floating-point arithmetic. Our technique is based on a reduction from program termination to second-order satisfaction. We provide formulations for termination and non-termination in a fragment of second-order logic with restricted quantification which is decidable over finite domains [1]. The resulting technique is a sound and complete analysis for the termination of finite-state programs with fixed-width integers and IEEE floating-point arithmetic.
引用
收藏
页码:183 / 204
页数:22
相关论文
共 50 条
  • [41] Proving Non-Termination and Lower Runtime Bounds with LoAT (System Description)
    Frohn, Florian
    Giesl, Juergen
    AUTOMATED REASONING, IJCAR 2022, 2022, 13385 : 712 - 722
  • [42] Detecting non-termination of term rewriting systems using an unfolding operator
    Payet, Etienne
    LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2007, 4407 : 194 - 209
  • [43] Proving Non-Termination by Acceleration Driven Clause Learning (Short Paper)
    Frohn, Florian
    Giesl, Juergen
    AUTOMATED DEDUCTION, CADE 29, 2023, 14132 : 220 - 233
  • [44] Data-driven Recurrent Set Learning For Non-termination Analysis
    Han, Zhilei
    He, Fei
    2023 IEEE/ACM 45TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ICSE, 2023, : 1303 - 1315
  • [45] Demystifying Template-based Invariant Generation for Bit-Vector Programs
    Yao, Peisen
    Ke, Jingyu
    Sun, Jiahui
    Fu, Hongfei
    Wu, Rongxin
    Ren, Kui
    2023 38TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE, 2023, : 673 - 685
  • [46] EndWatch: A Practical Method for Detecting Non-Termination in Real-World Software
    Zhang, Yao
    Xie, Xiaofei
    Li, Yi
    Chen, Sen
    Zhang, Cen
    Li, Xiaohong
    2023 38TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE, 2023, : 686 - 697
  • [47] Non-termination of yrast bands at maximum configuration spin in 73Kr
    Steinhardt, T.
    Eberth, J.
    Thelen, O.
    Schnare, H.
    Schwengner, R.
    Plettner, C.
    Kaeubler, L.
    Doenau, F.
    Algora, A.
    de Angelis, G.
    Gadea, A.
    Napoli, D. R.
    Hausmann, M.
    Jungclaus, A.
    Lieb, K. P.
    Mueller, G. A.
    Jenkins, D. G.
    Wadsworth, R.
    Wilson, A. N.
    PHYSICAL REVIEW C, 2010, 81 (05):
  • [48] Large-Scale Analysis of Non-Termination Bugs in Real-World OSS Projects
    Shi, Xiuhan
    Xie, Xiaofei
    Li, Yi
    Zhang, Yao
    Chen, Sen
    Li, Xiaohong
    PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 256 - 268
  • [49] Why Can't You Behave? Non-termination Analysis of Direct Recursive Rules with Constraints
    Fruehwirth, Thom
    RULE TECHNOLOGIES: RESEARCH, TOOLS, AND APPLICATIONS, 2016, 9718 : 208 - 222
  • [50] On the termination of non-deterministic programs based on the equivalent transformation computation model
    Takarajima, I
    Akama, K
    Shigeta, Y
    Imani, I
    MSV'04 & AMCS'04, PROCEEDINGS, 2004, : 391 - 395