# Functions
AllFunctions finds and returns the set of functions potentially needed by program prog, as determined by a simple linker-style reachability algorithm starting from the members and method-sets of each package.
AllPackages creates an SSA program for a set of packages plus all their dependencies.
BuildPackage builds an SSA program with IR for a single package.
CreateProgram returns a new program in SSA form, given a program loaded from source.
MainPackages returns the subset of the specified packages named "main" that define a main function.
Packages creates an SSA program for a set of packages.
Switches examines the control-flow graph of fn and returns the set of inferred value and type switches.