arrow
Return

An empirical study on constraint optimization techniques for test generation

delete2016-10-13
delete11
PRE
AI
张智轶 (Zhiyi Zhang)
陈振宇 (Zhenyu Chen) *
R
Ruizhi Gao
E
Eric W. M. Wong
B
Baowen Xu
DOI:10.1007/s11432-015-0450-5delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Constraint solving is a frequent, but expensive operation with symbolic execution to generate tests for a program. To improve the efficiency of test generation using constraint solving, four optimization techniques are usually applied to existing constraint solvers, which are constraint independence, constraint set simplification, constraint caching, and expression rewriting. In this paper, we conducted an empirical study, using these four constraint optimization techniques in a well known test generation tool KLEE with 77 GNU Coreutils applications, to systematically investigate how these optimization techniques affect the efficiency of test generation. The experimental results show that these constraint optimization techniques as well as their combinations cannot improve the efficiency of test generation significantly for ALL-SIZED programs. Moreover, we studied the constraint optimization techniques with respect to two static metrics, lines of code (LOC) and cyclomatic complexity (CC), of programs. The experimental results show that the constraint set simplification technique can improve the efficiency of test generation significantly for the programs with high LOC and CC values. The constraint caching optimization technique can improve the efficiency of test generation significantly for the programs with low LOC and CC values. Finally, we propose four hybrid optimization strategies and practical guidelines based on different static metrics.
Keywords:
test generation
symbolic execution
constraint solving
constraint optimization
static metric
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Science China Information Sciences cover
Science China Information Sciences
IF:
7.6
Papers:
4.9K
Citations:
8.9K

Organization

U
university of texas system
Scholars:
18.5W
Papers: 15.6W
Citations: 210
N
nanjing university
Scholars:
7.8W
Papers: 5.6W
Citations: 87