Open anymeyer opened 2 weeks ago
My comment on the last line of "What happened?" is incorrect. The program also fails on mac 4.7.0.
The code
var b:nat := *;
assert b>=0;
also causes an assertion violation on Linux and the Mac.
It appears to be the verify option on the command line that is causing the problem.
This looks like the same problem as #3742.
Dafny version
4.7.0
Code to produce this issue
Command to run and resulting output
What happened?
Linux's Dafny 3.7.1, 4.6.0 and 4.7.0 all work correctly and generate a warning that the array cannot be null in the assert statement. But 4.7 now also incorrectly generates an assertion violation.
The program works correctly on the mac's 4.7.0, curiously.
What type of operating system are you experiencing the problem on?
Linux