content stringlengths 23 1.05M |
|---|
-- 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 Tk.Labelframe.Label_Frame_Create_Options_Test_Data
.Label_Frame_Create_Options_Tests
is
type Test_Label_Frame_Create_Op... |
pragma License (Unrestricted);
-- implementation unit
package System.Long_Long_Integer_Types is
pragma Pure;
-- Word size types
type Word_Integer is range
-(2 ** (Standard'Word_Size - 1)) .. 2 ** (Standard'Word_Size - 1) - 1;
for Word_Integer'Size use Standard'Word_Size;
subtype Word_Natural i... |
--
-- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package Str is
pragma Pure;
function Find
(S : String;
C : Character)
return Natural;
function Contains
(Haystack, Needle : String)
return Boolean;
function Find_Nu... |
with Interfaces.C;
with System;
package OpenAL.Types is
package C renames Interfaces.C;
-- ALfloat
type Float_t is new C.C_float;
-- ALdouble
type Double_t is new C.double;
-- ALsizeiptr
type Size_Pointer_t is mod 2 ** System.Word_Size;
for Size_Pointer_t'Size use System.Word_Size;
pragma Conventi... |
pragma Ada_2012;
-- with Readable_Sequences.String_Sequences;
-- use Readable_Sequences.String_Sequences;
-- with Protypo.Scanning;
-- with Protypo.Parsing;
-- with Protypo.Code_Trees.Interpreter.Expressions;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_IO; use Ada.Text_I... |
-- { dg-do compile }
package body Ancestor_Type is
package body B is
function make return T is
begin
return (T with n => 0); -- { dg-error "expect ancestor" }
end make;
end B;
end Ancestor_Type;
|
package openGL.Model.box
--
-- Provides an abstract model of a box.
--
is
type Item is abstract new openGL.Model.item with private;
type Side is (Front, Rear,
Upper, Lower,
Left, Right);
function Size (Self : in Item) return Vector_3;
private
type Item is abstract n... |
-- Collection of square matrices. Most are ill conditioned, singular
-- or badly scaled.
-- Several matrices are from John Burkardt's fortran 90 Test_Mat.
generic
type real is digits <>;
type Index is range <>;
type Matrix is array(Index, Index) of Real;
package Test_Matrices is
-- In notes below, N is ... |
-- Demonstration of the extended units: Ada.Fixed
with Ada.Float;
procedure floats is
subtype T is Long_Long_Float;
begin
declare -- Infinity and Is_Infinity
function Infinity is new Ada.Float.Infinity (T);
function Is_Infinity is new Ada.Float.Is_Infinity (T);
begin
pragma Assert (T'Image (Infinity) = " INF")... |
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.FDCAN is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CREL_DAY_Field is HAL.UInt8;
sub... |
-- { dg-do compile }
-- { dg-options "-g" }
procedure Addr4 is
function F return String is begin return ""; end F;
S1 : String renames F;
subtype ST is String (1 .. S1'Length);
S2 : ST;
for S2'Address use S1'Address;
begin
null;
end;
|
package body Util is
function "+"(a, b : Cost_Type) return Cost_Type is
begin
if a > Cost_Type'Last - b then
return Cost_Type'Last;
else
return Cost_Type(Long_Integer(a) + Long_Integer(b));
end if;
end "+";
function Log2(n : Natural) return Natural is
i : Natura... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Hoc... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_SDL_stdinc_h;
with System;
package SDL_SDL_version_h is
SDL_MAJOR_VERSION : constant := 1; -- ../include/SDL/SDL_version.h:42
SDL_MINOR_VERSION : constant := 2; -- ../include/SDL/SDL_version.h:43
SDL_P... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.IRIs;
with League.Strings;
package Torrent.Trackers is
type Announcement_Kind is
(Started, Completed, Stopped, R... |
package body Math_2D.Triangles is
use type Types.Real_Type;
use type Types.Point_t;
function Area
(Triangle : in Types.Triangle_t) return Types.Real_Type'Base
is
Point_A : Types.Point_t renames Triangle (1);
Point_B : Types.Point_t renames Triangle (2);
Point_C : Types.Point_t renames Triangle... |
with Ada.Text_IO;
package body Trie is
package IO renames Ada.Text_IO;
procedure Add_Word(node : in out Trie_Node; word, partial : String; node_count : in out Natural) is
first : Character;
begin
if partial'Length = 0 then
node.is_terminal := true;
node.word := BoundedString.To_B... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package body AdaBase.Statement.Base is
------------------
-- successful --
------------------
overriding
function successful (Stmt : Base_Statement) return Boolean
is
begin
return ... |
-- Demonstration of the compiler-defined attribute: 'Scalar_Storage_Order
-- The expected output:
-- L: 1000000 0100000 1100000 0010000 1010000 0110000 1110000 0001000
-- B: 0000001 0000010 0000011 0000100 0000101 0000110 0000111 0001000
with Ada.Text_IO;
with System;
procedure bswap is
type Unsigned_7 is mod 2 **... |
with STM32GD.GPIO; use STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.USART;
with STM32GD.USART.Peripheral;
with STM32GD.SPI;
with STM32GD.SPI.Peripheral;
with STM32GD.RTC;
with STM32GD.Clock;
with STM32GD.Clock.Tree;
with Drivers.Text_IO;
package STM32GD.Board is
package CLOCKS is new STM32GD.Clock.Tree;
... |
with Ada.Streams; use Ada.Streams;
with Interfaces;
package SHA1 with
Pure,
Preelaborate,
SPARK_Mode => On
is
-- @summary
-- Secure Hash Algorithm 1 implementation in Ada/SPARK
--
-- @description
-- This package provides an implementation of SHA1 algorithm
pragma Compile_Time_Error
... |
-- Copyright ©2021,2022 Steve 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, merge, publish,... |
package Aggr21_Pkg is
type Rec is record
A : Integer;
S : String (1 .. 120);
N : Natural;
end record;
procedure Init (R : out Rec);
end Aggr21_Pkg;
|
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.WWd_Enum is
pragma Pure;
-- (s-wchcon.ads)
type WC_Encoding_Method is range 1 .. 6;
-- required for Enum'Wide_Width by compiler (s-wwdenu.ads)
function Wide_Width_Enumeration_8 (
Names : String;
Ind... |
with
openGL.Errors,
openGL.Tasks,
GL.Pointers;
package body openGL.Buffer.general
is
--------------------------
-- 'vertex buffer' Object
--
package body Forge
is
function to_Buffer (From : access constant Element_Array;
Usage : in Buffer.U... |
-- public domain
with Ada.Calendar;
with Ada.Strings.Maps;
with Interfaces;
package String_Ops is
pragma Elaborate_Body;
type String_Pointer_Type is access String;
-- All the control characters plus space and non-breaking-space.
--
function Is_White_Space
(Char : in Character) return Boolea... |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F.... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body WebIDL.Simple_Factories is
package body Nodes is
type Argument_Vector_C_Access is access constant Argument_Vector;
overriding... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package body GA_Sine_Globals is
--------------------
-- Toggle_Options --
--------------------
procedure Toggle_Options (started : Boolean) is
begin
for i in Enum_Options loop
declare
option : Option_Use renames options (i).optionUse;
widget : access Gtk_Widget_Re... |
package body scanner.IO is
use Ada.Wide_Wide_Text_IO;
-- Gets input and stuffs it into 'buf'. number of characters read, or
-- YY_NULL is returned in 'result'.
procedure YY_Input
(Buf : out Unbounded_Character_Array;
Result : out Integer;
Max_Size : integer)
is
C : W... |
with STM32.SYSCFG;
with Ada.Real_Time;
package body STM32.COMP is
------------
-- Enable --
------------
procedure Enable (This : in out Comparator) is
use Ada.Real_Time;
begin
-- Enable clock for the SYSCFG_COMP_OPAMP peripheral
STM32.SYSCFG.Enable_SYSCFG_Clock;
This.CSR.EN ... |
-----------------------------------------------------------------------
-- helios-commands-check -- Helios check commands
-- Copyright (C) 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
package Types is
type Byte is mod 2 ** 8
with Size => 8;
subtype Byte_Array_Index_Type is Byte range Byte'First .. Byte'Last - 1;
type Word is mod 65536
with Size => 16;
type Byte_Array is array (Byte_Array_Index_Type range <>) of Byte
... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
with Slice8_Pkg1;
with Slice8_Pkg3;
procedure Slice8 is
package Bp is new Slice8_Pkg3 (Slice8_Pkg1);
begin
null;
end;
|
with Ada.Text_IO;
procedure Hofstadter_Q_Sequence is
type Callback is access procedure(N: Positive);
procedure Q(First, Last: Positive; Q_Proc: Callback) is
-- calls Q_Proc(Q(First)); Q_Proc(Q(First+1)); ... Q_Proc(Q(Last));
-- precondition: Last > 2
Q_Store: array(1 .. Last) of Natural := (1 => 1... |
package body Bubble with SPARK_Mode is
procedure Sort (A : in out Arr) is
Tmp : Integer;
begin
Outer: for I in reverse A'First .. A'Last - 1 loop
Inner: for J in A'First .. I loop
if A(J) > A(J + 1) then
Tmp := A(J);
A(J) := A(J + 1);
A(J + 1) := Tmp;
e... |
--PRÁCTICA 4: CÉSAR BORAO MORATINOS (Handlers.adb)
with Ada.Text_IO;
with Chat_Messages;
with Chat_Procedures;
with Ada.Strings.Unbounded;
package body Handlers is
package ATI renames Ada.Text_IO;
package CM renames Chat_Messages;
package CP renames Chat_Procedures;
package ASU renames Ada.Strings.Unbound... |
with Ada.Unchecked_Conversion;
with C_String;
with Interfaces.C;
with System;
package body Agar.Core.DSO is
package C renames Interfaces.C;
use type C.int;
function Load
(Name : in String;
Path : in String) return DSO_Access_t
is
Ch_Name : aliased C.char_array := C.To_C (Name);
Ch_Path : ali... |
pragma License (Unrestricted);
-- implementation unit specialized for Windows
package System.Native_Directories.Temporary is
-- There are subprograms to create temporary file or directory.
pragma Preelaborate;
function Temporary_Directory return String;
procedure Set_Temporary_Directory (Name : String);
... |
WITH P_DesHandler;
USE P_DesHandler;
----------
-- Main --
----------
procedure mainSequential is
DesAlg : aliased DesHandler;
begin
DesAlg.Process;
end mainSequential;
|
-- 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... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with Libtcod, Libtcod.Console, Libtcod.Color;
limited with Engines;
private with Ada.Strings.Bounded, Ada.Containers.Vectors;
package GUIs is
use Libtcod;
Panel_Height : constant := 7;
Bar_Width : constant := 30;
subtype RGB_Color is Libtcod.Color.RGB_Color;
type GUI is tagged limited private;
p... |
with Ada.Text_IO; use Ada.Text_IO;
use Ada;
with GNAT.OS_Lib;
package body BMP is
procedure Debug (Line : String);
procedure Print_Palette (File_Out : Ada.Text_IO.File_Type;
Palette_Data : Palette;
Pixel_Size : Integer);
-----------
-- Debug... |
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.COMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Comparator status register
type SR_Re... |
package body Ada.Text_IO.Generic_Unbounded_IO is
procedure Put (
File : File_Type;
Item : Unbounded_Strings.Unbounded_String) is
begin
Put (
File, -- checking the predicate
Unbounded_Strings.Constant_Reference (Item).Element.all);
end Put;
procedure Put (
Item : U... |
with Ada.Real_Time; use Ada.Real_Time;
with STM_Board; use STM_Board;
with Inverter_ADC; use Inverter_ADC;
with Inverter_PWM; use Inverter_PWM;
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
-- The "last chance handler" is the user-defined routine that is called when
-- an exception is p... |
WITH Ada.TeXt_iO;
ProCEDure HElLoworLd iS
beGin
ADA.tEXt_Io.PuT_liNE("Hello, World!");
ENd heLLoWORlD;
|
-- Data Watchpoint and Trace (DWT) Unit
-- Gives access to cycle counter.
pragma Restrictions (No_Elaboration_Code);
with Interfaces; use Interfaces;
with System;
package STM32.DWT is
DWT_Core_Base : constant System.Address :=
System'To_Address (16#E000_1000#);
procedure Enable;
procedure Disable;
... |
-- Práctica 4: César Borao Moratinos (Hash_Maps_G_Chaining.adb)
with Ada.Text_IO;
with Ada.Strings.Unbounded;
with Ada.Unchecked_Deallocation;
package body Hash_Maps_G is
package ASU renames Ada.Strings.Unbounded;
procedure Put (M: in out Map;
Key: Key_Type;
Value: Value_Type) is
P_Aux:... |
with IntrospectorPackage, VisitablePackage, ObjectPack;
use IntrospectorPackage, VisitablePackage, ObjectPack;
package VisitableIntrospectorPackage is
type VisitableIntrospector is new Introspector and Object with null record;
function setChildren(intro: access VisitableIntrospector; o: ObjectPtr; children: Obje... |
with Ada.Unchecked_Deallocation;
package body Generic_Stack is
procedure Free is new Ada.Unchecked_Deallocation( Stack_Node,
Stack_Node_Ptr );
------------------------------------------------------------
procedure Push( Stack: in out T; Element: in Elem... |
with Ada.Strings;
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Forma... |
-- MIT License
-- Copyright (c) 2020 Jean-Jacques François Reibel
-- 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, ... |
with STM32_SVD; use STM32_SVD;
generic
Pin : in GPIO_Pin;
Port : in out Natural;
Mode : in Pin_IO_Modes := Mode_In;
Pull_Resistor : in Internal_Pin_Resistors := Floating;
Alternate_Function : in GPIO_Alternate_Function := 0;
package STM32GD.GPIO.Pin is
pragma Preelaborate;
procedure Init;
p... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with EU_Projects.Times.Time_Expressions;
with EU_Projects.Event_Names;
--
-- A timed node represents something related with an event. It is a
-- basic node with a "expected on" date. Currently used for deliverables
-- and milestones
--
package EU_Projects.Nodes.Timed_Nodes is
type Timed_Node is abstract new Node_... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Characters.Conversions;
with Ada.Characters.Latin_1;
with Interfaces.C_Streams;
package body Program.Directory_Unit_Schemas is
function Find_F... |
with Leds; use Leds;
with Ada.Real_Time; use Ada.Real_Time;
package Morse is
procedure Blink_Morse(LED: Led_No; Led_Color : Color; Duration : Time_Span);
procedure Dot;
procedure Dash;
procedure Morse_Display (S : String);
end Morse;
|
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Storage_Elements;
package body Ada.Strings.Generic_Functions is
use type System.Address;
use type System.Storage_Elements.Storage_Offset;
procedure memset (
b : System.Address;
c : Integer;
n : System... |
generic
package any_Math.any_Random
is
function random_Real (Lower : in Real := Real'First;
Upper : in Real := Real'Last) return Real;
function random_Integer (Lower : in Integer := Integer'First;
Upper : in Integer := Integer'Last) return Inte... |
pragma License (Unrestricted);
-- Ada 2012
with Ada.Containers.Synchronized_Queue_Interfaces;
with System;
generic
with package Queue_Interfaces is new Synchronized_Queue_Interfaces (<>);
type Queue_Priority is private;
with function Get_Priority (Element : Queue_Interfaces.Element_Type)
return Queue_Pr... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- 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,... |
-----------------------------------------------------------------------
-- atlas-reviews-modules -- Module reviews
-- 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 file excep... |
with
lace.Observer,
lace.Subject,
lace.Response,
lace.event.Logger,
ada.Tags;
package lace.Event.utility
--
-- Provides convenience subprograms for working with events.
--
is
-- Event Kinds
--
function Name_of (Kind : in event.Kind) return String;
function to_Kind (From : in a... |
with Ada.Text_IO;
use Ada.Text_IO;
with Maze;
procedure Adamazing is
Size : Integer;
begin
Put_Line("Enter Difficulty (1 to 25), you may have to zoom out.");
-- Making the size an odd number improves impearance.
Size := Integer'Value(Get_Line) * 10 + 1;
Maze (Size);
Put_Line("");
end Adamazing;
|
with PortAudioAda.Thin; use PortAudioAda.Thin;
generic
type Frame;
type User_Data is private;
with function Pre_Processing (frameIn : Frame;
data : User_Data) return Frame;
with function Post_Processing (frameIn : Frame;
data : User_D... |
-- { dg-do compile }
with Discr34_Pkg; use Discr34_Pkg;
procedure Discr34 is
Object : Rec := F;
begin
null;
end;
|
with
AdaM.Factory;
package body AdaM.Parameter
is
-- Storage Pool
--
record_Version : constant := 1;
max_Parameters : constant := 5_000;
package Pool is new AdaM.Factory.Pools (".adam-store",
"parameters",
... |
-----------------------------------------------------------------------
-- awa-events-dispatchers -- AWA Event Dispatchers
-- Copyright (C) 2012 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... |
-- 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... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
generic
type Object is limited private;
type Object_Access is access all Object;
package Program.Relative_Access_Types is
type Relative_Access is ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line;
with Ada.Exceptions;
with SPDX;
procedure Main is
Fail_Cnt : Natural := 0;
Pass_Cnt : Natural := 0;
procedure Test (Str : String;
Expected_Error : String := "";
Allow_Custom : Boolean := False);
... |
with Ada.Text_IO, Population_Count; use Population_Count;
procedure Pernicious is
Prime: array(0 .. 64) of Boolean;
-- we are using 64-bit numbers, so the population count is between 0 and 64
X: Num; use type Num;
Cnt: Positive;
begin
-- initialize array Prime; Prime(I) must be true if and only if I ... |
FROM cardano-container-mainnet-explorer:latest
# for syncing blockchain
RUN mkdir wallet
# expose cardano node ports
EXPOSE 8100 8090 8000
ARG COMMIT
ENV COMMIT ${COMMIT:-undefined}
CMD ["/bin/cardano-start"] |
with Ada.Containers.Vectors;
with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
procedure Solution is
package Line_Vectors is new Ada.Containers.Vectors (Natural, Unbounded_String);
... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- 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 f... |
with Spherical_Harmonics;
with gauss_quadrature_61;
with Text_IO; use Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
procedure Spherical_Harm_Tst_1 is
type Real is digits 15;
package Math is new Ada.Numerics.Generic_Elementary_Functions (Real);
use Math;
type Base_Poly_Index is new Intege... |
with Ada.Text_IO;
with PrimeUtilities;
package body Problem_72 is
package IO renames Ada.Text_IO;
subtype One_Million is Long_Integer range 1 .. 1_000_000;
package Million_Primes is new PrimeUtilities(One_Million);
-- From Farey Sequence Wikipedia Page:
-- Using the fact that |F1| = 2, we can derive an ... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with Interfaces;
use Interfaces;
package GBA.Display.Windows is
subtype Toggleable_Window_Element is
Toggleable_Display_Element range Background_0 .. Object_Sprites;
type Window_Horizontal_Dimensions is
record
Left_Bou... |
with Ada.Text_IO; use Ada.Text_IO;
with Input17; use Input17;
procedure Day17 is
Grid : array
(Natural range 0 .. 2000, Natural range 0 .. 2000) of Character :=
(others => (others => '.'));
Min_X, Min_Y : Natural := Natural'Last;
Max_X, Max_Y : Natural := Natural'First;
function Can_Spread... |
with Ada.Containers.Functional_Maps;
with Ada.Containers.Functional_Vectors;
with Common; use Common;
with Ada.Containers; use Ada.Containers;
generic
type Element_Type is private;
package Bounded_Stack with SPARK_Mode is
Capacity : constant Integer := 200;
Empty : constant Integer := 0;
subtype Exten... |
------------------------------------------------------------------------------
-- EMAIL: <darkestkhan@gmail.com> --
-- License: ISC --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
----------------------------------------------------------------------------
-- Symbolic Expressions (symexpr)
--
-- Copyright (C) 2012, Riccardo Bernardini
--
-- This file is part of symexpr.
--
-- symexpr is free software: you can redistribute it and/or modify
-- it under the t... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Library General Public License as
-- published by the Free Software Foundation; either version 3 of the
-- License; or (at your option) any later version.
-- This package provides stack abstractions tha... |
pragma License (Unrestricted);
with Ada.Numerics.Long_Complex_Types;
with Ada.Text_IO.Complex_IO;
package Ada.Long_Complex_Text_IO is
new Text_IO.Complex_IO (Numerics.Long_Complex_Types);
|
with Ada.Exceptions,
Ada.Integer_Text_IO,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Text_IO;
use Utils;
File : File_Type;
Result : Natural := Natural'First;
begin
Get_File (File);
if End_Of_File (File) then
raise Program_Error with "Empty file... |
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Moving;
procedure Main is
package Three_Average is new Moving (Max_Elements => 3, Number => Float);
package Five_Average is new Moving (Max_Elements => 5, Number => Float);
begin
for I in 1 .. 5 loop
Ada.Text_IO.Put_Line ("Inserting" & Integer'Image (I) &
" into max-3: " & ... |
-- package A_Legendre
--
-- Data structure for Associated Legendre Polynomials. Used by package
-- Clenshaw to generate the Associated Legendre functions via recurrance
-- relations.
--
-- The Norms of the functions are calculated separately from the functions.
-- That's so that calculation of the norms can be moved ... |
--PRÁCTICA 4: CÉSAR BORAO MORATINOS (Ordered_Maps_G, Test Program)
with Ada.Text_IO;
With Ada.Strings.Unbounded;
with Ordered_Maps_G;
procedure Ordered_Maps_Test is
package ASU renames Ada.Strings.Unbounded;
package ATI renames Ada.Text_IO;
package Maps is new Ordered_Maps_G (Key_Type => Na... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Directories;
with Ada.Hierarchical_File_Names;
with Ada.IO_Exceptions;
with Ada.Streams.Stream_IO;
with YAML.Streams;
package body Tabula.Villages.Lists is
use Summary_Maps;
use User_Lists;
use type Ada.Strings.Unbounded.Unbounded_String;
use type YAML.Event... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.