string Edge::ToGraphViz(long unsigned int rank,vector<string> loops, long unsigned int write,GraphPrinterOptions op){ ostringstream result; result<< op.sigma<<"( "+GetVariableName() +GetIndex()->Generate_C_Code()+") = "<<PrintOperation(write,GetSigma()->GetIndex(),op); result<<"\\n IF \\n "<<GetCondition()->Generate_C_Code(); return result.str(); }
void PrintItem(struct Item* item) { if (item == NULL) return; if (item->type == PREDICAT) PrintPredicat((Predicat*)item->obj); if (item->type == OPERATION) PrintOperation((Predicat*)item->obj); PrintItem(item->next); }