Optimizing compilation with preservation of structural code coverage metrics to support software testing. (29th October 2012)
- Record Type:
- Journal Article
- Title:
- Optimizing compilation with preservation of structural code coverage metrics to support software testing. (29th October 2012)
- Main Title:
- Optimizing compilation with preservation of structural code coverage metrics to support software testing
- Authors:
- Kirner, Raimund
Haas, Walter - Abstract:
- <abstract abstract-type="main" id="stvr1485-abs-0001"> <title>SUMMARY</title> <p id="stvr1485-para-0001">Code‐coverage‐based testing is a widely‐used testing strategy with the aim of providing a meaningful decision criterion for the adequacy of a test suite. Code‐coverage‐based testing is also mandated for the development of safety‐critical applications; for example, the DO178b document requires the application of the modified condition/decision coverage. One critical issue of code‐coverage testing is that structural code coverage criteria are typically applied to source code whereas the generated machine code may result in a different code structure because of code optimizations performed by a compiler. In this work, we present the automatic calculation of coverage profiles describing which structural code‐coverage criteria are preserved by which code optimization, independently of the concrete test suite. These coverage profiles allow to easily extend compilers with the feature of preserving any given code‐coverage criteria by enabling only those code optimizations that preserve it. Furthermore, we describe the integration of these coverage profile into the compiler GCC. With these coverage profiles, we answer the question of how much code optimization is possible without compromising the error‐detection likelihood of a given test suite. Experimental results conclude that the performance cost to achieve preservation of structural code coverage in GCC is rather low.<abstract abstract-type="main" id="stvr1485-abs-0001"> <title>SUMMARY</title> <p id="stvr1485-para-0001">Code‐coverage‐based testing is a widely‐used testing strategy with the aim of providing a meaningful decision criterion for the adequacy of a test suite. Code‐coverage‐based testing is also mandated for the development of safety‐critical applications; for example, the DO178b document requires the application of the modified condition/decision coverage. One critical issue of code‐coverage testing is that structural code coverage criteria are typically applied to source code whereas the generated machine code may result in a different code structure because of code optimizations performed by a compiler. In this work, we present the automatic calculation of coverage profiles describing which structural code‐coverage criteria are preserved by which code optimization, independently of the concrete test suite. These coverage profiles allow to easily extend compilers with the feature of preserving any given code‐coverage criteria by enabling only those code optimizations that preserve it. Furthermore, we describe the integration of these coverage profile into the compiler GCC. With these coverage profiles, we answer the question of how much code optimization is possible without compromising the error‐detection likelihood of a given test suite. Experimental results conclude that the performance cost to achieve preservation of structural code coverage in GCC is rather low. Copyright © 2012 John Wiley &amp; Sons, Ltd.</p> </abstract> … (more)
- Is Part Of:
- Software testing, verification & reliability. Volume 24:Number 3(2014:Jul.)
- Journal:
- Software testing, verification & reliability
- Issue:
- Volume 24:Number 3(2014:Jul.)
- Issue Display:
- Volume 24, Issue 3 (2014)
- Year:
- 2014
- Volume:
- 24
- Issue:
- 3
- Issue Sort Value:
- 2014-0024-0003-0000
- Page Start:
- 184
- Page End:
- 218
- Publication Date:
- 2012-10-29
- Subjects:
- Computer software -- Testing -- Periodicals
Computer software -- Verification -- Periodicals
Computer software -- Reliability -- Periodicals
005.14 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/stvr.1485 ↗
- Languages:
- English
- ISSNs:
- 0960-0833
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.457500
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 3542.xml