package body Counters
  with Refined_State => (State => N)
is
   N : Natural := 0;
   function Count return Natural with Refined_Global => N, Refined_Post => Count'Result = N is
   begin
      return N;
   end Count;
   procedure Bump with Refined_Global => (In_Out => N) is
   begin
      N := N + 1;
   end Bump;
   procedure Bump_Or_Fail with Refined_Global => (In_Out => N) is
   begin
      if N >= 100 then
         raise Full;
      end if;
      N := N + 1;
   end Bump_Or_Fail;
end Counters;
