content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- Copyright (c) 2013-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- 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 Lic... |
procedure Ride Me is
raptor_prompt_variable_zzyz : Unbounded_String;
devueltade : ??_Variable;
ruta : ??_Variable;
devuelta : ??_Variable;
total : ??_Variable;
vayanse_en_guagua : ??_Variable;
univ : ??_Variable;
numdeestudiantes : ??_Variable;
costo : ??_Variable;
begin
Ruta :=0;
univ ... |
pragma License (Unrestricted);
-- extended unit, see AI05-0002-1
generic
type Object (<>) is limited private;
type Object_Pointer is access all Object;
package System.Address_To_Named_Access_Conversions is
-- This is an implementation of Robert I. Eachus's plan in AI05-0002-1.
pragma Preelaborate;
fun... |
-----------------------------------------------------------------------
-- awa-users-model -- User management module
-- Copyright (C) 2009, 2010, 2011, 2012 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) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Private_Test_Reporter;
package body Apsepp.Test_Node_Class.Suite_Stub is
T_S_S : aliased Test_Suite_Stub;
----------------------------------------------------------------------... |
with Ada.Unchecked_Conversion;
package body SPARKNaCl.Utils
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
function To_U32 is new Ada.Unchecked_Conversion (I32, U32);
function To_I32 is new Ada.Unchecked_Conversion (U32, I32);
-- Constant-time conditi... |
with Ada.Numerics.Generic_Arrays;
package body Ada.Numerics.Generic_Real_Arrays is
package Elementary_Functions is
subtype Float_Type is Real;
function Sqrt (X : Float_Type'Base) return Float_Type'Base;
end Elementary_Functions;
package body Elementary_Functions is
function Sqrt (X : Fl... |
private
with
openGL.Geometry.colored;
package openGL.Model.line.colored
--
-- Models a colored line.
--
is
type Item is new Model.line.item with private;
type View is access all Item'Class;
---------
--- Forge
--
function new_line_Model (Color : in openGL.Color;
... |
with Ada.Streams; use Ada.Streams;
with SHA2_Generic;
package SHA2 is new SHA2_Generic
(Element => Stream_Element, Index => Stream_Element_Offset,
Element_Array => Stream_Element_Array) with
Pure,
Preelaborate;
|
-- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Pleas... |
-----------------------------------------------------------------------
-- util-files -- Various File Utility Packages
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012, 2015, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Versio... |
-- { dg-do run }
-- { dg-options "-gnatws" }
with discr3; use discr3;
with Text_IO; use Text_IO;
procedure Conv_Bug is
begin
begin
V2 := S2 (V1);
exception
when Constraint_Error => null;
when others => Put_Line ("Wrong Exception raised");
end;
begin
V2 := S2(V1(V1'Range));
... |
for I in 1..5 loop
for J in 1..I loop
Put("*");
end loop;
New_Line;
end loop;
|
-----------------------------------------------------------------------
-- util-serialize-contexts -- Contexts for serialization framework
-- Copyright (C) 2010, 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 - 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) ... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
-- C94001A.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: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Network.Connections is
------------------
-- Set_Listener --
------------------
procedure Set_Listener
(Self : in out Conne... |
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A033 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
Products_List : array (Integer range 1 .. 4, 1 .. 2) of Integer;
Value_1, Value_2 : Float;
Count_Val : Integer := 1;
Reduced ... |
--------------------------------------------------------------------------
-- Arbitrary Precision Math Library: Logarithmic Functions
-- Joe Wingbermuehle 20020320 <> 20020327
--------------------------------------------------------------------------
package Arbitrary.Log is
function Exp(a : Arbitrary_Type) return A... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Vectors;
with Ada.Directories;
with Ada.Exceptions;
with Ada.Text_IO;
with File_Operations;
with HelperText;
package body Package_Manifests
is
package DIR re... |
package Assert is
procedure Assert (Condition : Boolean);
end Assert;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
with Courbes.Visiteurs; use Courbes.Visiteurs;
package body Courbes.Bezier_Quadratiques is
function Ctor_Bezier_Quadratique (Debut, Fin, C : Point2D) return Bezier_Quadratique is
begin
return
(Debut => Debut,
Fin => Fin,
Controle => C);
end;
overriding func... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Streams;
with GNAT.Sockets;
with Network.Streams;
private
package Network.Managers.TCP_V4_Out is
type Out_Socket (Poll : Network.Polls.Poll_... |
package body GNAT.Regpat is
function Compile (Expression : String; Flags : Regexp_Flags := No_Flags)
return Pattern_Matcher is
begin
raise Program_Error; -- unimplemented
return Compile (Expression, Flags);
end Compile;
function Match (
Self : Pattern_Matcher;
Data : String;... |
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- control and status for on-chip voltage regu... |
-- { dg-do compile }
pragma Restrictions (No_Implicit_Heap_Allocations);
package Discr_Record_Constant is
type T (Big : Boolean := False) is record
case Big is
when True =>
Content : Integer;
when False =>
null;
end case;
end record;
D : constant T :... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package body NRF24L01 is
procedure SPI_Transfer
(This : in out Device;
Data : in out SPI_Data_8b)
is
Status : SPI_Status;
begin
-- One byte at a time, we don't know how deep th... |
-- Simple Lambda Calculus interpreter
-- ----------------------------------
-- Parses and reduces Lamdba Calculus statements.
--
-- The syntax roughly corresponds to what could be written in a text on the
-- Lambda Calculus.
-- * Spaces and underscores are ignored
-- * Single letter variable names 'a'..'z'
-- * Singl... |
-- =============================================================================
-- Package AVR.BLS
--
-- Handles the Boot Loader Support.
-- =============================================================================
package AVR.BLS is
type Store_Program_Memory_Control_And_Status_Register_Type is
record
... |
package body Solar_System.Graphics is
procedure Draw_Body (Object : Body_Type; Canvas : Canvas_ID) is
begin
if Object.Visible then
Draw_Sphere
(Canvas => Canvas,
Position => (Object.X, Object.Y, 0.0),
Radius => Object.Radius,
Color => Object.Co... |
-----------------------------------------------------------------------
-- upnp-ssdp -- UPnP SSDP operations
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in c... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type R is record A: Integer; end record;
X : R;
begin
X.A := 'a';
end;
|
-- C35A07A.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 Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with arm_math_types_h;
with sys_ustdint_h;
package basic_math_functions_h is
procedure arm_mult_q7
(pSrcA : access arm_math_types_h.q7_t;
pSrcB : access arm_math_types_h.q7_t;
pDst : access arm... |
with Ada.Text_IO; use Ada.Text_IO;
with System; use System;
procedure Host_Introspection is
begin
Put_Line ("Word size" & Integer'Image (Word_Size));
Put_Line ("Endianness " & Bit_Order'Image (Default_Bit_Order));
end Host_Introspection;
|
with
any_Math.any_Algebra.any_linear;
generic
with package linear_Algebra_2D is new any_Math.any_Algebra.any_linear;
package any_Math.any_Geometry.any_d2
--
-- Provides a namespace and core types for 2D geometry.
--
is
pragma Pure;
---------
-- Sites
--
-- Cartesian
--
subtype Site... |
package Smallest_Factor with SPARK_Mode is
procedure SmallestF (N : in out Positive; Factor : out Positive)
with
SPARK_Mode,
Pre => N > 1,
Post => (Factor > 1) and
(N'Old / Factor = N) and
(N'Old rem Factor = 0) and
(for all J in 2 .. Factor - 1 => N'Old... |
with Interfaces; use Interfaces;
with System.Storage_Elements; use System.Storage_Elements;
package QOI
with SPARK_Mode
is
type Pixels is array (Storage_Count range <>) of Unsigned_8
with Default_Component_Value => 0;
type Pixels_Access is access Pixels;
type Data is array (Storage_Count range <>) ... |
with Interfaces;
with Offmt_Lib.Fmt_Data.Unsigned_Generic;
package Offmt_Lib.Fmt_Data.Unsigned_8
is new Offmt_Lib.Fmt_Data.Unsigned_Generic (Interfaces.Unsigned_8);
|
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Successeur; use Successeur;
procedure launch is
begin
Put_Line ("2+3 =" & Integer'Image(plus(2, 3)));
end Launch;
|
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . E R R O R --
-- S p e c --
----... |
with numbers; use numbers;
with strings; use strings;
with env; use env;
package getter.high is
ERROR_NO_CLOSED : exception;
ERROR_HIGH : exception;
function get return character;
procedure start (s : string);
private
use type unb.unbounded_string;
type types is (type_byte, type_word);
last_index : nat... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 Felix Krause <contact@flyx.org>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licen... |
-- SPDX-License-Identifier: MIT
--
-- Contributed by ITEC - NXP Semiconductors
-- June 2008
--
-- Copyright (c) 2008 - 2018 Gautier de Montmollin (maintainer)
-- SWITZERLAND
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (... |
-----------------------------------------------------------------------
-- GtkAda - Ada95 binding for Gtk+/Gnome --
-- --
-- Copyright (C) 2011, AdaCore --
-- ... |
pragma License (Unrestricted);
-- extended unit
package Ada.Exception_Identification.From_Here is
-- For shorthand.
pragma Pure;
procedure Raise_Exception (
E : Exception_Id;
File : String := Debug.File;
Line : Integer := Debug.Line)
renames Raise_Exception_From_Here;
procedure Ra... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- --
-- ... |
with RASCAL.Utility; use RASCAL.Utility;
with RASCAL.Toolbox; use RASCAL.Toolbox;
with RASCAL.WimpTask; use RASCAL.WimpTask;
with RASCAL.UserMessages;
with RASCAL.InteractiveHelp;
with RASCAL.StrongHelp;
with Main; use Main;
with Ada.Exceptions;
with Reporter;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
with League.String_Vectors;
package Meta.Classes is
type Capacity_Kind is
(Just_One,
Zero_Or_One,
Zero_Or_More,
... |
-- Mojang Session API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-generator.tech
-- Do not edit the class... |
with
physics.Object,
lace.Any;
package physics.Joint
--
-- Provides an interface for physics joints.
--
is
type Item is limited interface
and lace.Any.limited_item;
type View is access all Item'Class;
use Math;
type Degree_of_freedom is range 1 .. 6;
procedure destruct ... |
with Arbre_Genealogique; use Arbre_Genealogique;
with Date; use Date;
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
procedure Scenario_Genealogique is
Arbre : T_Arbre_Genealogique;
Personne : T_Personne;
Personne2 : T_Personne;
Cle ... |
pragma License (Unrestricted);
with Ada.Task_Identification;
with System.Multiprocessors;
package Ada.Execution_Time.Group_Budgets is
type Group_Budget (
CPU : System.Multiprocessors.CPU := System.Multiprocessors.CPU'First) is
tagged limited private;
type Group_Budget_Handler is
access protect... |
package Support.Cmdline is
procedure get_command_arg
(the_arg_string : out String; -- the unprocessed argument i.e., -xfoo in -xfoo
which_arg : Integer); -- which argument
function get_command_arg
(which_arg : Integer; -- which argument
default : String)... |
-- OpenBSD - Provide high-level Ada interfaces to OpenBSD's pledge and unveil.
-- Written in 2019 by Prince Trippy programmer@verisimilitudes.net .
-- To the extent possible under law, the author(s) have dedicated all copyright and related and
-- neighboring rights to this software to the public domain worldwide.
-- T... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
WITH Ada.Text_Io;
USE Ada.Text_Io;
WITH Salas;
PACKAGE BODY Cine IS
MAX_SALAS : CONSTANT := 30;
TYPE Arr_Salas IS ARRAY (1 .. MAX_SALAS) OF Sala;
Nombre_Cine : String (1 .. 7);
Cont : Integer;
Salas_Arr : Arr_Salas;
PROCEDURE Crear_Cine (
Nombre : Strin... |
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.EVSYS is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Control
type EVSYS_CTRLA_Register is... |
------------------------------------------------------------------------------
-- Copyright (c) 2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- { dg-do compile }
procedure str1 is
Str : constant string := "--";
generic
package Gen is
procedure P;
end Gen;
package body Gen is
procedure P is
inner : String := Str;
begin
null;
end;
end Gen;
package Inst is new Gen;
begin
null;
end;
|
-- Copyright 2019-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 UxAS.Comms.LMCP_Net_Client.Service.Example_Spark_Service; use UxAS.Comms.LMCP_Net_Client.Service.Example_Spark_Service;
with AFRL.CMASI.MissionCommand; use AFRL.CMASI.MissionCommand;
with AVTAS.LMCP.Object.SPARK_Boundary; use AVTAS.LMCP.Object.SPARK_Boundary;
private
package UxAS.C... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with datos;
use datos;
procedure intercambiar (Pos_Min, posicion : in Integer; L : in out Lista_Enteros) is
-- Incio: X Y
-- Final: Y X
Auxiliar: Integer;
begin
Auxiliar := L.Numeros(posicion); -- Auxiliar es Posicion X
L.Numeros(posicion) := L.Numeros(Pos_Min); -- En Posicion X ponemos Posicion Y
L.Numeros(Po... |
-- CC1311A.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... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
package body Problem_59 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
package Character_Vector is new Ada.Containers.Vectors(Index_Type => Positive,
... |
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 euler24 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.S... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
package body Glfw.Input.Joysticks is
function Index (Source : Joystick) return Joystick_Index is
begin
return Enums.Joystick_ID'Pos (Source.Raw_Index) + 1;
end Index;
... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Units
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: Additional units for navigation
--
with Units.Vectors; use Units.Vectors;
with Units.Numerics; use Unit... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Defining_Identifiers;
package Program... |
--
-- Copyright (C) 2015-2017 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- ... |
with Ada.Unchecked_Conversion;
package body Ada.Numerics.SFMT.Generating is
-- SSE2 version
type v4si is array (1 .. 4) of Unsigned_32;
for v4si'Alignment use 16;
pragma Machine_Attribute (v4si, "vector_type");
pragma Machine_Attribute (v4si, "may_alias");
pragma Suppress_Initialization (v4si);
... |
pragma Ada_2012;
package body Latex_Writer.Picture is
--------------------
-- Within_Picture --
--------------------
procedure Within_Picture
(Output : File_Access;
Width : Picture_Length;
Heigth : Picture_Length;
Callback : access procedure (Output : File_Access))
is... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package Glfw.Events.Keys is
-- Not all values are actually used.
-- For non-special keys, the ASCII capital representation is used as value.
-- For special keys, the values defined as constant... |
with System.Storage_Elements;
with System.Debug; -- assertions
package body System.Stack is
pragma Suppress (All_Checks);
use type Storage_Elements.Storage_Offset;
use type C.signed_int;
procedure Get (
Thread : C.pthread.pthread_t := C.pthread.pthread_self;
Top, Bottom : out Address)
is
... |
-- AOC 2020, Day 1$
with Ada.Containers.Vectors;
with Ada.Containers.Indefinite_Ordered_Maps;
package Day is
type Program is private;
function load_file(filename : in String) return Program;
function sum_memory(p : in Program) return Long_Integer;
function sum_memory_v2(p : in Program) return Long_Integer;
... |
with Display; use Display;
with Display.Basic; use Display.Basic;
procedure bounce is
Ball : Shape_Id := new_Circle
(X => 0.0,
Y => 0.0,
Radius => 10.0,
Color => Blue);
begin
loop
if Get_X (ball) > 100.0 then
Step := -0.05;
elsif Get_X (ball) < -100.0 then
St... |
-- { dg-do compile }
with Ada.Strings.Bounded;
package formal_type is
generic
with package BI is
new Ada.Strings.Bounded.Generic_Bounded_Length (<>);
type NB is new BI.Bounded_String;
package G is end;
package BI is new Ada.Strings.Bounded.Generic_Bounded_Length (30);
type NB is new ... |
with STM32.Setup;
with STM32_SVD.NVIC; use STM32_SVD.NVIC;
with STM32_SVD.EXTI; use STM32_SVD.EXTI;
with STM32_SVD.PWR; use STM32_SVD.PWR;
-- vvvv see utils.adb in WB55...
-- private with Ada.Interrupts;
-- private with Ada.Interrupts.Names;
package body STM32.Board is
---------------------
-- Initialize... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
package GL.Tessellation is
pragma Preelaborate;
use GL.Types;
procedure Set_Patch_Vertices (Value : Int);
procedure Set_Patch_Default_Inner_Level (Values : Single_Array);
... |
with Big_Integers; use Big_Integers;
with Types; use Types;
with Conversion; use Conversion;
package Curve25519_Other_Mult with
SPARK_Mode
is
function Multiply_1 (X, Y : Integer_255) return Product_Integer with
Pre => All_In_Range (X, Y, Min_Multiply, Max_Multiply),
Post => (+Multiply_1'Result) =
... |
with Tkmrpc.Servers.Ike;
with Tkmrpc.Response.Ike.Tkm_Limits.Convert;
package body Tkmrpc.Operation_Handlers.Ike.Tkm_Limits is
-------------------------------------------------------------------------
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type) is
pragma Unreferenced (Req);
... |
-----------------------------------------------------------------------
-- wiki-attributes -- Wiki document attributes
-- Copyright (C) 2015, 2016 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 ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Queens is
Board : array (1..8, 1..8) of Boolean := (others => (others => False));
function Test (Row, Column : Integer) return Boolean is
begin
for J in 1..Column - 1 loop
if ( Board (Row, J)
or else
(Row > J and then Boa... |
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
-- { dg-do run }
-- { dg-options "-gnatws" }
with Ada.Exceptions;
with Ada.Text_IO;
with Ada.Task_Identification;
procedure Curr_Task is
use Ada.Task_Identification;
-- Simple semaphore
protected Semaphore is
entry Lock;
procedure Unlock;
private
TID : Task_Id := Null_Task_Id;... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Directories;
with Ada.Direct_IO;
with Ada.Text_IO;
with HelperText;
package body File_Operations is
package DIR renames Ada.Directories;
package TIO renames Ada.Text_IO;
package HT renames Help... |
-- Copyright 2015 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... |
-- { dg-do run }
with test_image_p;
procedure test_image is
my_at5c : test_image_p.a_type5_class;
begin
my_at5c := new test_image_p.type5;
end;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.