Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / test / src / kind_fmcad08 / misc / two_counters.lus @ 22fe1c93

History | View | Annotate | Download (474 Bytes)

1 22fe1c93 ploc
-- a simple boolean ant int counter
2
3
node greycounter (x:bool) returns (out:bool);
4
var a,b:bool;
5
let
6
  a = false -> not pre(b);
7
  b = false -> pre(a);
8
  out = a and b;
9
tel
10
11
node intloopcounter (x:bool) returns (out:bool);
12
var time: int;
13
let
14
  time = 0 -> if pre(time) = 3 then 0
15
            else pre time + 1;
16
  out = (time = 2);
17
tel
18
19
20
node top (x:bool) returns (OK:bool);
21
var b,d:bool;
22
let
23
  b = greycounter(x);
24
  d = intloopcounter(x);
25
  OK = b = d;
26
  --%PROPERTY OK;
27
tel