Skip to main content

A Generic Trace Schema for the Portability of CP(FD) Debugging Tools

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 3010))

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

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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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)

    Google Scholar 

  2. 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

    Google Scholar 

  3. Baudel, T., et al.: Discovery reference manual, Manufactured and distributed by Ilog (2003), http://www2.ilog.com/preview/Discovery/

  4. 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

  5. Cosytec. CHIP++ Version 5.2. documentation volume 6 (1998), http://www.cosytec.com

  6. 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)

    Google Scholar 

  7. 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.

    Google Scholar 

  8. Deransart, P., Ed-Dbali, A., Cervoni, L.: Prolog, The Standard; Reference Manual, April 1996. Springer, Heidelberg (1996)

    MATH  Google Scholar 

  9. Deransart, P., Hermenegildo, M., Małuszyński, J. (eds.) Analysis and Visualization Tools for Constraint Programming. LNCS, vol. 1870, Springer, Heidelberg (2000)

    Google Scholar 

  10. Diaz, D.: GNU-Prolog, a free Prolog compiler with constraint solving over finite domains (2003), http://gprolog.sourceforge.net/

  11. 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)

    MATH  Google Scholar 

  12. 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/

    Google Scholar 

  13. 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

    Google Scholar 

  14. 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

    Google Scholar 

  15. 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

  16. Arnaud, G.: PAVOT Reference Manual (2004), http://contraintes.inria.fr/~arnaud/pavot/

  17. 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/

  18. Ilog. Solver 5.1 reference manual (2001), http://www.ilog.com/

  19. 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)

    Google Scholar 

  20. Jussien, N., Lhomme, O.: Local search with constraint propagation and conflict-based heuristics. Artificial Intelligence 139(1), 21–45 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  21. 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

    Google Scholar 

  22. 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)

    Chapter  Google Scholar 

  23. 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

    Google Scholar 

  24. Langevine, L.: Codeine, a propagation tracer for GNU-Prolog (2003), http://contraintes.inria.fr/~langevin/codeine

  25. Meier, M.: Debugging constraint programs. In: Montanari, U., Rossi, F. (eds.) CP 1995. LNCS, vol. 976, pp. 204–221. Springer, Heidelberg (1995)

    Google Scholar 

  26. Müller, T.: Practical investigation of constraints with graph views. In: Dechter, R. (ed.) CP 2000. LNCS, vol. 1894, p. 320. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  27. 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)

    Google Scholar 

  28. 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)

    Google Scholar 

  29. Van Hentenryck, P.: Constraint satisfaction in logic programming. The MIT Press, Cambridge (1989)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics