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 条
  • [31] THE MATHEMATICAL WORLD IN THE BLACK-BOX - SIGNIFICANCE OF THE BLACK-BOX AS A MEDIUM OF MATHEMATIZING
    MAASS, J
    SCHLOGLMANN, W
    CYBERNETICS AND SYSTEMS, 1988, 19 (04) : 295 - 309
  • [32] Black-box modeling of an industrial combustion engine plant
    Korb, R
    Skorjanz, P
    Jörgl, HP
    (SYSID'97): SYSTEM IDENTIFICATION, VOLS 1-3, 1998, : 191 - 196
  • [33] Black-box modeling for temperature prediction in weather forecasting
    Karevan, Zahra
    Mehrkanoon, Siamak
    Suykens, Johan A. K.
    2015 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS (IJCNN), 2015,
  • [34] Improved Error Reporting for Software that Uses Black-Box Components
    Ha, Jungwoo
    Rossbach, Christopher J.
    Davis, Jason V.
    Roy, Indrajit
    Ramadan, Hany E.
    Porter, Donald E.
    Chen, David L.
    Witchel, Emmett
    PLDI'07: PROCEEDINGS OF THE 2007 ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION, 2007, : 101 - 111
  • [35] NARX approach to black-box modeling of circuit elements
    Maio, IA
    Stievano, IS
    Canavero, FG
    ISCAS '98 - PROCEEDINGS OF THE 1998 INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, VOLS 1-6, 1998, : B411 - B414
  • [36] Extracting State Models for Black-Box Soft ware Components
    Suman, Rajiv Ranjan
    Mall, Rajib
    Sukumaran, Srihari
    Satpathy, Manoranjan
    JOURNAL OF OBJECT TECHNOLOGY, 2010, 9 (03): : 79 - 103
  • [37] Black-box evaluation of COTS components using aspects and metadata
    Cechich, A
    Polo, M
    PRODUCT FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROCEEDINGS, 2002, 2559 : 494 - 508
  • [38] Improved error reporting for software that uses black-box components
    Ha, Jungwoo
    Rossbach, Christopher J.
    Davis, Jason V.
    Roy, Indrajit
    Ramadan, Hany E.
    Porter, Donald E.
    Chen, David L.
    Witchel, Emmett
    ACM SIGPLAN NOTICES, 2007, 42 (06) : 101 - 111
  • [39] The CoSi Component Model: Reviving the Black-Box Nature of Components
    Brada, Premek
    COMPONENT-BASED SOFTWARE ENGINEERING, PROCEEDINGS, 2008, 5282 : 318 - 333
  • [40] Connecting incompatible black-box components using customizable adapters
    Küçük, B
    Alpdemir, MN
    Zobel, RN
    OBJECT-ORIENTED TECHNOLOGY: ECOOP'98 WORKSHOP READER, 1998, 1543 : 147 - 148