arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1907.05637cs.PL
收藏

Concolic测试堆操作程序

Concolic Testing Heap-Manipulating Programs

Long H. Pham, Quang Loc Le, Quoc-Sang Phan, Jun Sun

摘要:

Concolic测试是一种集随机测试生成和符号执行于一体的测试生成技术。现有的concolic测试引擎集中于数值程序。堆操作程序广泛使用复杂的堆对象,如树和列表。由于多种原因,测试这些程序具有挑战性。首先,这类程序的测试输入必须满足非平凡的约束条件,这些约束条件必须精确地指定。其次,在这样的程序中精确地编码和求解路径条件是具有挑战性的,并且通常是昂贵的。在这项工作中,我们提出了第一个concolic测试引擎称为CSF堆操作程序的基础上分离逻辑。CSF有效地结合了基于规格说明的测试和concolic执行的测试输入生成。它是一组具有挑战性的堆操作程序进行评估。结果表明,CSF生成有效的测试输入和高覆盖率。此外,我们表明,CSF可以潜在地用于与前提推理工具相结合,以减少用户的努力。

英文摘要:

Concolic testing is a test generation technique which works effectively by integrating random testing generation and symbolic execution. Existing concolic testing engines focus on numeric programs. Heap-manipulating programs make extensive use of complex heap objects like trees and lists. Testing such programs is challenging due to multiple reasons. Firstly, test inputs for such program are required to satisfy non-trivial constraints which must be specified precisely. Secondly, precisely encoding and solving path conditions in such programs are challenging and often expensive. In this work, we propose the first concolic testing engine called CSF for heap-manipulating programs based on separation logic. CSF effectively combines specification-based testing and concolic execution for test input generation. It is evaluated on a set of challenging heap-manipulating programs. The results show that CSF generates valid test inputs with high coverage efficiently. Furthermore, we show that CSF can be potentially used in combination with precondition inference tools to reduce the user effort.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑