Automatic verification of pointer programs using grammar-based shape analysis

被引:0
|
作者
Lee, O [1 ]
Yang, HS
Yi, KK
机构
[1] Hanyang Univ, Dept Comp Sci & Engn, Seoul, South Korea
[2] Seoul Natl Univ, ERC ACI, Seoul, South Korea
[3] Seoul Natl Univ, Sch Comp Sci & Engn, Seoul, South Korea
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present a program analysis that can automatically discover the shape of complex pointer data structures. The discovered invariants are, then, used to verify the absence of safety errors in the program, or to check whether the program preserves the data consistency. Our analysis extends the shape analysis of Sagiv et al. with grammar annotations, which can precisely express the shape of complex data structures. We demonstrate the usefulness of our analysis with binomial heap construction and the Schorr-Waite tree traversal. For a binomial heap construction algorithm, our analysis returns a grammar that precisely describes the shape of a binomial heap; for the Schorr-Waite tree traversal, our analysis shows that at the end of the execution, the result is a tree and there are no memory leaks.
引用
收藏
页码:124 / 140
页数:17
相关论文
共 50 条
  • [1] Grammar-based Automatic Extraction of Definitions
    Iftene, Adrian
    Pistol, Ionut
    Trandabat, Diana
    [J]. PROCEEDINGS OF THE 10TH INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND NUMERIC ALGORITHMS FOR SCIENTIFIC COMPUTING, 2009, : 110 - 115
  • [2] A Grammar-Based Approach to Invertible Programs
    Matsuda, Kazutaka
    Mu, Shin-Cheng
    Hu, Zhenjiang
    Takeichi, Masato
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2010, 6012 : 448 - +
  • [3] Automatic verification of pointer programs using monadic second-order logic
    Jensen, JL
    Jorgensen, ME
    Klarlund, N
    Schwartzbach, MI
    [J]. ACM SIGPLAN NOTICES, 1997, 32 (05) : 226 - 234
  • [4] A Grammar-Based Reverse Engineering Framework for Behavior Verification
    Zhao, Chunying
    Zhang, Kang
    [J]. 11TH IEEE HIGH ASSURANCE SYSTEMS ENGINEERING SYMPOSIUM, PROCEEDINGS, 2008, : 449 - 452
  • [5] Grammar-Based Image Segmentation and Automatic Area Estimation
    Hamdi, Salah
    Ben Abdallah, Asma
    Bedoui, Mohamed Hedi
    [J]. 2012 16TH IEEE MEDITERRANEAN ELECTROTECHNICAL CONFERENCE (MELECON), 2012, : 356 - 359
  • [6] On the Automatic Design of a Representation for Grammar-Based Genetic Programming
    Medvet, Eric
    Bartoli, Alberto
    [J]. GENETIC PROGRAMMING (EUROGP 2018), 2018, 10781 : 101 - 117
  • [7] Phrase grammar-based automatic conceptual tagging system
    Raj, PCR
    Raman, S
    [J]. IKE'03: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE ENGINEERING, VOLS 1 AND 2, 2003, : 212 - 217
  • [8] Shape grammar-based expert systems for engineering design
    Agarwal, M
    Cagan, J
    [J]. ARTIFICIAL INTELLIGENCE IN DESIGN '00, 2000, : 193 - 202
  • [9] A grammar-based approach to synonym analysis
    Bulonkov, MA
    Kochetov, DV
    [J]. PROGRAMMING AND COMPUTER SOFTWARE, 1996, 22 (03) : 126 - 133
  • [10] Automatic analysis of pointer aliasing for untyped programs
    Venet, A
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 1999, 35 (2-3) : 223 - 248