copy_constraint(rsc_constraint_t *constraint)
copy_constraint(rsc_to_node_t *constraint)
copy_constraint(rsc_constraint_t *constraint) {	rsc_constraint_t *copied_con =		cl_malloc(sizeof(rsc_constraint_t));	copied_con->id		 = cl_strdup(constraint->id);	copied_con->type	 = constraint->type;	copied_con->strength	 = constraint->strength;	copied_con->is_placement = constraint->is_placement;	// swap the direction	copied_con->rsc_lh = constraint->rsc_lh;	copied_con->rsc_rh = constraint->rsc_rh;	copied_con->node_list_rh = constraint->node_list_rh;	copied_con->modifier	 = constraint->modifier;	copied_con->weight	 = constraint->weight;  	return copied_con;}