Project

General

Profile

« Previous | Next » 

Revision 2d37a1e1

Added by Pierre-Loïc Garoche over 6 years ago

Renaminig lustre contracts from ensures to guarantees
Will require the latest cocospec branch to compile (before it is integrated in the unstable/master branches)

View differences:

regression_tests/lustre_files/success/kind_fmcad08/memory2/MOESI_all_e3_2032_e3_2788.lus
48 48
   if(etat_mo4) then if(garde_mo4) then 0 else pre owned_mo else 
49 49
   pre owned_mo;
50 50
tel
51
--@ ensures OK;
52 51
node top( init_invalid_mo : int;
53 52
           etat_mo1, etat_mo2, etat_mo3, etat_mo4 : bool )
54 53
returns ( OK : bool );
54
--@ contract guarantees OK;
55 55
    var modified_mo, exclusive_mo, shared_mo, invalid_mo, owned_mo: int;
56 56
        erreur_mo : bool;
57 57
        env : bool;

Also available in: Unified diff