A bounded constraint-based approach to aid in fault localization from a counterexample

被引:0
作者
Bekkouche, Mohammed [1 ]
机构
[1] Ecole Super Informat, LabRI SBA Lab, Sidi Bel Abbes, Algeria
关键词
Locating faults; Constraint programming; LocFaults; BugAssist; Minimal correction subset; Deviation; ALGORITHMS; SUBSETS;
D O I
10.1007/s11334-024-00558-1
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A model checker can produce a trace of counter-example for an erroneous program, which is often difficult to exploit for locating faults. In this paper, we propose a fault localization algorithm from counter-examples, named LocFaults, combining the approaches of Bounded Model-Checking (BMC) with a constraint satisfaction problem (CSP). The input is a faulty program for which a counter-example and a postcondition are provided. To identify helpful information for fault location, LocFaults analyzes the paths of the CFG (Control Flow Graph) of the erroneous program to calculate the subsets of suspicious instructions to correct the program. Indeed, we generate a system of constraints for paths of the control flow graph for which at most k conditional statements can be wrong. Then we calculate the MCSs (Minimal Correction Sets) of limited size on each of these paths. The removal of one of these sets of constraints yields a maximal satisfiable subset, in other words, a maximal subset of constraints satisfying the postcondition. LocFaults has been experimentally evaluated on a set of academic and realistic programs. The main advantage of this flow-driven approach is that the computed sets of suspicious instructions are small, each of them being associated with an identified path. Moreover, the constraint programming-based framework of LocFaults allows mixing Boolean and numerical constraints in an efficient and straightforward way.
引用
收藏
页数:19
相关论文
共 42 条
  • [1] [Anonymous], 2022, Testing and Debugging
  • [2] Avizienis A, 2004, INT FED INFO PROC, V156, P91
  • [3] Avizienis A., 2001, Department of Computing Science Technical Report Series
  • [4] From symptom to cause: Localizing errors in counterexample traces
    Ball, T
    Naik, M
    Rajamani, SK
    [J]. ACM SIGPLAN NOTICES, 2003, 38 (01) : 97 - 105
  • [5] Barnett Mike., 2005, PASTE, DOI 10.1145/1108792.1108813
  • [6] Bekkouche M., 2023, Comput Sci, V31, P92
  • [7] LocFaults: A new flow-driven and constraint-based error localization approach
    Bekkouche, Mohammed
    Collavizza, Helene
    Rueher, Michel
    [J]. 30TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, VOLS I AND II, 2015, : 1773 - 1780
  • [8] Consistent subsets of inconsistent systems: structure and behaviour
    Birnbaum, E
    Lozinskii, EL
    [J]. JOURNAL OF EXPERIMENTAL & THEORETICAL ARTIFICIAL INTELLIGENCE, 2003, 15 (01) : 25 - 46
  • [9] Chinneck J. W., 1996, INFORMS Journal of Computing, V8, P55, DOI 10.1287/ijoc.8.1.55
  • [10] Chinneck JW, 2008, INT SER OPER RES MAN, P1