کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
431189 1441252 2012 47 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Declarative debugging of rewriting logic specifications
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Declarative debugging of rewriting logic specifications
چکیده انگلیسی

Declarative debugging is a semi-automatic technique that starts from an incorrect computation and locates a program fragment responsible for the error by building a tree representing this computation and guiding the user through it to find the error. Membership equational logic (MEL) is an equational logic that in addition to equations allows one to state membership axioms characterizing the elements of a sort. Rewriting logic is a logic of change that extends MEL by adding rewrite rules, which correspond to transitions between states and can be nondeterministic. We propose here a calculus to infer reductions, sort inferences, normal forms, and least sorts with the equational subset of rewriting logic, and rewrites and sets of reachable terms through rules. We use an abbreviation of the proof trees computed with this calculus to build appropriate debugging trees for both wrong (an incorrect result obtained from an initial result) and missing answers (results that are erroneous because they are incomplete), whose adequacy for debugging is proved. Using these trees we have implemented Maude DDebugger, a declarative debugger for Maude, a high-performance system based on rewriting logic. We illustrate its use with an example.


► We propose a technique for employing declarative debugging in Maude.
► The technique is based on two new semantic calculi for the language.
► The debugging technique can be applied to both wrong and missing answers.
► The correctness and completeness of the technique is formally established.
► A working prototype including different navigation strategies has been implemented.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: The Journal of Logic and Algebraic Programming - Volume 81, Issues 7–8, October–November 2012, Pages 851–897
نویسندگان
, , , ,