Out of Sight, Out of Place: Detecting and Assessing Swapped Arguments

September 18, 2020 Β· Declared Dead Β· πŸ› IEEE Working Conference on Source Code Analysis and Manipulation

πŸ‘» CAUSE OF DEATH: Ghosted
No code link whatsoever

"No code URL or promise found in abstract"

Evidence collected by the PWNC Scanner

Authors Roger Scott, Joseph Ranieri, Lucja Kot, Vineeth Kashyap arXiv ID 2009.09117 Category cs.PL: Programming Languages Cross-listed cs.SE Citations 7 Venue IEEE Working Conference on Source Code Analysis and Manipulation Last Checked 3 months ago
Abstract
Programmers often add meaningful information about program semantics when naming program entities such as variables, functions, and macros. However, static analysis tools typically discount this information when they look for bugs in a program. In this work, we describe the design and implementation of a static analysis checker called SwapD, which uses the natural language information in programs to warn about mistakenly-swapped arguments at call sites. SwapD combines two independent detection strategies to improve the effectiveness of the overall checker. We present the results of a comprehensive evaluation of SwapD over a large corpus of C and C++ programs totaling 417 million lines of code. In this evaluation, SwapD found 154 manually-vetted real-world cases of mistakenly-swapped arguments, suggesting that such errors, while not pervasive in released code, are a real problem and a worthwhile target for static analysis.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

πŸ“œ Similar Papers

In the same crypt β€” Programming Languages

Died the same way β€” πŸ‘» Ghosted