Code Similarity and Location-Awareness Automatic Program Repair

Author:

Cao Heling123ORCID,Han Dong123,Liu Fangzheng123,Liao Tianli123,Zhao Chenyang1,Shi Jianshu1ORCID

Affiliation:

1. Key Laboratory of Grain Information Processing and Control (Henan University of Technology), Ministry of Education, Zhengzhou 450001, China

2. Henan Key Laboratory of Grain Photoelectric Detection and Control, Henan University of Technology, Zhengzhou 450001, China

3. College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, China

Abstract

Automatic program repair has drawn more and more attention since software quality is facing increasing challenges. In existing approaches, the unlimited search space is considered to be the main limitation in finding the correct patch. So how to reduce the search space to improve the efficiency of automatic program repair remains a problem to be solved. In this work, we represent a similarity-based and location-awareness-based automatic program repair (SLARepair). SLARepair takes the similarity between codes as important search information. The search space is further subdivided by the location-awareness strategy to improve search efficiency. In addition, to better guide the search process, a new fitness function is designed for genetic programming, which brings notable improvements. Moreover, the patch verification time is further reduced by utilizing the test case prioritization approach combined with test case filtering. Extensive experiments demonstrate that our SLARepair outperforms the state-of-the-art approaches on the Defects4J benchmark and achieves competitive performances.

Funder

National Natural Science Foundation of China

Publisher

MDPI AG

Subject

Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science

Reference34 articles.

1. Weimer, W., Nguyen, T.V., Goues, C.L., and Forrest, S. (2009, January 16–24). Automatically finding patches using genetic programming. Proceedings of the 31st International Conference on Software Engineering, Vancouver, BC, Canada.

2. GenProg: A Generic Method for Automatic Software Repair;Goues;IEEE Trans. Softw. Eng.,2012

3. Goues, C.L., Dewey-Vogt, M., Forrest, S., and Weimer, W. (2012, January 2–9). A systematic study of automated program repair: Fixing 55 out of 105 bugs for $8 each. Proceedings of the 34th International Conference on Software Engineering, Zurich, Switzerland.

4. Improved representation and genetic operators for linear genetic programming for automated program repair;Oliveira;Springer Empir. Softw. Eng.,2018

5. ARJA: Automated repair of java programs via multi-objective genetic programming;Yuan;IEEE Trans. Softw. Eng.,2018

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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