loading...
Generating Test Data for Functions with Pointer Inputs
Edinburgh, UK September 23-September 27
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/ASE.2002.111500717th IEEE International Conference on ...
 This Article 
 
PDF
HTML
 
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Srinivas Visvanathan, University of Arizona
Neelam Gupta, University of Arizona

Generating test inputs for a path in a function with integer and real parameters is an important but difficult problem. The problem becomes more difficult when pointers are passed as inputs to a function. In this case, the shape of the input data structure as well as the data values in the fields of this data structure need to be determined for traversal of the given path. The existing techniques to address this problem are inefficient since they use backtracking to simultaneously satisfy the constraints on the pointer variables and the data values used along the path.

In this paper, we develop a novel approach that allows the generation of the shape of an input data structure to be done independently of the generation of its data values so as to force the control flow of a function along a given path. We also present a new technique that generates the shape of the input data structure by solving a set of pointer constraints derived in a single pass of the statements along the path. Although simple, our approach is powerful in handling pointer aliasing. It is efficient and provides a practical solution to generating test data for functions with pointer inputs.

Index Terms:
Test data generation, path testing, dynamic data structures, iterative relaxation methods
Citation:
Srinivas Visvanathan, Neelam Gupta, "Generating Test Data for Functions with Pointer Inputs," ase, pp.149, 17th IEEE International Conference on Automated Software Engineering (ASE'02), 2002
Usage of this product signifies your acceptance of the Terms of Use.


Suggestions