--  Verada predefined library: System.Storage_Elements (Ada RM 13.7.1): addresses as integers.
package System.Storage_Elements
  with Pure
is
   type Storage_Offset is range -(2 ** 63) .. 2 ** 63 - 1;

   subtype Storage_Count is Storage_Offset range 0 .. Storage_Offset'Last;

   type Storage_Element is mod 2 ** Storage_Unit;

   type Integer_Address is mod Memory_Size;

   function To_Address (Value : Integer_Address) return Address is (Address (Value))
     with Global => null;

   function To_Integer (Value : Address) return Integer_Address is (Integer_Address (Value))
     with Global => null;
end System.Storage_Elements;
