diff options
author | wuestholz <unknown> | 2015-01-09 15:49:10 +0100 |
---|---|---|
committer | wuestholz <unknown> | 2015-01-09 15:49:10 +0100 |
commit | b1d0db908bb3cfe22f6162eb7930492f3c548e01 (patch) | |
tree | 72a3d64ecbe99ef48abf1f67aafeae45e9e22323 /Source/Core/AbsyCmd.cs | |
parent | fb2b56ff6734b210315f1bb31f27552d0b0ebaa4 (diff) |
Made invariant of class 'QKeyValue' robust by:
- making field private
- exposing read-only list
- copying incoming list
- adding methods 'AddParam', 'AddParams', and 'ClearParams'
(with help from David Rohr)
Diffstat (limited to 'Source/Core/AbsyCmd.cs')
-rw-r--r-- | Source/Core/AbsyCmd.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/AbsyCmd.cs b/Source/Core/AbsyCmd.cs index 89a3d1d1..6bc41b5f 100644 --- a/Source/Core/AbsyCmd.cs +++ b/Source/Core/AbsyCmd.cs @@ -2599,7 +2599,7 @@ namespace Microsoft.Boogie { if (QKeyValue.FindBoolAttribute(e.Attributes, "candidate"))
{
assume.Attributes = new QKeyValue(Token.NoToken, "candidate", new List<object>(), assume.Attributes);
- assume.Attributes.Params.Add(this.callee);
+ assume.Attributes.AddParam(this.callee);
}
#endregion
newBlockBody.Add(assume);
|