crm_debug_4("processing fencing and shutdown cases");
crm_debug_5("processing fencing and shutdown cases");
do_calculations(crm_data_t * cib_object){	GListPtr resources = NULL;	GListPtr nodes = NULL;	GListPtr placement_constraints = NULL;	GListPtr actions = NULL;	GListPtr ordering_constraints = NULL;	GListPtr stonith_list = NULL;	GListPtr shutdown_list = NULL;	GListPtr colors = NULL;	GListPtr action_sets = NULL;	crm_data_t * graph = NULL;/*	pe_debug_on(); */		crm_debug_4("unpack");		  	stage0(cib_object,	       &resources,	       &nodes,  &placement_constraints,	       &actions,  &ordering_constraints,	       &stonith_list, &shutdown_list);		crm_debug_4("apply placement constraints");	stage1(placement_constraints, nodes, resources);		crm_debug_4("color resources");	stage2(resources, nodes, &colors);	/* unused */	stage3(colors);		crm_debug_4("assign nodes to colors");	stage4(colors);			crm_debug_4("creating actions and internal ording constraints");	stage5(resources, &ordering_constraints);	crm_debug_4("processing fencing and shutdown cases");	stage6(&actions, &ordering_constraints, nodes, resources);		crm_debug_4("applying ordering constraints");	stage7(resources, actions, ordering_constraints);	crm_debug("=#=#=#=#= Summary =#=#=#=#=");	crm_debug("========= All Actions =========");	slist_iter(action, action_t, actions, lpc,		   print_action("\t", action, TRUE);		);		crm_debug("\t========= Set %d (Un-runnable) =========", -1);	crm_action_debug_2(		slist_iter(action, action_t, actions, lpc,			   if(action->optional == FALSE			      && action->runnable == FALSE) {				   log_action(LOG_DEBUG_2, "\t", action, TRUE);			   }			)		);		crm_debug("========= Stonith List =========");	crm_action_debug_3(		slist_iter(node, node_t, stonith_list, lpc,			   print_node(NULL, node, FALSE);			)		);		crm_debug("========= Shutdown List =========");	crm_action_debug_3(		slist_iter(node, node_t, shutdown_list, lpc,			   print_node(NULL, node, FALSE);			)		);		crm_debug_4("creating transition graph");	stage8(resources, actions, &graph);#if 0	cleanup_calculations(		resources, nodes, placement_constraints, actions,		ordering_constraints, stonith_list, shutdown_list,		colors, action_sets);	free_xml(cib_object);	free_xml(graph);	crm_mem_stats(mem_stats);	crm_err("Exiting");	exit(1);#endif		cleanup_calculations(		resources, nodes, placement_constraints, actions,		ordering_constraints, stonith_list, shutdown_list,		colors, action_sets);		return graph;}