- Moved the attack path display logic to output.c completely.

- Adjusting output slightly.
This commit is contained in:
ccremers 2004-07-13 12:19:03 +00:00
parent 6fa0f3904d
commit 72be9a6441
3 changed files with 9 additions and 3 deletions

View File

@ -1043,8 +1043,7 @@ violateClaim (const System sys, int length, int claimev, Termlist reqt)
/* mark the path in the state graph? */ /* mark the path in the state graph? */
if (sys->switchStatespace) if (sys->switchStatespace)
{ {
graphNodePath (sys,length,"shape=parallelogram,color=red"); graphPath (sys, length);
graphEdgePath (sys,length-1,"color=red");
} }
/* Copy the current trace to the buffer, if the new one is shorter than the previous one. */ /* Copy the current trace to the buffer, if the new one is shorter than the previous one. */

View File

@ -572,7 +572,7 @@ void graphNode (const System sys)
printf ("#%i\"", sys->traceRun[index]); printf ("#%i\"", sys->traceRun[index]);
if (rd->type == CLAIM) if (rd->type == CLAIM)
{ {
printf (",color=green"); printf (",shape=house,color=green");
} }
} }
/* a choose? */ /* a choose? */
@ -620,3 +620,9 @@ void graphEdgePath (const System sys, const int length, const char* edgepar)
i++; i++;
} }
} }
void graphPath (const System sys, int length)
{
graphNodePath (sys,length,"shape=parallelogram,style=bold,color=red");
graphEdgePath (sys,length-1,"style=bold,color=red");
}

View File

@ -12,5 +12,6 @@ void graphNodePath (const System sys, const int length, const char*
nodepar); nodepar);
void graphEdgePath (const System sys, const int length, const char* void graphEdgePath (const System sys, const int length, const char*
edgepar); edgepar);
void graphPath (const System sys, int length);
#endif #endif