futhark-0.16.3: An optimising compiler for a functional, array-oriented language.

removeDeadFunctions prog removes the functions that are unreachable from the main function from the program.