You might be interested in the book "Data Flow Analysis" by Khedker et al.
It's very compiler-focused, but it's one piece of the puzzle.