Abstract
Debugging tools are essential to help tune constraint solving programs and each platform has its environment tools. However, at present, these tools are specific and have to be redesigned and re-implemented for each constraint solver whereas much could be factorized. This article sets the foundations to enable debugging tools to be defined almost independently from finite domain solvers, and conversely, tracers to be built independently from these tools. We propose a generic trace schema based on a generic observational semantics which formalizes relevant aspects of constraint programming and solving. We illustrate the genericity of the schema on three representative families of finite domain solvers: CLP (Gnu-Prolog), CSP (Choco) and explanation based CP (PaLM). Debugging tools can use the generic trace and do not have to take into account all the details of the solvers. We experimented several combinations of new debugging tools with the above mentioned solvers. We show that they all find in the generic trace the whole information they require.
This work is partly supported by OADymPPaC, a French RNTL project: http://contraintes.inria.fr/OADymPPaC.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Aggoun, D., Chan, P., Dufresne, E., Falvey, H., Grant, A., Herold, G., Macartney, M., Meier, D., Miller, S., Mudambi, B., Perez, E., van Rossum, J., Schimpf, P.A.: Tsahageas, and D.H. de Villeneuve. ECLIPSE 3.5. User Manual. European Computer Industry Research Centre (ECRC), Munich (1995)
Agren, M., Szeredi, T., Beldiceanu, N., Carlsson, M.: Tracing and explaining execution of CLP(FD) programs. In: Tessier, A. (ed.) Proceedings of the 12th Workshop on Logic Programming Environments, Copenhagen, Denmark (July 2002), Available as CoRR:cs.SE/0207047
Baudel, T., et al.: Discovery reference manual, Manufactured and distributed by Ilog (2003), http://www2.ilog.com/preview/Discovery/
Bracchi, C., Gefflot, C., Paulin, F.: Combining propagation information and search-tree visualization using OPL studio. In: Kusalik, A., Ducassé, M., Puebla, G. (eds.) Proceedings of the Eleventh Workshop on Logic Programming Environments (WLPE 2001), Cyprus, Décember 2001, pp. 27–39. Cyprus University (2001), Available as CoRR:cs.PL/0111042 http://xxx.lanl.gov/abs/cs.PL/0111042
Cosytec. CHIP++ Version 5.2. documentation volume 6 (1998), http://www.cosytec.com
Debruyne, R., Ferrand, G., Jussien, N., Lesaint, W., Ouis, S., Tessier, A.: Correctness of constraint retraction algorithms. In: FLAIRS 2003: Sixteenth International Florida Artificial Intelligence Research Society Conference, St. Augustine, Florida, USA, May 2003, pp. 172–176. AAAI press, Menlo Park (2003)
P. Deransart, M. Ducassé, and L. Langevine. A generic trace model for finite domain solvers. In Barry O’Sullivan, editor, Proceedings of the second International Workshop on User Interaction in Constraint Satisfaction (UICS’02), Cornell University (USA), Aug 2002. Available at http://www.cs.ucc.ie/˜osullb/UICS-02/papers/deransart_et_al-uics02.ps.
Deransart, P., Ed-Dbali, A., Cervoni, L.: Prolog, The Standard; Reference Manual, April 1996. Springer, Heidelberg (1996)
Deransart, P., Hermenegildo, M., Małuszyński, J. (eds.) Analysis and Visualization Tools for Constraint Programming. LNCS, vol. 1870, Springer, Heidelberg (2000)
Diaz, D.: GNU-Prolog, a free Prolog compiler with constraint solving over finite domains (2003), http://gprolog.sourceforge.net/
Ducassé, M.: Opium: an extendable trace analyzer for Prolog. The Journal of Logic Programming, special issue on Synthesis, Transformation and Analysis of Logic Programs 39, 177–223 (1999)
Ducassé, M., Langevine, L.: Automated analysis of CLP(FD) program execution traces. In: Stuckey, P. (ed.) Proceedings of the International Conference on Logic Programming, July 2002. LNCS, Springer, Heidelberg (2002) (poster), Extended version available at http://www.irisa.fr/lande/ducasse/
Ducassé, M., Langevine, L., Deransart, P.: Rigourous design of tracers: an experiment for constraint logic programming. In: Ronsse, M. (ed.) Proc. of AADEBUG 2003, September 2003, Gent University (2003), Available as CoRR:cs.SE/6309027
Fages, F.: CLPGUI: a generic graphical user interface for constraint logic programming over finite domains. In: Tessier, A. (ed.) Proceedings of the 12th Workshop on Logic Programming Environments (WLPE 2002), Copenhagen (August 2002), Available as CoRR:cs.SE/0207048
Fekete, J.-D., et al.: Proposition de format concret pour les traces générées par les solveurs de contraintes. Public deliverable d2.2.2.1, INRIA, INRIA (France) (November 2001), http://contraintes.inria.fr/OADymPPaC/Public/delivrables.html
Arnaud, G.: PAVOT Reference Manual (2004), http://contraintes.inria.fr/~arnaud/pavot/
Gonhiem, M., Jussien, N., Fekete, J.-D.: Visualizing explanations to exhibit dynamic structure in constraint problem satisfaction. In: O’Sullivan, B. (ed.) Proceedings of the third International Workshop on User Interaction in Constraint Satisfaction (UICS 2003), Cork University, Ireland (September 2003), Available at http://www.cs.ucc.ie/~osullb/UICS-03/
Ilog. Solver 5.1 reference manual (2001), http://www.ilog.com/
Jussien, N., Barichard, V.: The PaLM system: explanation-based constraint programming. In: Proceedings of TRICS: Techniques foR Implementing Constraint programming Systems, a post-conference workshop of CP 2000, Singapore, September 2000, pp. 118–133 (2000)
Jussien, N., Lhomme, O.: Local search with constraint propagation and conflict-based heuristics. Artificial Intelligence 139(1), 21–45 (2002)
Laburthe, F. and the OCRE research group.: CHOCO, a Constraint Programming kernel for solving combinatorial optimization problems (September 2001), Available at http://www.choco-constraints
Langevine, L., Deransart, P., Ducassé, M.: A propagation tracer for GNU-Prolog: from formal definition to efficient implementation. In: Palamidessi, C. (ed.) ICLP 2003. LNCS, vol. 2916, pp. 269–283. Springer, Heidelberg (2003)
Langevine, L., Deransart, P., Ducassé, M., Jahier, E.: Tracing execution of CLP(FD) programs, a trace model and an experimental validation environment. RR 4342, INRIA, Rocquencourt (France) (Décember 2001), Also in post-ICLP 2001 workshop: 11th Workshop on Logic Programming Environments
Langevine, L.: Codeine, a propagation tracer for GNU-Prolog (2003), http://contraintes.inria.fr/~langevin/codeine
Meier, M.: Debugging constraint programs. In: Montanari, U., Rossi, F. (eds.) CP 1995. LNCS, vol. 976, pp. 204–221. Springer, Heidelberg (1995)
Müller, T.: Practical investigation of constraints with graph views. In: Dechter, R. (ed.) CP 2000. LNCS, vol. 1894, p. 320. Springer, Heidelberg (2000)
Schulte, C.: Oz Explorer: A Visual Constraint Programming Tool. In: Proceedings of the Fourteenth International Conference on Logic Programming (ICLP 1997), Leuven, Belgium, June 1997, pp. 286–300. The MIT Press, Cambridge (1997)
Simonis, H., Aggoun, A., Beldiceanu, N., Bourreau, E.: Complex constraint abstraction: Global constraint visualization. In: Deransart, P., Małuszyński, J. (eds.) DiSCiPl 1999. LNCS, vol. 1870, Springer, Heidelberg (2000)
Van Hentenryck, P.: Constraint satisfaction in logic programming. The MIT Press, Cambridge (1989)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Langevine, L., Deransart, P., Ducassé, M. (2004). A Generic Trace Schema for the Portability of CP(FD) Debugging Tools. In: Apt, K.R., Fages, F., Rossi, F., Szeredi, P., Váncza, J. (eds) Recent Advances in Constraints. CSCLP 2003. Lecture Notes in Computer Science(), vol 3010. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24662-6_10
Download citation
DOI: https://doi.org/10.1007/978-3-540-24662-6_10
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-21834-0
Online ISBN: 978-3-540-24662-6
eBook Packages: Springer Book Archive