content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- Copyright (c) 2017-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- Score PIXAL le 07/10/2020 à 14:33 : 100% with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Robot_Type_1 is -- Direction type T_Direction is (NORD, EST, SUD, OUEST); -- Robot type 1 type T_Robot_1 is record Absc: Integer; ...
with Interfaces; with Ada.Streams.Stream_IO; with Ada.Unchecked_Deallocation; use Interfaces; use Ada.Streams.Stream_IO; package Bitmap is type PixelData is array (Integer range <>) of Unsigned_32; type PixelDataRef is access PixelData; procedure delete is new Ada.Unchecked_Deallocation(Object => PixelData, N...
-- AoC 2020, Day 15 with Ada.Text_IO; with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Containers; use Ada.Containers; package body Day is package TIO renames Ada.Text_IO; function natural_hash(n : in Natural) return Hash_Type is begin return Hash_Type(n); end natural_hash; package Natural_Hashed_M...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Finalization; with Text; with Lexer; package Yaml is -- occurs when the lexical analysis of a YAML character streams discovers -- ill-formed input. Lexer_Error : exception renames...
----------------------------------------------------------------------- -- asf.servlets.files -- Static file servlet -- Copyright (C) 2010, 2011, 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 t...
package PW is task type Semaphore is entry Initialize(N : in Natural); entry Wait; entry Signal; entry Try(Success : out Boolean); end Semaphore; type SemaphoreAccess is access Semaphore; task PlaceSemaphore is entry Wait; entry Signal; end PlaceSema...
package body String_Int is Zero_Pos: constant Natural := Digit'Pos(Digit'First); procedure Add(A, B: in Digit; Sum: out Digit; Carry: in out Digit) is S: Natural := Digit'Pos(A) + Digit'Pos(B) + Digit'Pos(Carry); begin S := S - 3 * Zero_Pos; Sum := Digit'Val((S mod 10) + Zero_Pos); Ca...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with interfaces.c.strings; package agar.gui.unit is package cs renames interfaces.c.strings; type unit_t is record key : cs.chars_ptr; abbr : cs.chars_ptr; name : cs.chars_ptr; divider : c.double; func : access function (x : c.double; y : c.int) return c.double; end record; ty...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
separate (SPARKNaCl) procedure Sanitize_Boolean (R : out Boolean) is begin R := False; -- Boolean'Pos (0) -- It seems an inspection point is not possible on R here, since -- it is passed by copy in a register -- pragma Inspection_Point (R); -- See RM H3.2 (9) -- Add target-dependent code here to ...
-- 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...
package Trains with SPARK_Mode is -- the railroad is composed of a set of one-way tracks, where each track -- joins two locations. A track has a length that is a multiple of an -- elementary distance. Num_Locations : constant := 39; type Location is new Positive range 1 .. Num_Locations; type ...
-- CC1010B.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...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Blending; with GL.Buffers; with GL.Types.Colors; with GL.Fixed.Matrix; with GL.Immediate; with GL.Toggles; with Glfw.Windows.Context; with Glfw.Input.Mouse; with Glfw.Input.Keys; with Glfw.Moni...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_Io; with Ada.Float_Text_Io; with Ada.Integer_Text_Io; procedure Two_Dimensional_Arrays is type Matrix_Type is array(Positive range <>, Positive range <>) of Float; Dim_1 : Positive; Dim_2 : Positive; begin Ada.Integer_Text_Io.Get(Item => Dim_1); Ada.Integer_Text_Io.Get(Item => Dim_2); -...
----------------------------------------------------------------------- -- util-streams-sockets -- Socket streams -- 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...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with System; use type System.Address; package body GBA.Display.Tiles is function Tile_Block_Address (Ix : Tile_Block_Index) return Address is begin return Video_RAM_Address'First + (Address (Ix) * 16#4000#); end; function Scre...
-- { dg-do run } -- { dg-options "-O2 -gnatn" } with Opt38_Pkg; use Opt38_Pkg; procedure Opt38 is begin Test (-1); end;
-- RUN: %llvmgcc -c %s procedure Placeholder is subtype Bounded is Integer range 1 .. 5; type Vector is array (Bounded range <>) of Integer; type Interval (Length : Bounded := 1) is record Points : Vector (1 .. Length); end record; An_Interval : Interval := (Length => 1, Points => (1 => 1)); gen...
-- Simple test of "*", "/", "+", and "-" using random arguments. -- Doesn't test endpoints very well. with Extended_Real; with Extended_Real.e_Rand; with Extended_Real.IO; with Text_IO; use Text_IO; procedure e_real_io_tst_2 is type Real is digits 15; package ext is new Extended_Real (Real); use ext; ...
package body physics.Motor is procedure dummy is begin null; end; -- bool Motor::internal_dependsOnSolid(Solid* s) -- { -- return false; -- } -- -- bool Motor::internal_dependsOnJoint(Joint* j) -- { -- return false; -- } -- end physics.Motor;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2022 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.Exception_Identification.From_Here; with System.Address_To_Constant_Access_Conversions; with System.Address_To_Named_Access_Conversions; with System.Storage_Elements; with System.Zero_Terminated_Strings; with C.stdint; package body System.Native_Environment_Encoding is use Ada.Exception_Identification.From_...
-- Copyright 2017-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...
with AUnit; with AUnit.Test_Cases; with ZMQ.Contexts; with ZMQ.Sockets; package ZMQ.Tests.Testcases.Test_Pubsub is type Test_Case; type Test_Case is new AUnit.Test_Cases.Test_Case with record Ctx : ZMQ.Contexts.Context; Pub : ZMQ.Sockets.Socket; Sub : ZMQ.Sockets.Socket; end record; pr...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2017, 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) a...
----------------------------------------------------------------------- -- keystore-ios -- IO low level operation for the keystore -- 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...
with Memory.Trace; separate (Parser) procedure Parse_Trace(parser : in out Parser_Type; result : out Memory_Pointer) is mem : Memory_Pointer := null; begin if Get_Type(parser) = Open then Parse_Memory(parser, mem); end if; result := Memory_Pointer(Trace.Create_Trace(mem))...
package Access_To_Object is type Access_Type_1 is access Integer; type Access_Type_2 is access all Integer; type Access_Type_3 is access constant Integer; end Access_To_Object;
with Ada.Containers.Indefinite_Vectors; private with Ada.Containers.Indefinite_Hashed_Maps; generic type Source_Type (<>) is private; type Item_Type (<>) is private; with function Hash(Item: Item_Type) return Ada.Containers.Hash_Type is <>; package Generic_Inverted_Index is type Storage_Type is tagged pri...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Text_Codecs; with Slim.Message_Visiters; package body Slim.Messages.META is ---------- -- Read -- ---------- ...
with STM32GD.Systick; use STM32GD.Systick; with STM32GD.Vectors; with STM32_SVD; use STM32_SVD; package body Monotonic_Counter is procedure SysTick_Handler; pragma Machine_Attribute (SysTick_Handler, "naked"); Vectors: STM32GD.Vectors.IRQ_Vectors := ( SysTick_Handler => Monotonic_Counter.SysTick_Handl...
-- Based on libgasandbox.draw.h and draw.cpp with Ada.Text_IO; use Ada.Text_IO; with GL; with GL.Attributes; with GL.Objects.Buffers; with GL.Objects.Vertex_Arrays; with GL.Rasterization; with GL.Types; use GL.Types; with Utilities; with Maths; with GA_Utilities; with Palet; with Shader_Manager; package body Pla...
with Gtk.Button; use Gtk.Button; with Gtk.Main; package body button_click is procedure button_clicked (Self : access Gtk_Button_Record'Class) is begin Gtk.Main.Main_Quit; end button_clicked; end button_click;
with Ada.Text_IO; use Ada.Text_IO; with Interfaces; package Memory is type Address is range 0 .. 2 ** 63 - 1; type Value is new Interfaces.Integer_64; type Block is array(Address range <>) of Value; function Read_Comma_Separated( From: File_Type := Standard_Input) return Block; end Memory;
-- C43212A.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...
package body Kafka.Config is Error_Buffer_Size : constant size_t := 512; RD_Kafka_Conf_OK : constant Integer := 0; procedure Set(Config : Config_Type; Name : String; Value : String) is C_Name : chars_ptr := New_String(Name); C_Value : chars_ptr := Ne...
-- Abstract : -- -- Type and operations for graphs. -- -- References: -- -- [1] Introduction to Algorithms, Thomas H. Cormen, Charles E. -- Leiserson, Ronald L. Rivest, Clifford Stein. -- -- [2] "An Efficient Search Algorithm to Find the Elementary Circuits -- of a Graph", James C. Tiernan, Communications of the...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Containers.Hashed_Maps; with League.Strings; package Slim.Fonts is type Font is limited private; type Font_Access is...
-- Copyright © by Jeff Foley 2017-2022. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -- SPDX-License-Identifier: Apache-2.0 name = "TeamCymru" type = "misc" function asn(ctx, addr, asn) if (addr == "") then return end local result = or...
with openGL.Visual; package openGL.Terrain -- -- Provides a constructor for heightmap terrain. -- is function new_Terrain (heights_File : in asset_Name; texture_File : in asset_Name := null_Asset; Scale : in math.Vector_3 := (1.0, 1.0, 1.0)) return ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Command_Line; with Ada.Text_IO; with SDL; with SDL.Events.Events; with SDL.Events.Keyboards; with SDL.Log; with SDL.TTFs.Makers; with SDL.Video.Palettes; with SDL.Video.Surfaces; with SDL.Video.Windows.Makers; procedure TTF is W : SDL.Video.Windows.Window; Window_Surface : SDL.Video.Surface...
with System; with Utils; use Utils; package body Drivers.RFM69 is package IRQHandler is new HAL.Pin_IRQ (Pin => IRQ); F_Osc : constant Unsigned_32 := 32_000_000; type Unsigned_2 is mod 2 ** 2; type Unsigned_3 is mod 2 ** 3; type Unsigned_5 is mod 2 ** 5; type Unsigned_7 is mod 2 ** 7; type Reg...
-- { dg-do compile } -- { dg-options "-gnatws" } package body Slice8_Pkg3 is Current : Str.Lines (Str.Line_Count); Last : Natural := 0; function Get return Str.Paragraph is Result : constant Str.Paragraph := (Size => Last, Data => Current (1..Last)); beg...
with Real_Type; use Real_Type; package body Vectors_Conversions is ------------------ -- To_Vector_3D -- ------------------ function To_Vector_3D (V : Vector_3D_LF) return Vector_3D is (x => Real (V (x)), y => Real (V (y)), z => Real (V (z))); --------------------- -- To_Vector_3D...
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Unchecked_Conversion; with Interfaces; with System; with Torrent.Trackers; package Torrent.UDP_Tracker_Protocol is ...
with Primes.PrimeNumberRequest_DataReader; with Primes.PrimeNumberReply_DataWriter; with DDS.Request_Reply.Replier.Typed_Replier_Generic; package Primes.PrimeNumberReplier is new DDS.Request_Reply.Replier.Typed_Replier_Generic (Request_DataReader => Primes.PrimeNumberRequest_DataReader, Reply_DataWriter => Prime...
-- PACKAGE Cholesky_LU -- -- Cholesky's algorithm for LU decomposition of Real positive-definite -- square matrices. Positive definite matrices are a special class of -- symmetric, non-singular matrices for which no pivioting is required -- in LU decomposition. LU_decompose factors the matrix A into A = L*U, -- wher...
with Ada.Integer_Text_IO; with Ada.Text_IO; package body Problem_19 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is type Day_Of_Week is mod 7; type Year is new Positive range 1900 .. 2010; current_day : Day_Of_Week := 1; count : Natural :=...
----------------------------------------------------------------------- -- servlet-routes-tests - Unit tests for Servlet.Routes -- Copyright (C) 2015, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Numerics.Generic_Real_Arrays; generic type Real is digits <>; package Thiele is package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real); subtype Real_Array is Real_Arrays.Real_Vector; type Thiele_Interpolation (Length : Natural) is private; function Create (X, Y : Real_Array) retur...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" private with Ada.Containers.Hashed_Maps; private with Ada.Finalization; with FT.Faces; with GL.Objects.Textures; private with GL.Objects.Vertex_Arrays; private with GL.Objects.Buffers; private with GL.O...
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.BKP is pragma Preelaborate; --------------- -- Registers -- --------------- subtype DR1_D1_Field is HAL.UI...
-- -- Copyright (c) 2007-2009 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS...
with Ada.Containers.Vectors; use Ada.Containers; package Digraphs is type Node_Idx_With_Null is new Natural; subtype Node_Index is Node_Idx_With_Null range 1 .. Node_Idx_With_Null'Last; -- a Node_Index is a number from 1, 2, 3, ... and the representative of a node type Graph_Type is tagged private; -...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Tags; with League.Strings; with Markdown.Blocks; limited with Markdown.Visitors; package Markdown.ATX_Headings is type ATX_Heading is new...
-- This file provides interfaces for the operational amplifiers on the -- STM32G4 (ARM Cortex M4F) microcontrollers from ST Microelectronics. private with STM32_SVD.OPAMP; package STM32.OPAMP is type Operational_Amplifier is limited private; procedure Enable (This : in out Operational_Amplifier) with ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Assertions; use Ada.Assertions; package body Encodings.Line_Endings.Generic_Strip_CR is procedure Convert( This: in out Coder; Source: in String_Type; Source_Last: out Natural; Target: out String_Type; Target_Last: out Natural ) is C: Character_Type; begin Source_Last := Source'First - 1; T...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body ST7789 is procedure Write (This : in out ST7789_Screen; Reg : Register) is use HAL.SPI; Status : SPI_Status; begin This.CS.Clear; This.DC.Clear; ...
-- Widget for creating bar codes with Gnoga -- -- Copyright (C) 2018 by PragmAda Software Engineering -- -- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause with Bar_Codes; with Gnoga.Gui.Base; private with Gnoga.Gui.Element.Canvas; package Gnoga_Bar_Codes is ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with HAL.UART; with FE310.UART; with FE310.Device; package body IO is type BToCT is array (Byte range 0 .. 15) of Character; BToC : constant BToCT := ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'); --------- -- Put -- --------- procedure Put (C : Charac...
with Ada.Exceptions.Finally; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with Ada.Unchecked_Reallocation; with System.Growth; package body Ada.Environment_Encoding.Generic_Strings is pragma Check_Policy (Validate => Ignore); use type Streams.Stream_Element_Offset; pragma Compile_Time_Error...
with Ada.Integer_Text_IO; with Ada.Text_IO; package body Problem_24 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is subtype digit is Natural range 0 .. 9; chosen : Array (digit) of Boolean; unchosen : digit := 9; remaining : Natural := 1_0...
with LSC.Internal.Bignum; private package LSC.Internal.Bignum.Print with SPARK_Mode => Off is pragma Pure; procedure Print_Big_Int (Item : LSC.Internal.Bignum.Big_Int; Columns : Natural); end LSC.Internal.Bignum.Print;
with Node_List_Parsers; with Line_Arrays; procedure Prova_Parser is type Class is (Wp, Tsk, Deliv); package My_Parser is new Node_List_Parsers (Class); use My_Parser; Eol : constant Character := Character'Val (10); X : constant String := "" & Eol & "" & Eol & "" & Eol ...
-- { dg-do compile } with System; procedure Volatile_Aggregate is function GetArrayUpperBound return Integer is begin return 2; end GetArrayUpperBound; some_value : Integer := GetArrayUpperBound; type Gp_Element_Type is record Element : Integer; end record; type some_type is array (1 .. s...
-- Motherlode -- Copyright (c) 2020 Fabien Chouteau with HAL; use HAL; with PyGamer; use PyGamer; with PyGamer.Time; with PyGamer.Controls; with PyGamer.Screen; with Parameters; with Render; with World; with Player; with Sound; package body Cargo_Menu is use type World.Valuable_Cell; Selected : World.Valu...
with Numerics, Numerics.Sparse_Matrices, Chebyshev, Ada.Text_IO; use Numerics, Numerics.Sparse_Matrices, Chebyshev, Ada.Text_IO; generic K : in Nat; N_Constraints : in Pos := 0; package Dense_AD.Integrator is N : constant Nat := (Num - N_Constraints) / 2; type Dense_Or_Sparse is (Dense, Sparse); ty...
with Ada.Text_IO, Matrix_Scalar; procedure Scalar_Ops is subtype T is Integer range 1 .. 3; package M is new Matrix_Scalar(T, T, Integer); -- the functions to solve the task function "+" is new M.Func("+"); function "-" is new M.Func("-"); function "*" is new M.Func("*"); fu...
with Interfaces.C.Strings; package body Edit_Line is package C renames Interfaces.C; use type C.Strings.chars_ptr; function Read_Line (Prompt : in String) return String is function Read_Line (Prompt : in C.Strings.chars_ptr) return C.Strings.chars_ptr with Import => True, Conven...
with Ada.Finalization; with System; package body Ada.Exceptions.Finally is pragma Suppress (All_Checks); use type System.Address; type Finalizer is limited new Finalization.Limited_Controlled with record Params : System.Address; Handler : not null access procedure (Params : System.Address); end...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Text_IO; package Backend is ...
with OpenAL.ALC_Thin; with OpenAL.Types; package body OpenAL.Context.Error is function Get_Error (Device : in Device_t) return Error_t is begin return Map_Constant_To_Error (ALC_Thin.Get_Error (Device.Device_Data)); end Get_Error; function Map_Constant_To_Error (Error : in Types.Enumeration_t) return Err...
-- Lumen.Joystick -- Support (Linux) joysticks under Lumen -- -- Chip Richards, NiEstu, Phoenix AZ, Summer 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, pr...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2018-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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
--------------------------------------------------------------------------------- -- package body Banded_LU, LU decomposition, equation solving for banded matrices -- Copyright (C) 1995-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without f...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Streams; package Zstandard.Functions.Streaming_Decompression is package STR renames Ada.Streams; Output_container_size : constant Thin.IC.size_t := Thin.ZSTD_DStreamOutSize; subtype Output_Dat...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ file partitioning info -- -- |___/_|\_\_|_|____| by: Timm Felden ...
with Ada.Float_Text_IO; with Ada.Text_IO; with Angle; use Angle; with Ada.Real_Time; use Ada.Real_Time; with Task_Scheduling; use Task_Scheduling; with Setup; use Setup; with Shared_Data; with Meassure_Velocity; with Meassure_Acceleration; with Acceptance_Test_Lib; use Acceptance_Test_Lib; with Exception_Declarations; ...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Ada_Pretty.Expressions is -------------- -- Document -- -------------- overriding function Document (S...
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- 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, cop...
----------------------------------------------------------------------- -- awa-blogs-beans -- Beans for blog module -- Copyright (C) 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Norwegian is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*variable*is never read and never assigned*"); pragma Warnings (Off, "*mode could be*instead of*"); pragma Warnings (Off, "*formal parameter.*is not modified*")...
-- ADATU401.ADA Ver. 4.01 2001-SEP-10 Copyright 1988-2001 John J. Herro -- -- SOFTWARE INNOVATIONS TECHNOLOGY www.adatutor.com -- 1083 MANDARIN DR NE -- PALM BAY FL 32905-4706 john@adatutor.com -- -- (321) 951-0233 -- -- -- This code is written in Ada 83 and will compile on Ada...
----------------------------------------------------------------------- -- package body Extended_Real.Elementary_Functions, extended precision functions -- Copyright (C) 2008-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- akt-callbacks -- Callbacks for Ada Keystore GTK application -- Copyright (C) 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
package Square_Root with SPARK_Mode is function Sqrt (X : Float; Tolerance : Float) return Float with SPARK_Mode, Pre => X >= 0.0 and X <= 1.8E19 and Tolerance > Float'Model_Epsilon and Tolerance <= 1.0, Post => abs (X - Sqrt'Result ** 2) <= X * Tolerance; end Square_Root;
with Atomic.Critical_Section; use Atomic.Critical_Section; with System; package body Atomic.Unsigned with SPARK_Mode => Off is ---------- -- Load -- ---------- function Load (This : aliased Instance; Order : Mem_Order := Seq_Cst) return T is Vola : T with Volatile, Address => T...