- Arachne engine now respects --prune=2 (and thus the default setting)

somewhat. There is no good definition of length yet, so we don't do
  this yet.
This commit is contained in:
ccremers 2004-08-27 17:35:23 +00:00
parent 21b2c27320
commit f90f16fe93

View File

@ -1126,7 +1126,8 @@ bind_goal (const Binding b)
indentPrint ();
eprintf ("* Because ");
termPrint (b->term);
eprintf (" is never sent from a regular run (STILL NEEDS LEMMA!), we only intruder construct it.\n");
eprintf
(" is never sent from a regular run (STILL NEEDS LEMMA!), we only intruder construct it.\n");
}
know_only = 1;
}
@ -1335,7 +1336,8 @@ prune_claim_specifics ()
if (sys->output == PROOF)
{
indentPrint ();
eprintf ("Pruned: niagree holds in this part of the proof tree.\n");
eprintf
("Pruned: niagree holds in this part of the proof tree.\n");
}
return 1;
}
@ -1348,7 +1350,8 @@ prune_claim_specifics ()
if (sys->output == PROOF)
{
indentPrint ();
eprintf ("Pruned: nisynch holds in this part of the proof tree.\n");
eprintf
("Pruned: nisynch holds in this part of the proof tree.\n");
}
return 1;
}
@ -1409,6 +1412,14 @@ property_check ()
count_false ();
if (sys->output == ATTACK)
printSemiState ();
/**
* Prune this?
*/
if (sys->prune == 2)
{
/* default: if any attack is found, abort the procedure */
flag = 0;
}
return flag;
}
@ -1450,7 +1461,8 @@ iterate ()
eprintf ("All goals are now bound.\n");
}
sys->claims = statesIncrease (sys->claims);
current_claim->count = statesIncrease (current_claim->count);
current_claim->count =
statesIncrease (current_claim->count);
flag = property_check ();
}
else