diff options
author | Rustan Leino <unknown> | 2015-08-20 11:18:46 -0700 |
---|---|---|
committer | Rustan Leino <unknown> | 2015-08-20 11:18:46 -0700 |
commit | eb146ddaa09123f57b963fd85845c944a73a23cb (patch) | |
tree | 5f91f8ee712839bbd8394f25a516f22052a7a53f /Source/Dafny/Compiler.cs | |
parent | 69c320b225825eb2adf2ae899f88588a10fd27fe (diff) | |
parent | e5f9a4cbf74f7794ad13b2a5bd831fd54c20629c (diff) |
Merge
Diffstat (limited to 'Source/Dafny/Compiler.cs')
-rw-r--r-- | Source/Dafny/Compiler.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Dafny/Compiler.cs b/Source/Dafny/Compiler.cs index 619638ac..f2cc5d23 100644 --- a/Source/Dafny/Compiler.cs +++ b/Source/Dafny/Compiler.cs @@ -2810,6 +2810,9 @@ namespace Microsoft.Dafny { } else if (expr is QuantifierExpr) {
var e = (QuantifierExpr)expr;
+
+ // Compilation does not check whether a quantifier was split.
+
Contract.Assert(e.Bounds != null); // for non-ghost quantifiers, the resolver would have insisted on finding bounds
var n = e.BoundVars.Count;
Contract.Assert(e.Bounds.Count == n);
@@ -2852,7 +2855,7 @@ namespace Microsoft.Dafny { wr.Write("{0}, ", expr is ForallExpr ? "true" : "false");
wr.Write("@{0} => ", bv.CompileName);
}
- TrExpr(e.LogicalBody());
+ TrExpr(e.LogicalBody(true));
for (int i = 0; i < n; i++) {
wr.Write(")");
}
|