Proof for Unreachability requires assert false
#6114
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
assert false
#6114
Dafny version
4.10.0
Code to produce this issue
Command to run and resulting output
What happened?
Because the preconditions of method
A
are unsatisfiable, all statements afterA(m)
are unreachable.In
F1
, dafny does not detects this.In
F2
, with an extraassert false;
, dafny correctly identifies that the other statements are not reachable.It is surprising that the statement
assert false;
is the missing link for this proof.What type of operating system are you experiencing the problem on?
Linux, Mac
The text was updated successfully, but these errors were encountered: