- More informative claim displays.
This commit is contained in:
parent
d181365e3e
commit
d2a639b314
45
src/main.c
45
src/main.c
@ -493,12 +493,20 @@ main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* check for no claims */
|
/* check if there is a claim type that was never reached */
|
||||||
if (sys->failed == STATES0)
|
Claimlist cl_scan;
|
||||||
|
|
||||||
|
cl_scan = sys->claimlist;
|
||||||
|
while (cl_scan != NULL)
|
||||||
{
|
{
|
||||||
/* mark exit code */
|
if (cl_scan->failed == STATES0)
|
||||||
exitcode = 2;
|
{
|
||||||
|
/* mark exit code */
|
||||||
|
exitcode = 2;
|
||||||
|
}
|
||||||
|
cl_scan = cl_scan->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* latex closeup */
|
/* latex closeup */
|
||||||
@ -546,6 +554,9 @@ exit:
|
|||||||
void
|
void
|
||||||
timersPrint (const System sys)
|
timersPrint (const System sys)
|
||||||
{
|
{
|
||||||
|
Claimlist cl_scan;
|
||||||
|
int anyclaims;
|
||||||
|
|
||||||
// #define NOTIMERS
|
// #define NOTIMERS
|
||||||
|
|
||||||
/* display stats, header first */
|
/* display stats, header first */
|
||||||
@ -601,6 +612,32 @@ timersPrint (const System sys)
|
|||||||
|
|
||||||
fprintf (stderr, "\n");
|
fprintf (stderr, "\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* print also individual claims */
|
||||||
|
cl_scan = sys->claimlist;
|
||||||
|
anyclaims = 0;
|
||||||
|
while (cl_scan != NULL)
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* for now, we don't print the actual claim label.
|
||||||
|
*@todo When termPrint can also go to stderr, fix this.
|
||||||
|
*/
|
||||||
|
if (!anyclaims)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "Claim\tCount\tFailed\n");
|
||||||
|
anyclaims = 1;
|
||||||
|
}
|
||||||
|
fprintf (stderr, "-\t");
|
||||||
|
statesFormat (stderr, cl_scan->count);
|
||||||
|
fprintf (stderr, "\t");
|
||||||
|
statesFormat (stderr, cl_scan->failed);
|
||||||
|
fprintf (stderr, "\n");
|
||||||
|
cl_scan = cl_scan->next;
|
||||||
|
}
|
||||||
|
if (!anyclaims)
|
||||||
|
{
|
||||||
|
warning ("No claims in system.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Analyse the model by incremental runs.
|
//! Analyse the model by incremental runs.
|
||||||
|
Loading…
Reference in New Issue
Block a user