This is the code I wrote for my master's thesis on priority-based register allocation. It is mostly useful only for historical interest (mainly to me).