MeCC: Memory Comparison-based Clone Detector

Heejung Kim, Yungbum Jung, Sunghun Kim, and Kwankeun Yi
Seoul National University, South Korea; Hong Kong University of Science and Technology, China

In this paper, we propose a new semantic clone detection technique by comparing programs' abstract memory states, which are computed by a semantic-based static analyzer. Our experimental study using three large-scale open source projects shows that our technique can detect semantic clones that existing syntactic- or semantic-based clone detectors miss. Our technique can help developers identify inconsistent clone changes, and refactoring candidates, and understand software evolution related to semantic clones.