RUS  ENG
Full version
JOURNALS // Proceedings of the Institute for System Programming of the RAS // Archive

Proceedings of ISP RAS, 2025 Volume 37, Issue 4(1), Pages 65–78 (Mi tisp1010)

Detection of dead function calls as source code defects through static analysis

V. I. Vasilevaab, A. E. Borodinb, A. E. Volkovb

a Lomonosov Moscow State University
b Ivannikov Institute for System Programming of the RAS

Abstract: Detection of dead code (i.e. the code which is executed, but does not affect an observable program behavior) is commonly used by compilers as a part of optimization techniques for redundant code elimination. At the same time dead function calls might be seen as a kind of program source code defects, which may point to serious program logic faults. We describe a new detector for this kind of issues developed as a part of Svace static defect detection tool, as well as the specific cases, which should be filtered out for practical detection of dead functions calls as program errors in contrast to their formal definition.

Keywords: static analysis, software defects, dead code, useless code, side effects, SVACE, C/C++ programming languages, Go programming language, symbolic execution, data-flow analysis, live variable analysis, interprocedural analysis

DOI: 10.15514/ISPRAS-2025-37(4)-4



© Steklov Math. Inst. of RAS, 2026