Automated debugging based on a constraint model of the program and a test case

被引:27
|
作者
Wotawa, Franz [1 ]
Nica, Mihai [1 ]
Moraru, Iulia [1 ]
机构
[1] Graz Univ Technol, Inst Software Technol, A-8010 Graz, Austria
来源
关键词
Automated debugging; Algorithmic debugging; Model-based debugging; Constraints; Constraint satisfaction problem; SINGLE-ASSIGNMENT FORM; GENERATION; DIAGNOSIS;
D O I
10.1016/j.jlap.2012.03.002
中图分类号
学科分类号
摘要
Debugging, i.e., fault localization, in case of a detected failure is a time consuming and intricate task. The automation or at least partial automation of debugging is therefore highly desired. In this paper, we discuss some of the most recent approaches for debugging namely spectrum-based, slicing-based, and model-based debugging. We focus on the latter, and introduce the underlying theory as well as discuss empirical results obtained from our implementation. The model-based approach we present in this paper relies on a constraint representation of a program that is equivalent to the original program in terms of the input-output behavior under some reasonable assumptions. By using constraints for representing programs and subsequently test cases we are able to state the debugging problem as a constraint satisfaction problem that can be effectively solved using a todays constraint solver. The given empirical results indicate that the approach can be used for debugging smaller programs in less than 1 s. Moreover, we briefly compare the three approaches and suggest a combination of them in order to improve the results and the overall necessary running time. (C) 2012 Elsevier Inc. All rights reserved.
引用
收藏
页码:390 / 407
页数:18
相关论文
共 50 条
  • [1] On-the-fly model checking of program runs for automated debugging
    Frey, M
    Schlingloff, BH
    24TH EUROMICRO CONFERENCE - PROCEEDING, VOLS 1 AND 2, 1998, : 426 - 434
  • [2] Constraint-based debugging in probabilistic model checking
    Hichem Debbi
    Computing, 2023, 105 : 321 - 351
  • [3] Constraint-based debugging in probabilistic model checking
    Debbi, Hichem
    COMPUTING, 2023, 105 (02) : 321 - 351
  • [4] Constraint-Based Automated Generation of Test Data
    Adorf, Hans-Martin
    Varendorff, Martin
    SOFTWARE QUALITY: MODEL-BASED APPROACHES FOR ADVANCED SOFTWARE AND SYSTEMS ENGINEERING, 2014, 166 : 199 - 213
  • [5] Automated Test Generation for Debugging Arithmetic Circuits
    Farahmandi, Farimah
    Mishra, Prabhat
    PROCEEDINGS OF THE 2016 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2016, : 1351 - 1356
  • [6] Model-based diagnosis of spreadsheet programs: a constraint-based debugging approach
    Jannach, Dietmar
    Schmitz, Thomas
    AUTOMATED SOFTWARE ENGINEERING, 2016, 23 (01) : 105 - 144
  • [7] Model-based diagnosis of spreadsheet programs: a constraint-based debugging approach
    Dietmar Jannach
    Thomas Schmitz
    Automated Software Engineering, 2016, 23 : 105 - 144
  • [8] Constraint-Based Test Oracles for Program Analyzers
    Fleischmann, Markus
    Kaindlstorfer, David
    Isychev, Anastasia
    Wuestholz, Valentin
    Christakis, Maria
    PROCEEDINGS OF 2024 39TH ACM/IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE 2024, 2024, : 344 - 355
  • [9] A Novel Fitness Function for Automated Software Test Case Generation Based on Nested Constraint Hardness
    Bui Thi Mai Anh
    Do Van Tri
    Bui Quoc Trung
    PROCEEDINGS OF THE 2023 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE COMPANION, GECCO 2023 COMPANION, 2023, : 791 - 794
  • [10] Learning to program using hierarchical model-based debugging
    Leliane Nunes de Barros
    Wellington Ricardo Pinheiro
    Karina Valdivia Delgado
    Applied Intelligence, 2015, 43 : 544 - 563