diff options
author | Rustan Leino <unknown> | 2013-03-06 15:09:04 -0800 |
---|---|---|
committer | Rustan Leino <unknown> | 2013-03-06 15:09:04 -0800 |
commit | 172554c51fad4092f2b4e52a921ad0e86fa67ca6 (patch) | |
tree | cc3c3430f1a379255f9c4990b26df1c21e06bd38 /Source/Dafny/RefinementTransformer.cs | |
parent | d584ab2b4240b58cd4ef59e53b970a05d8d13f79 (diff) |
Renamed "parallel" statement to "forall" statement, and made the parentheses around the bound variables optional.
Diffstat (limited to 'Source/Dafny/RefinementTransformer.cs')
-rw-r--r-- | Source/Dafny/RefinementTransformer.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Dafny/RefinementTransformer.cs b/Source/Dafny/RefinementTransformer.cs index a49b3b42..f92620fe 100644 --- a/Source/Dafny/RefinementTransformer.cs +++ b/Source/Dafny/RefinementTransformer.cs @@ -1313,9 +1313,9 @@ namespace Microsoft.Dafny });
} else if (s is CallStmt) {
reporter.Error(s.Tok, "cannot have call statement");
- } else if (s is ParallelStmt) {
- if (((ParallelStmt)s).Kind == ParallelStmt.ParBodyKind.Assign) // allow Proof and Call (as neither touch any existing state)
- reporter.Error(s.Tok, "cannot have parallel statement");
+ } else if (s is ForallStmt) {
+ if (((ForallStmt)s).Kind == ForallStmt.ParBodyKind.Assign) // allow Proof and Call (as neither touch any existing state)
+ reporter.Error(s.Tok, "cannot have forall statement");
} else {
if (s is WhileStmt || s is AlternativeLoopStmt) {
loopLevels++;
|