summaryrefslogtreecommitdiff
path: root/Test/test0/WhereParsing1.bpl
blob: 402071bf04d3b3f09b7a93f4e023d1d3849b5118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const x: int;

function R(int) returns (bool);
function Even(int) returns (bool);

var y: int where R(y);
var g: int where g == 12;

procedure P(x: int where x > 0) returns (y: int where y < 0);
  requires x < 100;
  modifies g;
  ensures -100 < y;

function f(a: int, b: int where b < 0)  // error: where not allowed among function parameters
    returns (bool);