- Fixed the broken '--no-intruder' switch.
This commit is contained in:
parent
c79c9eb73f
commit
a50245734d
@ -2853,12 +2853,27 @@ prune_bounds ()
|
||||
if (enoughAttacks (sys))
|
||||
return 1;
|
||||
|
||||
// Limit on intruder events count
|
||||
if (switches.maxIntruderActions < INT_MAX || !(switches.intruder))
|
||||
// Pruning involving the number of intruder actions
|
||||
{
|
||||
// Only check if actually used
|
||||
if (!(switches.intruder)
|
||||
|| countIntruderActions () > switches.maxIntruderActions)
|
||||
// Count intruder actions
|
||||
int actioncount;
|
||||
|
||||
actioncount = countIntruderActions ();
|
||||
|
||||
// Limit intruder actions in any case
|
||||
if (!(switches.intruder) && actioncount > 0)
|
||||
{
|
||||
if (switches.output == PROOF)
|
||||
{
|
||||
indentPrint ();
|
||||
eprintf
|
||||
("Pruned: no intruder allowed.\n", switches.maxIntruderActions);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Limit on intruder events count
|
||||
if (actioncount > switches.maxIntruderActions)
|
||||
{
|
||||
if (switches.output == PROOF)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user