Surprising invalid counterexample when using if true
#5922
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: counterexamples
Counterexample generation
Dafny version
4.9.0
Code to produce this issue
Command to run and resulting output
What happened?
In both methods,
assert m < 0
does not hold.In method
F
, the counterexample is invalid: it should be-1 == u
instead of0 == u
.When removing
if true
, the counterexample becomes valid, as seen in the output forF1
.What type of operating system are you experiencing the problem on?
Linux, Mac
The text was updated successfully, but these errors were encountered: