- Fixed termlist printing.

This commit is contained in:
ccremers 2004-07-29 11:15:07 +00:00
parent 75ecbf4346
commit b22667a791
2 changed files with 5 additions and 7 deletions

View File

@ -919,6 +919,7 @@ int compute_roleeventmax (const System sys)
void
runInstancePrint (const System sys, const int run)
{
termPrint (sys->runs[run].role->nameterm);
termlistPrint (sys->runs[run].agents);
}
@ -931,9 +932,9 @@ scenarioPrint (const System sys)
for (run = 0; run < sys->maxruns; run++)
{
runInstancePrint (sys, run);
if (run < sys->maxruns - 2)
if (run < sys->maxruns - 1)
{
printf (", ");
printf ("\t");
}
}
}

View File

@ -3,11 +3,8 @@
#include "symbol.h"
#define GLOBAL 1
#define VARIABLE 2
#define LEAF 3 // type <= LEAF means it's a leaf, nkay?
#define ENCRYPT 4
#define TUPLE 5
// type <= LEAF means it's a leaf, nkay?
enum termtypes { GLOBAL, VARIABLE, LEAF, ENCRYPT, TUPLE };
//! The most basic datatype in the modelchecker.
/**