- Fixed an empty balloon which might confuse people, in the dot output.

This commit is contained in:
ccremers 2006-07-02 13:10:46 +00:00
parent 0184b6277b
commit 4ec62ddad9

View File

@ -921,41 +921,48 @@ regularModifiedLabel (Binding b)
{ {
Roledef rdfrom; Roledef rdfrom;
Roledef rdto; Roledef rdto;
int unknown;
rdfrom = eventRoledef (sys, b->run_from, b->ev_from); rdfrom = eventRoledef (sys, b->run_from, b->ev_from);
rdto = eventRoledef (sys, b->run_to, b->ev_to); rdto = eventRoledef (sys, b->run_to, b->ev_to);
unknown = true;
// First up: compare messages contents' // First up: compare messages contents': what was sent, what is needed
if (!isTermEqual (rdfrom->message, b->term)) if (!isTermEqual (rdfrom->message, b->term))
{ {
// What is sent is not equal to what is bound // What is sent is not equal to what is bound
if (termInTerm (rdfrom->message, b->term)) if (termInTerm (rdfrom->message, b->term))
{ {
// Interm: simple select // Interm: simple select
unknown = false;
eprintf ("select "); eprintf ("select ");
termPrintRemap (b->term); termPrintRemap (b->term);
eprintf ("\\n"); eprintf ("\\n");
} }
else
{
// I'm not quite sure
eprintf ("modify\\n");
}
} }
// Second: agent things // Second: agent things
if (!isTermEqual (rdfrom->from, rdto->from)) if (!isTermEqual (rdfrom->from, rdto->from))
{ {
unknown = false;
eprintf ("fake sender "); eprintf ("fake sender ");
termPrintRemap (rdto->from); termPrintRemap (rdto->from);
eprintf ("\\n"); eprintf ("\\n");
} }
if (!isTermEqual (rdfrom->to, rdto->to)) if (!isTermEqual (rdfrom->to, rdto->to))
{ {
unknown = false;
eprintf ("redirect to "); eprintf ("redirect to ");
termPrintRemap (rdto->to); termPrintRemap (rdto->to);
eprintf ("\\n"); eprintf ("\\n");
} }
// Any leftovers for which I don't have a good name yet.
if (unknown)
{
// I'm not quite sure, we call it 'combine' for now. TODO
eprintf ("combine\\n");
}
} }
//! //!