Unlock instant, AI-driven research and patent intelligence for your innovation.

A method of program synthesis based on API usage probability model

A synthesis method and technology of probability model, applied in the field of program synthesis based on API using probability model, can solve problems such as low efficiency, time-consuming, large program space, etc., and achieve the effect of improving efficiency

Active Publication Date: 2022-06-21
NAT UNIV OF DEFENSE TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But since the program space composed of all API sequences is still very large, finding the correct solution is very time-consuming, and in practice only small-scale programs can usually be found
[0009] It can be seen that the current program synthesis still has the problem of low efficiency in practical applications, and the inability to generate programs that meet the conditions within a limited time also directly limits the scale of generated programs.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of program synthesis based on API usage probability model
  • A method of program synthesis based on API usage probability model
  • A method of program synthesis based on API usage probability model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention will be further described below with reference to the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.

[0045] like figure 1 and figure 2 As shown, the program synthesis method based on the API usage probability model of the present invention comprises the following steps:

[0046] S1) Data acquisition and processing: the API corresponding text set W1 is obtained from the target network resource;

[0047] S2) Construction of the probabilistic reachability graph: Calculate the similarity between the task description and each API in the specified range library corresponding to the text set W1 in the network resource, and weight and sum the similarity corresponding to each API to obtain the relationship between each API and the task The probability information of the degree, the probability information of the correlation between the API and the task represents the p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a program synthesis method based on an API use probability model, which includes: calculating the similarity between the task description and the corresponding text of each API in the specified range library in the network resource, and obtaining the probability information of the correlation between the API and the task , according to the probability information of API and task correlation, add probability to each edge of the reachable graph model to obtain a probabilistic reachable graph model; search for reachable paths on the probabilistic reachable graph model from the edge with the highest probability of each node , construct the program framework according to the API call sequence of the reachable path, fill the program framework to obtain the candidate program, verify the correctness of the candidate program, and return the candidate program as a result after passing all test cases. The invention provides a basis for searching the best reachable path by adding probability to each side of the reachable graph model, so that the probability of API call sequence task correlation is higher, thereby improving the efficiency of program synthesis.

Description

technical field [0001] The invention relates to the field of software engineering, in particular to a program synthesis method based on an API usage probability model. Background technique [0002] Computer software is currently widely used in all walks of life, and the scale and complexity of software are also increasing. The rapid development of Internet technology has brought new opportunities and challenges to the field of software engineering. On the one hand, the development of Internet technology has made the software ecological environment more open, dynamic, complex and continuously evolving, resulting in a sharp increase in the scale and complexity of software systems, posing severe challenges to traditional software development methods; on the other hand On the other hand, the development of Internet technology has given birth to a new type of group software development practice platform represented by open source software such as Linux, open source communities s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/35G06F40/284G06F40/216G06F11/36G06F16/901G06K9/62G06N5/02G06N7/00
CPCG06F8/35G06F40/216G06F11/3668G06F16/9024G06F40/284G06N5/02G06N7/01G06F18/22
Inventor 董威刘斌斌尹良泽陈立前陈振邦王戟
Owner NAT UNIV OF DEFENSE TECH