pdebug(			      "Choose a color from %d possibilities", 
pdebug("Choose a color from %d possibilities", 
choose_color(resource_t *lh_resource, GSListPtr candidate_colors){	int lpc = 0;	if(lh_resource->runnable == FALSE) {		lh_resource->color = no_color;		lh_resource->provisional = FALSE;	} else {		GSListPtr sorted_colors = g_slist_sort(candidate_colors,						       sort_color_weight);				lh_resource->candidate_colors = sorted_colors;			pdebug(			      "Choose a color from %d possibilities",			      g_slist_length(sorted_colors));	}	if(lh_resource->provisional) {		slist_iter(			this_color, color_t,lh_resource->candidate_colors, lpc,			GSListPtr intersection = node_list_and(				this_color->details->candidate_nodes, 				lh_resource->allowed_nodes);			if(g_slist_length(intersection) != 0) {				// TODO: merge node weights				g_slist_free(this_color->details->candidate_nodes);				this_color->details->candidate_nodes = intersection;				lh_resource->color = this_color;				lh_resource->provisional = FALSE;				break;			}			);	}	return !lh_resource->provisional;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/d3931f43a8018915886a067ae267b9d966a92683/pengine.c/buggy/crm/pengine/pengine.c