Remove dead functions and variables after program reduction.