Applying program transformation to type inference for a logic language

被引:0
|
作者
Kawaguchi, Y [1 ]
Akama, K [1 ]
Miyamoto, E [1 ]
机构
[1] Tomakomai Natl Coll Technol, Tomakomai 0591275, Japan
来源
关键词
program transformation; type inference; logic language;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
This paper presents a type inference algorithm for a logic language, LHS. The algorithm uses a program transformation, SPS, to given programs as a type inference. This method is theoretically clear, because applying it to given pro grams is equal to executing it partially. No other additional framework is needed for our approach. In contrast, many studies on type inference for logic languages are based on Mycroft and O'Keefe's famous algorithm, which was initially developed for functional languages. Therefore, the meanings of the algorithms are theoretically unclear in the domain of logic languages. Our type inference is flexible. Users of the type inference system can specify the types of objects abstractly (weakly) if the types are not exactly known, or they can specify them particularly (strongly) if the types are exactly known. Both kinds of programs are inferred for types. Tn contrast, many type inference systems accept purely untyped programs. Thus, with these two features, our method is simple and flexible.
引用
收藏
页码:1141 / 1147
页数:7
相关论文
共 50 条
  • [1] TYPE INFERENCE BY PROGRAM TRANSFORMATION AND PARTIAL EVALUATION
    FRUHWIRTH, TW
    [J]. META-PROGRAMMING IN LOGIC PROGRAMMING, 1989, : 263 - 282
  • [2] PROGRAM OPTIMIZATION WITH LOGIC PROGRAM TRANSFORMATION
    HOSHINO, H
    ESASHI, M
    AGUSA, K
    OHNO, Y
    [J]. LECTURE NOTES IN CONTROL AND INFORMATION SCIENCES, 1988, 113 : 725 - 734
  • [3] Type Inference by Coinductive Logic Programming
    Ancona, Davide
    Lagorio, Giovanni
    Zucca, Elena
    [J]. TYPES FOR PROOFS AND PROGRAMS, 2009, 5497 : 1 - 18
  • [4] Directional type inference for logic programs
    Charatonik, W
    Podelski, A
    [J]. STATIC ANALYSIS, 1998, 1503 : 278 - 294
  • [5] Data Type Inference for Logic Programming
    Barbosa, Joao
    Florido, Mario
    Costa, Vitor Santos
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION (LOPSTR 2021), 2022, 13290 : 16 - 37
  • [6] A Rewriting Logic Approach to Type Inference
    Ellison, Chucky
    Serbanuta, Traian Florin
    Rosu, Grigore
    [J]. RECENT TRENDS IN ALGEBRAIC DEVELOPMENT TECHNIQUES, 2009, 5486 : 135 - 151
  • [7] SPES - A SYSTEM FOR LOGIC PROGRAM TRANSFORMATION
    ALEXANDRE, F
    BSAIES, K
    FINANCE, JP
    QUERE, A
    [J]. LECTURE NOTES IN ARTIFICIAL INTELLIGENCE, 1992, 624 : 445 - 447
  • [8] Type inference for first-order logic
    Schubert, A
    [J]. FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, 2000, 1784 : 297 - 313
  • [9] A Model Transformation Language Based on Logic Programming
    Almendros-Jimenez, Jesus M.
    Iribarne, Luis
    [J]. SOFSEM 2013: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2013, 7741 : 382 - 394
  • [10] A program transformation for tracing functional logic computations
    Brassel, Bernd
    Fischer, Sebastian
    Huch, Frank
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2007, 4407 : 160 - +