if(child == NULL && incarnation_data->ordered && last != NULL) { crm_debug_4("Ordered version (last node)"); /* global stop before first child stop */ custom_action_order( incarnation_data->self, stop_key(incarnation_data->self), NULL, last, stop_key(last), NULL, pe_ordering_manditory, data_set);  } else if(child == NULL) { return; 
if(incarnation_data->ordered) { type = pe_ordering_manditory; }  if(child == NULL) { if(incarnation_data->ordered && last != NULL) { crm_debug_4("Ordered version (last node)"); /* global stop before first child stop */ custom_action_order( incarnation_data->self, stop_key(incarnation_data->self), NULL, last, stop_key(last), NULL, pe_ordering_manditory, data_set); } 
child_stopping_constraints(	incarnation_variant_data_t *incarnation_data, enum pe_ordering type,	resource_t *child, resource_t *last, pe_working_set_t *data_set){	if(child == NULL && incarnation_data->ordered && last != NULL) {		crm_debug_4("Ordered version (last node)");		/* global stop before first child stop */		custom_action_order(			incarnation_data->self, stop_key(incarnation_data->self), NULL,			last, stop_key(last), NULL,			pe_ordering_manditory, data_set);			} else if(child == NULL) {		return;			} else if(incarnation_data->ordered && last != NULL) {		crm_debug_4("Ordered version");		/* child/child relative stop */		custom_action_order(child, stop_key(child), NULL,				    last, stop_key(last), NULL,				    type, data_set);	} else if(incarnation_data->ordered) {		crm_debug_4("Ordered version (1st node)");		/* first child stop before global stopped */		custom_action_order(			child, stop_key(child), NULL,			incarnation_data->self, stopped_key(incarnation_data->self), NULL,			type, data_set);	} else {		crm_debug_4("Un-ordered version");		/* child stop before global stopped */		custom_action_order(			child, stop_key(child), NULL,			incarnation_data->self, stopped_key(incarnation_data->self), NULL,			type, data_set);                        		/* global stop before child stop */		custom_action_order(			incarnation_data->self, stop_key(incarnation_data->self), NULL,			child, stop_key(child), NULL,			pe_ordering_manditory, data_set);	}}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/e19a83a3de7c7b6e0544736b255b0cca6ef0db9d/incarnation.c/buggy/crm/pengine/incarnation.c