summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-06-08 18:33:57 +0000
committerGravatar rustanleino <unknown>2010-06-08 18:33:57 +0000
commit5696ff18488fac981db0310fc92f7d8fd1a8dfae (patch)
treec2c2f3db8fe91de0d5d41a6aa23902e7c070884a
parent24ceefe6fac22e6361b1dc73b4bc878b1ba9aad5 (diff)
Dafny: For functions with an empty decreases clause that use the reads clause instead, do not include wildcards.
-rw-r--r--Source/Dafny/Translator.ssc7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Dafny/Translator.ssc b/Source/Dafny/Translator.ssc
index 092ee146..35e8cdc1 100644
--- a/Source/Dafny/Translator.ssc
+++ b/Source/Dafny/Translator.ssc
@@ -1435,7 +1435,12 @@ namespace Microsoft.Dafny {
List<Expression!>! ProjectOutSpecificFields(List<FrameExpression!>! fexprs) {
List<Expression!> exprs = new List<Expression!>();
foreach (FrameExpression fe in fexprs) {
- exprs.Add(fe.E);
+ if (fe.E is WildcardExpr) {
+ // drop wildcards altogether
+ } else {
+ // keep only fe.E, drop any fe.Field designation
+ exprs.Add(fe.E);
+ }
}
return exprs;
}