跳到主要导航 跳到搜索 跳到主要内容

基于指针神经网络的细粒度缺陷定位

  • Shang Wen Wang
  • , Kui Liu*
  • , Bo Lin
  • , Li Li
  • , Jacques Klein
  • , Tegawendé François Bissyandé
  • , Xiao Guang Mao
  • *此作品的通讯作者
  • National University of Defense Technology
  • Nanjing University of Aeronautics and Astronautics
  • Monash University
  • University of Luxembourg

科研成果: 期刊稿件文章同行评审

摘要

Software defect localization refers to the activity of finding program elements that are related to software failure. The existing defect localization techniques, however, can only produce localization results at the function or statement level. These coarse-grained localization results can affect the efficiency and effectiveness of manual debugging and automatic software defect repair. This study focuses on the fine-grained identification of specific code tokens that lead to software defects. The study establishes abstract syntax tree paths for code tokens and proposes a fine-grained defect localization model based on a pointer neural network to predict specific code tokens of defects and specific operation behaviors of repairing the tokens. A large number of defect patch data sets in open-source projects contain a large amount of trainable data, and the paths constructed based on abstract syntax trees can effectively capture the program’s structural information. Experimental results show that the model trained in this study can accurately predict defect code tokens and is significantly better than the baseline methods based on statistics and machine learning. In addition, in order to verify that fine-grained defect localization results can contribute to automatic defect repair, two kinds of program repair processes are designed based on the fine-grained defect localization results. The processes are implemented by using code completion tools to predict the correct token or by following heuristic rules to find appropriate code repair elements. The results show that both methods can effectively solve the overfitting problem in automatic software defect repair.

投稿的翻译标题Fine-grained Defect Localization Based on Pointer Neural Network
源语言繁体中文
页(从-至)1841-1860
页数20
期刊Ruan Jian Xue Bao/Journal of Software
35
4
DOI
出版状态已出版 - 4月 2024
已对外发布

关键词

  • automatic defect repair
  • defect localization
  • neural network

指纹

探究 '基于指针神经网络的细粒度缺陷定位' 的科研主题。它们共同构成独一无二的指纹。

引用此