summaryrefslogtreecommitdiff
path: root/Source/Core/AbsyCmd.cs
diff options
context:
space:
mode:
authorGravatar 0biha <unknown>2014-12-25 20:40:59 +0100
committerGravatar 0biha <unknown>2014-12-25 20:40:59 +0100
commitee15dec6e7cdca7897543c0c3f2a2b01ec6e90fd (patch)
tree004888b6b5a3b36870877f7d571a107c31746250 /Source/Core/AbsyCmd.cs
parent2b47e4493d08c11163fdce388d9313e035e4a12a (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.cs24
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]