Example #1
0
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();
}
Example #2
0
File: io.c Project: MrAlone/logic
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);
}