A Counterexample-Guided Debugger for Non-recursive Datalog
A Counterexample-Guided Debugger for Non-recursive Datalog
复制标题
用于非递归数据记录的反例引导调试器
DOI:
10.1007/978-3-030-64437-6_17
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Hu Zhenjiang
中科院分区:
文献类型:
--
作者:
Tran Van-Dang;Kato Hiroyuki;Hu Zhenjiang
The Datalog language is used in many potential applications including database queries, program analysis, bidirectional transformations, and so forth. In practice, such a Datalog program is expected to be well-written to meet requirements such as the round-tripping properties in bidirectional programming. Although verifying and debugging Datalog programs play an essential role to guarantee the expected properties of these programs, very few approaches have been proposed. The existing approaches require much users’ effort in finding out unintended behaviors or unexpected computations of the Datalog program that neither counterexamples nor bug explanations are provided. In this paper, we propose an efficient approach to interactively debugging Datalog programs so that the user’s burden is reduced. Specifically, we provide a syntax for users to specify properties of non-recursive Datalog programs, present a counterexample generator that verifies specified properties and generates counterexamples to show unexpected behaviors of user-written programs, and design a debugging engine combined with a dialog-based user interface to assist users in locating bugs in the programs with the generated counterexamples. We have implemented a prototype of our approach and demonstrated its feasibility and efficiency.