Modeling black-box components with probabilistic synthesis

8Citations
Citations of this article
11Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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.

Cite

CITATION STYLE

APA

Collie, B., Woodruff, J., & O’Boyle, M. F. P. (2020). Modeling black-box components with probabilistic synthesis. In GPCE 2020 - Proceedings of the 19th ACM SIGPLAN International Conference on Generative Programming: Concepts and Experiences, Co-located with SPLASH 2020 (pp. 1–14). Association for Computing Machinery, Inc. https://doi.org/10.1145/3425898.3426952

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free