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 条
  • [41] SibylFS: formal specification and oracle-based testing for POSIX and real-world file systems
    Ridge, Tom
    Sheets, David
    Tuerk, Thomas
    Giugliano, Andrea
    Madhavapeddy, Anil
    Sewell, Peter
    [J]. SOSP'15: PROCEEDINGS OF THE TWENTY-FIFTH ACM SYMPOSIUM ON OPERATING SYSTEMS PRINCIPLES, 2015, : 38 - 53
  • [42] A unified proof of minimum time complexity for reaching consensus and uniform consensus - An oracle-based approach
    Jun, X
    [J]. 21ST IEEE SYMPOSIUM ON RELIABLE DISTRIBUTED SYSTEMS, PROCEEDINGS, 2002, : 102 - 108
  • [43] An oracle-based algorithm for robust planning of production routing problems in closed-loop supply chains of beverage glass bottles
    Borumand, Ali
    Marandi, Ahmadreza
    Nookabadi, Ali S.
    Atan, Zuembuel
    [J]. OMEGA-INTERNATIONAL JOURNAL OF MANAGEMENT SCIENCE, 2024, 122
  • [44] A partial oracle for uniformity statistics
    Patel, Krishna
    Hierons, Robert M.
    [J]. SOFTWARE QUALITY JOURNAL, 2019, 27 (04) : 1419 - 1447
  • [45] A partial oracle for uniformity statistics
    Krishna Patel
    Robert M. Hierons
    [J]. Software Quality Journal, 2019, 27 : 1419 - 1447
  • [46] SOAR - Sparse Oracle-based Adaptive Rule Extraction: Knowledge extraction from large-scale datasets to detect credit card fraud
    Ryman-Tubb, Nick F.
    Garcez, Artur d'Avila
    [J]. 2010 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS IJCNN 2010, 2010,
  • [47] A Dag Based Decentralized Oracle Model: Implementation and Evaluation
    Gouiaa, Ramy
    Hdhili, Farouk
    Jansen, Marc
    [J]. BLOCKCHAIN AND APPLICATIONS, 2022, 320 : 310 - 318
  • [48] Oracle Bone Inscriptions Detection Based On Standard Evaluation Metric
    Zhao, Peige
    Liu, Yongge
    [J]. 2022 INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, COMPUTER VISION AND MACHINE LEARNING (ICICML), 2022, : 49 - 55
  • [49] Online SLU model adaptation with a partial Oracle
    Gotab, Pierre
    Damnati, Geraldine
    Bechet, Frederic
    Delphin-Poulat, Lionel
    [J]. 11TH ANNUAL CONFERENCE OF THE INTERNATIONAL SPEECH COMMUNICATION ASSOCIATION 2010 (INTERSPEECH 2010), VOLS 3 AND 4, 2010, : 2566 - +
  • [50] A Partial Test Oracle for XML Query Testing
    Kim-Park, Dae S.
    de la Riva, Claudio
    Tuya, Javier
    [J]. 2009 TESTING: ACADEMIC AND INDUSTRIAL CONFERENCE-PRACTICE AND RESEARCH TECHNIQUES, TAIC PART 2009, 2009, : 13 - 20