src/HOL/SPARK/Manual/document/loop_invariant.ads
author wenzelm
Tue, 27 Nov 2012 19:22:36 +0100
changeset 50242 56b9c792a98b
parent 45044 2fae15f8984d
permissions -rw-r--r--
support for sub-structured identifier syntax (inactive);

package Loop_Invariant
is

   type Word32 is mod 2 ** 32;

   procedure Proc1 (A : in Natural; B : in Word32; C : out Word32);
   --# derives C from A, B;
   --# post Word32 (A) * B = C;

   procedure Proc2 (A : in Natural; B : in Word32; C : out Word32);
   --# derives C from A, B;
   --# post Word32 (A) * B = C;

end Loop_Invariant;