Back to Search
Start Over
Tailoring programs for static analysis via program transformation
- Source :
- ICSE
- Publication Year :
- 2020
- Publisher :
- ACM, 2020.
-
Abstract
- Static analysis is a proven technique for catching bugs during software development. However, analysis tooling must approximate, both theoretically and in the interest of practicality. False positives are a pervading manifestation of such approximations---tool configuration and customization is therefore crucial for usability and directing analysis behavior. To suppress false positives, developers readily disable bug checks or insert comments that suppress spurious bug reports. Existing work shows that these mechanisms fall short of developer needs and present a significant pain point for using or adopting analyses. We draw on the insight that an analysis user always has one notable ability to influence analysis behavior regardless of analyzer options and implementation: modifying their program. We present a new technique for automated, generic, and temporary code changes that tailor to suppress spurious analysis errors. We adopt a rule-based approach where simple, declarative templates describe general syntactic changes for code patterns that are known to be problematic for the analyzer. Our technique promotes program transformation as a general primitive for improving the fidelity of analysis reports (we treat any given analyzer as a black box). We evaluate using five different static analyzers supporting three different languages (C, Java, and PHP) on large, real world programs (up to 800KLOC). We show that our approach is effective in sidestepping long-standing and complex issues in analysis implementations.
- Subjects :
- Black box (phreaking)
Java
business.industry
Programming language
Computer science
Software development
Program transformation
020207 software engineering
Usability
02 engineering and technology
Static analysis
computer.software_genre
Program analysis
020204 information systems
0202 electrical engineering, electronic engineering, information engineering
False positive paradox
business
computer
computer.programming_language
Subjects
Details
- Database :
- OpenAIRE
- Journal :
- Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering
- Accession number :
- edsair.doi...........ed6b0ad9f620e7109b8903bf90645bf8
- Full Text :
- https://doi.org/10.1145/3377811.3380343