Oracle-Based Partial Evaluation

被引:1
|
作者
Ochoa, Claudio [1 ]
Puebla, German [2 ]
机构
[1] Intel, Software Solut Grp, Buenos Aires, DF, Argentina
[2] Tech Univ Madrid, Sch Comp Sci, Boadilla Del Monte, Spain
关键词
Program Transformation; Partial Evaluation; Resource-Aware Specialization; Logic Programming;
D O I
10.1016/j.entcs.2008.11.024
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present Oracle-Based Partial Evaluation (OBPE), a novel approach to on-line Partial Evaluation (PE) which decides the control strategy to use for each call pattern by using an oracle function which compares the results of specializing such call pattern w.r.t. a set of strategies. Our proposal is motivated by Poly-Controlled Partial Evaluation (PCPE), which allows using different control strategies for different call patterns. Given a set CS of control strategies, the best PCPE specialized programs outperform the specialized programs obtained by traditional PE for any of the control strategies in CS, especially when resource-aware specialization is performed. Unfortunately, computing all PCPE specialized programs and then choosing a posteriori the best one is too costly in practice. In contrast, in OBPE a single specialized program is computed. We have developed an empirical oracle whose parameters are approximated from a set of training data, by using constraint logic programming. Our experimental results show that the additional cost of OBPE when compared with traditional PE is a constant factor and that, at least in our experiments, OBPE obtains significantly better specializations. We argue that our proposal is relevant in practice and introduces clear improvements over standard PE. Our work is developed in the context of logic programs, though the ideas are in principle of interest to the PE of any programming language.
引用
收藏
页码:145 / 161
页数:17
相关论文
共 50 条
  • [21] Oracle-Based Flocking of Mobile Robots in Crash-Recovery Model
    Souissi, Samia
    Izumi, Taisuke
    Wada, Koichi
    [J]. STABILIZATION, SAFETY, AND SECURITY OF DISTRIBUTED SYSTEMS, PROCEEDINGS, 2009, 5873 : 683 - 697
  • [22] ORACALL: An Oracle-Based Attack on Cellular Automata Guided Logic Locking
    Saha, Akashdeep
    Banerjee, Hrivu
    Chakraborty, Rajat Subhra
    Mukhopadhyay, Debdeep
    [J]. IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2021, 40 (12) : 2445 - 2454
  • [23] Developing an Oracle-Based Spatio-Temporal Information Management System
    Zhao, Lei
    Jin, Peiquan
    Zhang, Lanlan
    Wang, Huaishuai
    Lin, Sheng
    [J]. DATABASE SYSTEMS FOR ADVANCED APPLICATIONS, DASFAA 2011, 2011, 6637 : 168 - 176
  • [24] A Coin-Free Oracle-Based Augmented Black Box Framework
    Yamashita, Kyosuke
    Tibouchi, Mehdi
    Abe, Masayuki
    [J]. PROVABLE SECURITY, PROVSEC 2019, 2019, 11821 : 265 - 272
  • [25] Simple and efficient oracle-based Consensus protocols for asynchronous Byzantine systems
    Friedman, R
    Mostefaoui, A
    Raynal, M
    [J]. IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING, 2005, 2 (01) : 46 - 56
  • [26] Oracle-based algorithms for binary two-stage robust optimization
    Kaemmerling, Nicolas
    Kurtz, Jannis
    [J]. COMPUTATIONAL OPTIMIZATION AND APPLICATIONS, 2020, 77 (02) : 539 - 569
  • [27] A Blockchain Oracle-Based API Service for Verifying Livestock DNA Fingerprinting
    Pasdar, Amirmohammad
    Lee, Young Choon
    Ryan, Paul
    Dong, Zhongli
    [J]. SERVICE-ORIENTED COMPUTING - ICSOC 2022 WORKSHOPS, 2023, 13821 : 80 - 91
  • [28] Oracle-based algorithms for binary two-stage robust optimization
    Nicolas Kämmerling
    Jannis Kurtz
    [J]. Computational Optimization and Applications, 2020, 77 : 539 - 569
  • [29] Simple and efficient oracle-based consensus protocols for asynchronous Byzantine systems
    Friedman, R
    Mostefaoui, A
    Raynal, M
    [J]. 23RD IEEE INTERNATIONAL SYMPOSIUM ON RELIABLE DISTRIBUTED SYSTEMS, PROCEEDINGS, 2004, : 228 - 237
  • [30] AN ORACLE-BASED, OUTPUT-SENSITIVE ALGORITHM FOR PROJECTIONS OF RESULTANT POLYTOPES
    Emiris, Ioannis Z.
    Fisikopoulos, Vissarion
    Konaxis, Christos
    Penaranda, Luis
    [J]. INTERNATIONAL JOURNAL OF COMPUTATIONAL GEOMETRY & APPLICATIONS, 2013, 23 (4-5) : 397 - 423