summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar leino <unknown>2014-07-03 15:01:26 -0700
committerGravatar leino <unknown>2014-07-03 15:01:26 -0700
commit07d9fdefae99507fea05a87b2887b50e83adb615 (patch)
treef40085a78ebbfef6a7d12823061e9751283ee8f5
parentde98b2a18c84913d15bc5cfa38eb0a6bedfb2343 (diff)
Translate CanCallAssumption with the same fuel value as in the body of the function definition axiom (which prevents some matching loops)
-rw-r--r--Source/Dafny/Translator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Translator.cs b/Source/Dafny/Translator.cs
index 3eb06ebc..b0cdb3ae 100644
--- a/Source/Dafny/Translator.cs
+++ b/Source/Dafny/Translator.cs
@@ -1854,7 +1854,7 @@ namespace Microsoft.Dafny {
bodyWithSubst = PrefixSubstitution(pp, bodyWithSubst);
}
var etranBody = layer == null ? etran : etran.LimitedFunctions(f, new Bpl.IdentifierExpr(f.tok, layer));
- meat = BplAnd(CanCallAssumption(bodyWithSubst, etran),
+ meat = BplAnd(CanCallAssumption(bodyWithSubst, etranBody),
Bpl.Expr.Eq(funcAppl, etranBody.TrExpr(bodyWithSubst)));
}
QKeyValue kv = null;