--  Flow forms SPARK takes (D199): a null record read without an initialiser (SPARK-26),
--  `Depends => null` (SPARK-18), a borrow by `X'Access` as an access actual that ends with
--  the call (SPARK-05), and an `in out` parameter changed only through `'Access` of a part,
--  which is no warning that it could be `in`.
with Ada.Text_IO;
procedure Main is
   type Empty is null record;
   type Cells is array (1 .. 3) of aliased Integer;
   E : Empty;
   X : aliased Integer := 0;
   C : Cells := (1, 2, 3);

   procedure Nop with Global => null, Depends => null is
   begin
      null;
   end Nop;

   procedure Set (P : not null access Integer) with Global => null is
   begin
      P.all := 5;
   end Set;

   procedure Bump (V : in out Cells) with Global => null is
   begin
      Set (V (V'First)'Access);
   end Bump;
begin
   Nop;
   Set (X'Access);
   Bump (C);
   Ada.Text_IO.Put_Line (Boolean'Image (E = (null record)) & Integer'Image (X) & Integer'Image (C (1)));
end Main;
