dead code

dead code

[′ded ′kōd]
(computer science)
Statements in a computer program that are not executed, usually as the result of modification of a large program.

dead code

(programming)
(Or "infeasible path", "grunge") Any part of a program that can never be accessed because all calls to it have been removed, or because it is guarded by a control structure that provably must always transfer control somewhere else. The presence of dead code may reveal either logical errors due to alterations in the program or significant changes in the assumptions and environment of the program (see also software rot); a good compiler should report dead code so a maintainer can think about what it means. Sometimes it simply means that an *extremely* defensive programmer has inserted can't happen tests which really can't happen - yet.

Synonym grunge.
Mentioned in ?
References in periodicals archive ?
For JavaScript Streaming, it downloads only what a web page or web application needs, while ignoring unused or dead code. For HTML Streaming, it determines which portions of dynamic HTML are common across all users and sends them in advance.
Presence of dead code: The term dead code means unnecessary, inoperative code that can be removed without affecting program's functionality.
Fadlullah criticized attempts undertaken by certain politicians aimed at reviving the # 60 electoral Code; extending deadlines would be tantamount to reviving a dead code, he concluded.
QA-C++ now has accurate, precise detection of important defect and security vulnerabilities including buffer overflows, division by zero, null pointer dereference, integer overflow, loss making conversions, dead code, unusual logic flows and much more, by linking the in-depth language analysis performed by QA-C++ with its state of the art SMT solver.
FILMFLEX WARGAMES: THE DEAD CODE Acomputer hacker stumbles on a top-secret government anti-terrorist programme and pushes the world to the brink of nuclear war.
dead code could be placed in an else block of an if sentence with an opaque predicate that always evaluate to true.
Topics include performance of MANET multicast routing algorithms with multiple sources, load balancing using connection pool in RFID middleware, kernel-based learning suitable for text categorization, reengineering class hierarchies into 3D bridge form, and dead code elimination in CTOC.
"The intent of this precept is to ensure safety critical code does not contain 'dead code,' otherwise there is a risk of invoking unintended functionality," says the policy.
He'd worked on the front end, the user interface, and all that was dead code by now, decomposing bits on a tape in a cold storage room somewhere.
For example, emits of potentially dead assignments are guarded to eliminate dead code at run time.
It also removes dead code and can provide reports to help with the simplification and acceleration of program analysis, testing and debugging.
Dead code. Dead code is code that has been replaced by new code that performs the same function.