Generating input data structures for automated program testing

  • Authors:
  • Insang Chung;James M. Bieman

  • Affiliations:
  • Department of Computer Engineering, Hansung University, 389 Samseon-dong 3-ga, Seongbuk-gu, Seoul 136-792, Korea;Department of Computer Science, Colorado State University, Fort Collins, CO 80523, U.S.A.

  • Venue:
  • Software Testing, Verification & Reliability
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Automatic test data generation usually concerns identifying input values that cause a selected path to execute. If a given path involves pointers, then input values may be represented in terms of two-dimensional dynamic data structures such as lists or trees. Thus, it is very important to identify the shape of the input data structure describing how many nodes are required and how nodes are connected each other. The approach presented in this paper makes use of the points-to information for each statement in the selected path for the shape generation. It also converts each statement into a static single assignment (SSA) form without pointer dereferences. The SSA form serves as a system of constraints to be solved to yield input values for non-pointer types. An empirical evaluation shows that shape generation can be achieved in linear time in terms of the number of pointer dereference operations. Copyright © 2008 John Wiley & Sons, Ltd.