summaryrefslogtreecommitdiff
path: root/Test/snapshots/Snapshots39.v1.bpl
blob: 09850bfc1dd2def55a0215ffc017df387c71c926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
procedure {:checksum "-1"} Callee();

implementation {:id "Callee"} {:checksum "2"} Callee()
{
    var r: int;

    call r := Sum(42);
    assert r != 0;
    assert r == (42 * 43) div 2;
}

procedure {:checksum "1"} Sum(n: int) returns (r: int);
  requires 0 <= n;
  ensures n <= r;