Chapter

Logic-Based Program Synthesis and Transformation

Volume 4407 of the series Lecture Notes in Computer Science pp 160-176

A Program Transformation for Tracing Functional Logic Computations

  • Bernd BrasselAffiliated withInstitute of Computer Science, University of Kiel, 24098 Kiel
  • , Sebastian FischerAffiliated withInstitute of Computer Science, University of Kiel, 24098 Kiel
  • , Frank HuchAffiliated withInstitute of Computer Science, University of Kiel, 24098 Kiel

* Final gross prices may vary according to local VAT.

Get Access

Abstract

Tracing program executions is a promising technique to find bugs in lazy functional logic programs. In previous work we developed an extension of a heap based semantics for functional logic languages which generates a trace reflecting the computation of the program. This extension was also prototypically implemented by instrumenting an interpreter for functional logic programs. Since this interpreter is too restricted for real world applications, we developed a program transformation which efficiently computes the trace by means of side effects during the computation. This paper presents our program transformation.