diff options
author | chrishaw <unknown> | 2015-02-26 23:11:11 -0800 |
---|---|---|
committer | chrishaw <unknown> | 2015-02-26 23:11:11 -0800 |
commit | bcb9f9e189461258d9b50aee0565afe3b8c59e5c (patch) | |
tree | 85914af749444540ef9c6d4b9421c244c3a38116 /Source/Dafny/Printer.cs | |
parent | f9d6586f72af31d7654bf4590f47ac1292348941 (diff) |
Add imap type, which is like map but may have have infinite size
Diffstat (limited to 'Source/Dafny/Printer.cs')
-rw-r--r-- | Source/Dafny/Printer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs index 80fc1d1d..41b40bfc 100644 --- a/Source/Dafny/Printer.cs +++ b/Source/Dafny/Printer.cs @@ -1763,7 +1763,7 @@ namespace Microsoft.Dafny { var e = (MapComprehension)expr;
bool parensNeeded = !isRightmost;
if (parensNeeded) { wr.Write("("); }
- wr.Write("map ");
+ wr.Write(e.Finite ? "map " : "imap ");
string sep = "";
foreach (BoundVar bv in e.BoundVars) {
wr.Write("{0}{1}", sep, bv.DisplayName);
|