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 条
  • [41] Efficient algorithms for the double traveling salesman problem with multiple stacks
    Casazza, Marco
    Ceselli, Alberto
    Nunkesser, Marc
    COMPUTERS & OPERATIONS RESEARCH, 2012, 39 (05) : 1044 - 1053
  • [42] Efficient LoRa-like Transmitter Stacks for SDR Applications
    Volpin, Lea
    Le Gal, Bertrand
    Ferre, Guillaume
    2022 29TH IEEE INTERNATIONAL CONFERENCE ON ELECTRONICS, CIRCUITS AND SYSTEMS (IEEE ICECS 2022), 2022,
  • [43] ECLAIR: An efficient cross layer architecture for wireless protocol stacks
    Raisinghani, VT
    Iyer, S
    5th World Wireless Congress, Proceedings, 2004, : 229 - 234
  • [44] MXene nanosheet stacks with tunable nanochannels for efficient molecular separation
    Li, Jian
    Li, Lei
    Xu, Yilin
    Zhu, Junyong
    Liu, Fei
    Shen, Jiangnan
    Wang, Zhenyu
    Lin, Jiuyang
    CHEMICAL ENGINEERING JOURNAL, 2022, 427
  • [45] Statistical Model To Decipher Protein Folding/Unfolding at a Local Scale
    Grassein, Paul
    Delarue, Patrice
    Scheraga, Harold A.
    Maisuradze, Gia G.
    Senet, Patrick
    JOURNAL OF PHYSICAL CHEMISTRY B, 2018, 122 (13): : 3540 - 3549
  • [46] LOCAL UNFOLDING AND THE STEPWISE LOSS OF THE FUNCTIONAL-PROPERTIES OF TUBULIN
    SACKETT, DL
    BHATTACHARYYA, B
    WOLFF, J
    BIOCHEMISTRY, 1994, 33 (43) : 12868 - 12878
  • [47] Quantification of local rectal wall displacements by virtual rectum unfolding
    Hoogeman, MS
    van Herk, M
    de Bois, J
    Muller-Timmermans, P
    Koper, PCM
    Lebesque, JV
    RADIOTHERAPY AND ONCOLOGY, 2004, 70 (01) : 21 - 30
  • [48] Towards the understanding of molecular motors and its relationship with local unfolding
    Alavi, Zahra
    Casanova-Morales, Nathalie
    Quiroga-Roger, Diego
    Wilson, Christian A. M.
    QUARTERLY REVIEWS OF BIOPHYSICS, 2024, 57
  • [49] A generic unfolding algorithm for manifolds estimated by local linear approximations
    Myhre, Jonas Nordhaug
    Shaker, Matineh
    Kaba, Mustafa Devrim
    Jenssen, Robert
    Erdogmus, Deniz
    2020 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS (CVPRW 2020), 2020, : 3726 - 3734
  • [50] LOCAL CONFORMATIONAL RELAXATIONS AND PROTEIN FOLDING-UNFOLDING TRANSITION
    TSONG, TY
    KANEHISA, MI
    BIOPHYSICAL JOURNAL, 1980, 32 (01) : 422 - 424