Abstract
Detecting \similar code" is useful for many software engineering tasks. Current tools can help detect code with statically similar syntactic and-or semantic features (code clones) and with dynamically similar functional input/output (simions). Unfortunately, some code fragments that behave similarly at the finer granularity of their execution traces may be ignored. In this paper, we propose the term \code relatives" to refer to code with similar execution behavior. We define code relatives and then present DyCLINK, our approach to detecting code relatives within and across codebases. DyCLINK records instruction-level traces from sample executions, organizes the traces into instruction-level dynamic dependence graphs, and employs our specialized subgraph matching algorithm to efficiently compare the executions of candidate code relatives. In our experiments, DyCLINK analyzed 422+ million prospective subgraph matches in only 43 minutes. We compared DyCLINK to one static code clone detector from the community and to our implementation of a dynamic simion detector. The results show that DyCLINK effiectively detects code relatives with a reasonable analysis time.
Author supplied keywords
Cite
CITATION STYLE
Su, F. H., Bell, J., Harvey, K., Sethumadhavan, S., Kaiser, G., & Jebara, T. (2016). Code relatives: Detecting similarly behaving software. In Proceedings of the ACM SIGSOFT Symposium on the Foundations of Software Engineering (Vol. 13-18-November-2016, pp. 702–714). Association for Computing Machinery. https://doi.org/10.1145/2950290.2950321
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.