Abstract diagnosis of functional programs

  • Authors:
  • María Alpuente;Marco Comini;Santiago Escobar;Moreno Falaschi;Salvador Lucas

  • Affiliations:
  • Departamento de Sistemas Informáticos y Computación, Technical University of Valencia, Valencia, Spain;Dipartimento di Matematica e Informatica, University of Udine, Udine, Italy;Departamento de Sistemas Informáticos y Computación, Technical University of Valencia, Valencia, Spain;Dipartimento di Matematica e Informatica, University of Udine, Udine, Italy;Departamento de Sistemas Informáticos y Computación, Technical University of Valencia, Valencia, Spain

  • Venue:
  • LOPSTR'02 Proceedings of the 12th international conference on Logic based program synthesis and transformation
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a generic scheme for the declarative debugging of functional programs modeled as term rewriting systems. We associate to our programs a semantics based on a (continuous) immediate consequence operator, TR, which models the (values/normal forms) semantics of R. Then, we develop an effective debugging methodology which is based on abstract interpretation: by approximating the intended specification of the semantics of R we derive a finitely terminating bottom-up diagnosis method, which can be used statically. Our debugging framework does not require the user to either provide error symptoms in advance or answer questions concerning program correctness. We have made available a prototypical implementation in Haskell and have tested it on some non trivial examples.