procedure Main is
   function Sign (X : Integer) return Integer
     with Contract_Cases => (X >= 0 => Sign'Result = 1,
                             X <= 0 => Sign'Result = -1)
   is
   begin
      if X > 0 then
         return 1;
      else
         return -1;
      end if;
   end Sign;
   S : constant Integer := Sign (5);
begin
   null;
end Main;
