Publication Details
Applying Custom Patterns in Semantic Equality Analysis
Šilling Petr, Ing. (FIT BUT)
Vojnar Tomáš, prof. Ing., Ph.D. (DITS FIT BUT)
static analysis, program analysis, semantic difference, semantic equivalence, semantic change patterns, pattern matching, parametrized control-flow graphs
This paper develops a novel approach to using code change patterns in static analysis of semantic equivalence of large-scale software. In particular, we propose a way to define custom code change patterns, describing changes that do change the semantics but in a safe way, and a graph-based algorithm to efficiently detect occurrences of such patterns between two versions of software. The proposed method allows one to reduce the number of false positive results generated by static code-pattern-based analysis of semantic equivalence by specifying which patterns of changes should be considered semantically equivalent. Our experiments with the Linux kernel show that it is possible to eliminate a substantial number of detected differences with just a small number of patterns, while maintaining a very high scalability of the overall analysis. Furthermore, the proposed concept allows for a possible future combination with automatic inference of patterns, which promises significant improvements in the area of static analysis of semantic equivalence.
@INPROCEEDINGS{FITPUB12832, author = "Viktor Mal\'{i}k and Petr \v{S}illing and Tom\'{a}\v{s} Vojnar", title = "Applying Custom Patterns in Semantic Equality Analysis", pages = "265--282", booktitle = "Networked Systems", series = "Lecture Notes in Computer Science", volume = 13464, year = 2022, location = "Cham, CH", publisher = "Springer Nature Switzerland AG", ISBN = "978-3-031-17436-0", doi = "10.1007/978-3-031-17436-0\_18", language = "english", url = "https://www.fit.vut.cz/research/publication/12832" }