Automatic Dimension Inference and Checking for Object-Oriented Programs

被引:16
|
作者
Hangal, Sudheendra [1 ]
Lam, Monica S. [1 ]
机构
[1] Stanford Univ, Dept Comp Sci, Stanford, CA 94305 USA
关键词
D O I
10.1109/ICSE.2009.5070517
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper introduces UniFi, a tool that attempts to automatically detect dimension errors in Java programs. UniFi infers dimensional relationships across primitive type and string variables in a program, using an inter-procedural, context-sensitive analysis. It then monitors these dimensional relationships as the program evolves, flagging inconsistencies that may be errors. UniFi requires no programmer annotations, and supports arbitrary program-specific dimensions, thus providing fine-grained dimensional consistency checking. UniFi exploits features of object-oriented languages, but can be used for other languages as well. We have run UniFi on real-life Java code and found that it is useful in exposing dimension errors. We present a case study of using UniFi on nightly builds of a 19,000 line code base as it evolved over 10 months.
引用
收藏
页码:155 / 165
页数:11
相关论文
共 50 条
  • [1] Towards Automatic Assessment of Object-Oriented Programs
    Ardimento, Pasquale
    Bernardi, Mario Luca
    Cimitile, Marta
    2020 ACM/IEEE 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2020), 2020, : 276 - 277
  • [2] Specification and automatic checking of architecture constraints on object oriented programs
    Kallel, Sahar
    Tibermacine, Chouki
    Kallel, Slim
    Kacem, Ahmed Hadj
    Dony, Christophe
    INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 101 : 16 - 31
  • [3] Type checking object-oriented programs: core of the problem and some solutions
    Royer, Jean-Claude
    JOOP - Journal of Object-Oriented Programming, 1998, 11 (06): : 58 - 66
  • [4] Type checking object-oriented programs: Core of the problem and some solutions
    Royer, JC
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1998, 11 (06): : 58 - +
  • [6] OBJECT-ORIENTED TYPE INFERENCE
    PALSBERG, J
    SCHWARTZBACH, MI
    SIGPLAN NOTICES, 1991, 26 (11): : 146 - 161
  • [7] Automatic Extraction of Heap Reference Properties in Object-Oriented Programs
    Demsky, Brian
    Rinard, Martin
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2009, 35 (03) : 305 - 324
  • [8] A logic of object-oriented programs
    Abadi, M
    Rustan, K
    Leino, M
    VERIFICATION: THEORY AND PRACTICE: ESSAYS DEDICATED TO ZHOAR MANNA ON THE OCCASION OF HIS 64TH BIRTHDAY, 2003, 2772 : 11 - 41
  • [9] Encapsulation in object-oriented programs
    Chen, JL
    Wang, FJ
    ACM SIGPLAN NOTICES, 1996, 31 (07) : 30 - 32
  • [10] Slicing object-oriented programs
    Chen, JL
    Wang, FJ
    Chen, YL
    ASIA PACIFIC SOFTWARE ENGINEERING CONFERENCE AND INTERNATIONAL COMPUTER SCIENCE CONFERENCE, PROCEEDINGS, 1997, : 395 - 404