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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
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/
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)
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/
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)
Lloyd, W.: Declarative Programming in Escher. Technical Report CSTR-95- 013, Department of Computer Science, University of Bristol (1995)
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/
Shapiro, E.Y.: Algorithmic Program Debugging. ACM Distinguished Dissertation. The MIT Press, Cambridge (1982)
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/
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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