Framing problem with recursive reads-clause #4056
Labels
incompleteness
Things that Dafny should be able to prove, but can't
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: verifier
Translation from Dafny to Boogie (translator)
Dafny version
4.1.0
Code to produce this issue
Command to run and resulting output
What happened?
In versions prior to 3.13.0 this code was verified by Dafny, but since that version Dafny complains on the
P
class that implements the trait. It is not straightforward code but it should work. Each call toReprFamily(n)
readsReprFamily(n-1)
, untilReprFamily(0)
where it reads{}
, so it is well-founded recursion. In fact, Dafny accepts the code of the trait, but not the code of the class that implements that trait with exactly the same specification.I've noticed that in version 3.13.0 a pull request was accepted that changes the checking of traits: #3479. Maybe it has something to do with this problem.
What type of operating system are you experiencing the problem on?
Linux
The text was updated successfully, but these errors were encountered: