summaryrefslogtreecommitdiff
path: root/Test/wishlist/exists-b-exists-not-b.dfy
blob: 2573b2f25eda354644358c6a55c3a09ad65af399 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

// It would be great if Dafny was able to verify the following statements;
// otherwise, trigger splitting prevents `exists b :: b || not b` from verifying

method M() {
  assert exists b : bool {:nowarn} :: b; // WISH
  assert exists b : bool {:nowarn} :: !b; // WISH
}