content stringlengths 23 1.05M |
|---|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Lexical_Elements is
-----------
-- First --
-----------
function First
(Self : Lexical_Element... |
-- At the moment the overflow stacks raise the constraint_error
-- if the array is full..
--
-- Quickly written mess, but all that matters is that the output is
-- correctly sorted, so we just test this each time the routine is run.
--
-- For a given X <= Max_Size_of_Item, we get its putative
-- table index ... |
with Gprslaves.DB;
with GNAT.Spitbol.Table_VString;
package GPR_Tools.Gprslaves.Nameserver is
end GPR_Tools.Gprslaves.Nameserver;
|
-- $Id: Source.mi,v 1.6 1993/08/18 17:28:53 grosch rel $
with System; Use System;
package body Source is
function BeginSource (FileName: String) return Integer is
function OpenInput (FileName: Address) return Integer;
pragma Interface (C, OpenInput);
pragma Interface_Name (OpenInput, "OpenInput");
... |
------------------------------------------------------------------------------
-- --
-- ATRE COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- keystore-files -- Ada keystore files
-- 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 may not use this file ex... |
-- Copyright 2019-2021 Simon Symeonidis (psyomn)
--
-- 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/LICENSE-2.0
--
-- Unless required by applicab... |
package AdaM.Assist
is
function Tail_of (the_full_Name : in Identifier) return Identifier;
function strip_Tail_of (the_full_Name : in Identifier) return Identifier;
function type_button_Name_of (the_full_Name : in Identifier) return String;
-- function Split (the_Text : in String) ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit
with System.Long_Long_Integer_Types;
private package Ada.Containers.Array_Sorting is
pragma Pure;
function Is_Sorted (
First, Last : System.Long_Long_Integer_Types.Word_Integer;
Params : System.Address;
LT : not null access function (
... |
--- tools/configure/configure-tests-mysql.adb.orig 2015-03-17 15:01:56 UTC
+++ tools/configure/configure-tests-mysql.adb
@@ -219,7 +219,7 @@ package body Configure.Tests.MySQL is
(MySQL_Library_Options,
+"""-L"
& Self.Switches.Libdir
- & """, ""-lmysqlclien... |
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Vectors;
with Ada.Strings.Bounded;
with Line_Arrays;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
--
-- This package parses a file as a list of "nodes." Basically,
-- a "node" has the following properties
--
-- * A node "class"
-- * A li... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Exception_Identification.From_Here;
with System.Address_To_Constant_Access_Conversions;
with System.Address_To_Named_Access_Conversions;
with System.Zero_Terminated_Strings;
with System.Debug; -- assertions
with C.errno;
package body System.Native_Environment_Encoding is
use Ada.Exception_Identification.Fro... |
-----------------------------------------------------------------------
-- keystore-passwords-keys -- Key provider
-- 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 this file excep... |
with Interfaces; use Interfaces;
with HIL;
-- TODO: rewrite; separate SPARK from non-SPARK.
-- this package provides data types (Block), which are required in SPARK code,
-- but also uses access, which isn't.
package Media_Reader is -- SPARK_Mode => Auto
type Media_Controller is limited interface;
type Media... |
with Es_Par;
with Listas;
procedure Crear_Sublista_Pares is new Listas.Crear_Sublista(Cuantos => 4, Filtro => Es_Par); |
Package Body Risi_Script.Types.Internals is
Default_Hash_Key : Constant String := "0";
----------------------
-- GENERIC BODIES --
----------------------
Function To_Array(Value : X) return Risi_Script.Types.Internals.List.Vector is
Package List renames Risi_Script.Types.Internals.List;
Beg... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
limited with GBA.Refs;
package GBA.Display.Backgrounds.Refs is
type BG_Ref (<>) is abstract tagged limited private;
function ID (This : BG_Ref'Class) return BG_ID
with Inline;
function Priority (This : BG_Ref'Class) return Dis... |
-----------------------------------------------------------------------
-- keystore-io-files -- Ada keystore IO for files
-- 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 this fil... |
pragma Ada_95;
pragma Warnings (Off);
with System;
package ada_main is
gnat_argc : Integer;
gnat_argv : System.Address;
gnat_envp : System.Address;
pragma Import (C, gnat_argc);
pragma Import (C, gnat_argv);
pragma Import (C, gnat_envp);
gnat_exit_status : Integer;
pragma Import (C, gnat_exit... |
with Interfaces; use Interfaces;
package Monotonic_Counter is
Counter : Unsigned_32;
Overflow : Boolean;
procedure Reset;
end Monotonic_Counter;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Strings.Wide_Wide_Fixed;
with System.Storage_Pools.Subpools;
with Program.Parsers;
with Program.Plain_Compilations;
with Pro... |
package agar.gui.widget.pixmap is
use type c.unsigned;
type flags_t is new c.unsigned;
PIXMAP_HFILL : constant flags_t := 16#01#;
PIXMAP_VFILL : constant flags_t := 16#02#;
PIXMAP_FORCE_SIZE : constant flags_t := 16#04#;
PIXMAP_EXPAND : constant flags_t := PIXMAP_HFILL or PIXMAP_VFILL;
ty... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with GBA.Numerics;
use GBA.Numerics;
separate (GBA.Interrupts)
procedure Default_Interrupt_Dispatcher is
Enabled : Boolean;
Triggered_Flags : Interrupt_Flags;
Priority_Bit : Natural;
Priority_ID : Interrupt_ID;
... |
package Executor_Service is
type Object is tagged limited private;
type Callable is limited interface;
type Callable_Ptr is access all Callable'Class;
procedure Call(Self : in out Callable) is abstract;
procedure Execute(Self : in out Object; Callback : Callable_Ptr);
private
task type Thread is... |
-- TODO: how to deal with virusscanners?
-- Performance can be limited by speed of virus scanner ;-(
-- running in a single thread...
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Directories; use Ada.Directories;
with Ada.Exceptions; u... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Unchecked_Deallocation;
package body Regex.State_Machines is
use Regex.Syntax_Trees;
function Clone (Object : in Input_Symbol... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with LSP.Servers;
with LSP.Stdio_Streams;
with Ada_LSP.Contexts;
with Ada_LSP.Handlers;
procedure Ada_LSP.Driver is
Server : al... |
package CLIC.Config.Info is
function List (This : CLIC.Config.Instance;
Filter : String := ".*";
Show_Origin : Boolean := False)
return AAA.Strings.Vector;
-- Return a Vector of String that contains a list of configuration
-- key/value as see... |
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2021 Vitalii Bondarenko <vibondare@gmail.com> --
-- --
----... |
package Bit_Packed_Array5 is
type Bit_Array is array (Integer range <>) of Boolean;
pragma Pack (Bit_Array);
type Short_Bit_Array_Type is new Bit_Array (0 .. 15);
for Short_Bit_Array_Type'Size use 16;
type Word_Type is range 0 .. 65535;
for Word_Type'Size use 16;
function Inv (Word : Word_Type)... |
package body Opt38_Pkg is
procedure Proc (I : Integer);
pragma Inline (Proc);
procedure Proc (I : Integer) is
procedure Inner;
pragma No_Inline (Inner);
procedure Inner is
begin
if I /= 110 then
raise Program_Error;
end if;
end;
begin
if I > 0 then
Inner;
... |
with Ada.Assertions; use Ada.Assertions;
package body Memory.Perfect_Prefetch is
function Create_Perfect_Prefetch(mem : access Memory_Type'Class)
return Perfect_Prefetch_Pointer is
result : constant Perfect_Prefetch_Pointer := new Perfect_Prefetch_Type;
begin
S... |
with Ethiopian; use Ethiopian;
with Ada.Text_Io; use Ada.Text_Io;
procedure Ethiopian_Test is
First : Integer := 17;
Second : Integer := 34;
begin
Put_Line(Integer'Image(First) & " times " &
Integer'Image(Second) & " = " &
Integer'Image(Multiply(First, Second)));
end Ethiopian_Test;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Compte_Jules is
Objectif: Integer; -- Somme souhaitée sur le compte de Jules
Age: Integer; -- Age de Jules
Solde: Integer; -- Solde du compte de Jules
begin
-- Demander la somme souhaitée
Get (Objectif);
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with SPARKNaCl.Utils;
with SPARKNaCl.Hashing;
package body SPARKNaCl.Sign
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
--============================================
-- Local constants and types
--============================================
GF_D... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Numerics.Discrete_Random;
--with Ada.Task_Identification;
--use Ada;
procedure Task_Type is
subtype Player_Id_Type is Natural range 0 .. 100;
task type Player is
entry Punch (P : in Positive);
entry... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-- see OpenUxAS\src\Includes\Constants\UxAS_String.h
package UxAS.Common.String_Constant.Message_Group is
RadarFilter : constant String := "RadarFilter";
VicsLogger : constant String := "VicsLogger";
AircraftPathPlanner : constant String := "AircraftPathPlanner";
GroundPathPlann... |
package body Materials is
function SetStatic(This : Material) return Material is
That : Material := This;
begin
That.Density := 0.0;
return That;
end SetStatic;
function SetFriction(This : Material; FStatic, FDynamic : Float := 0.0) return Material is
That : Material := This;
be... |
-- { dg-do run }
-- { dg-options "-gnatws" }
with Ada.Unchecked_Conversion;
procedure Unchecked_Convert1 is
type Byte is mod 2**8;
type Stream is array (Natural range <>) of Byte;
type Rec is record
I1, I2 : Integer;
end record;
function Do_Sum (R : Rec) return Integer is
begin
return R.I1 + R... |
with
FLTK.Images.RGB,
FLTK.Images.Shared,
FLTK.Widgets.Groups.Windows;
package FLTK.Devices.Surfaces.Image is
type Image_Surface is new Surface_Device with private;
type Image_Surface_Reference (Data : not null access Image_Surface'Class) is
limited null record with Implicit_Derefere... |
with GNAT.IO; use GNAT.IO;
with GNAT.Serial_Communications; use GNAT.Serial_Communications;
-- with Ada.Strings.Fixed; use Ada.Strings.Fixed;
-- with Ada.Strings; use Ada.Strings;
-- with HK_Data; use HK_Data;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.IO_Exceptions;
package body TTC is... |
with Ada.Text_IO;
package body Problem_66 is
package IO renames Ada.Text_IO;
procedure Solve is
begin
IO.Put_Line("The Answer");
end Solve;
end Problem_66;
|
with Ada.Text_IO;
with Ada.Command_Line;
with Problem_01;
with Problem_02;
with Problem_03;
with Problem_04;
with Problem_05;
with Problem_06;
with Problem_07;
with Problem_08;
with Problem_09;
with Problem_10;
with Problem_11;
with Problem_12;
with Problem_13;
with Problem_14;
with Problem_15;
with Problem_16;
with Pr... |
-- C96008A.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... |
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.HMATRIXB is
pragma Preelaborate;
---------------
-- Registers --
---------------
--------------------------------------
... |
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Vectors;
procedure Day13 is
subtype Input_String is String (1 .. 150);
type Turn_Type is (Left, Straight, Right);
type Cart_Type is record
X : Natural;
Y : Natural;
XV ... |
-- C54A13A.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... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, Fabien Chouteau --
-- --
-- ... |
pragma License (Unrestricted);
with Ada.Interrupts;
with C.signal;
package System.Interrupt_Management is
pragma Elaborate_Body;
subtype Interrupt_Mask is C.signal.sigset_t;
subtype Interrupt_ID is
C.signed_int range 0 .. C.signed_int (Ada.Interrupts.Interrupt_Id'Last);
type Interrupt_Set is array ... |
-- for ZCX (or SjLj, or Win64 SEH)
pragma Check_Policy (Trace => Ignore);
with System.System_Allocators;
with C.unwind;
separate (System.Unwind.Occurrences)
package body Separated is
pragma Suppress (All_Checks);
use type C.signed_int;
procedure memset (
b : Address;
c : Integer;
n : Storag... |
with AWS.URL;
with Ada.Text_IO; use Ada.Text_IO;
procedure Decode is
Encoded : constant String := "http%3A%2F%2Ffoo%20bar%2F";
begin
Put_Line (AWS.URL.Decode (Encoded));
end Decode;
|
-----------------------------------------------------------------------
-- dynamo -- Ada Code Generator
-- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2017, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
-----------------------------------------------------------------------
-- util-encoders-lzma -- LZMA compression and decompression
-- Copyright (C) 2018, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
-- { dg-do run }
-- { dg-options "-gnatp" }
procedure Empty_Vector_Length is
type Vector is array (Integer range <>) of Integer;
function Empty_Vector return Vector is
begin
return (2 .. Integer'First => 0);
end;
My_Vector : Vector := Empty_Vector;
My_Length : Integer := My_Vector'Length;
... |
with Blueprint; use Blueprint;
with Server;
with Templates_Parser;
with Ada.Text_IO;
with Generator;
with Ada.Containers;
with Ada.Calendar;
with Ada.Wide_Wide_Text_IO;
with Ada.Wide_Wide_Text_IO.Text_Streams;
with Ada.Command_Line;
with Ada.Exceptions;
with CLIC.Subcommand;
with Commands;
with CLIC.TTY;
with Ada.Chara... |
pragma Ada_2012;
with Ada.Text_IO;
with Ada.Exceptions;
with Ada.Task_Identification;
with Ada.Task_Termination;
use Ada;
package body Utilities.Task_Reaper is
Verbosity : Verbosity_Level;
-----------------
-- Grim_Reaper --
-----------------
protected Reaper is
procedure Handler (Cause : Tas... |
pragma Ada_2012;
with Ada.Characters.Handling;
with Ada.Strings.Bounded;
package body Config_String_Parsers is
--------------------------
-- Add_Parameter_Syntax --
--------------------------
procedure Add_Parameter_Syntax
(Syntax : in out Syntax_Descriptor;
Parameter_Name : Name_Type... |
with Ada.Numerics.Generic_Elementary_Functions;
with Golub_SVD;
with Test_Matrices;
with Ada.Text_IO;
use Ada.Text_IO;
-- Square matrix test. Demonstrates use of SVD when: Final_Col = Final_Row.
--
-- It depends on the hardware and compiler, but in some tests procedure
-- SVD_Decompose runs about twice as fast ... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- Copyright 2019 Patrick Kelly (entomy)
--
-- 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/LICENSE-2.0
--
-- Unless required by applicable law or agre... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with TJa.Window.Elementary; use TJa.Window.Elementary;
with TJa.Keyboard; use TJa.Keyboard;
with TJa.Misc; use TJa.Misc;
procedure Test_Ke... |
with Ada.Text_IO; with Iterate_Subsets;
procedure Permutation_Test is
type Group_Type is array(Positive range <>) of Positive;
Treat_Group: constant Group_Type := (85, 88, 75, 66, 25, 29, 83, 39, 97);
Ctrl_Group: constant Group_Type := (68, 41, 10, 49, 16, 65, 32, 92, 28, 98);
package Iter is new Itera... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Text_IO.Text_Streams;
use Ada.Text_IO.Text_Streams;
with Ada.Text_IO.Unbounded_IO;
use Ada.Text_IO.Unbounded_IO;
with Ada.Real_Time;
use Ada.Real_Time;
procedure SelectTime is
Iterations : CONSTANT INTEGER := 2**24;
Iterati... |
--------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME.ADB --
-- --
-- Gestion des outils de base --
-- ... |
--
-- Copyright (c) 2002-2003, David Holm
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this ... |
with AVR.TIMERS;
-- with AVR.INTERRUPTS;
-- =============================================================================
-- Package AVR.TIMERS.CLOCK
--
-- Implements the clock functions. This timer is used for handling the clock:
-- - TIMER1_COMPA (16 bits timer)
-- ==================================================... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
package Rac is
type Raci is record
szamlalo: Integer;
nevezo: Positive;
end record;
function "/" (A: Integer; B: Positive) return Raci;
function "+" (A: Raci; B: Raci) return Raci;
procedure kiir (A: Raci);
end Rac;
|
-- 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 Ada.Text_IO;
procedure Euler21 is
function Dsum(N : Natural) return Natural is
Sum : Natural := 0;
begin
for X in 1 .. N / 2 loop
if N mod X = 0 then
Sum := Sum + X;
end if;
end loop;
return Sum;
end;
function Amicable(N : Natural) return Boolean is
D : Natur... |
with Ada.Containers.Vectors; use Ada.Containers;
with MathUtils;
package NeuralNet is
pragma Assertion_Policy (Pre => Check,
Post => Check,
Type_Invariant => Check);
type Activator is (RELU, LOGISTIC);
type LossFunction is (MSE);
type Shape is array... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
package body pointer_variable_bounds is
function COMPONENT_DAT(BP : in BUNDLE_POINTER_TYPE; CP : in COMP_POINTER_TYPE) return HALF_INTEGER is
type CP_TYPE is access COMP_POINTER_TYPE;
type CD_TYPE is access HALF_INTEGER;
CD : CD_TYPE;
begin
return C... |
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Ordered_Sets;
with Ada.Strings.Less_Case_Insensitive;
with AWS.Client;
with AWS.Response;
pro... |
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 Dmitriy Anisimkov --
-- ... |
pragma SPARK_Mode;
generic
type F is delta <>;
package Fixed_Point_Math is
function Sin (X : F) return F;
function Cos (X : F) return F;
-- function Sqrt (X : F) return F
-- with Pre => X >= 0.0;
end Fixed_Point_Math;
|
-- 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... |
pragma License (Unrestricted);
-- extended unit
with Ada.Command_Line.Generic_Parsing;
package Ada.Command_Line.Parsing is
new Generic_Parsing (
Input_Cursor => Natural,
Has_Element => Has_Element,
Input_Iterator_Interfaces => Iterator_Interfaces,
Input_Iterator => Concrete_Iterator'(null re... |
-- { dg-do run }
-- { dg-options "-O2" }
with Concat1_Pkg; use Concat1_Pkg;
procedure Concat1 is
Ident_1 : Integer := Ident (1);
Ident_2 : Integer := Ident (2);
Ident_5 : Integer := Ident (5);
type Arr is array (Integer range <>) of Integer;
A : Arr (1..10);
begin
A := (1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Unsigned_Types;
package System.Version_Control is
pragma Pure;
subtype Version_String is String (1 .. 8);
-- required for PACKAGE'Version by compiler (s-vercon.ads)
function Get_Version_String (V : Unsigned_Types.Unsi... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with TLSF.Config;
use TLSF.Config;
private package TLSF.Mem_Block_Size
with SPARK_Mode is
type Size is mod 2 ** Max_Block_Size_Log2
with Size => Max_Block_Size_Log2;
use type SSE.Storage_Count;
use type SSE.Integer_Address;
function Align ( Sz : Size) return Size
with
Pre => Sz <= Size'... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Interface_Types is
p... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Device is
type Device_Property_Type is record
name : Unbounded_String;
bram_width : Positive;
bram_depth : Positive;
max_path : Positive;
end record;
type Device_Property_Array_Type is
array (Devic... |
pragma License (Unrestricted);
with Ada.Numerics.MT19937;
package Ada.Numerics.Float_Random is
-- Basic facilities
-- type Generator is limited private;
subtype Generator is MT19937.Generator;
subtype Uniformly_Distributed is Float range 0.0 .. 1.0;
function Random (Gen : Generator) return Uniformly_Di... |
-- This file cannot be processed by the SPARK Examiner.
with Ada.Numerics,
Ada.Numerics.Elementary_Functions;
package body PP_F_Elementary is
function Pi return Float is
begin
return Ada.Numerics.Pi;
end Pi;
function Sqrt (X : Float) return Float
renames Ada.Numerics.Elementary_Functions.S... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Generic_Fixture;
with Apsepp.Scope_Bound_Locks; use Apsepp.Scope_Bound_Locks;
package Apsepp_Scope_Bound_Locks_Test_Fixture is
procedure Increment_N;
procedure Decrement_N;
type Scope_Boun... |
--
-- 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... |
-- Copyright 2016 Steven Stewart-Gallus
--
-- 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/LICENSE-2.0
--
-- Unless required by applicable law or agr... |
-- RUN: %llvmgcc -S -O2 %s -I%p/Support -o - | grep 6899714
package body Element_Copy is
function F return VariableSizedField is
X : VariableSizedField;
begin
return X;
end;
end;
|
with kv.avm.Log; use kv.avm.Log;
package body kv.avm.Actors is
package Actors is new Ada.Containers.Indefinite_Ordered_Maps
(Key_Type => String,
Element_Type => Actor_Access);
Actor_Map : Actors.Map;
-----------------------------------------------------------------------------
procedure Emp... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with CRC;
package body SGP30 is
package CRC_8 is new CRC
(Word => HAL.UInt8,
Word_Array => HAL.UInt8_Array);
function Verify_Checksum
(Data : UInt8_Array)
return Boolean
... |
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
package body Lexer.Source.File is
overriding procedure Read_Data (S : in out Instance; Buffer : out String;
Length : out Natural) is
use type Ada.Direc... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.