Declarative Debugging of Rewriting Logic Specifications

  • Authors:
  • Adrian Riesco;Alberto Verdejo;Rafael Caballero;Narciso Martí-Oliet

  • Affiliations:
  • Facultad de Informática, Universidad Complutense de Madrid, Spain;Facultad de Informática, Universidad Complutense de Madrid, Spain;Facultad de Informática, Universidad Complutense de Madrid, Spain;Facultad de Informática, Universidad Complutense de Madrid, Spain

  • Venue:
  • Recent Trends in Algebraic Development Techniques
  • Year:
  • 2009

Quantified Score

Hi-index 0.01

Visualization

Abstract

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 wrong statement. This paper presents the fundamentals for the declarative debugging of rewriting logic specifications, realized in the Maude language, where a wrong computation can be a reduction, a type inference, or a rewrite. We define appropriate debugging trees obtained as the result of collapsing in proof trees all those nodes whose correctness does not need any justification. Since these trees are obtained from a suitable semantic calculus, the correctness and completeness of the debugging technique can be formally proved. We illustrate how to use the debugger by means of an example and succinctly describe its implementation in Maude itself thanks to its reflective and metalanguage features.