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