Towards Overcoming Type Limitations in Semantic Clone Detection

Francesco Leone, Shingo Takada

研究成果: Conference contribution

2 被引用数 (Scopus)

抄録

Currently available tools for semantic clone detection have serious type limitations related to objects, in particular related to instantiation and comparison. The trend in the recent research has focused on improving the performance rather than removing these constraints. This paper proposes a test-based approach for semantic clone detection in Java which overcomes these problems. The test-based approach consists in running two methods with the same input and comparing their outputs. For object instantiation, the approach uses EvoSuite, an automatic JUnit test generator, to create the tests with correct instantiations of all the needed classes, which are then modified to make them suitable for semantic clone detection. The output comparison uses the DeepHash function to obtain numerical values for objects, considering the values of each instance variable. The approach was evaluated with SemanticCloneBench. The results show that the proposed approach performs very well in terms of precision, achieving 94.4%, which is about 8% higher than the reported precision of SLACC, a recent semantic clone detector. Furthermore, out of 228 methods used for the evaluation, the approach was not able to perform the detection for only ten methods.

本文言語English
ホスト出版物のタイトルProceedings - 2022 IEEE 16th International Workshop on Software Clones, IWSC 2022
出版社Institute of Electrical and Electronics Engineers Inc.
ページ25-31
ページ数7
ISBN(電子版)9781665484473
DOI
出版ステータスPublished - 2022
イベント16th IEEE International Workshop on Software Clones, IWSC 2022 - Limassol, Cyprus
継続期間: 2022 10月 22022 10月 7

出版物シリーズ

名前Proceedings - 2022 IEEE 16th International Workshop on Software Clones, IWSC 2022

Conference

Conference16th IEEE International Workshop on Software Clones, IWSC 2022
国/地域Cyprus
CityLimassol
Period22/10/222/10/7

ASJC Scopus subject areas

  • ソフトウェア
  • 安全性、リスク、信頼性、品質管理
  • 人工知能

フィンガープリント

「Towards Overcoming Type Limitations in Semantic Clone Detection」の研究トピックを掘り下げます。これらがまとまってユニークなフィンガープリントを構成します。

引用スタイル