All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Static single assignment, phi-function?

Also known as: static single assignment · phi-function

Definition 8.7 University Computer Science — Year 3 · Chapter 8 — Program Analysis and Optimisation

A function is in static single assignment form if every temporary has exactly one definition in its text. Where definitions of one variable from different paths meet, at the start of a block, a ϕ\phi-function x3=ϕ(B1: x1,B2: x2)x_3 = \phi(B_1{:}\,x_1, B_2{:}\,x_2) defines a new name whose value is x1x_1 if control came from B1B_1 and x2x_2 if it came from B2B_2.

Read in context →