Bug localization based on syntactical and semantic information of source code  

在线阅读下载全文

作  者:YAN Xuefeng CHENG Shasha GUO Liqin 

机构地区:[1]College of Computer Science Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 211106,China [2]Collaborative Innovation Center of Novel Software Technology and Industrialization,Nanjing 211106,China [3]State Key Laboratory of Intelligent Manufacturing System Technology,Beijing Institute of Electronic System Engineering,Beijing 100854,China

出  处:《Journal of Systems Engineering and Electronics》2023年第1期236-246,共11页系统工程与电子技术(英文版)

基  金:supported by the National Key R&D Program of China (2018YFB1702700)。

摘  要:The existing software bug localization models treat the source file as natural language, which leads to the loss of syntactical and structure information of the source file. A bug localization model based on syntactical and semantic information of source code is proposed. Firstly, abstract syntax tree(AST) is divided based on node category to obtain statement sequence. The statement tree is encoded into vectors to capture lexical and syntactical knowledge at the statement level.Secondly, the source code is transformed into vector representation by the sequence naturalness of the statement. Therefore,the problem of gradient vanishing and explosion caused by a large AST size is obviated when using AST to the represent source code. Finally, the correlation between bug reports and source files are comprehensively analyzed from three aspects of syntax, semantics and text to locate the buggy code. Experiments show that compared with other standard models, the proposed model improves the performance of bug localization, and it has good advantages in mean reciprocal rank(MRR), mean average precision(MAP) and Top N Rank.

关 键 词:bug report abstract syntax tree code representation software bug localization 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象