VsusFL: Variable-suspiciousness-based Fault Localization for novice programs

被引:4
|
作者
Li, Zheng [1 ]
Wu, Shumei [1 ]
Liu, Yong [1 ]
Shen, Jitao [1 ]
Wu, Yonghao [1 ]
Zhang, Zhanwen [1 ]
Chen, Xiang [2 ]
机构
[1] Beijing Univ Chem Technol, Coll Informat Sci & Technol, Beijing, Peoples R China
[2] Nantong Univ, Sch Informat Sci & Technol, Nantong, Peoples R China
基金
中国国家自然科学基金;
关键词
Novice programs; Fault localization; Variable value sequence; Sequence mapping;
D O I
10.1016/j.jss.2023.111822
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Automatically localizing faulty statements is a desired feature for effective learning programming. Most of the existing automated fault localization techniques are developed and evaluated on commercial or well-known open-source projects, which performed poorly on novice programs. In this paper, we propose a novel fault localization technique VsusFL (Variable-suspiciousness-based Fault Localization) for novice programs. VsusFL is inspired by simulating the manual program debugging process and takes advantage of variable value sequences. VsusFL can trace variable value changes, determine whether the intermediate state of the variables is correct, and report the potential faulty statements for novice programs. This paper presents the implementation of VsusFL and conducts empirical studies on 422 real faulty novice programs. Experimental results show that VsusFL performs much better than Grace, ANGELINA, VSBFL, Spectrum-Based Fault Localization (SBFL), and Variable-based Fault Localization (VFL) in terms of TOP-1, TOP-3, and TOP-5 metrics. Specifically, VsusFL can localize 90%, 35% and 9% more faulty statements than the best-performing baseline Grace. Moreover, We analyze the correlation between VsusFL and other techniques and find a weak correlation since they perform well on different programs, indicating the potential to further enhance fault localization performance through strategic integration of VsusFL with other methods.& COPY; 2023 Elsevier Inc. All rights reserved.
引用
收藏
页数:16
相关论文
共 50 条
  • [1] VSBFL: Variable Value Sequence Based Fault Localization for Novice Programs
    Li, Zheng
    Shen, Jitao
    Wu, Yonghao
    Liu, Yong
    Sun, Zeyu
    2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 494 - 505
  • [2] An Empirical Study of Fault Localization on Novice Programs
    Liu, Yuxing
    Chen, Jianying
    Tang, Jiamin
    Tong, Xiaoyi
    Cai, Liping
    Li, Hengyuan
    2024 IEEE 48TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC 2024, 2024, : 2375 - 2380
  • [3] Applying Spectrum-based Fault Localization on Novice's Programs
    Araujo, Eliane
    Gaudencio, Matheus
    Serey, Dalton
    Figueiredo, Jorge
    2016 IEEE FRONTIERS IN EDUCATION CONFERENCE (FIE), 2016,
  • [4] Semantic Fault Localization and Suspiciousness Ranking
    Christakis, Maria
    Heizmann, Matthias
    Mansur, Muhammad Numair
    Schilling, Christian
    Wuestholz, Valentin
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, PT I, 2019, 11427 : 226 - 243
  • [5] GBSR: Graph-based suspiciousness refinement for improving fault localization
    Li, Zheng
    Li, Mingyu
    Wu, Shumei
    Xu, Shunqing
    Chen, Xiang
    Liu, Yong
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 218
  • [6] Fault Localization for Novice Programs Combining Static Analysis and Dynamic Detection
    Wan, Han
    Nie, Wenhao
    Yue, Shiyang
    Luo, Xiaoyan
    2024 IEEE 48TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC 2024, 2024, : 94 - 102
  • [7] An Empirical Study of Fault Localization on Novice Programs and Addressing the Tie Problem
    Liu, Yuxing
    Zhong, Jiaxin
    Hei, Qihua
    Zhou, Xuchuan
    Xiao, Jingzhong
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2025, 35 (01) : 19 - 44
  • [9] Investigating the Impact of Test Case Density and Execution Variety on Fault Localization for Novice Programs
    Wang, YingChun
    He, Lin
    Chen, Nannan
    Zhai, Qi
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2023, 32 (01)
  • [10] Evolving Suspiciousness Metrics From Hybrid Data Set for Boosting a Spectrum Based Fault Localization
    Ajibode, Adekunle Akinjobi
    Shu, Ting
    Ding, Zuohua
    IEEE ACCESS, 2020, 8 : 198451 - 198467