- Moved the attack path display logic to output.c completely.
- Adjusting output slightly.
This commit is contained in:
parent
6fa0f3904d
commit
72be9a6441
@ -1043,8 +1043,7 @@ violateClaim (const System sys, int length, int claimev, Termlist reqt)
|
||||
/* mark the path in the state graph? */
|
||||
if (sys->switchStatespace)
|
||||
{
|
||||
graphNodePath (sys,length,"shape=parallelogram,color=red");
|
||||
graphEdgePath (sys,length-1,"color=red");
|
||||
graphPath (sys, length);
|
||||
}
|
||||
|
||||
/* Copy the current trace to the buffer, if the new one is shorter than the previous one. */
|
||||
|
@ -572,7 +572,7 @@ void graphNode (const System sys)
|
||||
printf ("#%i\"", sys->traceRun[index]);
|
||||
if (rd->type == CLAIM)
|
||||
{
|
||||
printf (",color=green");
|
||||
printf (",shape=house,color=green");
|
||||
}
|
||||
}
|
||||
/* a choose? */
|
||||
@ -620,3 +620,9 @@ void graphEdgePath (const System sys, const int length, const char* edgepar)
|
||||
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");
|
||||
}
|
||||
|
@ -12,5 +12,6 @@ void graphNodePath (const System sys, const int length, const char*
|
||||
nodepar);
|
||||
void graphEdgePath (const System sys, const int length, const char*
|
||||
edgepar);
|
||||
void graphPath (const System sys, int length);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user