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

Fault Localization for Novice Programs Combining Static Analysis and Dynamic Detection

  • Beihang University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

In programming teaching, teachers or teaching assistants often need to spend a lot of energy helping students solve the problems they face when doing programming. It will be helpful to provide students with valuable programming feedback, such as information on faulty lines. However, most existing algorithms do not perform well on novice programs. Therefore, considering the background in programming teaching, we proposed a novel approach combining static analysis with dynamic detection by using the correct programs submitted by previous students and coverage information for the incorrect program. In particular, the core of the static analysis module is to locate specific faulty lines through syntax tree difference comparison, which includes matching similar programs, variable mapping and replacement, and fault localization based on abstract syntax tree differences. The core of the module on dynamic detection is to perform traditional Spectrum-based Fault Localization. To evaluate the effectiveness of our proposed approach, we conducted some empirical studies on 223 student-failure programs in the real world. The experimental results indicate that our approach outperforms other baselines regarding TOP-l and TOP-3. Furthermore, we analyzed the performance of our method on different categories of programming problems as well as the effectiveness of the combination of static analysis and dynamic detection.

源语言英语
主期刊名Proceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024
编辑Hossain Shahriar, Hiroyuki Ohsaki, Moushumi Sharmin, Dave Towey, AKM Jahangir Alam Majumder, Yoshiaki Hori, Ji-Jiang Yang, Michiharu Takemoto, Nazmus Sakib, Ryohei Banno, Sheikh Iqbal Ahamed
出版商Institute of Electrical and Electronics Engineers Inc.
94-102
页数9
ISBN(电子版)9798350376968
DOI
出版状态已出版 - 2024
活动48th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2024 - Osaka, 日本
期限: 2 7月 20244 7月 2024

出版系列

姓名Proceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024

会议

会议48th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2024
国家/地区日本
Osaka
时期2/07/244/07/24

学术指纹

探究 'Fault Localization for Novice Programs Combining Static Analysis and Dynamic Detection' 的科研主题。它们共同构成独一无二的学术指纹。

引用此