- More improvements to the dot output.

This commit is contained in:
ccremers 2004-08-28 12:42:11 +00:00
parent acb89922f1
commit b349b6cef2

View File

@ -669,9 +669,16 @@ dotSemiState ()
void node (const int run, const int index) void node (const int run, const int index)
{ {
if (sys->runs[run].protocol == INTRUDER) if (sys->runs[run].protocol == INTRUDER)
{
if (sys->runs[run].role == I_M)
{
eprintf ("m0");
}
else
{ {
eprintf ("i%i", run); eprintf ("i%i", run);
} }
}
else else
{ {
eprintf ("r%ii%i", run, index); eprintf ("r%ii%i", run, index);
@ -776,9 +783,15 @@ dotSemiState ()
// INTRUDER run // INTRUDER run
eprintf ("\t"); eprintf ("\t");
node (run, 0); node (run, 0);
eprintf (" [label=\""); if (sys->runs[run].role == I_M)
termPrint (sys->runs[run].role->nameterm); {
eprintf ("\"];\n"); eprintf (" [label=\"M0\"]");
}
else
{
eprintf (" [shape=point]");
}
eprintf (";\n");
} }
run++; run++;
} }