Modeling Black-Box Components with Probabilistic Synthesis

被引:6
|
作者
Collie, Bruce [1 ]
Woodruff, Jackson [1 ]
O'Boyle, Michael F. P. [1 ]
机构
[1] Univ Edinburgh, Sch Informat, Edinburgh, Midlothian, Scotland
基金
英国工程与自然科学研究理事会;
关键词
program synthesis; black box oracle; probabilistic model; PROGRAM SYNTHESIS; TRANSFORMATIONS;
D O I
10.1145/3425898.3426952
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper is concerned with synthesizing programs based on black-box oracles: we are interested in the case where there exists an executable implementation of a component or library, but its internal structure is unknown. We are provided with just an API or function signature, and aim to synthesize a program with equivalent behavior. To attack this problem, we detail PRESYN: a program synthesizer designed for flexible interoperation with existing programs and compiler toolchains. PRESYN uses high-level imperative control-flow structures and a pair of cooperating predictive models to efficiently narrow the space of potential programs. These models can be trained effectively on small corpora of synthesized examples. We evaluate PRESYN against five leading program synthesizers on a collection of 112 synthesis benchmarks collated from previous studies and real-world software libraries. We show that PRESYN is able to synthesize a wider range of programs than each of them with less human input. We demonstrate the application of our approach to real-world code and software engineering problems with two case studies: accelerator library porting and detection of duplicated library reimplementations.
引用
收藏
页码:1 / 14
页数:14
相关论文
共 50 条
  • [41] Structured black-box parameterized macromodels of integrated passive components
    Zanco, A.
    Bradde, T.
    De Stefano, M.
    Grivet-Talocia, S.
    Hoehne, G.
    Brenner, P.
    2021 IEEE MTT-S INTERNATIONAL MICROWAVE SYMPOSIUM (IMS), 2021, : 5 - 8
  • [42] Incremental inference of black-box components to support integration testing
    Shahbaz, Muzammil
    TAIC PART - TESTING: ACADEMIC & INDUSTRIAL CONFERENCE - PRACTICE AND RESEARCH TECHNIQUES, PROCEEDINGS, 2006, : 71 - 74
  • [43] INSIDE THE BLACK-BOX
    HORGAN, J
    IEEE SPECTRUM, 1986, 23 (11) : 65 - 65
  • [44] Probabilistic Permutation Graph Search: Black-Box Optimization for Fairness in Ranking
    Vardasbi, Ali
    Sarvi, Fatemeh
    de Rijke, Maarten
    PROCEEDINGS OF THE 45TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL (SIGIR '22), 2022, : 715 - 725
  • [45] BLACK-BOX BLUES
    SNYDER, EL
    DISCOVER, 1984, 5 (08): : 6 - 6
  • [46] INSIDE THE BLACK-BOX
    WILENSKY, GR
    SOCIETY, 1994, 32 (01) : 68 - 69
  • [47] THE MANAGER AND THE BLACK-BOX
    ANSHEN, M
    HARVARD BUSINESS REVIEW, 1960, 38 (06) : 85 - 92
  • [48] THE TRAGEDY OF THE BLACK-BOX
    DUNTEMANN, J
    DR DOBBS JOURNAL, 1991, 16 (12): : 123 - +
  • [49] DORMANCY - THE BLACK-BOX
    SEELEY, SD
    HORTSCIENCE, 1994, 29 (11) : 1248 - 1248
  • [50] INSIDE BLACK-BOX
    DEAN, DS
    NON-DESTRUCTIVE TESTING, 1970, 3 (03): : 181 - &