Enhancing structural software coverage by incrementally computing branch executability |
| |
Authors: | Mauro Baluda Pietro Braione Giovanni Denaro Mauro Pezzè |
| |
Affiliation: | 1.Università della Svizzera Italiana,Lugano,Switzerland;2.Università degli Studi di Milano-Bicocca,Milano,Italy |
| |
Abstract: | Structural code coverage criteria have been studied since the early seventies, and now they are well supported by commercial and open-source tools and are commonly embedded in several advanced industrial processes. Most industrial applications still refer to simple criteria, like statement and branch coverage, and consider complex criteria, like modified condition decision coverage, only rarely and often driven by the requirements of certification agencies. The industrial value of structural criteria is limited by the difficulty of achieving high coverage, due to both the complexity of deriving test cases that execute specific uncovered elements and the presence of many infeasible elements in the code. In this paper, we propose a technique that both generates test cases that execute yet uncovered branches and identifies infeasible branches that can be eliminated from the computation of the branch coverage. In this way, we can increase branch coverage to closely approximate full coverage, thus improving its industrial value. The algorithm combines symbolic analysis, abstraction refinement, and a novel technique named coarsening, to execute unexplored branches, identify infeasible ones, and mitigate the state space explosion problem. In the paper, we present the technique and illustrate its effectiveness through a set of experimental results obtained with a prototype implementation. |
| |
Keywords: | |
本文献已被 SpringerLink 等数据库收录! |
|