arrow
返回

Enhancing example-based code search with functional semantics

delete2020-07-01
delete9
delete
OA
AI
Z
Zhengzhao Chen
R
Renhe Jiang
Z
Zejun Zhang
Y
Yu Pei
M
Minxue Pan
T
Tian Zhang *
X
Xuandong Li
DOI:10.1016/j.jss.2020.110568delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
As the quality and quantity of open source code increase, effective and efficient search for code implementing certain semantics, or semantics-based code search, has become an emerging need for software developers to retrieve and reuse existing source code. Previous techniques in semantics-based code search encode the semantics of loop-free Java code snippets as constraints and utilize an SMT solver to find encoded snippets that match an input/output (IO) query. We present in this article the Quebio approach to semantics-based search for Java methods. Quebio advances the state-of-the-art by supporting important language features like invocation to library APIs and enabling the search to handle more data types like array/List, Set, and Map. Compared with existing approaches, Quebio also integrates a customized keyword-based search that uses as the input a textual, behavioral summary of the desired methods to quickly prune the methods to be checked against the IO examples. To evaluate the effectiveness and efficiency of Quebio, we constructed a repository of 14,792 methods from 723 open source Java projects hosted on GitHub and applied the approach to resolve 47 queries extracted from Stack-Overflow. Quebio was able to find methods correctly implementing the specified IO behaviors for 43 of the queries, significantly outperforming the existing semantics-based code search techniques. The average search time with Quebio was 213.2 seconds for each query. (C) 2020 Elsevier Inc. All rights reserved.
Keyword:
Semantics-based code search
Symbolic analysis
SMT solver
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
8.4K

机构

H
hong kong polytechnic university
学者数:
3.0W
论文数: 4.1W
被引数: 921
N
nanjing university
学者数:
7.8W
论文数: 5.6W
被引数: 87
引用论文

引用论文

err分享
err收藏
How Well Do Search Engines Support Code Retrieval on the Web?
err2011-12-01
err75
errOAAI
errSim, Susan Elliott; Umarji, Medha; Ratanotayanon, Sukanya; Lopes, Cristina V.
err分享
err收藏
Code search with input/output queries: Generalizing, ranking, and assessment
err2016-06-01
err31
errOAAI
errStolee, Kathryn T.; Elbaum, Sebastian; Dwyer, Matthew B.
err分享
err收藏
err分享
err收藏
Solving the Search for Source Code
err2014-06-02
err86
errOAAI
errStolee, Kathryn T.; Elbaum, Sebastian; Dobos, Daniel
err分享
err收藏
Identification and characterization of eukaryotic initiation factor 5A‐2
err2003-10-16
err0
errOAAI
errPaul M. J. Clement; C. Allen Henderson; Zandra A. Jenkins; Zeljka Smit‐McBride; Edith C Wolff; John W. B. Hershey; Myung Hee Park; Hans E Johansson
err分享
err收藏
An orchestrated survey of methodologies for automated software test case generation对自动软件测试用例生成方法的精心策划的调查
err2013-08-01
err452
PREAI
errAnand, Saswat; Burke, Edmund K.; Chen, Tsong Yueh; Clark, John; Cohen, Myra B.; Grieskamp, Wolfgang; Harman, Mark; Harrold, Mary Jean; McMinn, Phil; Bertolino, Antonia; Li, J. Jenny; Zhu, Hong
err分享
err收藏
没有更多内容