Specialization of inductively sequential functional logic programs

被引:5
|
作者
Alpuente, M
Hanus, M
Lucas, S
Vidal, G
机构
[1] Univ Politecn Valencia, DSIC, Valencia 46022, Spain
[2] Rhein Westfal TH Aachen, D-52056 Aachen, Germany
关键词
D O I
10.1145/317765.317910
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Functional logic languages combine the operational principles of the most important declarative programming paradigms, namely functional and logic programming. Inductively sequential programs admit the definition of optimal computation strategies and are the basis of several recent (lazy) functional logic languages. In this paper, we define a partial evaluator for inductively sequential functional logic programs. We prove strong correctness of this partial evaluator and show that the nice properties of inductively sequential programs carry over to the specialization process and the specialized programs. In particular, the structure of the programs is preserved by the specialization process. This is in contrast to other partial evaluation methods for functional logic programs which can destroy the original program structure. Finally, we present some experiments which highlight the practical advantages of our approach.
引用
收藏
页码:273 / 283
页数:11
相关论文
共 50 条
  • [1] Specialization of lazy functional logic programs
    Alpuente, M
    Falaschi, M
    Julian, P
    Vidal, G
    [J]. ACM SIGPLAN NOTICES, 1997, 32 (12) : 151 - 162
  • [2] Specialization of functional logic programs based on needed narrowing
    Alpuente, M
    Lucas, S
    Vidal, G
    Hanus, M
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2005, 5 : 273 - 303
  • [3] Separation Logic for Sequential Programs (Functional Pearl)
    Chargueraud, Arthur
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2020, 4 (ICFP):
  • [4] A generic framework for the analysis and specialization of logic programs
    Puebla, G
    Albert, E
    Hermenegildo, M
    [J]. LOGIC PROGRAMMING, PROCEEDINGS, 2005, 3668 : 407 - 409
  • [5] Using static analysis to compile non-sequential functional logic programs
    Mariño, J
    Moreno-Navarro, JJ
    [J]. PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, 2000, 1753 : 63 - 80
  • [6] Using static analysis to compile non-sequential functional logic programs
    Mariño, J
    Moreno-Navarro, JJ
    [J]. LOGIC PROGRAMMING: PROCEEDINGS OF THE 1999 INTERNATIONAL CONFERENCE ON LOGIC PROGRAMMING, 1999, : 614 - 614
  • [7] From Logic to Functional Logic Programs
    Hanus, Michael
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2022, 22 (04) : 538 - 554
  • [8] Sequential composition of propositional logic programs
    Christian Antić
    [J]. Annals of Mathematics and Artificial Intelligence, 2024, 92 : 505 - 533
  • [9] Sequential composition of propositional logic programs
    Antic, Christian
    [J]. ANNALS OF MATHEMATICS AND ARTIFICIAL INTELLIGENCE, 2024, 92 (02) : 505 - 533
  • [10] Improving control in functional logic program specialization
    Albert, E
    Alpuente, M
    Falaschi, M
    Julián, P
    Vidal, G
    [J]. STATIC ANALYSIS, 1998, 1503 : 262 - 277