- 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? */
|
/* 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. */
|
||||||
|
@ -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");
|
||||||
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user