Skip to content

Instantly share code, notes, and snippets.

@thoughtpolice
Created January 3, 2023 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoughtpolice/df01ea4fb712ff4804ff92b2f9d01599 to your computer and use it in GitHub Desktop.
Save thoughtpolice/df01ea4fb712ff4804ff92b2f9d01599 to your computer and use it in GitHub Desktop.
with Ada.Command_Line;
with Ada.Text_IO;
procedure Hello_World is
You : constant String :=
-- Change to strict inequality below to prove
(if Ada.Command_Line.Argument_Count >= 0 then
Ada.Command_Line.Argument (1)
else "世界");
begin
Ada.Text_IO.Put ("Hello, ");
Ada.Text_IO.Put_Line (You);
end Hello_World;
pragma Profile(GNAT_Extended_Ravenscar);
pragma Partition_Elaboration_Policy(Sequential);
pragma SPARK_Mode (On);
pragma Warnings (Off, "no Global contract available");
pragma Warnings (Off, "subprogram * has no effect");
project Main is
package Compiler is
for Default_Switches ("Ada") use ("-gnatwa");
end Compiler;
package Prove is
for Proof_Switches ("Ada") use ("--level=2", "-j0");
end Prove;
package Builder is
for Global_Configuration_Pragmas use "main.adc";
end Builder;
end Main;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment