Is Bytecode Instrumentation as Good as Source Code Instrumentation: An Empirical Study with Industrial Tools

被引:0
|
作者
Li, Nan [1 ]
Meng, Xin [1 ]
Offutt, Jeff [1 ]
Deng, Lin [1 ]
机构
[1] George Mason Univ, Fairfax, VA 22030 USA
来源
2013 IEEE 24TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE) | 2013年
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Branch coverage (BC) is a widely used test criterion that is supported by many tools. Although textbooks and the research literature agree on a standard definition for BC, tools measure BC in different ways. The general strategy is to "instrument" the program by adding statements that count how many times each branch is taken. But the details for how this is done can influence the measurement for whether a set of tests have satisfied BC. For example, the standard definition is based on program source, yet some tools instrument the bytecode to reduce computation cost. A crucial question for the validity of these tools is whether bytecode instrumentation gives results that are the same as, or at least comparable to, source code instrumentation. An answer to this question will help testers decide which tool to use. This research looked at 31 code coverage tools, finding four that support branch coverage. We chose one tool that instruments the bytecode and two that instrument the source. We acquired tests for 105 methods to discover how these three tools measure branch coverage. We then compared coverage on 64 methods, finding that the bytecode instrumentation method reports the same coverage on 49 and lower coverage on 11. We also found that each tool defined branch coverage differently, and what is called branch coverage in the bytecode instrumentation tool actually matches the standard definition for clause coverage.
引用
收藏
页码:380 / 389
页数:10
相关论文
共 50 条
  • [41] On the impact of multiple source code representations on software engineering tasks - An empirical study
    Swarna, Karthik Chandra
    Mathews, Noble Saji
    Vagavolu, Dheeraj
    Chimalakonda, Sridhar
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 210
  • [42] Impact of Selected Java']Java Idioms on Source Code Maintainability - Empirical Study
    Hnatkowska, Bogumila
    Jaszczak, Anna
    PROCEEDINGS OF THE NINTH INTERNATIONAL CONFERENCE ON DEPENDABILITY AND COMPLEX SYSTEMS DEPCOS-RELCOMEX, 2014, 286 : 243 - 254
  • [43] Cloning by accident: An empirical study of source code cloning across software systems
    Al-Ekram, R
    Kapser, C
    Holt, R
    Godfrey, M
    2005 INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING (ISESE), PROCEEDINGS, 2005, : 363 - 372
  • [44] An Empirical Study on Vulnerability Detection for Source Code Software based on Deep Learning
    Lin, Wei
    Cai, Saihua
    2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 1159 - 1160
  • [45] A Comparative Study of Static Code Analysis tools for Vulnerability Detection in C/C++ and JAVA Source Code
    Kaur, Arvinder
    Nayyar, Ruchikaa
    Procedia Computer Science, 2020, 171 : 2023 - 2029
  • [46] On the Co-evolution of ML Pipelines and Source Code - Empirical Study of DVC Projects
    Barrak, Amine
    Eghan, Ellis E.
    Adams, Bram
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021), 2021, : 422 - 433
  • [47] An Empirical Study on Bug Severity Estimation Using Source Code Metrics and Static Analysis
    Mashhadi, Ehsan
    Chowdhury, Shaiful
    Modaberi, Somayeh
    Ahmadvand, Hossein
    Hemmati, Hadi
    Uddin, Gias
    SSRN, 2023,
  • [48] An Empirical Study on Bug Severity Estimation using Source Code Metrics and Static Analysis
    Mashhadi, Ehsan
    Chowdhury, Shaiful
    Modaberi, Somayeh
    Hemmati, Hadi
    Uddin, Gias
    arXiv, 2022,
  • [49] Exploring the structure of complex software designs: An empirical study of open source and proprietary code
    MacCormack, Alan
    Rusnak, John
    Baldwin, Carliss Y.
    MANAGEMENT SCIENCE, 2006, 52 (07) : 1015 - 1030
  • [50] REPORT OF THE STUDY TEAM ON CONTROL INSTRUMENTATION AND INDUSTRIAL ELECTRONICS FOR 8TH 5 YEAR PLAN FOR ELECTRONICS INDUSTRY
    不详
    ELECTRONICS INFORMATION & PLANNING, 1990, 17 (04): : 149 - 176