• DocumentCode
    2599304
  • Title

    Generating test data for functions with pointer inputs

  • Author

    Visvanathan, Srinivas ; Gupta, Neelam

  • Author_Institution
    Dept. of Comput. Sci., Arizona Univ., Tucson, AZ, USA
  • fYear
    2002
  • fDate
    2002
  • Firstpage
    149
  • Lastpage
    160
  • Abstract
    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.
  • Keywords
    data structures; program testing; backtracking; functions with pointer inputs; input data structure; integer parameters; real parameters; test data generation; Binary trees; Computer science; Data structures; Force control; Input variables; Iterative methods; Relaxation methods; Shape control; Testing; Tree data structures;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering, 2002. Proceedings. ASE 2002. 17th IEEE International Conference on
  • ISSN
    1938-4300
  • Print_ISBN
    0-7695-1736-6
  • Type

    conf

  • DOI
    10.1109/ASE.2002.1115007
  • Filename
    1115007