src/HOL/SPARK/Manual/document/loop_invariant.ads
author wenzelm
Mon, 16 Oct 2017 14:32:09 +0200
changeset 66873 9953ae603a23
parent 45044 2fae15f8984d
permissions -rw-r--r--
provide theory timing information, similar to command timing but always considered relevant;

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;