Efficient local unfolding with ancestor stacks

被引:0
|
作者
Puebla, German [1 ]
Albert, Elvira [2 ]
Hermenegildo, Manuel [1 ]
机构
[1] Tech Univ Madrid, Sch Comp Sci, E-28660 Madrid, Spain
[2] Univ Complutense Madrid, Sch Comp Sci, E-28040 Madrid, Spain
关键词
partial evaluation; partial deduction; logic programming; prolog; SLD semantics; local unfolding; PARTIAL DEDUCTION; ABSTRACT INTERPRETATION; LOGIC PROGRAMS; ONLINE TERMINATION; PROLOG; SPECIALIZATION; SYSTEM;
D O I
10.1017/S1471068409990263
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The most successful unfolding rules used nowadays in the partial evaluation of logic programs are based on well quasi orders (wqo) applied over (covering) ancestors, i.e., a subsequence of the atoms selected during a derivation. Ancestor (sub)sequences are used to increase the specialization power of unfolding while still guaranteeing termination and also to reduce the number of atoms for which the wqo has to be checked. Unfortunately, maintaining the structure of the ancestor relation during unfolding introduces significant overhead. We propose an efficient, practical local unfolding rule based on the notion of covering ancestors which can be used in combination with a wqo and allows a stack-based implementation without losing any opportunities for specialization. Using our technique, certain nonleftmost unfoldings are allowed as long as local unfolding is performed, i.e., we cover depth-first strategies. To deal with practical programs, we propose assertion-based techniques which allow our approach to treat programs that include (Prolog) built-ins and external predicates in a very extensible manner, for the case of leftmost unfolding. Finally, we report on our implementation of these techniques embedded in a practical partial evaluator, which shows that our techniques, in addition to dealing with practical programs, are also significantly more efficient in time and somewhat more efficient in memory than traditional tree-based implementations.
引用
收藏
页码:1 / 32
页数:32
相关论文
共 50 条
  • [31] Effect of local structure on the reductive unfolding pathways of ribonuclease A
    Scheraga, HA
    Xu, GQ
    Narayan, M
    Pradeep, L
    FASEB JOURNAL, 2006, 20 (04): : A501 - A501
  • [32] THE LOCAL AND GLOBAL UNFOLDING OF COILED-COIL TROPOMYOSIN
    ISHII, Y
    EUROPEAN JOURNAL OF BIOCHEMISTRY, 1994, 221 (02): : 705 - 712
  • [33] UNFOLDing the Role of Local Therapy in a Systemic Disease Process
    Fenlon, Jordan B.
    Tao, Randa
    INTERNATIONAL JOURNAL OF RADIATION ONCOLOGY BIOLOGY PHYSICS, 2024, 119 (03): : 719 - 719
  • [34] The temporal unfolding of local acoustic information and sentence context
    Borsky, S
    Shapiro, LP
    Tuller, B
    JOURNAL OF PSYCHOLINGUISTIC RESEARCH, 2000, 29 (02) : 155 - 168
  • [35] Compression of local slant stacks by the estimation of multiple local slopes and the matching pursuit decomposition
    Hu, Hao
    Liu, Yike
    Osen, Are
    Zheng, Yingcai
    GEOPHYSICS, 2015, 80 (06) : WD175 - WD187
  • [36] LOCAL MIXED HODGE STRUCTURE ON BRILL-NOETHER STACKS
    Boutchaktchiev, Vilislav
    COMPTES RENDUS DE L ACADEMIE BULGARE DES SCIENCES, 2014, 67 (07): : 897 - 902
  • [37] Modelling of local mechanical failures in solid oxide cell stacks
    Miao, Xing-Yuan
    Rizvandi, Omid Babaie
    Navasa, Maria
    Frandsen, Henrik Lund
    APPLIED ENERGY, 2021, 293
  • [38] Local models for the moduli stacks of global G-shtukas
    Rad, Esmail Arasteh
    Habibi, Somayeh
    MATHEMATICAL RESEARCH LETTERS, 2019, 26 (02) : 323 - 364
  • [39] DYNAMIC INITIAL ALLOCATION AND LOCAL REALLOCATION PROCEDURES FOR MULTIPLE STACKS
    YEH, DY
    MUNAKATA, T
    COMMUNICATIONS OF THE ACM, 1986, 29 (02) : 134 - 141
  • [40] Efficient simulation of fuel cell stacks with the volume averaging method
    Roos, M
    Batawi, E
    Harnisch, U
    Hocker, T
    JOURNAL OF POWER SOURCES, 2003, 118 (1-2) : 86 - 95