content stringlengths 23 1.05M |
|---|
package body Ada_Lapack.Extras is
function MatrixDeterm (Source : Real_Matrix) return Real
is
matrix : Real_Matrix := source;
matrix_rows : Integer := Matrix'Length (1);
matrix_cols : Integer := Matrix'Length (2);
pivots : Integer_Vector (1..matrix_rows);
determ : Real;
r... |
package Protected_Body_Declaration is
protected type T is
function func return Integer;
end T;
end Protected_Body_Declaration;
|
with System.Storage_Elements; use System.Storage_Elements;
with Ada.Containers.Indefinite_Vectors;
with Ada.Numerics.Discrete_Random;
with AUnit.Assertions; use AUnit.Assertions;
with Test_Utils; use Test_Utils;
with AAA.Strings;
package body Testsuite.Encode_Decode.Random is
pragma Style_Checks ("gnatyM120-s")... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Containers; use Ada.Containers;
package Apsepp.Containers is
subtype Index_Type is Count_Type range 1 .. Count_Type'Last;
end Apsepp.Containers;
|
with Ada.Containers.Vectors;
with Ada.Text_IO;
with Space_Image_Format;
use Space_Image_Format;
procedure Day_08 is
function Count_Pixel(Within: Layer; Value: Pixel) return Natural is
Total: Natural := 0;
begin
for P of Within loop
if P = Value then Total := Total + 1; end if;
end loop... |
package body Thin_Pointer2_Pkg is
type SB is access constant String;
function Inner (S : SB) return Character is
begin
if S /= null and then S'Length > 0 then
return S (S'First);
end if;
return '*';
end;
function F return Character is
begin
return Inner (SB (S));
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Sf.System.Clock; use Sf.System, Sf.System.Clock;
with Sf.System.Sleep; use Sf.System.Sleep;
with Sf.System.Time; use Sf.System.Time;
procedure Main is
My... |
-- Task 2 of RTPL WS17/18
-- Team members: Hannes B. and Gabriel Z.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
package body counting with SPARK_Mode is
-- Procedure for option 1
procedure opt1 is
-- Integer values for user input
I1 : Integer := 1;
I2 : Integer := 2;
... |
------------------------------------------------------------------------------
-- EMAIL: <darkestkhan@gmail.com> --
-- License: ISC --
-- --
-- ... |
with Ada.Text_IO, Ada.Command_Line, Crypto.Types.Big_Numbers;
procedure Mod_Exp is
A: String :=
"2988348162058574136915891421498819466320163312926952423791023078876139";
B: String :=
"2351399303373464486466122544523690094744975233415544072992656881240319";
D: constant Positive := Positive'Max(Posi... |
with
Interfaces.C.Strings,
System.Address_To_Access_Conversions,
Ada.Unchecked_Conversion;
use type
Interfaces.C.int,
Interfaces.C.Strings.chars_ptr;
package body FLTK.Static is
procedure fl_static_add_awake_handler
(H, F : in System.Address);
pragma Import (C, fl_static_... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with SimpleAda;
package Simple_Use_Type is
use type SimpleAda.Device;
stdcout : constant SimpleAda.Device := 0;
stdcerr : constant SimpleAda.Device := 1;
stdcurr : SimpleAda.Device := stdcerr;
end Simple_Use_Type;
|
with Ada.Text_IO, Generic_Divisors;
procedure ADB_Classification is
function Same(P: Positive) return Positive is (P);
package Divisor_Sum is new Generic_Divisors
(Result_Type => Natural, None => 0, One => Same, Add => "+");
type Class_Type is (Deficient, Perfect, Abundant);
function Class(D_Sum, N... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Root name-space for general, reusable packages from
-- JSA Research & Innovation.
--
-- Licence: ISC
package JSA
with Pure
is
end JSA;
|
pragma License (Unrestricted);
-- runtime unit specialized for Darwin
with C.pthread;
with C.signal;
package System.Stack is
pragma Preelaborate;
procedure Get (
Thread : C.pthread.pthread_t := C.pthread.pthread_self;
Top, Bottom : out Address);
procedure Fake_Return_From_Signal_Handler;
fun... |
with Ada.Real_Time; use Ada.Real_Time;
package body Solar_System.Graphics is
procedure Draw_Body (Object : Body_T; Canvas : Canvas_ID) is
Tail_Color : RGBA_T;
Dimmer : Color_Component_T := 30;
function Dim (C : Color_Component_T) return Color_Component_T is
begin
if C < Dimmer then... |
private with NXP_SVD.INPUTMUX;
with HAL.GPIO;
package NXP.Pint is
type Pint_PinInt is
(PinInt_0, PinInt_1, PinInt_2, PinInt_3, PinInt_4, PinInt_5, PinInt_6, PinInt_7)
with Size => 3;
type Mode_Selection is (Pint_Edge, Pint_Level);
type Edge_Selection is (Pint_Rising, Pint_Falling);
type ... |
-----------------------------------------------------------------------
-- awa-wikis-beans -- Beans for module wikis
-- Copyright (C) 2015, 2016, 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 t... |
pragma Ada_2012;
with Ada.Containers;
with Protypo.Api.Engine_Values.Constant_Wrappers;
package body Protypo.Match_Data_Wrappers is
Matched_Field_Name : constant Id := "matched?";
function Wrap (Match_Data : Gnat.Regpat.Match_Array;
Source : String)
return Handlers.Ambiv... |
-----------------------------------------------------------------------
-- wiki-parsers -- Wiki parser
-- Copyright (C) 2011, 2015, 2016, 2018, 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 thi... |
with Interfaces;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada.Numerics.Generic_Complex_Types;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics;
with GL.Types;
with Maths;
package GA_Maths is
pa... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
-- 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... |
-- 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... |
with Ada.Unchecked_Conversion;
package body QOI
with SPARK_Mode
is
pragma Compile_Time_Error
(Storage_Element'Size /= 8, "Invalid element size");
pragma Warnings (Off, "lower bound test optimized away");
subtype SE is Storage_Element;
function As_Index is new Ada.Unchecked_Conversion (SE, Index_T... |
package Giza.Bitmap_Fonts.FreeSerifBoldItalic12pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeSerifBoldItalic12pt7bBitmaps : aliased constant Font_Bitmap := (
16#07#, 16#07#, 16#07#, 16#0F#, 16#0E#, 16#0E#, 16#0C#, 16#0C#, 16#08#,
16#18#, 16#10#, 16#00#, 16#00#, 16#60#, 16#F0#, 16#F0#, 16#60#, 16#... |
with Ada.Text_IO; With Real_To_Rational;
procedure Convert_Decimal_To_Rational is
type My_Real is new Long_Float; -- change this for another "Real" type
package FIO is new Ada.Text_IO.Float_IO(My_Real);
procedure R2R is new Real_To_Rational(My_Real);
Nom, Denom: Integer;
R: My_Real;
begin
loop
... |
package Giza.Bitmap_Fonts.FreeMonoOblique32pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeMonoOblique32pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#30#, 16#03#, 16#C0#, 16#3E#, 16#01#, 16#F0#, 16#0F#, 16#00#,
16#78#, 16#07#, 16#C0#, 16#3E#, 16#01#, 16#E0#, 16#0F#, 16#00#, 16#78#,
1... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit
package System.Shared_Locking is
pragma Preelaborate;
-- no-operation
procedure Nop is null;
type Enter_Handler is access procedure;
pragma Favor_Top_Level (Enter_Handler);
Enter_Hook : not null Enter_Handler := Nop'Access;
procedure Enter... |
-----------------------------------------------------------------------
-- jason-tickets-beans -- Beans for module tickets
-- Copyright (C) 2016, 2017, 2019 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.FDCAN is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype FDCAN_CREL_DAY_Field... |
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
package Motherload is
procedure Run;
end Motherload;
|
-- AOC 2020, Day 4
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
with Day; use Day;
procedure main is
batch : constant Passport_Vectors.Vector := load_batch("input.txt");
present : constant Count_Type := present_count(batch);
valid : constant Count_Type := valid_count(batch);
begin
... |
with
ada.Calendar;
package collada.Asset
--
-- Models a collada asset.
--
is
type Contributor is
record
Author : Text;
authoring_Tool : Text;
end record;
type Unit is
record
Name : Text;
Meter : Float;
end record;
type up_Direction... |
package body agar.gui.widget.scrollbar is
use type c.int;
package cbinds is
procedure set_size
(scrollbar : scrollbar_access_t;
size : c.int);
pragma import (c, set_size, "agar_gui_widget_scrollbar_set_size");
function get_size (scrollbar : scrollbar_access_t) return c.int;
pra... |
-- --
-- package Object.Tasking Copyright (c) Dmitry A. Kazakov --
-- Implementation Luebeck --
-- Winter, 2009 --
-- Multiple tasking ver... |
with MSPGD.UART.Peripheral;
with MSPGD.Clock; use MSPGD.Clock;
with MSPGD.Clock.Source;
package Board is
pragma Preelaborate;
package Clock is new MSPGD.Clock.Source (Source => SMCLK, Input => DCO, Frequency => 8_000_000);
package UART is new MSPGD.UART.Peripheral (Speed => 9600, Clock => Clock);
proced... |
generic
type Item is private;
type View is access all Item;
pool_Size : Positive := 5_000;
package lace.fast_Pool
is
function new_Item return View;
procedure free (Self : in out View);
end lace.fast_Pool;
|
-- CD1C03I.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... |
--------------------------------------------------------
-- E n c o d i n g s --
-- --
-- Tools for convertion strings between Unicode and --
-- national/vendor character sets. --
-- - - - - - - - - -... |
-- original: http://homepage2.nifty.com/m_kamada/math/gmp_ja.htm
with Ada.Command_Line;
with Ada.Real_Time;
with Ada.Text_IO;
with C.gmp;
procedure pi is
use type Ada.Real_Time.Time;
use C;
use C.gmp;
-- Function: void mpf_pi (mpf_t rop)
-- Set the value of pi.
--
-- Reference:
-- http://www.kuri... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
-----------------------------------------------------------------------
-- are-generator-go -- Generator for Go
-- 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 file except i... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 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 from th... |
-----------------------------------------------------------------------
-- util-serialize-io-csv -- CSV Serialization Driver
-- Copyright (C) 2011, 2015, 2016, 2017, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
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;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
with Ada.Calendar.Time_Zones; use Ada.Calendar.Time_... |
-----------------------------------------------------------------------
-- core-factory -- Factory for Core UI Components
-- Copyright (C) 2009, 2010, 2011, 2012, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
with Ada.Numerics; use Ada.Numerics;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Strings.Bounded; use Ada.Strings.Bounded;
package body Vectors_xD is
package Real_Elementary_Functions is
new Ada... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package emmintrin_h is
-- Copyright (C) 2003-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public L... |
package Depends_Exercise is
Stack_Size : constant := 100;
type Pointer_Range is range 0 .. Stack_Size;
subtype Stack_Range is Pointer_Range range 1 .. Stack_Size;
Stack : array (Stack_Range) of Integer;
Stack_Pointer : Pointer_Range := 0;
-- Add suitable Global and Depends contracts
procedure Ini... |
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
with GESTE;
with GESTE.Maths_Types; use GESTE.Maths_Types;
with HUD;
with Sound;
package body Player is
P : aliased Player_Type;
Going_Up : Boolean := False;
Going_Down : Boolean := False;
Going_Left : Boolean := False;
Going_Right : Boolean... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with OpenAL.Buffer;
with OpenAL.Types;
package OpenAL.Extension.Float32 is
function Is_Present return Boolean;
--
-- This will most likely result in an IEEE single precision float
-- on the majority of platforms.
--
type Sample_Float_32_t is digits 6;
for Sample_Float_32_t'Size use 32;
type Sample_... |
with Ada.Text_IO, Ada.Integer_Text_IO, Datos;
use Datos;
procedure Esc ( L : in Lista ) is
-- pre:
-- post: Escribir el contenido de una lista
Actual : Lista;
begin
Ada.Text_Io.New_Line;
Ada.Text_Io.New_Line;
Ada.Text_Io.Put("el contenido de la lista es: ");
Ada.Text_Io.New_Line;
Ad... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_SDL_stdinc_h;
package SDL_SDL_active_h is
SDL_APPMOUSEFOCUS : constant := 16#01#; -- ../include/SDL/SDL_active.h:42
SDL_APPINPUTFOCUS : constant := 16#02#; -- ../include/SDL/SDL_active.h:43
SDL_APPACTIV... |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure tuple is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.Str... |
with
any_Math.any_Geometry.any_d3.any_Modeller.any_Forge;
package float_math.Geometry.d3.Modeller.Forge is new float_Math.Geometry.d3.Modeller.any_Forge;
|
with Renaming8_Pkg2; use Renaming8_Pkg2;
package Renaming8_Pkg1 is
B: Boolean renames F.E(1);
end Renaming8_Pkg1;
|
-----------------------------------------------------------------------
-- gen-artifacts-hibernate -- Hibernate artifact for Code Generator
-- Copyright (C) 2011 - 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
package Pack8_Pkg is
N : Natural := 1;
end Pack8_Pkg;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- BAREBOARD EXAMPLE --
-- --
-- ... |
-- 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.
... |
-----------------------------------------------------------------------
-- util-strings-transforms -- Various Text Transformation Utilities
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2015, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Ver... |
------------------------------------------------------------------------------
-- EMAIL: <darkestkhan@gmail.com> --
-- License: ISC License (see COPYING file) --
-- --
-- ... |
with
openGL.Model,
openGL.Visual,
openGL.Light,
openGL.Palette,
openGL.Demo;
procedure launch_render_Models
--
-- Exercise the renderer with an example of all the models.
--
is
use openGL,
openGL.Math,
openGL.linear_Algebra_3D,
openGL.Palette;
begin
Demo.print_Usa... |
-----------------------------------------------------------------------
-- EL.Contexts -- Default contexts for evaluating an expression
-- Copyright (C) 2009, 2010, 2011, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License... |
package Opt48_Pkg2 is
pragma Pure;
type Rec (L : Natural) is record
S : String (1 .. L);
end record;
function F return Rec;
end Opt48_Pkg2;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Function INI.Section_Vector( Object : in Instance )
return NSO.Types.String_Vector.Vector is
use NSO.Types.String_Vector;
Begin
Return Result : Vector := Empty_Vector do
For Section in Object.Iterate loop
Declare
Key : String renames INI.KEY_SECTION_MAP.KEY(Section);
... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Command_Line;
with Ada.Wide_Wide_Text_IO;
with League.Application;
with League.Strings;
with XML.SAX.Input_Sources.Str... |
with Ada.Text_IO;
use Ada.Text_IO;
with Palindrome;
procedure Main is
res : Boolean := False;
test : String(1..1024);
len : Integer;
begin
Get_Line(test, len);
res := Palindrome(test(1..len));
if res then
Put_Line("true");
else
Put_Line("false");
end if;
end Main;
|
-----------------------------------------------------------------------
-- babel-files-buffers -- File buffer management
-- Copyright (C) 2014, 2015 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not u... |
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Stream; use SPARKNaCl.Stream;
with SPARKNaCl.Hashing; use SPARKNaCl.Hashing;
procedure Stream
is
Firstkey : constant Salsa20_Key :=
Construct ((16#1b#, 16#27#, 16#... |
-- { dg-do run }
-- { dg-options "-O" }
with Opt59_Pkg; use Opt59_Pkg;
procedure Opt59 is
type Enum is (Zero, One, Two);
function Has_True (V : Boolean_Vector) return Boolean is
begin
for I in V'Range loop
if V (I) then
return True;
end if;
end loop;
return False;
e... |
package Complex1_Pkg is
procedure Coord (x,y : out Float);
end Complex1_Pkg;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
pragma License (Unrestricted);
with Ada.Text_IO;
package Ada.Short_Integer_Text_IO is new Text_IO.Integer_IO (Short_Integer);
|
-----------------------------------------------------------------------
-- asf-applications-main-tests - Unit tests for Applications
-- Copyright (C) 2011, 2012, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
-- C93005A.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... |
generic
type Elem is private;
type Index is (<>);
type Tomb is array (Index range <>) of Elem;
function Duplication (T: in out Tomb) return Boolean;
|
-------------------------------------------------------------------------------
-- package body Gamma, Log of Gamma Function
-- Copyright (C) 1995-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the a... |
procedure Diff (X, Y : in Natural; Z : out Natural) with
SPARK_Mode,
Depends => (Z => (X, Y))
is
begin
Z := X + X;
end Diff;
|
with Ada.Unchecked_Deallocation;
with DOM.Core.Nodes;
with Ada.Text_IO; use Ada.Text_IO;
package body XML_Scanners is
-------------------
-- Child_Scanner --
-------------------
function Create_Child_Scanner
(Parent : DOM.Core.Node)
return XML_Scanner
is
use Ada.Finalization;
begin... |
-----------------------------------------------------------------------
-- package body Clenshaw. Generates functions from recurrance relations.
-- 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, prov... |
with System.BB.Threads.Queues;
use System.BB.Threads;
with System.Tasking;
use System.Tasking;
package body System.TTS_Support is
procedure Suspend_Thread (Thread : System.BB.Threads.Thread_Id);
procedure Resume_Thread (Thread : System.BB.Threads.Thread_Id);
procedure Hold (T : System.BB.Threads.Thread_Id;... |
-- { dg-do run }
-- { dg-options "-gnatws" }
with Text_IO;
procedure renaming2 is
type RealNodeData;
type RefRealNodeData is access RealNodeData;
type ExpressionEntry;
type RefExpression is access ExpressionEntry;
type RefDefUseEntry is access Natural;
type ExpressionEntry is
recor... |
-- C49022A.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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Loop_Parameter_Specifications;
with Program.Elements.Generalized_Ite... |
pragma License (Restricted);
--
-- Copyright (C) 2020 Jesper Quorning All Rights Reserved.
--
-- 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.