summaryrefslogtreecommitdiff
path: root/Test/test21/InterestingExamples5.bpl
blob: b6c48b6304f557218224e229e49d3bb9d38fa02d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


type C a;

function f<a>(C a) returns (int);

//axiom (forall<a> x:C a :: {f(x)} (exists y:C a :: f(y) == 42));

function g<a>(C a) returns (C a);
axiom (forall<a> x:C a :: f(g(x)) == 42);

procedure P() returns () {
  var z : C int;
  assume g(z) == z;
  assert (exists x : C int :: f(x) == 42);
}