- Improved semistate printing.
This commit is contained in:
parent
74851e0393
commit
68b2aa16e7
@ -367,14 +367,18 @@ void
|
|||||||
printSemiState ()
|
printSemiState ()
|
||||||
{
|
{
|
||||||
int run;
|
int run;
|
||||||
|
int open;
|
||||||
|
|
||||||
|
indentPrint ();
|
||||||
|
eprintf ("!! --=[ Semistate ]=--\n");
|
||||||
|
open = 0;
|
||||||
for (run = 0; run < sys->maxruns; run++)
|
for (run = 0; run < sys->maxruns; run++)
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
Roledef rd;
|
Roledef rd;
|
||||||
|
|
||||||
indentPrint ();
|
indentPrint ();
|
||||||
eprintf ("[ Run %i, ", run);
|
eprintf ("!! [ Run %i, ", run);
|
||||||
termPrint (sys->runs[run].role->nameterm);
|
termPrint (sys->runs[run].role->nameterm);
|
||||||
eprintf (" ]\n");
|
eprintf (" ]\n");
|
||||||
|
|
||||||
@ -383,13 +387,17 @@ printSemiState ()
|
|||||||
while (index < sys->runs[run].length)
|
while (index < sys->runs[run].length)
|
||||||
{
|
{
|
||||||
indentPrint ();
|
indentPrint ();
|
||||||
eprintf ("\\ %i ", index);
|
eprintf ("!! %i ", index);
|
||||||
roledefPrint (rd);
|
roledefPrint (rd);
|
||||||
eprintf ("\n");
|
eprintf ("\n");
|
||||||
|
if (isGoal (rd) && !isBound (rd))
|
||||||
|
open++;
|
||||||
index++;
|
index++;
|
||||||
rd = rd->next;
|
rd = rd->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
indentPrint ();
|
||||||
|
eprintf ("!! - open: %i -\n", open);
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user