## lustrec / test / src / kind_fmcad08 / misc / durationThm_1_e7_217_e2_352.lus @ 0cbf0839

History | View | Annotate | Download (505 Bytes)

1 | |
---|---|

2 |
node Sofar( X : bool ) returns ( Sofar : bool ); |

3 |
let |

4 |
Sofar = X -> X or pre Sofar; |

5 |
tel |

6 |
node Age (p: bool) returns (age_of_p: int); |

7 |
let |

8 |
age_of_p = 0 -> if pre(p) then pre(age_of_p) -1+ 1 else 0; |

9 |
tel |

10 |
node top (ik, im: int; p, q, r : bool) returns (OK: bool); |

11 |
var k,m : int; |

12 |
env : bool; |

13 |
let |

14 |
k = ik -> pre k; |

15 |
m = im -> pre m; |

16 |
env = Sofar((k>=1 and m>=1) and (Age(p)>=k => q) and (Age(q)>=m => r)); |

17 |
OK = env => (true -> ( (Age(p)>=k+m) => r )); |

18 |
--%MAIN; |

19 |
--%PROPERTY OK=true; |

20 |
tel |