You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat dfyconfig.toml
includes = ["Test.dfy"]
[options]
disable-nonlinear-arithmetic = true
$ cat Test.dfy
lemmaTest(a: real, b: real)
requires b != 0.0
ensures a / b == 1.0 / b * a
{}
Command to run and resulting output
$ dafny verify dfyconfig.toml
Test.dfy(4,0): Error: a postcondition could not be proved on this return path
|
4 | {}
| ^
Test.dfy(3,10): Related location: this is the postcondition that could not be proved
|
3 | ensures a / b == 1.0 / b * a
| ^^^^^^^^^^^^^^^^^^^^
Dafny program verifier finished with 1 verified, 1 error
What happened?
dafny verify correctly complains because nonlinear arithmetic is disabled. But in VS Code, the lemma verifies. It seems that the language server ignores the option --disable-nonlinear-arithmetic in the project file.
What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered:
fzaiser
added
the
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
label
Oct 20, 2023
Fixes#4703
### Description
Enable the language server to use the options
`disable-nonlinear-arithmetic` and the Z3 executable path, when they are
specified in the project file
### How has this been tested?
A XUnit test has been added for `disable-nonlinear-arithmetic`
<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Fixes#4703
### Description
Enable the language server to use the options
`disable-nonlinear-arithmetic` and the Z3 executable path, when they are
specified in the project file
### How has this been tested?
A XUnit test has been added for `disable-nonlinear-arithmetic`
<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Dafny version
4.3.0
Code to produce this issue
Command to run and resulting output
What happened?
dafny verify
correctly complains because nonlinear arithmetic is disabled. But in VS Code, the lemma verifies. It seems that the language server ignores the option--disable-nonlinear-arithmetic
in the project file.What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: