- 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user