Automatic verification of pointer programs using monadic second-order logic

被引:8
|
作者
Jensen, JL
Jorgensen, ME
Klarlund, N
Schwartzbach, MI
机构
关键词
D O I
10.1145/258916.258936
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a technique far automatic verification of pointer programs based an a decision procedure for the monadic second-order logic on finite strings, We are concerned with a while-fragment of Pascal, which includes; recursively-defined painter structures but excludes pointer arithmetic. We define a logic of stores with interesting basic predicates such as pointer equality, tests far nil pointers, and garbage cells, as well as reachability along pointers. We present a complete decision procedure for Hoare triples based on this logic over loop-free code. combined with explicit loop in variants, the decision procedure allows us to answer surprisingly detailed questions about small but non-trivial programs. II a program fails to satisfy a certain property, then we can automatically supply can initial store that provides a counterexample. Our technique has been fully and efficiently implemented far linear linked fists, and it extends in principle to tree structures,The resulting system can be used to verify extensive properties gf smaller pointer programs and could be particularly useful in a teaching environment.
引用
收藏
页码:226 / 234
页数:9
相关论文
共 50 条
  • [1] Hardware verification using monadic second-order logic
    Basin, DA
    Klarlund, N
    [J]. COMPUTER AIDED VERIFICATION, 1995, 939 : 31 - 41
  • [2] Graph-Transformation Verification using Monadic Second-Order Logic
    Inaba, Kazuhiro
    Hidaka, Soichiro
    Hu, Zhenjiang
    Kato, Hiroyuki
    Nakano, Keisuke
    [J]. PPDP 11 - PROCEEDINGS OF THE 2011 SYMPOSIUM ON PRINCIPLES AND PRACTICES OF DECLARATIVE PROGRAMMING, 2011, : 17 - 28
  • [3] Verifying Graph Programs with Monadic Second-Order Logic
    Wulandari, Gia S.
    Plump, Detlef
    [J]. GRAPH TRANSFORMATION, ICGT 2021, 2021, 12741 : 240 - 261
  • [4] Monadic Second-Order Logic with Arbitrary Monadic Predicates
    Fijalkow, Nathanael
    Paperman, Charles
    [J]. ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2017, 18 (03)
  • [5] Monadic Second-Order Logic with Arbitrary Monadic Predicates
    Fijalkow, Nathanael
    Paperman, Charles
    [J]. MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 2014, PT I, 2014, 8634 : 279 - 290
  • [6] Quantitative Monadic Second-Order Logic
    Kreutzer, Stephan
    Riveros, Cristian
    [J]. 2013 28TH ANNUAL IEEE/ACM SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2013, : 113 - 122
  • [7] Computability by monadic second-order logic
    Engelfriet, Joost
    [J]. INFORMATION PROCESSING LETTERS, 2021, 167
  • [8] Asymptotic Monadic Second-Order Logic
    Blumensath, Achim
    Carton, Olivier
    Colcombet, Thomas
    [J]. MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 2014, PT I, 2014, 8634 : 87 - +
  • [9] Monadic Second-Order Logic on Finite Sequences
    D'Antoni, Loris
    Veanes, Margus
    [J]. ACM SIGPLAN NOTICES, 2017, 52 (01) : 232 - 245
  • [10] On the Parameterised Intractability of Monadic Second-Order Logic
    Kreutzer, Stephan
    [J]. COMPUTER SCIENCE LOGIC, PROCEEDINGS, 2009, 5771 : 348 - 363