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 条
  • [31] From functional specifications to logic programs
    Gelfond, M
    Gabaldon, A
    LOGIC PROGRAMMING - PROCEEDINGS OF THE 1997 INTERNATIONAL SYMPOSIUM, 1997, : 355 - 369
  • [32] Monadic logic programs and functional complexity
    Universidade do Porto, Porto, Portugal
    Theor Comput Sci, 1-2 (175-204):
  • [33] Specialization of lazy functional logic programs
    Alpuente, M
    Falaschi, M
    Julian, P
    Vidal, G
    ACM SIGPLAN NOTICES, 1997, 32 (12) : 151 - 162
  • [34] Reporting Failures in Functional Logic Programs
    Hanus, Michael
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2007, 177 (01) : 59 - 73
  • [35] Incremental learning of functional logic programs
    Ferri-Ramírez, C
    Hernández-Orallo, J
    Quintana, MJR
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 2001, 2024 : 233 - 247
  • [36] SFLP: a solver for functional logic programs
    Hamada, M
    Ida, T
    PROCEEDINGS OF THE FIFTH JOINT CONFERENCE ON INFORMATION SCIENCES, VOLS 1 AND 2, 2000, : 466 - 469
  • [37] DERIVATION OF LOGIC PROGRAMS BY FUNCTIONAL METHODS
    BIJLSMA, A
    INFORMATION PROCESSING LETTERS, 1991, 39 (06) : 325 - 332
  • [38] Controlling search in functional logic programs
    Hanus, M
    Steiner, F
    LOGIC PROGRAMMING - PROCEEDINGS OF THE 1998 JOINT INTERNATIONAL CONFERENCE AND SYMPOSIUM ON LOGIC PROGRAMMING, 1998, : 347 - 348
  • [39] Partial evaluation of functional logic programs
    Alpuente, M
    Falaschi, M
    Vidal, G
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1998, 20 (04): : 768 - 844
  • [40] Liberal Typing for Functional Logic Programs
    Lopez-Fraguas, Francisco
    Martin-Martin, Enrique
    Rodriguez-Hortala, Juan
    PROGRAMMING LANGUAGES AND SYSTEMS, 2010, 6461 : 80 - 96