In my graduate class on compiler construction we\'ve been introduced to the concept of a lattice. Three lectures have been devoted to lattices and so far it seems like an inter
Lattices are a very useful structure to represent state while doing static analysis on the program being compiled - eg. for removing dead code detected by liveness analysis, available/very busy expressions, reaching definitions, sign analysis and constant propagation.
Here is a very good read if you want the details: Lecture Notes on Static Analysis