Nondeterminism analysis of functional logic programs

被引:3
|
作者
Brassel, B [1 ]
Hanus, M [1 ]
机构
[1] CAU Kiel, Inst Informat, D-24098 Kiel, Germany
来源
关键词
D O I
10.1007/11562931_21
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Information about the nondeterminism behavior of a functional logic program is important for various reasons. For instance, a nondeterministic choice in I/O operations results in a run-time error. Thus, it is desirable to ensure at compile time that a given program is not going to crash in this way. Furthermore, knowledge about nondeterminism can be exploited to optimize programs. In particular, if functional logic programs are compiled to target languages without builtin support for nondeterministic computations, the transformation can be much simpler if it is known that the source program is deterministic. In this paper we present a nondeterminism analysis of functional logic programs in form of a type/effect system. We present a type inferencer to approximate the nondeterminism behavior via nonstandard types and show its correctness w.r.t. the operational semantics of functional logic programs. The type inference is based on a new compact representation of sets of types and effects.
引用
收藏
页码:265 / 279
页数:15
相关论文
共 50 条
  • [1] Bounded Nondeterminism of Logic Programs
    Dino Pedreschi
    Salvatore Ruggieri
    [J]. Annals of Mathematics and Artificial Intelligence, 2004, 42 : 313 - 343
  • [2] AND PARALLELISM AND NONDETERMINISM IN LOGIC PROGRAMS
    CONERY, JS
    KIBLER, DF
    [J]. NEW GENERATION COMPUTING, 1985, 3 (01) : 43 - 70
  • [3] Bounded nondeterminism of logic programs
    Pedreschi, D
    Ruggieri, S
    [J]. ANNALS OF MATHEMATICS AND ARTIFICIAL INTELLIGENCE, 2004, 42 (04) : 313 - 343
  • [4] Bounded nondeterminism of logic programs
    Pedreschi, D
    Ruggieri, S
    [J]. LOGIC PROGRAMMING: PROCEEDINGS OF THE 1999 INTERNATIONAL CONFERENCE ON LOGIC PROGRAMMING, 1999, : 350 - 364
  • [5] From Logic to Functional Logic Programs
    Hanus, Michael
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2022, 22 (04) : 538 - 554
  • [6] ON THE POWER OF NONDETERMINISM IN DYNAMIC LOGIC
    BERMAN, P
    HALPERN, JY
    TIURYN, J
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1982, 140 : 48 - 60
  • [7] FUNCTIONAL COMPUTATIONS IN LOGIC PROGRAMS
    DEBRAY, SK
    WARREN, DS
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1989, 11 (03): : 451 - 481
  • [8] A LOGIC FOR NONDETERMINISTIC FUNCTIONAL PROGRAMS
    GILLUEZAS, A
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1989, 380 : 197 - 208
  • [9] Correction of functional logic programs
    Alpuente, M
    Ballis, D
    Correa, FJ
    Falaschi, M
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, 2003, 2618 : 54 - 68
  • [10] Reasoning about Nondeterminism in Programs
    Cook, Byron
    Koskinen, Eric
    [J]. ACM SIGPLAN NOTICES, 2013, 48 (06) : 219 - 229