summaryrefslogtreecommitdiff
path: root/Test/test20/Coercions.bpl
blob: 0ad114a6e4d040f77068e7aafd247268980c9f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %boogie -noVerify "%s" > "%t"
// RUN: %diff "%s.expect" "%t"


type C, D, E _;

const x:int;
const c:C;
const d:D;

axiom (x:int > 0);
axiom (x:int < 0);
axiom (x:E <a>[a]int < 0);   // impossible coercion

axiom (c:D == d);            // impossible coercion

axiom (15:D == d);           // impossible coercion
axiom (15:E int == d);       // impossible coercion
axiom ((18*15):int == 0);