Behavioral analysis for detecting code clones

Bayu Priyambadha*, Siti Rochimah

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

1 Citation (Scopus)


The activities of copy and paste fragments of code from a source code into the other source code is often done by software developers because it's easier than generate code manually. This behavior leads to the increase of effort to maintain the code. One of the detection methods of semantic cloning is based on the behavior of the code. The code behavior detected by observing at an input, output and the effects of the method. Methods with the same value of input, output, and effect will indicate that semantically the same. However, the detection method based on the input, output, and effect could not be used in a void method or method without parameters, another side comprehensively detection is required. The challenge is how to detect which variable in a method that acts as input, output, and effect. Detection of the variable input, output, and effects in a void method done using Program Dependence Graph. The use of clone detection methods semantically based on behavior can increase the agreement value.

Original languageEnglish
Pages (from-to)1264-1275
Number of pages12
JournalTelkomnika (Telecommunication Computing Electronics and Control)
Issue number3
Publication statusPublished - Jun 2018


  • Behavioral cloning
  • Clone detection
  • Semantic clone
  • Software maintenance


Dive into the research topics of 'Behavioral analysis for detecting code clones'. Together they form a unique fingerprint.

Cite this