Stepwise debugging of answer-set programs*. Issue 1 (17th October 2017)
- Record Type:
- Journal Article
- Title:
- Stepwise debugging of answer-set programs*. Issue 1 (17th October 2017)
- Main Title:
- Stepwise debugging of answer-set programs*
- Authors:
- OETSCH, JOHANNES
PÜHRER, JÖRG
TOMPITS, HANS - Abstract:
- Abstract: We introduce a stepping methodology for answer-set programming (ASP) that allows for debugging answer-set programs and is based on the stepwise application of rules. Similar to debugging in imperative languages, where the behaviour of a program is observed during a step-by-step execution, stepping for ASP allows for observing the effects that rule applications have in the computation of an answer set. While the approach is inspired from debugging in imperative programming, it is conceptually different to stepping in other paradigms due to non-determinism and declarativity that are inherent to ASP. In particular, unlike statements in an imperative program that are executed following a strict control flow, there is no predetermined order in which to consider rules in ASP during a computation. In our approach, the user is free to decide which rule to consider active in the next step following his or her intuition. This way, one can focus on interesting parts of the debugging search space. Bugs are detected during stepping by revealing differences between the actual semantics of the program and the expectations of the user. As a solid formal basis for stepping, we develop a framework of computations for answer-set programs. For fully supporting different solver languages, we build our framework on an abstract ASP language that is sufficiently general to capture different solver languages. To this end, we make use of abstract constraints as an established abstractionAbstract: We introduce a stepping methodology for answer-set programming (ASP) that allows for debugging answer-set programs and is based on the stepwise application of rules. Similar to debugging in imperative languages, where the behaviour of a program is observed during a step-by-step execution, stepping for ASP allows for observing the effects that rule applications have in the computation of an answer set. While the approach is inspired from debugging in imperative programming, it is conceptually different to stepping in other paradigms due to non-determinism and declarativity that are inherent to ASP. In particular, unlike statements in an imperative program that are executed following a strict control flow, there is no predetermined order in which to consider rules in ASP during a computation. In our approach, the user is free to decide which rule to consider active in the next step following his or her intuition. This way, one can focus on interesting parts of the debugging search space. Bugs are detected during stepping by revealing differences between the actual semantics of the program and the expectations of the user. As a solid formal basis for stepping, we develop a framework of computations for answer-set programs. For fully supporting different solver languages, we build our framework on an abstract ASP language that is sufficiently general to capture different solver languages. To this end, we make use of abstract constraints as an established abstraction for popular language constructs such as aggregates. Stepping has been implemented inSeaLion, an integrated development environment for ASP. We illustrate stepping using an example scenario and discuss the stepping plugin ofSeaLion . Moreover, we elaborate on methodological aspects and the embedding of stepping in the ASP development process. … (more)
- Is Part Of:
- Theory and practice of logic programming. Volume 18:Issue 1(2018)
- Journal:
- Theory and practice of logic programming
- Issue:
- Volume 18:Issue 1(2018)
- Issue Display:
- Volume 18, Issue 1 (2018)
- Year:
- 2018
- Volume:
- 18
- Issue:
- 1
- Issue Sort Value:
- 2018-0018-0001-0000
- Page Start:
- 30
- Page End:
- 80
- Publication Date:
- 2017-10-17
- Subjects:
- answer-set programming, -- debugging, -- stepping, -- program analysis
Logic programming -- Periodicals
Artificial intelligence -- Computer programs -- Periodicals
Constraint programming (Computer science) -- Periodicals
005.115 - Journal URLs:
- https://www.cambridge.org/core/journals/theory-and-practice-of-logic-programming ↗
- DOI:
- 10.1017/S1471068417000217 ↗
- Languages:
- English
- ISSNs:
- 1471-0684
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD Digital store
- Ingest File:
- 5723.xml