Semantics-based code search

Steven P. Reiss

2009 · 306 citations · 39 references

Concepts

TL;DR

Our goal is to use the vast repositories of available open source code to generate specific functions or classes that meet a user's specifications. Users provide precise specifications via keywords, signatures, test cases, contracts, and security constraints, and the system applies program transformations to map retrieved open‑source code into the requested functions, implemented in a Java prototype with a web interface. Key terms include specifications and generate.

Abstract

Our goal is to use the vast repositories of available open source code to generate specific functions or classes that meet a user's specifications. The key words here are specifications and generate. We let users specify what they are looking for as precisely as possible using keywords, class or method signatures, test cases, contracts, and security constraints. Our system then uses an open set of program transformations to map retrieved code into what the user asked for. This approach is implemented in a prototype system for Java with a Web interface.

References

39