- Semistate printing now reports trace length.
- Pruning was wrong, so the shortest attack wasn't always found. Now it is.
This commit is contained in:
parent
198afa135e
commit
17ad6de97b
@ -673,6 +673,10 @@ printSemiState ()
|
|||||||
|
|
||||||
indentPrint ();
|
indentPrint ();
|
||||||
eprintf ("!! --=[ Semistate ]=--\n");
|
eprintf ("!! --=[ Semistate ]=--\n");
|
||||||
|
indentPrint ();
|
||||||
|
eprintf ("!!\n");
|
||||||
|
indentPrint ();
|
||||||
|
eprintf ("!! Trace length: %i\n", get_trace_length ());
|
||||||
open = 0;
|
open = 0;
|
||||||
for (run = 0; run < sys->maxruns; run++)
|
for (run = 0; run < sys->maxruns; run++)
|
||||||
{
|
{
|
||||||
@ -1347,7 +1351,8 @@ prune_bounds ()
|
|||||||
{
|
{
|
||||||
indentPrint ();
|
indentPrint ();
|
||||||
eprintf
|
eprintf
|
||||||
("Pruned: we already know an attack of length %i.\n", attack_length);
|
("Pruned: we already know an attack of length %i.\n",
|
||||||
|
attack_length);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -1459,19 +1464,11 @@ property_check ()
|
|||||||
if (sys->output == PROOF)
|
if (sys->output == PROOF)
|
||||||
{
|
{
|
||||||
indentPrint ();
|
indentPrint ();
|
||||||
eprintf ("New shortest attack found with trace length %i.\n", attack_length);
|
eprintf ("New shortest attack found with trace length %i.\n",
|
||||||
|
attack_length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Prune this?
|
|
||||||
*/
|
|
||||||
if (sys->prune > 0)
|
|
||||||
{
|
|
||||||
/* default: if any attack is found, abort the procedure */
|
|
||||||
flag = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return flag;
|
return flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user