Bug localization based on syntactical and semantic information of source code

被引:0
|
作者
YAN Xuefeng [1 ,2 ]
CHENG Shasha [1 ]
GUO Liqin [3 ]
机构
[1] College of Computer Science Technology, Nanjing University of Aeronautics and Astronautics
[2] Collaborative Innovation Center of Novel Software Technology and Industrialization
[3] State Key Laboratory of Intelligent Manufacturing System Technology, Beijing Institute of Electronic System Engineering
基金
国家重点研发计划;
关键词
bug report; abstract syntax tree; code representation; software bug localization;
D O I
暂无
中图分类号
TP311.5 [软件工程];
学科分类号
摘要
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.
引用
收藏
页码:236 / 246
页数:11
相关论文
共 50 条
  • [21] Influence of Structured Information in Bug Report Descriptions on IR-based Bug Localization
    Rath, Michael
    Maeder, Patrick
    44TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2018), 2018, : 26 - 32
  • [22] Enhancing bug localization with bug report decomposition and code hierarchical network
    Zhu, Ziye
    Tong, Hanghang
    Wang, Yu
    Li, Yun
    KNOWLEDGE-BASED SYSTEMS, 2022, 248
  • [23] Deep code comment generation with hybrid lexical and syntactical information
    Xing Hu
    Ge Li
    Xin Xia
    David Lo
    Zhi Jin
    Empirical Software Engineering, 2020, 25 : 2179 - 2217
  • [24] Effective approaches to combining lexical and syntactical information for code summarization
    Zhou, Ziyi
    Yu, Huiqun
    Fan, Guisheng
    SOFTWARE-PRACTICE & EXPERIENCE, 2020, 50 (12): : 2313 - 2336
  • [25] Are Information Retrieval-based Bug Localization Techniques Trustworthy?
    Kim, Misoo
    Lee, Eunseok
    PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING - COMPANION (ICSE-COMPANION, 2018, : 248 - 249
  • [26] On the Effectiveness of Information Retrieval Based Bug Localization for C Programs
    Saha, Ripon K.
    Lawall, Julia
    Khurshid, Sarfraz
    Perry, Dewayne E.
    2014 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2014, : 161 - 170
  • [27] Information Retrieval and Spectrum Based Bug Localization: Better Together
    Le, Tien-Duy B.
    Oentaryo, Richard J.
    Lo, David
    2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, : 579 - 590
  • [28] SBugLocater: Bug Localization Based on Deep Matching and Information Retrieval
    Huang, Xuxiang
    Xiang, Chen
    Li, Hua
    He, Peng
    MATHEMATICAL PROBLEMS IN ENGINEERING, 2022, 2022
  • [29] Two-Level Information-Retrieval-Based Model for Bug Localization Based on Bug Reports
    Alsaedi, Shatha
    Gad-Elrab, Ahmed A. A.
    Noaman, Amin
    Eassa, Fathy
    ELECTRONICS, 2024, 13 (02)
  • [30] Deep code comment generation with hybrid lexical and syntactical information
    Hu, Xing
    Li, Ge
    Xia, Xin
    Lo, David
    Jin, Zhi
    EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (03) : 2179 - 2217