Transformation and debugging of functional logic programs

被引:1
|
作者
Alpuente M. [1 ]
Ballis D. [2 ]
Falaschi M. [3 ]
机构
[1] DSIC, Universidad Politécnica de Valencia, Camino de Vera S/n, 46071 Valencia
[2] Dip. Matematica e Informatica, 33100 Udine
[3] Dip. di Scienze Matematiche e Informatiche, 53100 Siena
关键词
75;
D O I
10.1007/978-3-642-14309-0_13
中图分类号
学科分类号
摘要
The Italian contribution to functional-logic programming has been significant and influential in a number of areas of semantics, and semantics-based program manipulation techniques. We survey selected topics, with a particular regard to debugging and transformation techniques. These results as usual depend on the narrowing strategy which is adopted and on the properties satisfied by the considered programs. In this paper, we restrict ourselves to first-order functional-logic languages without non-deterministic functions. We start by describing some basic classical transformation techniques, namely folding and unfolding. Then, we recall the narrowing-driven partial evaluation, which is the first generic algorithm for the specialization of functional logic programs. Regarding debugging, we describe a goal-independent approach to automatic diagnosis and correction which applies the immediate consequence operator modeling computed answers to the diagnosis of bugs in functional logic programs. A companion bug-correction program synthesis methodology is described that attempts to correct the erroneous components of the wrong code. © 2010 Springer-Verlag Berlin Heidelberg.
引用
收藏
页码:271 / 299
页数:28
相关论文
共 50 条
  • [1] Theoretical foundations for the declarative debugging of lazy functional logic programs
    Cabalbero, R
    López-Fraguas, FJ
    Rodríguez-Artalejo, M
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 2001, 2024 : 170 - 184
  • [2] Debugging functional programs
    Stumptner, M
    Wotawa, F
    IJCAI-99: PROCEEDINGS OF THE SIXTEENTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOLS 1 & 2, 1999, : 1074 - 1079
  • [3] A Theoretical Framework for the Declarative Debugging of Functional Logic Programs with Lambda Abstractions
    del Vado Virseda, Rafael
    Castineiras, Ignacio
    FUNCTIONAL AND CONSTRAINT LOGIC PROGRAMMING, 2010, 5979 : 162 - 178
  • [4] A transformation system for lazy functional logic programs
    Alpuente, M
    Falaschi, M
    Moreno, G
    Vidal, G
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 1999, 1722 : 147 - 162
  • [5] Transformation Rules and Strategies for Functional-Logic Programs
    Moreno, Ginés
    AI Communications, 2002, 15 (02) : 163 - 165
  • [6] Transformation rules and strategies for functional-logic programs
    Moreno, G
    AI COMMUNICATIONS, 2002, 15 (2-3) : 163 - 165
  • [7] Instant replay debugging of concurrent logic programs
    Univ of Manchester, Manchester, United Kingdom
    New Gener Comput, 1 (79-107):
  • [8] Abstract verification and debugging of constraint logic programs
    Hermenegildo, M
    Puebla, G
    Bueno, F
    López-García, P
    RECENT ADVANCES IN CONSTRAINTS, 2003, 2627 : 1 - 14
  • [9] Instant replay debugging of concurrent logic programs
    Shen, K
    Gregory, S
    NEW GENERATION COMPUTING, 1996, 14 (01) : 79 - 107
  • [10] Direct Interpretation of Functional Programs for Debugging
    Whitington, John
    Ridge, Tom
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2019, (294): : 41 - 73