NullReferenceException during counterexample generation #2026
Labels
crash
Dafny crashes on this input, or generates malformed code that can not be executed
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: documentation
Dafny's reference manual, tutorial, and other materials
On Dafny with /Version output
Dafny 3.5.0.40314
:Consider the following Dafny program:
Dafny correctly indicates that our loop invariants are incorrect (as the implementation swapped the cases). The VS Code plugin is able to show counterexamples, but the CLI interface has a few problems:
1. Outdated documentation string for the
/extractCounterexample
flag:The CLI interface explicitly states that some additional flags need to be set.
However, the
model_compress
option is no longer known to Dafny:Crash during counterexample generation
More seriously, a null pointer exception is raised while attempting to extract a counterexample (irrespective of whether or not those unknown flags are present):
I can't figure out exactly how the VSCode plugin or the language server is driving the Dafny counterexample generator here, but since this doesn't seem to be a problem in the IDE, I guess something specific to the CLI is broken.
Thanks!
The text was updated successfully, but these errors were encountered: