Proceedings of the Eighteenth International Symposium on Software Testing and Analysis 2009
DOI: 10.1145/1572272.1572283
|View full text |Cite
|
Sign up to set email alerts
|

Automatic mining of functionally equivalent code fragments via random testing

Abstract: Similar code may exist in large software projects due to some common software engineering practices, such as copying and pasting code and n-version programming. Although previous work has studied syntactic equivalence and small-scale, coarse-grained program-level and function-level semantic equivalence, it is not known whether significant fine-grained, code-level semantic duplications exist. Detecting such semantic equivalence is also desirable because it can enable many applications such as code understanding… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

2
118
0

Year Published

2016
2016
2024
2024

Publication Types

Select...
4
2

Relationship

0
6

Authors

Journals

citations
Cited by 154 publications
(120 citation statements)
references
References 53 publications
2
118
0
Order By: Relevance
“…These semantic clone detection techniques cannot guarantee that they also find all functionally similar clones as a completely different structure and memory states can generate similar functionality. Jiang & Su (2009) were the first to comprehensively detect functionally similar code by using random tests and comparing the output. Hence, they were also the first who were able to detect clones without any syntactic similarity.…”
Section: Related Workmentioning
confidence: 99%
See 4 more Smart Citations
“…These semantic clone detection techniques cannot guarantee that they also find all functionally similar clones as a completely different structure and memory states can generate similar functionality. Jiang & Su (2009) were the first to comprehensively detect functionally similar code by using random tests and comparing the output. Hence, they were also the first who were able to detect clones without any syntactic similarity.…”
Section: Related Workmentioning
confidence: 99%
“…However, whether it is really useful to consider them functionally equivalent is still a question worth of future investigation.' ' Deissenboeck et al (2012) followed an analogous approach to Jiang & Su (2009) to detect functionally similar code fragments in Java systems based on the fundamental heuristic that two functionally similar code fragments will produce the same output for the same randomly generated input. They implemented a prototype based on their toolkit ConQAT.…”
Section: Related Workmentioning
confidence: 99%
See 3 more Smart Citations