Title :
Finding Unusual Code
Author :
Reiss, Steven P.
Author_Institution :
Brown Univ. Providence, Providence
Abstract :
We describe an automated approach to finding code fragments that are unusual and hence might represent potential problems. Many potential problems in programs arise in code that is uncommon either because it represents rarely used constructs and hence is unfamiliar to the programmer, or because it represents a mistyping or other error that still happens to be legal code, albeit not very common. We present an approach that first finds what is "unusual" by reading a corpus of code and building a library of common patterns. The approach can then take any existing program and check if it contains any unusual patterns. We have run the system using a large corpus and have identified problems in a number of sample projects with otherwise working code.
Keywords :
program compilers; program diagnostics; software libraries; common pattern library; software system; unusual code fragment; Buildings; Computer science; Law; Legal factors; Logic; Programming profession; Software libraries; Software systems; Specification languages; Writing;
Conference_Titel :
Software Maintenance, 2007. ICSM 2007. IEEE International Conference on
Conference_Location :
Paris
Print_ISBN :
978-1-4244-1256-3
Electronic_ISBN :
1063-6773
DOI :
10.1109/ICSM.2007.4362616