content
stringlengths
23
1.05M
-- { dg-do run } -- { dg-options "-gnatp" } procedure Hyper_Flat is type Unsigned is mod 2 ** 32; x : Integer := 0; pragma Volatile (X); S : constant String := (1 .. X - 3 => 'A'); -- Hyper-flat null string begin if Unsigned'(S'Length) /= 0 then raise Program_Error; end if; end;
with AUnit.Test_Suites; package AZ3_Suite is function Suite return AUnit.Test_Suites.Access_Test_Suite; end AZ3_Suite;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com) -- // -- // This software is provided 'as-is', without any express or implied -- // warranty. -- // In no event will the authors be h...
-- bool.adb with Ada.Text_IO; use Ada.Text_IO; procedure bool is BoolVal1 : Boolean := True; BoolVal2 : Boolean := True; BoolVal3 : Boolean := False; begin Put_Line(" Bool1: " & Boolean'Image(BoolVal1 and BoolVal2)); Put_Line(" Bool2: " & Boolean'Image(BoolVal2 and BoolVal3)); Put_Line(" Bool3: " & Boolean'Imag...
----------------------------------------------------------------------- -- import_country -- Read a Country csv file to update the database -- Copyright (C) 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License")...
-- Score PIXAL le 05/10/2020 à 17:27 : 100% with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Tours_De_Hanoi is procedure Afficher_Deplacement(Debut: in Character; Fin: in Character) is begin Put_Line(Debut & " -> " & Fin); end Afficher_Depl...
----------------------------------------------------------------------- -- mail-parsers -- Parse mail content -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in ...
----------------------------------------------------------------------- -- gprofiler-events - Profiler Events Description -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fil...
----------------------------------------------------------------------- -- asf-components-widgets -- ASF Widget Components -- Copyright (C) 2013-2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
with Ada.Characters.Latin_1; with Ada.Command_Line; with Ada.Streams.Stream_IO; with Ada.Text_IO; with XML.Streams; procedure read_rss is package Latin_1 renames Ada.Characters.Latin_1; procedure Read_RSS (Reader : in out XML.Reader) is type RSS_Version_Type is (RSS_1, RSS_2); RSS_Version : RSS_Version_Type; beg...
pragma SPARK_Mode; -- @summary -- Controls the little yellow LED on the robot labeled LED 13 -- -- @description -- Use this interface to turn on and off the LED 13 located near the back -- of the robot on the right side package Zumo_LED is Initd : Boolean := False; -- Initialization sequence. Muxes pin...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Yaml.Events.Context; package body Yaml.Transformator.Annotation.Vars is procedure Put (Object : in out Instance; E : Event) is begin Object.State.all (Object, E); end Put; fun...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Port_Specification; package PortScan.Tests is package PSP renames Port_Specification; -- check-plist target verifies manifest -- It takes into account the manifest for all subpackages (for a give...
-- { dg-do link } with Array23_Pkg1; with Array23_Pkg2; procedure Array23 is A : Array23_Pkg1.Arr; begin A(Array23_Pkg2.One)(1) := 0; end;
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Calendar.Formatting; package body Tabula.Calendar.Time_IO is function Image (Date : Ada.Calendar.Time) return String is begin return Ada.Calendar.Formatting.Image (Date, Time_Zone => Time_Offset); end Image; function Value (Image : String) return Ada.C...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- $Id: StringM.mi,v 1.5 1993/08/18 15:06:51 grosch rel $ -- $Log: StringM.mi,v $ -- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994 with StringM, Strings, Text_Io; use StringM, Strings, Text_Io; procedure StringMD is procedure do_it is s : tString; r : tStringRef; begin Put ("enter strings, one per l...
-- Time-stamp: <01 oct 2012 15:40 queinnec@enseeiht.fr> with LR.Tasks; use LR.Tasks; package LR.Affic is type Proc_Etat is (Redacteur_Demande, Redacteur_Ecrit, Redacteur_Rien, Lecteur_Demande, Lecteur_Lit, Lecteur_Rien); procedure Init (Nomstrategie: String; Nblect : Natural; Nbred: Natural); -- ...
package body Problem_2 is function Solution_1( Max : Int128 ) return Int128 is N_1_Term : Int128 := 1; N_Term : Int128 := 1; Value : Int128 := 0; Sum : Int128 := 0; begin loop Value := N_1_Term + N_Term; exit when Value > Max; if Val...
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Test_Deviation is type Sample is record N : Natural := 0; Mean : Float := 0.0; Squares : Float := 0.0; end record; procedure Add (Data ...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) with STM32.GPIO; use STM32.GPIO; with STM32.Device; with STM32.Board; with HIL.Config; -- @summary -- Target-specific mapping for HIL of G...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with Str; package body Text_Format is Numbers : constant String := "0123456789ABCDEF"; Max_Digits : constant := 10; -- enough for 2 ** 32 function From_Natural (N : Natural; Base : ...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
with Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; with Ada.Float_Text_IO; Use Ada.Float_Text_IO; with Ada.Text_IO; Use Ada.Text_IO; with inventory_list; Use inventory_list; with stats; Use stats; package body player is empty : inventoryItem; Procedure clearCharacter(player : in out player_type) is ...
with Interfaces; use Interfaces; package Bit_Vectors_Prove with SPARK_Mode, Pure, Ghost is pragma Annotate (GNATProve, External_Axiomatization); function Nth (X : Unsigned_64; Pos : Natural) return Boolean with Import; function Nth (X : Unsigned_8; Pos : Natural) return Boolean with Import; function Nth_...
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.RTC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CONFIG_SCALE_Field is HAL....
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Ada.Long_Long_Integer_Text_IO; with PrimeInstances; package body Problem_15 is package IO renames Ada.Text_IO; procedure Solve is package Positive_Primes renames PrimeInstances.Positive_Primes; primes : constant Positive_Primes.Sieve := Positive_Primes.Generate_Sieve(40); ...
with box_info; use box_info; with halfbox; use halfbox; package box_parts is type box_parts_t is record -- demi boite inférieur lower_halfbox : halfbox_t; -- demi boite supérieure upper_halfbox : halfbox_t; -- demi boite interne ...
package Discr1_Pkg is Maximum_Length : Natural := 80 ; subtype String_Length is Natural range 0 .. Maximum_Length; type Variable_String (Length : String_Length := 0) is record S : String (1 .. Length); end record; type Variable_String_Array is array (Natural range <>) of Variable_String; end ...
with Device; with Memory.Container; use Memory.Container; package body Memory.Transform.EOR is function Create_EOR return EOR_Pointer is result : constant EOR_Pointer := new EOR_Type; begin return result; end Create_EOR; function Random_EOR(next : access Memory_Type'Class; ...
pragma Ada_2012; with GNAT.OS_Lib; use GNAT.OS_Lib; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Vectors; private with Interfaces; package Spawn_Manager is -- This package provides tasksafe variants of the GNAT.OS_Lib Spawn routines. Version : constant String := "1.2.2"; Default_...
-- ============================================================================ -- Atmel Microcontroller Software Support -- ============================================================================ -- Copyright (c) 2017 Atmel Corporation, -- a wholly owned subsidiary of Microchip Technology Inc. -- -- License...
package STM32.F4.SysCfg is pragma Pure; type Memory_Mapping is ( Main_Flash, System_Flash, FSMC_Bank_1, Embedded_SRAM ); for Memory_Mapping use ( Main_Flash => 2#00#, System_Flash => 2#01#, FSMC_Bank_1 => 2#10#, Embedded_SRAM => 2#11# ); type Memory_Remap_Register is record MEM_MODE: Memory_M...
-- -- -- package GNAT.Sockets.Server Copyright (c) Dmitry A. Kazakov -- -- Interface Luebeck -- -- Winter, 2012 -- -- ...
with Interfaces; package Bit_Types is pragma Preelaborate; type Word is new Interfaces.Unsigned_32; -- for shift/rotate type Half_Word is new Interfaces.Unsigned_16; -- for shift/rotate type Byte is new Interfaces.Unsigned_8; -- for shift/rotate type Unsigned_8 is mod 2**8 with Size =>...
with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation.Navigation; use Rejuvenation.Navigation; with Rewriters_Sequence; use Rewriters_Sequence; package Rewriters_Sequence_Utils is function Rewrite (RS : Rewriters_Se...
package body Renaming8_Pkg2 is function F return Rec is begin return (E => (others => True)); end; end Renaming8_Pkg2;
pragma License (Unrestricted); -- Ada 2012 package Ada.Dispatching.Non_Preemptive is pragma Preelaborate; -- procedure Yield_To_Higher; procedure Yield_To_Same_Or_Higher renames Yield; end Ada.Dispatching.Non_Preemptive;
with System.Termination; package body System.Debug is pragma Suppress (All_Checks); function Default_Put ( S : String; Source_Location : String; Enclosing_Entity : String) return Boolean is L_Length : constant Natural := Source_Location'Length; E_Length : constant Natural :...
with System; package STM32.SDRAM is procedure Initialize; function Base_Address return System.Address; function Reserve (Amount : Word; Align : Word := Standard'Maximum_Alignment) return System.Address; end STM32.SDRAM;
----------------------------------------------------------------------- -- util-encoders-hmac-sha256 -- Compute HMAC-SHA256 authentication code -- Copyright (C) 2017, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
task body Some_Task is begin loop select -- Some alternatives ... or terminate; -- We are through end select end loop; end Some_Task;
----------------------------------------------------------------------- -- asf-beans-injections -- Injection of parameters, headers, cookies in beans -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Statements; with Program.Lexical_Elements; with Program.Elements.Identifiers; with Program.Elements.Expressions;...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Test_SipHash -- a short test program for an Ada implementation of the algorithm described in -- "SipHash: a fast short-input PRF" -- by Jean-Philippe Aumasson and Daniel J. Bernstein -- Copyright (c) 2015, James Humphry - see LICENSE file for details with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use...
package body SDL.Types is -- =================================================================== -- generic -- type Data_Type is private; -- type Amount_Type is private; -- function Shift_Left ( -- Data : Data_Type; -- Amount : Amount_Type) return Data_Type; -- function Sh...
procedure Main is -- Create as many task objects as your program needs begin -- whatever logic is required in your Main procedure if some_condition then -- for each task created by the Main procedure The_task.Stop; -- end the Main procedure return; -- actually, this is not needed en...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
-- Copyright 2016-2021 Bartek thindil Jasicki -- -- This file is part of Steam Sky. -- -- Steam Sky is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (a...
package body davl is type modo is (insert_mode, remove_mode); procedure cvacio (s: out conjunto) is raiz: pnodo renames s.raiz; begin raiz := null; end cvacio; procedure consultar (s: in pnodo; k: in key; x: out item) is begin if s= null then raise no_existe; else ...
with Interfaces; use Interfaces; package Bits is function Bit_Count (Bitmap : Unsigned_32) return Natural; function Highest_One_Bit (Bitmap : Unsigned_32) return Natural; function Lowest_One_Bit (Bitmap : Unsigned_32) return Natural; function Number_Of_Leading_Zero_Bits (Bitmap : Unsigned_32) return Natur...
-- The Village of Vampire by YT, このソースコードはNYSLです with Tabula.Unlock; with Vampire.Configurations; procedure Vampire.Unlock is begin Tabula.Unlock ( Lock_Name => Configurations.Lock_Name'Access, Debug_Log_File_Name => Configurations.Debug_Log_File_Name'Access); end Vampire.Unlock;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with Generic_Rational; generic with package Rational_Numbers is new Generic_Rational (<>); package Generic_Taylor_Series is use Rational_Numbers; type Taylor_Series is array (Natural range <>) of Rational; function "+" (A : Taylor_Series) return Taylor_Series; function "-" (A : Taylor_Series) return Ta...
with montecarlo, ada.Text_IO, ada.Integer_Text_IO, opstrat, read_preflop; use montecarlo, ada.Text_IO, ada.Integer_Text_IO, opstrat, read_preflop; package body botIO is function splitLine(line : String; line_length : Integer) return T_command is word_begin : Integer := 1; word_count : Integer := 0; ...
-- C55B15A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
----------------------------------------------------------------------- -- awa-blogs -- Blogs module -- Copyright (C) 2011, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- asf-converters-numbers -- Floating point number converters -- Copyright (C) 2010, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
-- ----------------------------------------------------------------------------- -- smk, the smart make (http://lionel.draghi.free.fr/smk/) -- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licen...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package Forward_Anon is type Object is null record; function Get_Current return access Object; Current_Object : constant access Object; private One_Object : aliased Object; Current_Object : constant access Object := One_Object'Access; end;
----------------------------------------------------------------------- -- keystore-passwords-gpg -- Password protected by GPG -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
with Ada.Text_IO; use Ada.Text_IO; procedure dot_product is type vect is array(Positive range <>) of Integer; v1 : vect := (1,3,-5); v2 : vect := (4,-2,-1); function dotprod(a: vect; b: vect) return Integer is sum : Integer := 0; begin if not (a'Length=b'Length) then raise Constraint_Error; end if; for p i...
package body ACO.Log is function Build_String (Level : Log_Level; Message : String) return String is begin return "[" & Level'Img & "] " & Message; end Build_String; procedure Put (Level : in Log_Level; Message : in String) is begin if Level /= Off and ...
WITH P_StepHandler; USE P_StepHandler; WITH Ada.Strings.Unbounded.Text_IO; WITH P_StructuralTypes; USE P_StructuralTypes; WITH Ada.Sequential_IO; package P_StepHandler.OutputHandler is type OutputHandler is new T_StepHandler with private; type Ptr_OutputHandler is access OutputHandler; --- CONS...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.PORT is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------------------------ -- P...
with datos; use datos; with rotar_derecha; procedure insertar_elemento_en_pos (num, pos: in Integer; R: in out Lista_Enteros) is -- pre: la posicion de insercion sera menor o igual -- que el numero de elementos que contenga la lista +1 -- post: el elemento quedara insertado en la posicion de insercion ...
-- Module : stack_pkg.ada -- Component of : common_library -- Version : 1.2 -- Date : 11/21/86 16:32:31 -- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstack_pkg.ada -- $Source: /nosc/work/abstractions/stack/RCS/stack.bdy,v $ -- $Revision: 1.3 $ -- $Date: 85/02/01 10:19:36 $ -- $A...
----------------------------------------------------------------------- -- asf-components-core -- ASF Core Components -- Copyright (C) 2009 - 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this ...
with Ada.Text_IO; with Ada.Integer_Text_IO; package body Debug is procedure Put(Item : in String) is begin Ada.Text_IO.Put(Item); end Put; procedure Put_Line(Item : in String) is begin Ada.Text_IO.Put_Line(Item); end Put_Line; procedure Put(Item : in Integer) is begin Ada.In...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
$NetBSD: patch-src_gprlib.adb,v 1.3 2016/11/25 20:36:49 marino Exp $ Marino's modification to give Ada programs build with GPRBUILD proper -rpath support --- src/gprlib.adb.orig 2015-05-06 11:08:38 UTC +++ src/gprlib.adb @@ -393,6 +393,11 @@ procedure Gprlib is Separate_Run_Path_Options : Boolean := False; + ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- RFC4648 -- Binary data to ASCII codecs specified in RFC4648 -- Copyright (c) 2015, James Humphry - see LICENSE file for details with System.Storage_Elements; with BinToAsc, BinToAsc.Base16, BinToAsc.Base32, BinToAsc.Base64; package RFC4648 is package BToA is new BinToAsc(Bin => System.Storage_Elements.Storage...
with System.Formatting; with System.Long_Long_Integer_Types; package body System.Version_Control is subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned; -- implementation function Get_Version_String (V : Unsigned_Types.Unsigned) return Version_String is Last : Natural; Error...
------------------------------------------------------------------------------ -- Ada Web Server -- -- -- -- Copyright (C) 2005-2017, 2020, AdaCore -...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
-- C47002A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with Interfaces; use Interfaces; private with ESF; package GDB_Remote is type Packet_Kind is (Bad_Packet, Unknown_Packet, General_Query, Must_Reply_Empty, Set_Thread, Question_Halt, Read_General...
------------------------------------------------------------------------ -- Copyright (C) 2010-2020 by Heisenbug Ltd. (github@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under -- the terms of the Do What The Fuck You Want To Public License, -- Version 2, as published by Sam Hocev...
package body Brackelib.Stacks is procedure Push (Self: in out Stack; Item : T) is begin Self.Container.Append (Item); end Push; procedure Clear (Self: in out Stack) is begin Self.Container.Clear; end Clear; function Top(Self: in Stack) return T is begin if Is_Empty (Self) then raise...
procedure integer_image is c : character; j : integer := 3; k : constant integer := 3; begin for i in 1 .. 3 loop c := integer'image(k)(2); -- ok c := integer'image(3)(2); -- ok c := integer'image(i)(2); -- causes error c := integer'image(j)(2); -- causes error end loop; end integer_image;
-- { dg-do run } with Allocator_Maxalign2; procedure Test_Allocator_Maxalign2 is begin Allocator_Maxalign2.Check; end;
package Lace -- -- A namespace to contain the 'Lace' family of packages. -- -- The 'Lace' family provides a base set of utility packages. -- is pragma Pure; end Lace;
-- @summary -- Goertzel filter in pure Ada/Spark -- -- @description -- An implementation of the Goertzel filter. -- It is designed with speed and portability in mind. package Goertzel with SPARK_Mode => On is -- The type for (most of the) values used. That is, samples, values -- derived from samples, freque...
generic package any_math.any_Algebra.any_linear.any_d3 is pragma Pure; ------------ --- Vector_3 -- function Distance (From, To : in Vector_3) return Real; function Midpoint (From, To : in Vector_3) return Vector_3; function Interpolated (From, To : in Vector_3; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with Ada.Text_IO; use Ada.Text_IO; procedure Main is begin -- Say hello! Put_Line("Hello, World!"); end Main;
-- Demander l'age de Jules with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Argent_Jules is Age: Integer; -- Age de Jules Versements: Integer; -- Versements réalisés sur le compte de Jules begin -- Demander l'age de Jules Get (Age); -- Déterminer la som...
package Greeter is X : Integer := 1000; pragma Assertion_Policy (Check); procedure Greet (S : String) with Pre => S'Length > 0; private Hi_Text : constant String := "Hi "; end Greeter;
with aIDE.Editor, AdaM.Entity, AdaM.a_Pragma, Gtk.Widget; private with Gtk.Button, Gtk.Window, Gtk.Frame; package aIDE.Palette.of_pragmas is type Item is new Palette.item with private; type View is access all Item'Class; -- Forge -- function to_source_entities_P...