pub fn resolve_program(items: &mut [TopLevel])
Run the resolver on all top-level function definitions.