diff options
author | Unknown <leino@LEINO6.redmond.corp.microsoft.com> | 2012-06-22 19:20:31 -0700 |
---|---|---|
committer | Unknown <leino@LEINO6.redmond.corp.microsoft.com> | 2012-06-22 19:20:31 -0700 |
commit | 314227d7d874e5dd4f626e9f2abc1f40b37fde8e (patch) | |
tree | 2634a49dbf2b24f7ca961fcdfddcbf9c5bf5c4f6 /Source/Dafny | |
parent | 8c1bc1c2dd2d10303a40673c2bcf0168b16064d1 (diff) | |
parent | 46c72b91193f73b157721f82ac77110f23863941 (diff) |
Merge
Diffstat (limited to 'Source/Dafny')
-rw-r--r-- | Source/Dafny/DafnyAst.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Dafny/DafnyAst.cs b/Source/Dafny/DafnyAst.cs index 269c8069..d43eea1f 100644 --- a/Source/Dafny/DafnyAst.cs +++ b/Source/Dafny/DafnyAst.cs @@ -1216,7 +1216,7 @@ namespace Microsoft.Dafny { return name + nm.Substring(i);
}
} else {
- string nxt = nm.Substring(i, j);
+ string nxt = nm.Substring(i, j - i);
name = name == null ? nxt : name + nxt;
switch (nm[j]) {
case '\'': name += "_k"; break;
@@ -2103,13 +2103,13 @@ namespace Microsoft.Dafny { [ContractInvariantMethod]
void ObjectInvariant() {
Contract.Invariant(Thn != null);
- Contract.Invariant(Els == null || Els is BlockStmt || Els is IfStmt);
+ Contract.Invariant(Els == null || Els is BlockStmt || Els is IfStmt || Els is SkeletonStatement);
}
public IfStmt(IToken tok, Expression guard, BlockStmt thn, Statement els)
: base(tok) {
Contract.Requires(tok != null);
Contract.Requires(thn != null);
- Contract.Requires(els == null || els is BlockStmt || els is IfStmt);
+ Contract.Requires(els == null || els is BlockStmt || els is IfStmt || els is SkeletonStatement);
this.Guard = guard;
this.Thn = thn;
this.Els = els;
|