A flexible, (C)LP-based approach to the analysis of object-oriented programs

被引:31
|
作者
Mendez-Lojo, Mario [1 ]
Navas, Jorge [1 ]
Hermenegildo, Manuel V. [1 ]
机构
[1] Univ New Mexico, Albuquerque, NM 87131 USA
关键词
D O I
10.1007/978-3-540-78769-3_11
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Static analyses of object-oriented programs usually rely on intermediate representations that respect the original semantics while having a more uniform and basic syntax. Most of the work involving object-oriented languages and abstract interpretation usually omits the description of that language or just refers to the Control Flow Graph (CFG) it represents. However, this lack of formalization on one hand results in an absence of assurances regarding the correctness of the transformation and on the other it typically strongly couples the analysis to the source language. In this work we present a framework for analysis of object-oriented languages in which in a first phase we transform the input program into a representation based on Horn clauses. This facilitates on one hand proving the correctness of the transformation attending to a simple condition and on the other allows applying existing analyzers for (constraint) logic programming to automatically derive a safe approximation of the semantics of the original program. The approach is flexible in the sense that the first phase decouples the analyzer from most language-dependent features, and correct because the set of Horn clauses returned by the transformation phase safely approximates the standard semantics of the input program. The resulting analysis is also reasonably scalable due to the use of mature, modular (C)LP-based analyzers. This allows us to report good results for medium-sized programs.
引用
收藏
页码:154 / 168
页数:15
相关论文
共 50 条
  • [1] A Dynamic Impact Analysis Approach for Object-oriented Programs
    Huang, Lulu
    Song, Yeong-Tae
    PROCEEDINGS OF THE 2008 ADVANCED SOFTWARE ENGINEERING & ITS APPLICATIONS, 2008, : 217 - 220
  • [2] Verification of object-oriented programs: A transformational approach
    Apt, Krzysztof R.
    de Boer, Frank S.
    Olderog, Ernst-Ruediger
    de Gouw, Stijn
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2012, 78 (03) : 823 - 852
  • [3] ASTOOT approach to testing object-oriented programs
    Doong, Roong-Ko
    Frankl, Phyllis G.
    ACM Transactions on Software Engineering and Methodology, 1994, 3 (02) : 101 - 130
  • [4] An approach to integration testing of object-oriented programs
    Li, Zhe
    Maibaum, Tom
    USIC 2007: PROCEEDINGS OF THE SEVENTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, 2007, : 268 - 273
  • [5] Metadata and object-oriented approach to flexible querying
    Marcincák, P
    Matula, M
    FLEXIBLE QUERY ANSWERING SYSTEMS: RECENT ADVANCES, 2001, : 95 - 102
  • [6] Flexible multibody dynamics - an object-oriented approach
    Gerhard-Mercator-Universitaet-GH-Dui, Duisburg, Germany
    Nonlinear Dyn, 1-2 (205-221):
  • [7] Flexible multibody dynamics - An object-oriented approach
    Anantharaman, M
    NONLINEAR DYNAMICS, 1996, 9 (1-2) : 205 - 221
  • [8] Applying mutation analysis for object-oriented programs using a reflective approach
    Chevalley, P
    APSEC 2001: EIGHTH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2001, : 267 - 270
  • [9] Change impact analysis for object-oriented programs
    Ryder, B.G.
    Tip, F.
    ACM SIGPLAN/SIGSOFT Workshop on Program Analysis for Software Tools and Engineering, 2001, : 46 - 53
  • [10] Change impact analysis for object-oriented programs
    Ryder, BG
    Tip, F
    ACM SIGPLAN NOTICES, 2001, : 46 - 53