非地面ASP程序:技术和图形工具
Debugging Non-Ground ASP Programs: Technique and Graphical Tools
摘要:
答案集编程(ASP)是逻辑编程和非单调推理领域中的主要声明式编程范式之一。尽管ASP具有简单的语法和直观的语义,但在ASP程序的开发过程中,错误是常见的。在本文中,我们提出了一种新的调试方法,允许交互式本地化的错误在非地面程序。新方法将用户直接指向一组涉及错误的非基本规则,通过向程序员询问一系列关于预期答案集的问题,可以对这些规则进行细化(直到很容易识别错误)。该方法已实施的ASP求解器WASP的顶部。由此产生的调试器已经补充了一个用户友好的图形界面,并集成在ASPIDE,一个丰富的IDE的答案集程序。此外,一个实证分析表明,新的调试器是不受接地爆破限制以前的方法基于元编程的应用。逻辑程序设计理论与实践(TPLP)
英文摘要:
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 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. Under consideration in Theory and Practice of Logic Programming (TPLP).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。