with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   function Id (X : Integer) return Integer is (X);
   subtype Int is Integer range 1 .. 20;
   type A1 is array (Int range <>) of Integer;
   type A2 is array (Int range <>, Int range <>) of Integer;
   subtype C1 is A1 (1 .. 5);
   subtype C2 is A2 (1 .. 2, 1 .. 2);
   subtype N1 is A1 (2 .. 1);
   X7 : constant A1 (1 .. 10) := (1 .. 10 => 7);
   X8 : constant C1 := (1 .. 5 => 8);
   X9 : constant A2 (1 .. 3, 1 .. 2) := (1 .. 3 => (1 .. 2 => 9));
   X10 : constant C2 := (1 .. 2 => (1 .. 2 => 10));
   X11 : constant A1 (Id (1) .. Id (5)) := (others => 1);
   X12 : constant A1 (3 .. 2) := (others => 0);
   function Image (B : Boolean) return String is (if B then "T" else "F");
begin
   pragma Assert (X7 not in C1 and X8 in C1 and X9 not in C2 and X10 in C2);
   pragma Assert (X11 in C1 and X12 not in N1);
   Put_Line (Image (X7 in C1) & Image (X8 in C1) & Image (X9 in C2) & Image (X10 in C2) & Image (X11 in C1) & Image (X12 in N1) & Image (X12 in A1));
end Main;
