- 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

@@ -1427,7 +1427,7 @@ dotSemiState ()
// Open graph
attack_number++;
eprintf ("digraph semiState%i {\n", attack_number);
eprintf ("\tlabel = \"Protocol ");
eprintf ("\tlabel = \"[Id %i] Protocol ", sys->attackid);
p = (Protocol) sys->current_claim->protocol;
termPrint (p->nameterm);
eprintf (", role ");
@@ -3066,9 +3066,13 @@ add_claim_specifics (const Claimlist cl, const Roledef rd)
}
//! Count a false claim
/**
* Counts global attacks as well as claim instances.
*/
void
count_false ()
{
sys->attackid++;
sys->current_claim->failed = statesIncrease (sys->current_claim->failed);
}