- Added a global attack id, starting at one. Currently only shown in

XML and Dot output. For Dot, it is included in the label. For XML, it
  is an added attribute of the 'attack' tag.
This commit is contained in:
ccremers
2005-06-07 13:40:56 +00:00
parent 22a0d2adfb
commit 1331f5e7a3
5 changed files with 10 additions and 1 deletions

View File

@@ -1239,6 +1239,7 @@ violateClaim (const System sys, int length, int claimev, Termlist reqt)
flag = 1;
/* Count the violations */
sys->attackid++;
sys->failed = statesIncrease (sys->failed);
clinfo = sys->traceEvent[claimev]->claiminfo;
clinfo->failed = statesIncrease (clinfo->failed); // note: for modelchecking secrecy, this can lead to more fails (at further events in branches of the tree) than claim encounters