blob: bcd98feb0317064c0ca1cd46ef54d07e303df2c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// RUN: %boogie -noVerify "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
const {:Incorrect pux0 ++ F0(pux1)} pux0: int;
function {:Incorrect F0(pux0 < 0) + pux1} F0(int) returns (int);
axiom {:Incorrect F0(pux0 == pux1)} true;
var {:Incorrect pux0 && pux1} pux1: int;
procedure {:Incorrect !(pux0 - pux1)} P();
implementation {:Incorrect pux0 ==> pux1} P()
{
}
// ------ and here are various correct things
const {:Correct hux0 + F1(hux1)} hux0: int;
function {:Correct F1(hux0) + hux1} F1(int) returns (int);
axiom {:Correct F1(hux0 + hux1)} true;
var {:Correct hux0*hux1} hux1: int;
procedure {:Correct hux0 - hux1} H();
implementation {:Correct hux0 + hux1} {:AlsoCorrect "hello"} H()
{
}
type any;
|