In component-based program synthesis, the synthesizer generates a program given a library of components (functions). Existing component-based synthesizers have difficulty synthesizing loops and other control structures, and they often require formal specifications of the components, which can be expensive to generate. We present FrAngel, a new approach to component-based synthesis that can synthesize short Java functions with control structures when given a desired signature, a set of input-output examples, and a collection of libraries (without formal specifications). FrAngel aims to discover programs with many distinct behaviors by combining two main ideas. First, it mines code fragments from partially-successful programs that only pass some of the examples. These extracted fragments are often useful for synthesis due to a property that we call special-case similarity. Second, FrAngel uses angelic conditions as placeholders for control structure conditions and optimistically evaluates the resulting program sketches. Angelic conditions decompose the synthesis process: FrAngel first finds promising partial programs and later fills in their missing conditions. We demonstrate that FrAngel can synthesize a variety of interesting programs with combinations of control structures within seconds, significantly outperforming prior state-of-the-art.
POPL 2019 Presentation Slides (POPL_2019_FrAngel_Presentation_cleaned.pdf) | 271KiB |
Thu 17 JanDisplayed time zone: Belfast change
09:00 - 10:06 | |||
09:00 22mTalk | Structuring the Synthesis of Heap-Manipulating ProgramsDistinguished Paper Research Papers Nadia Polikarpova University of California, San Diego, Ilya Sergey Yale-NUS College and National University of Singapore Link to publication DOI Pre-print Media Attached File Attached | ||
09:22 22mTalk | FrAngel: Component-Based Synthesis with Control Structures Research Papers Kensen Shi Stanford University, Jacob Steinhardt Stanford University, Percy Liang Stanford University Link to publication DOI Pre-print Media Attached File Attached | ||
09:44 22mTalk | Hamsaz: Replication Coordination Analysis and Synthesis Research Papers Farzin Houshmand University of California, Riverside, Mohsen Lesani University of California, Riverside Link to publication DOI Media Attached |