An efficient bitwise algorithm for intra-procedural data-flow testing coverage

  • Authors:
  • Marcos Lordello Chaim;Roberto Paulo Andrioli De Araujo

  • Affiliations:
  • Software Analysis & Experimentation Group - SAEG, School of Arts, Sciences and Humanities, University of Sao Paulo, Sao Paulo, Brazil;Software Analysis & Experimentation Group - SAEG, School of Arts, Sciences and Humanities, University of Sao Paulo, Sao Paulo, Brazil

  • Venue:
  • Information Processing Letters
  • Year:
  • 2013

Quantified Score

Hi-index 0.89

Visualization

Abstract

Data-flow (DF) testing was introduced to achieve more comprehensive structural evaluation of programs. It requires tests that traverse a path in which the definition of a variable and its subsequent use, i.e., a definition-use association (dua), is exercised. However, DF testing has rarely been adopted in industry because it is considered too costly by practitioners. A factor precluding broad adoption of DF testing is the cost of tracking duas exercised by tests. Previous approaches rely on complex computations and expensive data structures to collect dua coverage. We present an algorithm which utilizes efficient bitwise operations and inexpensive data structures to track intra-procedural duas. RAM memory requirements are restricted to three bit vectors the size of the number of duas. Conservative simulations indicate that the new algorithm imposes less execution slowdown.