| 1 | module BoolRel; |
| 2 | (* A = or # of two BOOLs beside and or or binds first, as written; the |
| 3 | others, in parentheses or of integers, are quiet. *) |
| 4 | var a, b, c: BOOL; i, n: INT; |
| 5 | proc main*; |
| 6 | begin |
| 7 | a := (b = c) and a; |
| 8 | a := a and (b # c); |
| 9 | a := (b # c) or (a = b) and c; |
| 10 | a := (i < n) and (i # 0); |
| 11 | a := i < n and i # 0; |
| 12 | a := b = c; |
| 13 | a := a # b and c; |
| 14 | a := a or b = c; |
| 15 | end; |
| 16 | end BoolRel. |