Debugging Non-ground ASP Programs: Technique and Graphical Tools

被引:13
作者
Dodaro, Carmine [1 ]
Gasteiger, Philip [2 ]
Reale, Kristian [3 ]
Ricca, Francesco [3 ]
Schekotihin, Konstantin [2 ]
机构
[1] Univ Genoa, DIBRIS, Genoa, Italy
[2] Alpen Adria Univ Klagenfurt, Klagenfurt, Austria
[3] Univ Calabria, Dept Math & Comp Sci, Arcavacata Di Rende, Italy
关键词
answer set programming; debugging; graphical user interface;
D O I
10.1017/S1471068418000492
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 ASPI DE, 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.
引用
收藏
页码:290 / 316
页数:27
相关论文
共 50 条
[1]   Shift Design with Answer Set Programming [J].
Abseher, Michael ;
Musliu, Nysret ;
Woltran, Stefan ;
Gebser, Martin ;
Schaub, Torsten .
FUNDAMENTA INFORMATICAE, 2016, 147 (01) :1-25
[2]  
Alviano Mario, 2015, Logic Programming and Nonmonotonic Reasoning. 13th International Conference, LPNMR 2015. Proceedings: LNCS 9345, P40, DOI 10.1007/978-3-319-23264-5_5
[3]  
ALVIANO M., 2016, THEOR PRACT LOG PROG, V16, P5
[4]   An Advanced Answer Set Programming Encoding for Nurse Scheduling [J].
Alviano, Mario ;
Dodaro, Carmine ;
Maratea, Marco .
AI*IA 2017 ADVANCES IN ARTIFICIAL INTELLIGENCE, 2017, 10640 :468-482
[5]  
Aschinger M, 2011, LECT NOTES COMPUT SC, V6697, P4, DOI 10.1007/978-3-642-21311-3_4
[6]  
Balduccini M., 2003, P INT S LOG FORM COM, V102, P9
[7]  
Balduccini Marcello., 2001, LPNMR, P439
[8]  
Baral C, 2010, Knowledge Representation, Reasoning and Declarative Problem Solving
[9]  
Brain M., 2007, Proceedings of the Workshop on Software Engineering for Answer Set Programming (SEA07), P71
[10]  
BRAIN M, 2005, CEUR WORKSHOP P, V142