Lune

ASE2022顶会

Detecting Semantic Code Clones by Building AST-based Markov Chains Model

Yueming Wu, Siyue Feng, Deqing Zou, Hai Jin

摘要

Code clone detection aims to find functionally similar code fragments, which is becoming more and more important in the field of software engineering. Many code clone detection methods have been proposed, among which tree-based methods are able to handle semantic code clones. However, these methods are difficult to scale to big code due to the complexity of tree structures. In this paper, we design Amain, a scalable tree-based semantic code clone detector by building Markov chains models. Specifically, we propose a novel method to transform the original complex tree into simple Markov chains and measure the distance of all states in these chains. After obtaining all distance values, we feed them into a machine learning classifier to train a code clone detector. To examine the effectiveness of Amain, we evaluate it on two widely used datasets namely Google Code Jam and BigCloneBench. Experimental results show that Amain is superior to nine state-of-the-art code clone detection tools (i.e., SourcererCC, RtvNN, Deckard, ASTNN, TBCNN, CDLH, FCCA, DeepSim, and SCDetector).

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Machine Learning is All You Need: A Simple Token-based Approach for Effective Code Clone Detection 引用了 CCGraph: a PDG-based code clone detector with approximate graph matching
  • Machine Learning is All You Need: A Simple Token-based Approach for Effective Code Clone Detection 引用了 SCDetector: Software Functional Clone Detection Based on Semantic Tokens Analysis
  • Machine Learning is All You Need: A Simple Token-based Approach for Effective Code Clone Detection 引用了 Comparison and Evaluation of Clone Detection Techniques with Different Code Representations
  • FIRE: Combining Multi-Stage Filtering with Taint Analysis for Scalable Recurring Vulnerability Detection 引用了 Machine Learning is All You Need: A Simple Token-based Approach for Effective Code Clone Detection
  • FIRE: Combining Multi-Stage Filtering with Taint Analysis for Scalable Recurring Vulnerability Detection 引用了 Comparison and Evaluation of Clone Detection Techniques with Different Code Representations
  • CC2Vec: Combining Typed Tokens with Contrastive Learning for Effective Code Clone Detection 引用了 SCDetector: Software Functional Clone Detection Based on Semantic Tokens Analysis
  • Comparison and Evaluation of Clone Detection Techniques with Different Code Representations 引用了 CCGraph: a PDG-based code clone detector with approximate graph matching
  • Comparison and Evaluation of Clone Detection Techniques with Different Code Representations 引用了 SCDetector: Software Functional Clone Detection Based on Semantic Tokens Analysis
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. Your Firmware Has Arrived: A Study of Firmware Update VulnerabilitiesYuhao Wu, Jinwen Wang, Yujie Wang, Shixuan Zhai 等USENIX Security 2024 · 33 次引用
  2. Machine Learning is All You Need: A Simple Token-based Approach for Effective Code Clone DetectionSiyue Feng, Wenqi Suo, Yueming Wu, Deqing Zou 等ICSE 2024 · 20 次引用
  3. Comparison and Evaluation of Clone Detection Techniques with Different Code RepresentationsYuekun Wang, Yuhang Ye, Yueming Wu, Weiwei Zhang 等ICSE 2023 · 15 次引用
  4. FIRE: Combining Multi-Stage Filtering with Taint Analysis for Scalable Recurring Vulnerability DetectionSiyue Feng, Yueming Wu, Wenjie Xue, Sikui Pan 等USENIX Security 2024 · 13 次引用
  5. CC2Vec: Combining Typed Tokens with Contrastive Learning for Effective Code Clone DetectionShihan Dou, Yueming Wu, Haoxiang Jia, Yuhao Zhou 等FSE 2024 · 9 次引用

它引用的 Paper2

  1. SCDetector: Software Functional Clone Detection Based on Semantic Tokens AnalysisYueming Wu, Deqing Zou, Shihan Dou, Siru Yang 等ASE 2020 · 55 次引用
  2. CCGraph: a PDG-based code clone detector with approximate graph matchingYue Zou, Bihuan Ban, Yinxing Xue, Yun XuASE 2020 · 46 次引用

相关 Paper

  1. Fine-Grained Code Clone Detection with Block-Based Splitting of Abstract Syntax TreeTiancheng Hu, Zijing Xu, Yilin Fang, Yueming Wu 等ISSTA 2023 · 18 次引用
  2. Tritor: Detecting Semantic Code Clones by Building Social Network-Based Triads ModelDeqing Zou, Siyue Feng, Yueming Wu, Wenqi Suo 等FSE 2023 · 6 次引用
  3. TreeCen: Building Tree Graph for Scalable Semantic Code Clone DetectionYutao Hu, Deqing Zou, Junru Peng, Yueming Wu 等ASE 2022 · 30 次引用
  4. DSFM: Enhancing Functional Code Clone Detection with Deep Subtree InteractionsZhiwei Xu, Shaohua Qiang, Dinghong Song, Min Zhou 等ICSE 2024 · 7 次引用
  5. NIL: large-scale detection of large-variance clonesTasuku Nakagawa, Yoshiki Higo, Shinji KusumotoFSE 2021 · 41 次引用
黄昏的海面,两侧是细线勾勒的悬崖