@inproceedings{63a27e6fd8af4c949b13371ca030cea0,
title = "Semantics-based code search using input/output examples",
abstract = "As the quality and quantity of open source code increase, semantics-based code search has become an emerging need for software developers to retrieve and reuse existing source code. We present an approach of semantics-based code search using input/output examples for the Java language. Our approach encodes Java methods in code repositories into path constraints via symbolic analysis and leverages SMT solvers to find the methods whose path constraints can satisfy the given input/output examples. Our approach extends the applicability of the semantics-based search technology to more general Java code compared with existing methods. To evaluate our approach, we encoded 1228 methods from GitHub and applied semantics-based code search on 35 queries extracted from Stack Overflow. Correct method code for 29 queries was obtained during the search and the average search time was just about 48 seconds.",
keywords = "Code query, SMT solver, Symbolic analysis",
author = "Renhe Jiang and zhengzhao Chen and Zejun Zhang and Yu Pei and Minxue Pan and Tian Zhang",
year = "2018",
month = nov,
day = "9",
doi = "10.1109/SCAM.2018.00018",
language = "English",
series = "Proceedings - 18th IEEE International Working Conference on Source Code Analysis and Manipulation, SCAM 2018",
publisher = "Institute of Electrical and Electronics Engineers Inc.",
pages = "92--102",
booktitle = "Proceedings - 18th IEEE International Working Conference on Source Code Analysis and Manipulation, SCAM 2018",
note = "18th IEEE International Working Conference on Source Code Analysis and Manipulation, SCAM 2018 ; Conference date: 23-09-2018 Through 24-09-2018",
}