DocumentCode
1884876
Title
Finding Unusual Code
Author
Reiss, Steven P.
Author_Institution
Brown Univ. Providence, Providence
fYear
2007
fDate
2-5 Oct. 2007
Firstpage
34
Lastpage
43
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;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Maintenance, 2007. ICSM 2007. IEEE International Conference on
Conference_Location
Paris
ISSN
1063-6773
Print_ISBN
978-1-4244-1256-3
Electronic_ISBN
1063-6773
Type
conf
DOI
10.1109/ICSM.2007.4362616
Filename
4362616
Link To Document