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 条
  • [1] Probabilistic verification for "black-box" systems
    Younes, HLS
    COMPUTER AIDED VERIFICATION< PROCEEDINGS, 2005, 3576 : 253 - 265
  • [2] Probabilistic Black-Box Reachability Checking
    Aichernig, Bernhard K.
    Tappler, Martin
    RUNTIME VERIFICATION (RV 2017), 2017, 10548 : 50 - 67
  • [3] Black-box modeling of residential HVAC system and comparison of gray-box and black-box modeling methods
    Afram, Abdul
    Janabi-Sharifi, Farrokh
    ENERGY AND BUILDINGS, 2015, 94 : 121 - 149
  • [4] Black-box understanding of COTS components
    Korel, B
    SEVENTH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION, PROCEEDINGS, 1999, : 92 - 99
  • [5] Black-Box Policy Search with Probabilistic Programs
    van de Meent, Jan-Willem
    Paige, Brooks
    Tolpin, David
    Wood, Frank
    ARTIFICIAL INTELLIGENCE AND STATISTICS, VOL 51, 2016, 51 : 1195 - 1204
  • [6] Contract Discovery from Black-Box Components
    Sharma, Vaibhav
    Byun, Taejoon
    McCamant, Stephen
    Rayadurgam, Sanjai
    Heimdahl, Mats P. E.
    WASPI'18: PROCEEDINGS OF THE 1ST ACM SIGSOFT INTERNATIONAL WORKSHOP ON AUTOMATED SPECIFICATION INFERENCE, 2018, : 5 - 8
  • [7] Towards the Black-Box Aggregation of Language Components
    Pfeiffer, Jerome
    Wortmann, Andreas
    24TH ACM/IEEE INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING LANGUAGES AND SYSTEMS COMPANION (MODELS-C 2021), 2021, : 577 - 586
  • [8] Probabilistic black-box reachability checking (extended version)
    Aichernig, Bernhard K.
    Tappler, Martin
    FORMAL METHODS IN SYSTEM DESIGN, 2019, 54 (03) : 416 - 448
  • [9] Probabilistic black-box reachability checking (extended version)
    Bernhard K. Aichernig
    Martin Tappler
    Formal Methods in System Design, 2019, 54 : 416 - 448
  • [10] Probabilistic Analysis of Onion Routing in a Black-box Model
    Feigenbaum, Joan
    Johnson, Aaron
    Syverson, Paul
    WPES'07: PROCEEDINGS OF THE 2007 ACM WORKSHOP ON PRIVACY IN ELECTRONIC SOCIETY, 2007, : 1 - 10