Next Article in Journal
Training on Sand or Parquet: Impact of Pre-Season Training on Jumping, Sprinting, and Change of Direction Performance in Professional Basketball Players
Previous Article in Journal
A Network Analysis Approach to Detecting Social Issues with Web-Based Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Code Similarity and Location-Awareness Automatic Program Repair

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
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(14), 8519; https://doi.org/10.3390/app13148519
Submission received: 13 June 2023 / Revised: 15 July 2023 / Accepted: 21 July 2023 / Published: 23 July 2023

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.
Keywords: automatic program repair; code similarity; location awareness automatic program repair; code similarity; location awareness

Share and Cite

MDPI and ACS Style

Cao, H.; Han, D.; Liu, F.; Liao, T.; Zhao, C.; Shi, J. Code Similarity and Location-Awareness Automatic Program Repair. Appl. Sci. 2023, 13, 8519. https://doi.org/10.3390/app13148519

AMA Style

Cao H, Han D, Liu F, Liao T, Zhao C, Shi J. Code Similarity and Location-Awareness Automatic Program Repair. Applied Sciences. 2023; 13(14):8519. https://doi.org/10.3390/app13148519

Chicago/Turabian Style

Cao, Heling, Dong Han, Fangzheng Liu, Tianli Liao, Chenyang Zhao, and Jianshu Shi. 2023. "Code Similarity and Location-Awareness Automatic Program Repair" Applied Sciences 13, no. 14: 8519. https://doi.org/10.3390/app13148519

APA Style

Cao, H., Han, D., Liu, F., Liao, T., Zhao, C., & Shi, J. (2023). Code Similarity and Location-Awareness Automatic Program Repair. Applied Sciences, 13(14), 8519. https://doi.org/10.3390/app13148519

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop