Adaptive solving strategy synthesis for symbolic execution

Author:

Chen Zhenbang12ORCID,Zhang Guofeng123,Chen Zehua12,Shuai Ziqi123,Pan Weiyu12,Zhang Yufeng4,Wang Ji123

Affiliation:

1. College of Computer National University of Defense Technology Changsha China

2. Key Laboratory of Software Engineering for Complex Systems National University of Defense Technology Changsha China

3. State Key Laboratory of High Performance Computing National University of Defense Technology Changsha China

4. College of Computer Science and Electronic Engineering Hunan University Changsha China

Abstract

SummaryConstraint solving is the enabling technique for symbolic execution. The advancement of constraint solving boosts the development and application of symbolic execution. Modern Satisfiability Modulo Theories (SMT) solvers provide the mechanism of solving strategy, allowing users to control the solving procedure. This mechanism significantly improves the solver's generalization ability. We observe that the symbolic executions of different programs are different constraint solving problems. Therefore, we propose synthesizing solving strategies for a program to fit the program's symbolic execution best. To achieve this, we propose an adaptive framework for synthesizing solving strategies, in which the constraints are classified into different categories, and the solving strategies are synthesized for different categories on demand. We propose novel synthesis algorithms that combine the offline trained deep learning models and online tuning to synthesize the solving strategy. The algorithms balance the synthesis overhead and the improvement achieved by the synthesized solving strategy. We have implemented our method on the state‐of‐the‐art symbolic execution engine KLEE for C programs and Symbolic Pathfinder (SPF) for Java programs. The results of the extensive experiments indicate that our method effectively improves the efficiency of symbolic execution. For the Coreutils benchmark, our method, on average, increases the numbers of paths and queries by 74.37% and 73.94% under Breadth First Search (BFS), respectively. Besides, we applied our method to a different benchmark of C programs and a benchmark of Java programs to validate the generalization ability. The results demonstrate that for the C benchmark, our method increases the numbers of paths and queries by 71.09% and 70.60% under BFS, respectively; For the Java benchmark, our method increases the numbers of paths and queries by 50.31% and 49.93% under BFS, respectively. These results show that our method has a good generalization ability.

Funder

National Key Research and Development Program of China

National Natural Science Foundation of China

Publisher

Wiley

Subject

Software

Reference39 articles.

1. Symbolic execution and program testing

2. A survey of symbolic execution techniques;Baldoni R;ACM Comput Surv,2018

3. CadarC DunbarD EnglerDR.KLEE: unassisted and automatic generation of high‐coverage tests for complex systems programs. In:DravesR vanRenesseR eds.8th USENIX symposium on operating systems design and implementation OSDI 2008.USENIX Association; December 8‐10 2008:209‐224.

4. AvgerinosT RebertA ChaSK BrumleyD.Enhancing symbolic execution with veritesting. In: 36th international conference on software engineering ICSE '14 Hyderabad India ‐ May 31 ‐ June 07 2014;2014:1083‐1094.

5. MechtaevS YiJ RoychoudhuryA.Angelix: scalable multiline program patch synthesis via symbolic analysis. In: Proceedings of the 38th international conference on software engineering ICSE 2016 Austin TX USA May 14‐22 2016;2016:691‐701.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3