Towards summarizing program statements in source code search
Towards summarizing program statements in source code search
复制标题
在源代码搜索中总结程序语句
DOI:
10.1145/3341105.3374055
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Rivero, Carlos R.
中科院分区:
文献类型:
--
作者:
Marin, Victor J.;Bansal, Iti;Rivero, Carlos R.
A common practice among programmers is to find pieces of source code using search engines. Programs retrieved by these engines are typically semantically but not necessarily syntactically similar. As a result, ranking methods are exploited to present relevant programs to users. However, due to implementation variability, users need to understand such programs. In this paper, we propose a method to group statements into clusters from a set of programs retrieved by a source code search engine. Each cluster comprises a number of program statements that have similar but not exact semantics and are pervasive. Our hypothesis is that such clusters help understand at a glance a set of semantically-related programs. We use approximate graph alignment to find correspondences among statements in two program dependence graphs that are similar with respect to their control and data flows, as well as operations they perform. We then build a graph with pairwise comparisons of program dependence graphs, and cast the problem of clustering statements as finding communities of statements that consistently align. Our evaluation using programs collected by BigCloneBench shows that clusters of statements discovered by our approach help discern implementation variations.
DOI:
--
发表时间:
2010
期刊:
IEEE International Conference on Program Comprehension
影响因子:
--
作者:
Ahmad Taherkhani
通讯作者:
Ahmad Taherkhani
DOI:
10.1109/icpc.2016.7503708
发表时间:
2016
期刊:
2016 IEEE 24th International Conference on Program Comprehension (ICPC)
影响因子:
--
作者:
H. Sánchez;J. Whitehead;Martin Schaf
通讯作者:
Martin Schaf
DOI:
--
发表时间:
2015
期刊:
2015 IEEE/ACM 12th Working Conference on Mining Software Repositories
影响因子:
--
作者:
Lee Martie;A. Hoek
通讯作者:
A. Hoek