diff options
author | 0biha <unknown> | 2014-12-25 20:40:59 +0100 |
---|---|---|
committer | 0biha <unknown> | 2014-12-25 20:40:59 +0100 |
commit | ee15dec6e7cdca7897543c0c3f2a2b01ec6e90fd (patch) | |
tree | 004888b6b5a3b36870877f7d571a107c31746250 /Source/Core/AbsyCmd.cs | |
parent | 2b47e4493d08c11163fdce388d9313e035e4a12a (diff) |
Replaced properties Lhss_NRO and Rhss_NRO by methods SetLhs and SetRhs.
Diffstat (limited to 'Source/Core/AbsyCmd.cs')
-rw-r--r-- | Source/Core/AbsyCmd.cs | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/Source/Core/AbsyCmd.cs b/Source/Core/AbsyCmd.cs index ed079a58..ae9a56d4 100644 --- a/Source/Core/AbsyCmd.cs +++ b/Source/Core/AbsyCmd.cs @@ -1283,14 +1283,12 @@ namespace Microsoft.Boogie { }
}
- internal IList<AssignLhs/*!*/>/*!*/ Lhss_NRO
+ internal void SetLhs(int index, AssignLhs lhs)
{
- get
- {
- Contract.Ensures(cce.NonNullElements(Contract.Result<IList<AssignLhs>>()));
- Contract.Ensures(!Contract.Result<IList<AssignLhs>>().IsReadOnly);
- return this._lhss;
- }
+ Contract.Requires(0 <= index && index < this.Lhss.Count);
+ Contract.Requires(lhs != null);
+ Contract.Ensures(this.Lhss[index] == lhs);
+ this._lhss[index] = lhs;
} private List<Expr/*!*/>/*!*/ _rhss;
@@ -1307,14 +1305,12 @@ namespace Microsoft.Boogie { }
}
- internal IList<Expr/*!*/>/*!*/ Rhss_NRO
+ internal void SetRhs(int index, Expr rhs)
{
- get
- {
- Contract.Ensures(cce.NonNullElements(Contract.Result<IList<Expr>>()));
- Contract.Ensures(!Contract.Result<IList<Expr>>().IsReadOnly);
- return this._rhss;
- }
+ Contract.Requires(0 <= index && index < this.Rhss.Count);
+ Contract.Requires(rhs != null);
+ Contract.Ensures(this.Rhss[index] == rhs);
+ this._rhss[index] = rhs;
}
[ContractInvariantMethod]
|