Volume 9 Number 1 (Jan. 2014)
Home > Archive > 2014 > Volume 9 Number 1 (Jan. 2014) >
JCP 2014 Vol.9(1): 1-11 ISSN: 1796-203X
doi: 10.4304/jcp.9.1.1-11

Assumption-based Reasoning with Constraints for Diagnosing Program Errors

Fei Pu1, 2
1College of Computer and Information Engineering, Zhejiang Gongshang University, Hangzhou, China
2State Key Laboratory of Computer Science, Institute of Software, Chinese Academy of Sciences, Beijing, China


Abstract—Model checking is an efficient technique for detecting errors of a system. However diagnosing program errors is the most time consuming hard work. One of the major advantages of model checking is the production of a counterexample when a property violation is detected. The error trace produced by a model checker may exhibit the symptom related to the cause of errors. Thus, counterexamples can be enough and are indicative for the cause of violation of the property. We present an assumptionbased approach to localize the cause of a property violation using reasoning with constraints. The assumption among the statements in counterexample is made to point out which statement(s) is (are) faulty. Some constraints will be introduced from the specifications of the program. Moreover, we transform the counterexample into a propositional logic formula which is then fed to a SAT solver or a theorem prover together with constraints. A calculus of reasoning with these constraints proceeds under certain assumptions. If the result is satisfiable, the assumption is correct, otherwise, the assumption is wrong and a new assumption should be proposed. Some examples are presented to support the applicability and effectiveness of our approach.

Index Terms—error diagnosing, assumption-based reasoning, model checking, constraints, counterexamples

[PDF]

Cite: Fei Pu, "Assumption-based Reasoning with Constraints for Diagnosing Program Errors," Journal of Computers vol. 9, no. 1, pp. 1-11, 2014.

General Information

ISSN: 1796-203X
Abbreviated Title: J.Comput.
Frequency: Bimonthly
Editor-in-Chief: Prof. Liansheng Tan
Executive Editor: Ms. Nina Lee
Abstracting/ Indexing: DBLP, EBSCO,  ProQuest, INSPEC, ULRICH's Periodicals Directory, WorldCat,etc
E-mail: jcp@iap.org
  • Nov 14, 2019 News!

    Vol 14, No 11 has been published with online version   [Click]

  • Mar 20, 2020 News!

    Vol 15, No 2 has been published with online version   [Click]

  • Dec 16, 2019 News!

    Vol 14, No 12 has been published with online version   [Click]

  • Sep 16, 2019 News!

    Vol 14, No 9 has been published with online version   [Click]

  • Aug 16, 2019 News!

    Vol 14, No 8 has been published with online version   [Click]

  • Read more>>