summaryrefslogtreecommitdiff
path: root/Dafny
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
commitb33ec85f6a0bf52f767dc98d9d51e3eab8d51226 (patch)
tree2e1cbb76d6e885456095cc6d9905cfe4403e2732 /Dafny
parent2e8f477b81b1c5c6d3c3f600abac3874548a9e4d (diff)
Dafny: For functions with an empty decreases clause that use the reads clause instead, do not include wildcards.
Diffstat (limited to 'Dafny')
-rw-r--r--Dafny/Translator.ssc7
1 files changed, 6 insertions, 1 deletions
diff --git a/Dafny/Translator.ssc b/Dafny/Translator.ssc
index 092ee146..35e8cdc1 100644
--- a/Dafny/Translator.ssc
+++ b/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;
}