Generating input data structures for automated program testing
Generating input data structures for automated program testing
复制标题
DOI:
10.1002/stvr.388
复制
发表时间:
2009-03
期刊:
影响因子:
--
通讯作者:
I. Chung;J. Bieman
中科院分区:
文献类型:
--
作者:
I. Chung;J. Bieman
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.