Two-phase optimization
Programmer
Formal
User
code
CCP
bypass
function
Off-line
On-line
TT
TT
TT is “type theory”, the input language to NuPrl.  The partial evaluation is done off-line.  The composition is also done by NuPrl, but can be done fully automatically.  A translator translates TT back into ML.