collect_lib_and_function_slice