Skip to content

IDE shows "Verified", but input contains a resolution error #1678

Open
@cpitclaudel

Description

@cpitclaudel

The following example confuses the IDE:

function f(x: nat) : nat

method test() {
  assert forall x: nat {:trigger false} :: f(x) == f(x);
}

It says verification succeeded, but the CLI says this instead:

"c:/Apps/dafny-3.3/Dafny.exe" "/compile:0" "c:/Users/cpitcla/wip/difftests/inconsistent.dfy"
c:/Users/cpitcla/wip/difftests/inconsistent.dfy(4,9): Error: trigger must mention all quantified variables, but does not mention: x#1
c:/Users/cpitcla/wip/difftests/inconsistent.dfy(4,9): Error: trigger must mention all quantified variables, but does not mention: x#1
2 name resolution errors detected in C:\Users\cpitcla\AppData\Local\Temp\inconsistent__module.bpl

*** Encountered internal translation error - re-running Boogie to get better debug information

C:\Users\cpitcla\AppData\Local\Temp\inconsistent__module.bpl(2871,6): Error: trigger must mention all quantified variables, but does not mention: x#1
C:\Users\cpitcla\AppData\Local\Temp\inconsistent__module.bpl(2875,6): Error: trigger must mention all quantified variables, but does not mention: x#1
2 name resolution errors detected in C:\Users\cpitcla\AppData\Local\Temp\inconsistent__module.bpl

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: good-first-issueGood first issuesduring 1: program developmentBad error message or documentation; IDE bug; crash compiling invalid programkind: bugCrashes, unsoundness, incorrect output, etc. If possible, add a `part:` labelpart: language serverSupport for LSP in Dafny (server part; client is in ide-vscode repo)priority: not yetWill reconsider working on this when we're looking for work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions