- More informative claim displays.

This commit is contained in:
ccremers 2004-07-29 12:04:53 +00:00
parent d181365e3e
commit d2a639b314

View File

@ -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)
{
if (cl_scan->failed == STATES0)
{ {
/* mark exit code */ /* mark exit code */
exitcode = 2; 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.