with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   function Id (X : Integer) return Integer is (X);
   type Arr21 is array (Integer range -1 .. 1, Id (-1) .. Id (1)) of Integer;
   type Arr22 is array (Id (-1) .. Id (1), Id (-1) .. Id (1)) of Integer;
   V1 : constant Arr21 := ((1, 1, 1), others => (-1 .. 1 => Id (2)));
   V2 : constant Arr22 := (-1 => (1, 1, 1), 0 .. 1 => (others => Id (2)));
   V3 : constant Arr22 := ((1, 1, 1), (1, 1, 1), (1, others => Id (2)));
   type Rec is record
      C : Arr21 := (-1 => (others => 1), 0 .. 1 => (others => 2));
   end record;
   R : constant Rec := (others => <>);
begin
   pragma Assert (V1 (0, 0) = 2 and V2 (-1, 1) = 1 and V3 (1, 1) = 2 and R.C (0, 0) = 2);
   Put_Line (Integer'Image (V1 (-1, 1)) & Integer'Image (V1 (1, -1)) & Integer'Image (V2 (0, 1)) & Integer'Image (V3 (1, -1)) & Integer'Image (V3 (1, 0)) & Integer'Image (R.C (-1, 0)) & Integer'Image (R.C (1, 1)));
end Main;
