node_t *node = (node_t*)g_slist_nth_data(list1, lpc); node_t *new_node = node_copy(node); node_t *other_node = (node_t*)find_list_node(list2, node->id); 
node = (node_t*)g_slist_nth_data(list1, lpc); new_node = node_copy(node); other_node = (node_t*)find_list_node(list2, node->id); 
node_list_and(GSListPtr list1, GSListPtr list2){	GSListPtr result = NULL;	int lpc = 0;	cl_log(LOG_DEBUG, "Len 1: %d, len 2: %d", g_slist_length(list1), g_slist_length(list2));	for(lpc = 0; lpc < g_slist_length(list1); lpc++) {		node_t *node = (node_t*)g_slist_nth_data(list1, lpc);		node_t *new_node = node_copy(node);		node_t *other_node = (node_t*)find_list_node(list2, node->id);		if(node == NULL || other_node == NULL) {			continue;						// merge node weights		} else if(node->weight < 0 || other_node->weight < 0) {			new_node->weight = -1;		} else {			new_node->weight = 				node->weight + other_node->weight;			if(new_node->weight != 0) {				new_node->weight = new_node->weight /2.0;			}		}		result = g_slist_append(result, new_node);    	}   	return result;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/946ef4800a0c49296930f7274c6dca036bbdc4d1/pengine.c/buggy/crm/pengine/pengine.c