--  pragma Assert's message (Ada's second argument): computed only when the assertion fails
--  (an assertion that holds leaves its message alone, here a division by zero), and the
--  failure's report carries it
with Ada.Text_IO;
procedure Main is
   Count : Integer := 3;

   function Zero return Integer is (0);
   function Label (N : Integer) return String is ("count" & Integer'Image (N));
begin
   pragma Assert (Count > 0, Integer'Image (100 / Zero));
   Ada.Text_IO.Put_Line ("first holds");
   Count := Count - 5;
   pragma Assert (Count > 0, Label (Count) & " is not positive");
   Ada.Text_IO.Put_Line ("not reached");
end Main;
