------------------------------ MODULE serie4_1 ------------------------------ EXTENDS Naturals VARIABLES x, pc CONSTANTS x0, min, max ASSUME x0 \in Nat /\ min \geq x0 /\ x0 \leq max ============================================================================= \* Modification History \* Last modified Mon Nov 16 16:32:31 CET 2015 by garnier34u \* Created Mon Nov 16 08:42:28 CET 2015 by garnier34u al0l1 == /\ pc="l0" /\ 0 < x /\ pc'="l1" /\ x'=x al0l3 == /\ pc="l0" /\ ~(0 x=x0 /\ pc="l1" => 0 0 \leq x /\ x < x0 /\ pc="l3" => x=0 --------------------- (* define safety *) Q1 == x \geq 0 (* ok *) Q2 ==x \leq -6 (*ko*) Qpost == pc="l3" => x=0 (* correction partielle : ok *) Qoverflowfree == min \leq x /\ x \leq max