Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No more intermediate display of assertion when {:vcs_split_on_every_assert} #3820

Open
MikaelMayer opened this issue Mar 29, 2023 · 0 comments
Labels
during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)

Comments

@MikaelMayer
Copy link
Member

Dafny version

4.0.0

Code to produce this issue

function Fib(n: int): int {
  if n <= 10 then n else Fib(n-5) + Fib(n-10)
}

function Fib2(n: int): int {
  if n <= 10 then n else Fib2(n-5) + Fib2(n-10)
}

method {:vcs_split_on_every_assert} DisplayIntermediateResults() {
  assert Fib(2245) != 1;
  assert Fib(2245) != 1;
  assert Fib(2246) != 1;
  assert Fib(2247) != 1;
  assert Fib(2247) != 1;
  assert Fib(2248) != 1;
  assert Fib(2249) != 1;
  assert Fib(2250) != 1;
  assert Fib2(2245) != 1;
  assert Fib2(2245) != 1;
  assert Fib2(2246) != 1;
  assert Fib2(2247) != 1;
  assert Fib2(2247) != 1;
  assert Fib2(2248) != 1;
  assert Fib2(2249) != 1;
  assert Fib2(2250) != 1;
}

Command to run and resulting output

Juste paste this in VSCode

What happened?

Normally verifications results are supposed to highlight in the gutter one by one, or at most 8 by 8 because I have 8 cores on my machine. However, the gutter icons are published only at once when the method finishes verifying.
Every assertion is still on its own batch, but it's a pity I don't know about assertions that finish verifying before. It impedes my productivity.

What type of operating system are you experiencing the problem on?

Windows

@MikaelMayer MikaelMayer added kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo) labels Mar 29, 2023
@keyboardDrummer keyboardDrummer added the during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)
Projects
None yet
Development

No branches or pull requests

2 participants