- 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 ();
|
||||
eprintf ("!! --=[ Semistate ]=--\n");
|
||||
indentPrint ();
|
||||
eprintf ("!!\n");
|
||||
indentPrint ();
|
||||
eprintf ("!! Trace length: %i\n", get_trace_length ());
|
||||
open = 0;
|
||||
for (run = 0; run < sys->maxruns; run++)
|
||||
{
|
||||
@ -1347,7 +1351,8 @@ prune_bounds ()
|
||||
{
|
||||
indentPrint ();
|
||||
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;
|
||||
}
|
||||
@ -1459,19 +1464,11 @@ property_check ()
|
||||
if (sys->output == PROOF)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user