Hostname: page-component-77f85d65b8-6bnxx Total loading time: 0 Render date: 2026-04-21T19:28:58.512Z Has data issue: false hasContentIssue false

Debugging Non-ground ASP Programs: Technique and Graphical Tools

Published online by Cambridge University Press:  15 February 2019

CARMINE DODARO
Affiliation:
DIBRIS, University of Genova, Genova, Italy (e-mail: dodaro@dibris.unige.it)
PHILIP GASTEIGER
Affiliation:
Alpen-Adria-Universität Klagenfurt, Klagenfurt, Austria (e-mail: philip.gasteiger@gmail.com)
KRISTIAN REALE
Affiliation:
Department of Mathematics and Computer Science, University of Calabria, Rende, Italy (e-mails: reale@mat.unical.it, ricca@mat.unical.it)
FRANCESCO RICCA
Affiliation:
Department of Mathematics and Computer Science, University of Calabria, Rende, Italy (e-mails: reale@mat.unical.it, ricca@mat.unical.it)
KONSTANTIN SCHEKOTIHIN
Affiliation:
Alpen-Adria-Universität Klagenfurt, Klagenfurt, Austria (e-mail: konstantin.schekotihin@aau.at)

Abstract

Answer set programming (ASP) is one of the major declarative programming paradigms in the area of logic programming and non-monotonic reasoning. Despite that ASP features a simple syntax and an intuitive semantics, errors are common during the development of ASP programs. In this paper we propose a novel debugging approach allowing for interactive localization of bugs in non-ground programs. The new approach points the user directly to a set of non-ground rules involved in the bug, which might be refined (up to the point in which the bug is easily identified) by asking the programmer a sequence of questions on an expected answer set. The approach has been implemented on top of the ASP solver wasp. The resulting debugger has been complemented by a user-friendly graphical interface, and integrated in aspide, a rich integrated development environment (IDE) for answer set programs. In addition, an empirical analysis shows that the new debugger is not affected by the grounding blowup limiting the application of previous approaches based on meta-programming.

Information

Type
Original Article
Copyright
Copyright © Cambridge University Press 2019 

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable