Skip to main content

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1870))

Abstract

When a result is computed but it is considered as incorrect because it is not expected, we consider that we have a symptom (of error). The symptom may be a wrong answer or a missing answer. The role of diagnosis is to locate an error, that is a limited program fragment responsible for the symptom. The notions of symptom and error have a meaning only w.r.t. some notion of expected semantics. We consider only declarative semantics. The user does not need to understand the operational behaviour of the CLP system. Symptom and error are connected via some kind of tree and the diagnosis amounts to search for a kind of minimal symptom in this tree. Several search strategies are possible. The principles of an implementation are described, with a diagnosis session.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Diaz, D.: A Native Prolog Compiler with Constraint Solving over Finite Domains Edition 1.0, for GNU Prolog version 1.0.0 (1999), http://www.gnu.org/software/prolog/

  2. Drabent, W., Nadjm-Tehrani, S., Maluszyński, J.: Algorithmic Debugging with Assertions. In: Abramson, H., Rogers, M.H. (eds.) Meta-Programming in Logic Programming, pp. 501–522. MIT Press, Cambridge (1989)

    Google Scholar 

  3. Ferrand, G., Tessier, A.: Clarification of the bases of Declarative Diagnosers for CLP. Deliverable D.WP2.1.M1.1-1. Debugging Systems for Constraint Programming, ESPRIT 22532 (1997), http://discipl.inria.fr/

  4. Jaffar, J., Maher, M.J., Marriott, K., Stuckey, P.J.: Semantics of Constraint Logic Programs. Journal of Logic Programming 37(1-3), 1–46 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  5. Lloyd, W.: Declarative Programming in Escher. Technical Report CSTR-95- 013, Department of Computer Science, University of Bristol (1995)

    Google Scholar 

  6. Malfon, B., Tessier, A.: An Adaptation of Negative Declarative Error Diagnosis to any Computation Rule. Deliverable D.WP2.1.M2.1-1. Debugging Systems for Constraint Programming, ESPRIT 22532 (1998), http://discipl.inria.fr/

  7. Shapiro, E.Y.: Algorithmic Program Debugging. ACM Distinguished Dissertation. The MIT Press, Cambridge (1982)

    Google Scholar 

  8. Tessier, A.: Correctness and Completeness of CLP Semantics revisited with (Co- )Induction. Deliverable D.WP2.1.M2.1-2. Debugging Systems for Constraint Programming, ESPRIT 22532 (1998), http://discipl.inria.fr/

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Tessier, A., Ferrand, G. (2000). Declarative Diagnosis in the CLP Scheme. In: Deransart, P., Hermenegildo, M.V., Małuszynski, J. (eds) Analysis and Visualization Tools for Constraint Programming. Lecture Notes in Computer Science, vol 1870. Springer, Berlin, Heidelberg. https://doi.org/10.1007/10722311_6

Download citation

  • DOI: https://doi.org/10.1007/10722311_6

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-41137-6

  • Online ISBN: 978-3-540-40016-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics