Jump to content

Unreachable code

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CyborgTosser (talk | contribs) at 21:08, 19 January 2005 (in progress - i'll be back to finish). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In control flow analysis, unreachable code is one or more statements that, by a set of simple rules, can be proven to be unreachable, that is, they will never be executed regardless of the values of variables and other conditions at run time. Control flow analysis is often used as a step in the compiling of modern languages, and in some languages (e.g. Java or C#), unreachable code is explicitly disallowed.