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 条
  • [21] Methods for Efficient Unfolding of Colored Petri Nets
    Bilgram, Alexander
    Jensen, Peter G.
    Pedersen, Thomas
    Srba, Jiri
    Taankvist, Peter H.
    FUNDAMENTA INFORMATICAE, 2022, 189 (3-4) : 297 - 320
  • [22] AN EFFICIENT METHOD FOR UNFOLDING COLORED PETRI NETS
    Liu, Fei
    Heiner, Monika
    Yang, Ming
    2012 WINTER SIMULATION CONFERENCE (WSC), 2012,
  • [23] Local structure of the Teichmüller and the Riemann moduli stacks
    Doan, An Khuong
    COLLECTANEA MATHEMATICA, 2024,
  • [24] Systematic Review on Local Ancestor Inference From a Mathematical and Algorithmic Perspective
    Wu, Jie
    Liu, Yangxiu
    Zhao, Yiqiang
    FRONTIERS IN GENETICS, 2021, 12
  • [25] Silhouette: Efficient Protected Shadow Stacks for Embedded Systems
    Zhou, Jie
    Du, Yufei
    Shen, Zhuojia
    Ma, Lele
    Criswell, John
    Walls, Robert J.
    PROCEEDINGS OF THE 29TH USENIX SECURITY SYMPOSIUM, 2020, : 1219 - 1236
  • [26] Efficient Filtering of XML Documents with XPath Expressions Containing Ancestor Axis
    Ning, Bo
    Liu, Chengfei
    Wang, Guoren
    WEB-AGE INFORMATION MANAGEMENT, PROCEEDINGS, 2010, 6184 : 551 - +
  • [27] A space-efficient algorithm for three sequence alignment and ancestor inference
    Yue, Feng
    Tang, Jijun
    INTERNATIONAL JOURNAL OF DATA MINING AND BIOINFORMATICS, 2009, 3 (02) : 192 - 204
  • [28] The Temporal Unfolding of Local Acoustic Information and Sentence Context
    Susan Borsky
    Lewis P. Shapiro
    Betty Tuller
    Journal of Psycholinguistic Research, 2000, 29 : 155 - 168
  • [29] Local cooperativity in the unfolding of an amyloidogenic variant of human lysozyme
    Denis Canet
    Alexander M. Last
    Paula Tito
    Margaret Sunde
    Andrew Spencer
    David B. Archer
    Christina Redfield
    Carol V. Robinson
    Christopher M. Dobson
    Nature Structural Biology, 2002, 9 : 308 - 315
  • [30] Local cooperativity in the unfolding of an amyloidogenic variant of human lysozyme
    Canet, D
    Last, AM
    Tito, P
    Sunde, M
    Spencer, A
    Archer, DB
    Redfield, C
    Robinson, CV
    Dobson, CM
    NATURE STRUCTURAL BIOLOGY, 2002, 9 (04) : 308 - 315