Code Relatives: Detecting Similarly Behaving Software

FSE(2016)

引用 43|浏览95
暂无评分
摘要
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 effectively detects code relatives with a reasonable analysis time.
更多
查看译文
关键词
Code relatives,runtime behavior,link analysis,subgraph matching,code clones
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要