diff options
author | qadeer <qadeer@microsoft.com> | 2011-05-16 13:45:15 -0700 |
---|---|---|
committer | qadeer <qadeer@microsoft.com> | 2011-05-16 13:45:15 -0700 |
commit | fe6be535d3d792ef47d0aee23d04fa971d490654 (patch) | |
tree | 4be29111eafa70e223503626c71a21baa13e927b /Source/Dafny/Dafny.atg | |
parent | ddebd84b961b6ac942e4e97380ac1ff874e97386 (diff) | |
parent | f448d52dce21c0ed55369af51522d130cb1737b8 (diff) |
Merge
Diffstat (limited to 'Source/Dafny/Dafny.atg')
-rw-r--r-- | Source/Dafny/Dafny.atg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Dafny/Dafny.atg b/Source/Dafny/Dafny.atg index 39c4c29d..0ce1835f 100644 --- a/Source/Dafny/Dafny.atg +++ b/Source/Dafny/Dafny.atg @@ -1361,6 +1361,7 @@ QuantifierGuts<out Expression/*!*/ q> List<BoundVar/*!*/> bvars = new List<BoundVar/*!*/>();
Attributes attrs = null;
Triggers trigs = null;
+ Expression range = null;
Expression/*!*/ body;
.)
( Forall (. x = t; univ = true; .)
@@ -1372,12 +1373,15 @@ QuantifierGuts<out Expression/*!*/ q> IdentTypeOptional<out bv> (. bvars.Add(bv); parseVarScope.Push(bv.Name, bv.Name); .)
}
{ AttributeOrTrigger<ref attrs, ref trigs> }
+ [ "|"
+ Expression<out range>
+ ]
QSep
Expression<out body>
(. if (univ) {
- q = new ForallExpr(x, bvars, body, trigs, attrs);
+ q = new ForallExpr(x, bvars, range, body, trigs, attrs);
} else {
- q = new ExistsExpr(x, bvars, body, trigs, attrs);
+ q = new ExistsExpr(x, bvars, range, body, trigs, attrs);
}
parseVarScope.PopMarker();
.)
|