arrow
Return

Accelerating API-Based Program Synthesis via API Usage Pattern Mining

delete2019-01-01
delete5
delete
OA
AI
B
Binbin Liu
W
Wei Dong *
Y
Yinzhu Zhang
DOI:10.1109/ACCESS.2019.2950232delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Program Synthesis is an exciting topic in software engineering which aims to generate programs satisfying user intent automatically. Although different approaches have been proposed in program synthesis, only small or domain-specific programs can be generated in practice, the main obstacle of which lies in the intractability of program space. With the rapid growth of reusable libraries, component-based synthesis provides a promising way, such as synthesizing Java programs that are only composed of APIs. However, the efficiency of searching for proper solutions for complex tasks is still a challenge. In certain scenarios, some API methods are frequently called together. The usage of these API methods always follows some usage patterns. Incorporating the information about API usage patterns will help to accelerate the speed of program synthesis. However, state-of-the-art synthesis tools do not capture the inherent relationships between API methods. Aiming at this problem, we propose a novel approach to accelerate the speed of API-based program synthesis via API usage pattern mining. It is a general approach that can be applied to any approach of API-based synthesis. We first collect open source projects of high quality from the Internet and use an off-the-shelf API-usage-pattern-mining tool to mine API usage patterns from these code snippets. We use two strategies to incorporate the information about API usage patterns with program synthesis, and either strategy can improve the efficiency of program synthesis. We evaluate our approach on 20 real programming tasks, which shows that our approach can accelerate the speed of program synthesis by 86 compared to the baseline.
Keywords:
Petri nets
Acceleration
Libraries
Tools
Java
Task analysis
Data mining
API usage pattern mining
component-based synthesis
petri net
program synthesis
errShare
errSave
Mining API usage scenarios from stack overflow
err2020-06-01
err26
errOAAI
errUddin, Gias; Khomh, Foutse; Roy, Chanchal K.
errShare
errSave
Web API evolution patterns: A usage-driven approach
err2023-04-01
err7
errOAAI
errKoci, Rediana; Franch, Xavier; Jovanovic, Petar; Abello, Alberto
errShare
errSave
Automated API Property Inference Techniques
err2013-05-01
err144
errOAAI
errRobillard, Martin P.; Bodden, Eric; Kawrykow, David; Mezini, Mira; Ratchford, Tristan
errShare
errSave
errShare
errSave
Understanding the API usage in Java
err2016-05-01
err45
PREAI
errQiu, Dong; Li, Bixin; Leung, Hareton
errShare
errSave

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
10.1W
Citations:
36.3W

Organization

N
national university of defense technology - china
Scholars:
1.8W
Papers: 1.4W
Citations: 1.7W
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
Spreadsheet Data Manipulation Using Examples
err2012-08-01
err172
PREAI
errGulwani, Sumit; Harris, William R.; Singh, Rishabh
errShare
errSave
Aromaticity Driven Electrocatalytic Water Oxidation by a Phosphorus-Nitrogen PN3-Pincer Cobalt Complex
err
IF0
err2019-08-27
err0
errOAAI
errPradip K. Das; Sarmistha Bhunia; Priyanka Chakraborty; Atanu Rana; Abhishek Dey; Kuo-Wei Huang
errShare
errSave
Russia – Ukraine
err2023-03-31
err0
PREAI
errMaryana Prokop
errShare
errSave
SURVEY OF REPRODUCTIVE EVENTS OF WIVES OF EMPLOYEES EXPOSED TO CHLORINATED DIOXINS
err1982-05-01
err0
PREAI
errJEAN C TOWNSEND; KENNETH M BODNER; P. F. D VAN PEENEN; RICHARD D OLSON; RALPH K COOK
errShare
errSave
researcher View more