summaryrefslogtreecommitdiff
path: root/Source/Dafny/Resolver.cs
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2013-03-27 13:22:57 -0700
committerGravatar Rustan Leino <leino@microsoft.com>2013-03-27 13:22:57 -0700
commit5f05e3a1c194dcda48115d7b6a1c5777bd2d5287 (patch)
treed691bcf9fd999446918e8967622c0f008462bab7 /Source/Dafny/Resolver.cs
parenta6278d436300dff101c5503547c9e5e6553c61d6 (diff)
Replaced SuperSetBoundedPool by SubSetBoundedPool, which is much more useful in compiling assign-such-that statements
Added run-time support for printing sets, multisets, maps, and sequences
Diffstat (limited to 'Source/Dafny/Resolver.cs')
-rw-r--r--Source/Dafny/Resolver.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs
index 1188fa94..c70c039d 100644
--- a/Source/Dafny/Resolver.cs
+++ b/Source/Dafny/Resolver.cs
@@ -6344,7 +6344,7 @@ namespace Microsoft.Dafny
/// If "returnAllBounds" is false, then:
/// -- at most one BoundedPool per variable is returned
/// -- every IntBoundedPool returned has both a lower and an upper bound
- /// -- no SuperSetBoundedPool is returned
+ /// -- no SubSetBoundedPool is returned
/// If "returnAllBounds" is true, then:
/// -- a variable may give rise to several BoundedPool's
/// -- IntBoundedPool bounds may have just one component
@@ -6410,8 +6410,8 @@ namespace Microsoft.Dafny
}
break;
case BinaryExpr.ResolvedOpcode.Subset:
- if (returnAllBounds && whereIsBv == 1) {
- bounds.Add(new ComprehensionExpr.SuperSetBoundedPool(e0));
+ if (returnAllBounds && whereIsBv == 0) {
+ bounds.Add(new ComprehensionExpr.SubSetBoundedPool(e1));
foundBoundsForBv = true;
}
break;
@@ -6444,7 +6444,7 @@ namespace Microsoft.Dafny
if (!returnAllBounds) goto CHECK_NEXT_BOUND_VARIABLE;
} else if (returnAllBounds && bv.Type is SetType) {
var otherOperand = whereIsBv == 0 ? e1 : e0;
- bounds.Add(new ComprehensionExpr.SuperSetBoundedPool(otherOperand));
+ bounds.Add(new ComprehensionExpr.SubSetBoundedPool(otherOperand));
foundBoundsForBv = true;
}
break;