content
stringlengths
23
1.05M
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising...
package body Size_Attribute1_Pkg2 is procedure Proc is I : Integer := T'Size; begin null; end; end Size_Attribute1_Pkg2;
with Ada.Text_IO; use Ada.Text_IO; procedure helloworld is begin Put("Helloworld!"); end helloworld;
with Ada.Text_IO; use Ada.Text_IO; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with System; use System; with Ada.Unchecked_Conversion; procedure Shared_Library_Call is -- -- Interface to kernel32.dll which is resposible for loading DLLs under Windows. -- There are ready...
with Array_Utils.Test_Cases; with AUnit.Test_Caller; package body Test_Suite is package Caller is new AUnit.Test_Caller (Array_Utils.Test_Cases.Test_Case); function Create_Test_Suite return AUnit.Test_Suites.Access_Test_Suite is Test_Suite_Ptr : constant AUnit.Test_Suites.Access_Test_Suite := ne...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
with Ada.Float; package body Ada.Numerics.Generic_Complex_Types is subtype Float is Standard.Float; -- hiding "Float" package function constant_p (x : Complex) return Integer with Import, Convention => Intrinsic, External_Name => "__builtin_constant_p"; pragma Warnings (Off, constant_p); -- [g...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- przykłady: pakiet, select w zasdaniu, access do zadania jako parametr wywołania with Qsort; with Ada.Text_Io; use Qsort,Ada.Text_Io; procedure Qsort_demo is Arr1 : vector := (1,6,2,67,3); Arr1_ptr : vector_ptr; begin Arr1_ptr := new vector(Arr1'range); Put_Line(Integer'Image(Arr1'Length)); Put_Line(Integ...
-- { dg-do compile } package Size_Clause3 is -- The record inherits the alignment of Integer, which is 4, so -- the real size is 64 instead of 40. type R1 is record I : Integer; B : aliased Boolean; end record; -- That's not OK, the size of a component of type R1 cannot be 40. type S1 is record ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Containers.Functional_Vectors; generic type Element_Type is range <>; with package V is new Ada.Containers.Functional_Vectors (Element_Type => Element_Type, others => <>); package TLSF.Proof.Util.Vectors with SPARK_Mode is use Ada.Containers; use type V.Sequence; subtype Exte...
with Ada.Text_IO; use Ada.Text_IO; procedure Infinities is function Sup return Float is -- Only for predefined types Result : Float := Float'Last; begin if not Float'Machine_Overflows then Result := Float'Succ (Result); end if; return Result; end Sup; function Inf return F...
Pragma Ada_2012; Pragma Assertion_Policy( Check ); With Interfaces; Use Interfaces; -- Everyone's Verified & Independent Library. Package EVIL with Pure, SPARK_Mode => On is End EVIL;
-- This file is generated by SWIG. Please do *not* modify by hand. -- with clib.Pointers; with Interfaces.C.Pointers; with Interfaces.C.Strings; with System; package clib.pointer_Pointers is -- time_t_Pointer_Pointer -- type time_t_Pointer_Pointer is access all clib.Pointers.time_t_Pointer; -- FILE_Pointe...
pragma License (Unrestricted); with Ada.Wide_Wide_Characters.Latin_1; package Ada.Characters.Wide_Wide_Latin_1 renames Ada.Wide_Wide_Characters.Latin_1;
-- Version for sqlite with GNATCOLL.SQL_Impl; use GNATCOLL.SQL_Impl; with GNATCOLL.SQL.Exec; use GNATCOLL.SQL.Exec; with GNATCOLL.SQL.Sqlite; use GNATCOLL.SQL; procedure Prepared_Query is DB_Descr : Database_Description; Conn : Database_Connection; Query : Prepared_Statement; --sqlite does not ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with interfaces.C.Strings; package body openGL.Display is function Default return Item is Self : Display.item; begin return Self; end Default; function screen_Id (Self : in Item) return interfaces.c.int is begin return Self.screen_Id; end screen_Id; end openGL....
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Tcl.Lists.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Lists.Test_Data .Test with ...
-- SipHash.General -- Implementing SipHash over a general private type -- Copyright (c) 2015, James Humphry - see LICENSE file for details with Ada.Storage_IO, System.Storage_Elements; -- Rather than simply writing the object into a buffer and calling the main -- SipHash routine, this implementation takes advantage ...
with MSPGD.Board; use MSPGD.Board; with MSPGD.Clock; use MSPGD.Clock; with MSPGD.Clock.Source; procedure Main is pragma Preelaborate; package Delay_Clock is new MSPGD.Clock.Source (Frequency => 1500, Input => VLO, Source => ACLK); begin Init; Delay_Clock.Init; loop LED_RED.Set; Delay_Clock...
------------------------------------------------------------------------ -- -- Copyright (c) 2018, Brendan T Malone All Rights Reserved. -- -- 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 a...
-- { dg-do compile } procedure equal_access is PA, PB : access procedure := null; begin if PA /= PB then null; end if; end;
package Rejuvenation.Printer is function Print (Node : Ada_Node'Class) return String; -- WARNING: very incomplete pretty-printer! -- Note: procedure Print from libadalang-analysis.ads is not a -- pretty printer, but prints the AST. end Rejuvenation.Printer;
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.MDMA is pragma Preelaborate; --------------- -- Registers -- --------------- -- MDMA_GISR0_GIF array type MDMA_GISR0_...
with Ada.Text_IO; use Ada.Text_IO; package body PQueue_Type is ----------------------------------------------------------- -- First approach (insert at the right position so no need to sort) procedure Insert( PQ : in out PQueue; P : in Priority; D : in Data ) is i : Integer; b : Boolean := false;...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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...
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction...
pragma SPARK_Mode; with Types; use Types; -- @summary -- PWM interface -- -- @description -- This package gives an interface to the PWM hardware package Pwm is -- PWM Left Motor or PWM Right Motor -- @value Left left motor -- @value Right right motor type Pwm_Index is (Left, Right); -- Configure the PW...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, Fabien Chouteau -- -- -- -- ...
with ada.text_io; procedure outcomes is type stack is array (0..9) of integer; deck : stack; d, p, n : integer; function partitions(cards: in out stack; subtotal: integer) return integer is m, total : integer; begin m := 0; -- hit for i in integer range 0 .. 9 loop if (cards(i...
pragma License (Unrestricted); -- implementation unit for Ada.Containers.Access_Holders with System.Reference_Counting; private package Ada.Containers.Weak_Access_Holders is pragma Preelaborate; type Data; type Data_Access is access all Data; type Weak_Holder; type Weak_Holder_Access is access all Wea...
pragma License (Unrestricted); private with System.Storage_Elements; package Ada.Tags is pragma Preelaborate; type Tag is private; pragma Preelaborable_Initialization (Tag); No_Tag : constant Tag; function Expanded_Name (T : Tag) return String; function Wide_Expanded_Name (T : Tag) return Wide_Stri...
-- -- Copyright (C) 2017 secunet Security Networks AG -- -- This program 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 2 of the License, or -- (at your option) any later version. -- -- This ...
with Vect9_Pkg; use Vect9_Pkg; package Vect10 is type Rec is record Val : Unit; end record; type Rec_Vector is array (Positive range <>) of Rec; procedure Proc (F : in Rec_Vector; First_Index : in Natural; Last_Index : in Natural; Result : out Unit); end Ve...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-dates-rfc7231-- RFC7231 date format utilities -- Copyright (C) 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
package Utils is task Touch_Screen is end Touch_Screen; end Utils;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- ...
with Ada.Containers.Ordered_Maps; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with AUnit.Assertions; use AUnit.Assertions; with Langkit_Support.Slocs; use Langkit_Support.Slocs; with Langkit_Support.Text; use Langkit_Suppo...
----------------------------------------------------------------------- -- awa-components-wikis -- Wiki rendering component -- Copyright (C) 2011, 2012, 2013, 2015, 2016, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Text_IO; use Ada.Text_IO; procedure Test_Integer_Text_IO is begin for I in 1..33 loop Put (I, Width =>3, Base=> 10); Put (I, Width =>7, Base=> 16); Put (I, Width =>6, Base=> 8); New_Line; end loop; end Test_Integer_Text_IO;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- Mean lunar phase computations -- Given a date expressed as a decimal Julian day, -- compute the 'mean' lunar age (days since last mean new moon) -- and the 'mean' lunar phase, a figure in the range 0.0 .. 4.0 -- The algorithm is in the public domain -------------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; procedure Hello_World is begin Ada.Text_IO.Put_Line ("Hello World"); end Hello_World;
-- This spec has been automatically generated from cm4f.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package Cortex_M_SVD.SCB is pragma Preelaborate; --------------- -- Registers -- --------------- -- Disables Interruption Foldin...
with Cmd_ada; with Test_Procs; procedure Example_App is begin Cmd_ada.Register_Command (Command_String => "test1", Command_Cb => Test_Procs.Test1'Access, Description => "Just a test"); Cmd_ada.Register_Command (Command_String => "test2", Command_Cb => Test_Procs.Test1'Access, Descriptio...
----------------------------------------------------------------------- -- security-oauth -- OAuth Security -- Copyright (C) 2012, 2013 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...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2013 - 2014 Felix Krause <contact@flyx.org> -- -- 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.or...
-- { dg-do run } procedure Outer_Agg_Bitfield_Constructor is type Mod_64 is mod 2 ** 64; for Mod_64'Size use 64; type Uint_16 is range 0 .. 2 ** 16 - 1; for Uint_16'Size use 16; type Values_Type is record M64 : Mod_64; U16 : Uint_16; end record; for Values_Type use record ...
pragma License (Unrestricted); with System; package GNAT.Traceback is pragma Preelaborate; type Tracebacks_Array is array (Positive range <>) of System.Address; procedure Call_Chain ( Traceback : out Tracebacks_Array; Len : out Natural); end GNAT.Traceback;
----------------------------------------------------------------------- -- util-nullables-tests - Test for nullables types -- Copyright (C) 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 fi...
with Orka.Jobs.System; package Demo is package Job_System is new Orka.Jobs.System (Maximum_Queued_Jobs => 16, Maximum_Job_Graphs => 4); end Demo;
with Ada.Containers; use Ada.Containers; with Ada.Containers.Ordered_Sets; with Ada.Containers.Indefinite_Ordered_Maps; package Bag is type Bag_Color is ( bright_gray, pale_olive, mirrored_magenta, shiny_blue, dotted_beige, drab_tomato, drab_blue, striped_beige, dull_gold, wa...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- components-widgets-panels -- Collapsible panels -- Copyright (C) 2013, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use t...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with AWS.Response; with AWS.Client; with AWS.Messages; with AWS.URL; with AWS.Status; procedure Wttr is Not_Enough_Arguments: exception; Response : AWS.Response.Data; begin if Argument_Count < 1 then raise Not_Enough_Argum...
with Ada.Text_IO; procedure Hello_World is begin Ada.Text_IO.Put_Line ("Hello World"); end Hello_World;
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with Ada.Wide_Wide_Text_IO; with Interfaces; with League.Regexps; with League.String_Vectors; with League.Text_Code...
-- Demonstrate the overlay of one object on another A : Integer; B : Integer; for B'Address use A'Address; -- A and B start at the same address
----------------------------------------------------------------------- -- net -- Network stack -- Copyright (C) 2016, 2017 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 complian...
with Interfaces; package kv.avm.Actor_References is procedure Set_Local_Domain(Domain : Interfaces.Unsigned_32); function Get_Local_Domain return Interfaces.Unsigned_32; type Actor_Reference_Type is tagged private; procedure Initialize (Self : in out Actor_Reference_Type; Key : in ...
-- { dg-do compile } -- { dg-final { scan-assembler-not "elabs" } } package body OCONST1 is procedure check (arg : R) is begin if arg.u /= 1 or else arg.b.i1 /= 2 or else arg.b.i2 /= 3 or else arg.b.i3 /= 4 then raise Program_Error; end if; end; end;
-- { dg-do compile } -- { dg-options "-gnatwa" } package body no_exc_prop is protected body Simple_Barrier is entry Wait when Signaled is begin Signaled := False; end Wait; procedure Signal is begin Signaled := True; end Signal; end Simple_Barrier; end no_exc...
<<Top>> Put_Line("Hello, World"); goto Top;
-- ----------------------------------------------------------------------------- -- smk, the smart make -- © 2018 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licensed under the Apache License, Version 2.0 ...
with Ada.Real_time; use Ada.Real_Time; with Leds; use Leds; procedure Main is Duration : constant Time_Span := Milliseconds(100); begin Led_Init; loop Blink(LED0, Blue, Duration); Blink(LED1, Green, Duration); Blink(LED0, Cyan, Duration); Blink(LED1, Red, Duration); Blink(LED...
with Ada.Containers.Indefinite_Vectors, Ada.Text_IO; package String_Vectors is package String_Vec is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, Element_Type => String); type Vec is new String_Vec.Vector with null record; function Read(Filename: String) return Vec; -- uses Ada....
with System.Storage_Elements ; package body Tarmi.Environments is -- TODO: Make this hash function give a better distribution. function Hash_Symbol (S : Symbol) return Hash_Type is package SE renames System.Storage_Elements ; --use type SE.Integer_Address ; begin --return Hash_Type (SE.To_I...
package Discr14 is type COMPLETION_CODE is (SUCCESS, FAILURE, NONE); type T_SW_TYPE is (NONE, COMPLETION_CODE_TYPE); type T_COMPLETION_CODE_RANGE (CONSTRAINED: BOOLEAN := FALSE) is record case CONSTRAINED is when TRUE => FIRST : COMPLETION_CODE := SUCCESS; LAST : ...
-- { dg-do compile } -- { dg-options "-O -gnatws" } with Pack22_Pkg; use Pack22_Pkg; procedure Pack22 is package Role_Map is new Bit_Map_Generic; type Role_List is new Role_Map.List; Roles_1 : Role_List; Roles_2 : Role_List; Roles_3 : Role_List; begin Temp_buffer := (others => 1); ...
with Ada.Text_IO; with Raspio.GPIO; procedure Polling is use Raspio.GPIO; begin Raspio.Initialize; declare -- connect button from pin 12 to ground Button : constant Pin_Type := Create (Pin_ID => GPIO_P1_12, Mode => Input, Internal_Resistor => Pull_Up); State : Pin_State :...
-- experiment with overloading with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure Overlo is function Do_Something (A : Integer) return Integer is begin Put_Line ("Integer " & Integer'Image (A) & " return Integer"); ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Regexp_Readers is type Regexp_Spec is record Regexp : Unbounded_String; Sub_Expression_Index : Natural; end record; function "+" (X : String) return Unbounded_String renames To_Unbounded_S...
-- MIT License -- Copyright (c) 2021 Stephen Merrony -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify,...
with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers; with Ada.Text_IO; use Ada.Text_IO; with Ada.Assertions; use Ada.Assertions; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Exceptions; use Ada.Exceptions; with AVTAS.LMCP.Types; use AVTAS.LMCP.Types; procedure T...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Display.Backgrounds; use GBA.Display.Backgrounds; with Interfaces; use Interfaces; package GBA.Handles.Backgrounds is type BG_Ref is interface; function Kind (BG : BG_Ref) return BG_Kind is abstract; function Vertical_...
----------------------------------------------------------------------- -- package body Tridiagonal_LU, LU decomposition for Tridiagonal matrices. -- Copyright (C) 2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, pr...
with Ada.Text_Io; use Ada.Text_Io; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Synchronous_Concurrent is task body Printer is Num_Iter : Natural := 0; Line : Unbounded_String; begin loop select accept Put(Item : in String) do Line...
with Ada.Text_IO; use Ada.Text_IO; procedure Test_Sum_Of_Squares is type Float_Array is array (Integer range <>) of Float; function Sum_Of_Squares (X : Float_Array) return Float is Sum : Float := 0.0; begin for I in X'Range loop Sum := Sum + X (I) ** 2; end loop; return Sum;...
-- PACKAGE Chirped -- -- The Chirped FFT performs a true Discrete Fourier Transform (DFT). -- Unlike standard FFT's, the Chirped FFT performs a Discrete Fourier -- Transform on data sets of any length. Data set lengths are not restricted -- to powers of 2 or any other special number. -- Like the FFT, the Chirped FFT...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Generic_Swap; ... type T is ... procedure T_Swap is new Generic_Swap (Swap_Type => T); A, B : T; ... T_Swap (A, B);
-- This spec has been automatically generated from STM32F46_79x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.SAI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype GCR_SYNCOUT_Field i...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Types; package GL.Attributes is pragma Preelaborate; use GL.Types; type Attribute is new UInt; -- This function is deprecated for compatibility reasons. Use: -- 1. Set_Vertex_...
-- { dg-do compile } -- { dg-options "-O3" } with Loop_Optimization1_Pkg; package Loop_Optimization1 is type Kind_Type is (One, Two, Three, Four); type Array_Type is array (Kind_Type) of Boolean; pragma Pack (Array_Type); package Q is new Loop_Optimization1_Pkg (Boolean, Kind_Type, Array_Type); end Loop_Op...
pragma Ada_2012; package body Utilities.Hybrid_Files is -------------- -- Put_Line -- -------------- procedure Put_Line (To : Hybrid_File; Item : String) is begin if To.Standard_IO then Text_IO.Put_Line (Item); else Text_IO.Put_Line (To.File, Item); end if; end P...
with gel.Joint, openGL.Model, openGL.Visual, openGL.Program, physics.Model, physics.Object, physics.Shape, physics.Space, lace.Subject_and_deferred_Observer, lace.Response, ada.Containers.Vectors; limited with gel.World; package gel.Sprite -- -- Combine...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Fabien Chouteau -- -- -- -- ...
with Ada; with System.Stack; with System.Storage_Elements.Formatting; procedure stackoverflow is package SSEF renames System.Storage_Elements.Formatting; procedure Put_Stack_Range is Stack_Top, Stack_Bottom : System.Address; begin System.Stack.Get (Top => Stack_Top, Bottom => Stack_Bottom); Ada.Debug.Put ("top...
generic type Element_Type is private; C_Max_Number : Positive; package Q_Gen_Shuffle is type Array_Type is array (Positive range 1 .. C_Max_Number) of Element_Type; procedure P_Shuffle (List : in out Array_Type); end Q_Gen_Shuffle;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers.Vectors; with Calculate2; use Calculate2; with Operation; use Operation; procedure Main is File : File_Type; Start_Index : Integer; Sum: NaturalDouble := 0; package Integer_Vectors is new Ada.Containers.Vectors(Index_Type => Natural, Element_Type =...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...