Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Use-define chain
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Data structure that tracks variable use and definitions}} {{Multiple issues| {{more references needed|date=February 2024}} {{Excessive examples|date=February 2024}} }} Within [[computer science]], a '''use-definition chain''' (or '''UD chain''') is a [[data structure]] that consists of a use ''U'', of a [[Variable (programming)|variable]], and all the definitions ''D'' of that variable that can reach that use without any other intervening definitions.<ref name="kennedy"/><ref name="duct"/> A UD Chain generally means the [[Assignment (computer science)|assignment]] of some value to a variable. A counterpart of a ''UD Chain'' is a '''definition-use chain''' (or '''DU chain'''), which consists of a definition ''D'' of a variable and all the uses ''U'' reachable from that definition without any other intervening definitions.<ref name="leiss"/> Both UD and DU chains are created by using a form of [[static code analysis]] known as [[data flow analysis]]. Knowing the use-def and def-use chains for a program or subprogram is a prerequisite for many [[compiler optimization]]s, including [[constant propagation]] and [[common subexpression elimination]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)