raz / test / err / BoolRel.raz

16 lines · 407 B · raw · history · last change a48b818d

1module 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. *)
4var a, b, c: BOOL; i, n: INT;
5proc main*;
6begin
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;
15end;
16end BoolRel.