Divide-by-zero Exceptions Raising via Branch Coverage. Bhattacharya, N., Sakti, A., Antoniol, G., Gu�h�neuc, Y., & Pesant, G. In Cohen, M. & Cinn�ide, M. �, editors, Proceedings of the 3<sup>rd</sup> International Symposium on Search-based Software Engineering (SSBSE), pages 204–218, September, 2011. IEEE CS Press. 10 pages.
Divide-by-zero Exceptions Raising via Branch Coverage [pdf]Paper  abstract   bibtex   
In this paper, we discuss how a search-based branch coverage approach can be used to design an effective test data generation approach, specifically targeting divide-by-zero exceptions. We first propose a novel additive fitness function combining \emphapproach level and \emphbranch distance. We then use different search strategies, ıe hill climbing, simulated annealing, and genetic algorithm, to evaluate the performance of the novel fitness function on a small synthetic example as well as on methods known to throw divide-by-zero exceptions, extracted from real world systems, namely Eclipse and Android. Finally, we also describe how the test data generation for divide-by-zero exceptions can be formulated as a constraint programming problem and compare the resolution of this problem with a genetic algorithm in terms of execution time. We thus report evidence that genetic algorithm using our novel fitness function out-performs hill climbing and simulated annealing and a previous approach (in terms of numbers of fitness evaluation) but is out-performed by constraint programming (in terms of execution time).

Downloads: 0