Assisted Specification of Code Using Search

09/20/2022
by   Steven P. Reiss, et al.
0

We describe an intelligent assistant based on mining existing software repositories to help the developer interactively create checkable specifications of code. To be most useful we apply this at the subsystem level, that is chunks of code of 1000-10000 lines that can be standalone or integrated into an existing application to provide additional functionality or capabilities. The resultant specifications include both a syntactic description of what should be written and a semantic specification of what it should do, initially in the form of test cases. The generated specification is designed to be used for automatic code generation using various technologies that have been proposed including machine learning, code search, and program synthesis. Our research goal is to enable these technologies to be used effectively for creating subsystems without requiring the developer to write detailed specifications from scratch.

READ FULL TEXT
research
04/15/2022

Towards Porting Operating Systems with Program Synthesis

The end of Moore's Law has ushered in a diversity of hardware not seen i...
research
02/21/2018

Path-Based Function Embedding and its Application to Specification Mining

Relationships among program elements is useful for program understanding...
research
01/29/2023

Specification Inference for Evolving Systems

In this paper, we propose an assertion-based approach to capture softwar...
research
07/05/2017

Information-gain computation

Despite large incentives, ecorrectness in software remains an elusive go...
research
01/19/2022

Code Sophistication: From Code Recommendation to Logic Recommendation

A typical approach to programming is to first code the main execution sc...
research
06/06/2023

Impact of Large Language Models on Generating Software Specifications

Software specifications are essential for ensuring the reliability of so...
research
05/19/2023

Towards Code Generation from BDD Test Case Specifications: A Vision

Automatic code generation has recently attracted large attention and is ...

Please sign up or login with your details

Forgot password? Click here to reset