Skip to main content

Debugging ASP Programs by Means of ASP

  • Conference paper
Logic Programming and Nonmonotonic Reasoning (LPNMR 2007)

Abstract

Answer-set programming (ASP) has become an important paradigm for declarative problem solving in recent years. However, to further improve the usability of answer-set programs, the development of software-engineering tools is vital. In particular, the area of debugging provides a challenge in both theoretical and practical terms. This is due to the purely declarative nature of ASP that, on the one hand, calls for solver-independent methodologies and, on the other hand, does not directly apply to tracing techniques. In this paper, we propose a novel methodology, which rests within ASP itself, to sort out errors on the conceptual level. Our method makes use of tagging, where the program to be analyzed is rewritten using dedicated control atoms. This provides a flexible way to specify different types of debugging requests and a first step towards a dedicated (meta level) debugging language.

This work was partially supported by the Austrian Science Fund (FWF) under project P18019.

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. Delgrande, J., Schaub, T., Tompits, H.: A framework for compiling preferences in logic programs. Theory and Practice of Logic Programming 3(2), 129–187 (2003)

    Article  MATH  MathSciNet  Google Scholar 

  2. http://www.kr.tuwien.ac.at/research/debug

  3. Bösel, A., Linke, T., Schaub, T.: Profiling answer set programming: The visualization component of the noMoRe system. In: Alferes, J.J., Leite, J.A. (eds.) JELIA 2004. LNCS (LNAI), vol. 3229, pp. 702–705. Springer, Heidelberg (2004)

    Google Scholar 

  4. Brain, M., De Vos, M.: Debugging logic programs under the answer set semantics. In: Proc. ASP’05, pp. 141–152 (2005)

    Google Scholar 

  5. Syrjänen, T.: Debugging inconsistent answer set programs. In: Proc. NMR’06, pp. 77–83 (2006)

    Google Scholar 

  6. Pontelli, E., Son, T.: Justifications for logic programs under answer set semantics. In: Etalle, S., Truszczyński, M. (eds.) ICLP 2006. LNCS, vol. 4079, pp. 196–210. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  7. Simons, P., Niemelä, I., Soininen, T.: Extending and implementing the stable model semantics. Artificial Intelligence 138(1-2), 181–234 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  8. Lin, F., Zhao, Y.: ASSAT: Computing answer sets of a logic program by SAT solvers. Artificial Intelligence 157(1-2), 115–137 (2004)

    Article  MATH  MathSciNet  Google Scholar 

  9. Clark, K.: Negation as failure. In: Logic and Data Bases, pp. 293–322. Plenum, New York (1978)

    Google Scholar 

  10. Fages, F.: Consistency of Clark’s completion and the existence of stable models. Journal of Methods of Logic in Computer Science 1, 51–60 (1994)

    Google Scholar 

  11. Leone, N., et al.: The DLV system for knowledge representation and reasoning. ACM Transactions on Computational Logic 7(3), 499–562 (2006)

    Article  MathSciNet  Google Scholar 

  12. Reiter, R.: A theory of diagnosis from first principles. Artificial Intelligence 32(1), 57–95 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  13. Roychoudhury, A., Ramakrishnan, C., Ramakrishnan, I.: Justifying proofs using memo tables. In: Proc. PPDP ’00, pp. 178–189 (2000)

    Google Scholar 

  14. Pemmasani, G., et al.: Online justification for tabled logic programs. In: Kameyama, Y., Stuckey, P.J. (eds.) FLOPS 2004. LNCS, vol. 2998, pp. 24–38. Springer, Heidelberg (2004)

    Google Scholar 

  15. Specht, G.: Generating explanation trees even for negations in deductive database systems. In: Proc. LPE’93, pp. 8–13 (1993)

    Google Scholar 

  16. Balduccini, M., Gelfond, M.: Logic programs with consistency-restoring rules. In: Proc. Commonsense’03, pp. 9–18 (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Chitta Baral Gerhard Brewka John Schlipf

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer Berlin Heidelberg

About this paper

Cite this paper

Brain, M., Gebser, M., Pührer, J., Schaub, T., Tompits, H., Woltran, S. (2007). Debugging ASP Programs by Means of ASP. In: Baral, C., Brewka, G., Schlipf, J. (eds) Logic Programming and Nonmonotonic Reasoning. LPNMR 2007. Lecture Notes in Computer Science(), vol 4483. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-72200-7_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-72200-7_5

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-72199-4

  • Online ISBN: 978-3-540-72200-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics