summaryrefslogtreecommitdiff
path: root/Source/Dafny/Compiler.cs
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-17 09:37:47 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-17 09:37:47 -0700
commitdb9821ac440cdfa817049ab83c2e94f861ff429d (patch)
treecfbb6ed0d116f764474ba4e07c4b406fa6916e4a /Source/Dafny/Compiler.cs
parenta07b43ac03b38d4af575d1a1df48339ad228751a (diff)
Review preceding commit with Rustan
Diffstat (limited to 'Source/Dafny/Compiler.cs')
-rw-r--r--Source/Dafny/Compiler.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Dafny/Compiler.cs b/Source/Dafny/Compiler.cs
index d19d2bed..c969ac1f 100644
--- a/Source/Dafny/Compiler.cs
+++ b/Source/Dafny/Compiler.cs
@@ -2817,10 +2817,7 @@ namespace Microsoft.Dafny {
} else if (expr is QuantifierExpr) {
var e = (QuantifierExpr)expr;
- if (e.SplitQuantifier != null) { //TODO CLEMENT TRIGGERS: Do we compile a split quantifier in its original form, or in its split form?
- TrExpr(e.SplitQuantifierExpression);
- return;
- }
+ // 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;
@@ -2864,7 +2861,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(")");
}