added check_func_stmt and process_func_stmt to semantic