diff options
author | Ally Donaldson <unknown> | 2013-07-22 18:05:27 +0100 |
---|---|---|
committer | Ally Donaldson <unknown> | 2013-07-22 18:05:27 +0100 |
commit | afaeb081ffcc1c258db6eb7c34ba0b04c493919a (patch) | |
tree | d0b07c3e3082f323e17523a3e695dc18ee61062d /Source/Core/AbsyQuant.cs | |
parent | 858d43ff93a0cc9bc30ce55906499fb9157124c9 (diff) |
More refactoring towards replacing PureCollections.Sequence with List
Diffstat (limited to 'Source/Core/AbsyQuant.cs')
-rw-r--r-- | Source/Core/AbsyQuant.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/AbsyQuant.cs b/Source/Core/AbsyQuant.cs index 6e719e60..a6382eb4 100644 --- a/Source/Core/AbsyQuant.cs +++ b/Source/Core/AbsyQuant.cs @@ -329,8 +329,8 @@ namespace Microsoft.Boogie { [ContractInvariantMethod]
void ObjectInvariant() {
Contract.Invariant(Tr != null);
- Contract.Invariant(1 <= Tr.Length);
- Contract.Invariant(Pos || Tr.Length == 1);
+ Contract.Invariant(1 <= Tr.Count);
+ Contract.Invariant(Pos || Tr.Count == 1);
}
public Trigger Next;
@@ -339,16 +339,16 @@ namespace Microsoft.Boogie { : this(tok, pos, tr, null) {
Contract.Requires(tr != null);
Contract.Requires(tok != null);
- Contract.Requires(1 <= tr.Length);
- Contract.Requires(pos || tr.Length == 1);
+ Contract.Requires(1 <= tr.Count);
+ Contract.Requires(pos || tr.Count == 1);
}
public Trigger(IToken/*!*/ tok, bool pos, ExprSeq/*!*/ tr, Trigger next)
: base(tok) {
Contract.Requires(tok != null);
Contract.Requires(tr != null);
- Contract.Requires(1 <= tr.Length);
- Contract.Requires(pos || tr.Length == 1);
+ Contract.Requires(1 <= tr.Count);
+ Contract.Requires(pos || tr.Count == 1);
this.Pos = pos;
this.Tr = tr;
this.Next = next;
@@ -357,7 +357,7 @@ namespace Microsoft.Boogie { public void Emit(TokenTextWriter stream) {
Contract.Requires(stream != null);
stream.SetToken(this);
- Contract.Assert(this.Tr.Length >= 1);
+ Contract.Assert(this.Tr.Count >= 1);
string/*!*/ sep = Pos ? "{ " : "{:nopats ";
foreach (Expr/*!*/ e in this.Tr) {
Contract.Assert(e != null);
|