paper-with-me

Papers

Stepwise Debugging of Answer-Set Programs

2017-05-18 · Johannes Oetsch, Jörg Pührer, Hans Tompits

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 in SeaLion, an integrated development environment for ASP. We illustrate stepping using an example scenario and discuss the stepping plugin of SeaLion. Moreover, we elaborate on methodological aspects and the embedding of stepping in the ASP development process.

📄 PDF Abstract BibTeX arXiv:1705.06564

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

An integrated Graphical User Interface for Debugging Answer Set Programs

2016-11-15 · Philip Gasteiger, Carmine Dodaro, Benjamin Musitsch, Kristian Reale 외

Answer Set Programming (ASP) is an expressive knowledge representation and reasoning framework. Due to its rather simple syntax paired with high-performance solvers, ASP is interesting for industrial applications. Howeve…

Debugging Non-Ground ASP Programs: Technique and Graphical Tools

2018-08-01 · Carmine Dodaro, Philip Gasteiger, Kristian Reale, Francesco Ricca 외

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, error…

Interactive Debugging of ASP Programs

2014-03-20 · Kostyantyn Shchekotykhin

Broad application of answer set programming (ASP) for declarative problem solving requires the development of tools supporting the coding process. Program debugging is one of the crucial activities within this process. R…

DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information

2025-12-31 · Zhili Huang, Ling Xu, Chao Liu, Weifeng Sun 외 arxiv

Automated Program Repair (APR) aims to automatically generate correct patches for buggy programs. Recent approaches leveraging large language models (LLMs) have shown promise but face limitations. Most rely solely on sta…

Program Repair

AgentStepper: Interactive Debugging of Software Development Agents

2026-02-06 · Robert Hutter, Michael Pradel arxiv

Software development agents powered by large language models (LLMs) have shown great promise in automating tasks like environment setup, issue solving, and program repair. Unfortunately, understanding and debugging such …

Program Repair