CombinedText
stringlengths
4
3.42M
-- Stnd Binary Rank Test. with text_io; use text_io; with Binary_Rank; with Disorderly.Random; use Disorderly.Random; with Disorderly.Random.Clock_Entropy; with Ada.Numerics.Discrete_Random; with Chi_Gaussian_CDF; procedure rank_tst_demo_1 is type Real is digits 15; Bits_per_Random_Word : constant := 32; ...
with Memory.Container; use Memory.Container; package Memory.Prefetch is type Prefetch_Type is new Container_Type with private; type Prefetch_Pointer is access all Prefetch_Type'Class; function Create_Prefetch(mem : access Memory_Type'Class; stride : Address_Type := 1...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- @author Alexander Senier -- @date 2019-01-21 -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or w...
-- C83F03D0M.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. -- Unlim...
-- ---------------------------------------------------------------- -- -- This file contains some improvements to the gl Ada binding -- -- in order to allow a better programming style. -- -- The prototypes below follow the Implementation advice from -- -- ARM Annex B (B.3). ...
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; package NoStrategy is ARG : constant Integer := 0; type No is new AbstractStrategyCombinator and Object with null record; ------------...
with Memory.RAM; with Util; use Util; separate (Parser) procedure Parse_RAM(parser : in out Parser_Type; result : out Memory_Pointer) is latency : Time_Type := 1; burst : Time_Type := 0; word_size : Positive := 8; word_count : Natural := 0; begin while Get_Type(par...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
With Ada.Integer_Text_IO; use Ada.Integer_Text_IO; WITH P_StructuralTypes; USE P_StructuralTypes; with Ada.Streams; use Ada.Streams; with Ada.Sequential_IO; with Ada.Text_IO; use Ada.Text_IO; WITH P_StepHandler.InputHandler; USE P_StepHandler.InputHandler; WITH P_StepHandler.IPHandler; USE P_StepHandler.IPHandler;...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. with AUnit.Test_Fixtures; with GNATtest_Ge...
-- Copyright 2008 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- This...
-- AoC 2019, Day 6 with Ada.Text_IO; with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Containers.Ordered_Sets; with Ada.Strings.Hash; with Ada.Strings.Fixed; use Ada.Strings.Fixed; -- with GNAT.String_Split; -- with Ada.Characters.Latin_1; package body Day is package TIO renames Ada.Text_IO; package Orbit_Ele...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
<Diagramm> <AdditionalSQLCode> <SQLCode> <AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging> <AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing> <AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging> <AdditionalSQLCodePreEx...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
with Ada.text_IO; -- testing attributes 'Value and 'Image as applied to Integer procedure tloops1 is A,B,C : Integer; subtype Alphabet is Character range 'A' .. 'Z'; begin for X in Alphabet loop Ada.Text_IO.Put(Alphabet'Image(X) & " "); end loop; A := Integer'Value ( Ada.text_IO.Ge...
with openGL.Geometry.lit_colored_textured, openGL.Texture, openGL.IO, openGL.Primitive.indexed; package body openGL.Model.capsule.lit_colored_textured is --------- --- Forge -- function new_Capsule (Radius : in Real; Height : in Real; C...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x_mod2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.IOCON is pragma Preelabora...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; -- with Interfaces.C.Extensions; with System; package Sqlite3_H is pragma Preelaborate; pragma Warnings (Off); pragma Warnings (Off, "*style*"); -- unsupported macro: SQLITE_EXTERN extern SQLITE_VERSION : aliased constant String := "3.6....
-- -- Copyright (C) 2016 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. -- -- This ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2015-2017 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
with STM32GD.Timer; with STM32GD.Timer.Peripheral; with STM32_SVD.Interrupts; package Peripherals is package Timer is new STM32GD.Timer.Peripheral; end Peripherals;
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with DDS.Request_Reply.Tests.Simple.String_Replier; with DDS.Request_Reply.Tests.Simple.Octets_Replier; procedure DDS.Request_Reply.Tests.Simple.Server.Main is Listner : aliased Ref; Octets_Replier : Simple.Octets_Replier.Ref_Access := Simple.Octets_Replier.Create (Participant => Participant, ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C41306B.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 Text_Io,sequential_io,Direct_io; with Ada.strings.unbounded; use text_io; use Ada.strings.unbounded; procedure practica5 is Type TDatos is record Palabra:string(1..15);-- Este el tipo de dato que tiene el fichero de acceso directo numero:Natural; end record; package ficheroSec is new Sequential_Io(positive)...
pragma Assertion_Policy (Check); with Ada.Text_IO; use Ada.Text_IO; with Littlefs; use Littlefs; with RAM_BD; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with System.Storage_Elements; use System.Storage_Elements; procedure Tests is FS : aliased LFS_T; Block : constant access con...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se> -- -- 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.ap...
----------------------------------------------------------------------- -- util-serialize-io-xml -- XML Serialization Driver -- Copyright (C) 2011, 2012, 2013, 2016, 2017, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.SPI is pragma Preelaborate; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-flto" { target lto } } with Lto12_Pkg; use Lto12_Pkg; package Lto12 is C : constant R := F; end Lto12;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- 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...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- Copyright 2015-2019 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
with Ada.Text_IO; use Ada.Text_IO; -- Demander confirmation par 'o' ou 'n'. procedure Demander_Confirmation is Reponse: Character; -- la réponse de l'utilisateur begin -- Demander la réponse Put("Confirmation (o/n) ? "); Get(Reponse); while Reponse /= 'o' and Reponse /= 'n' loop Put_Lin...
-- C83022A.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 openGL.Geometry, openGL.Texture; package openGL.Model.billboard.textured -- -- Models a textured billboard. -- is type Item (Lucid : Boolean) is new Model.billboard.item with private; type View is access all Item'Class; type Image_view is access Image; type ...
-- Standard Ada library specification -- 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. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); with System.Tasking; package System.Task_Primitives.Operations is pragma Preelaborate; procedure Abort_Task (T : System.Tasking.Task_Id); end System.Task_Primitives.Operations;
procedure AdaM.Assist.Query.find_All.Driver;
pragma SPARK_Mode; with Pwm; with Sparkduino; use Sparkduino; package body Zumo_Motors is PWM_L : constant := 10; PWM_R : constant := 9; DIR_L : constant := 8; DIR_R : constant := 7; procedure Init is begin Initd := True; SetPinMode (Pin => PWM_L, Mode => PinMode'...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2004 Dmitriy Anisimkov -- -- ...
package body Test_Utils.Abstract_Encoder.COBS_Stream is ------------- -- Receive -- ------------- overriding procedure Receive (This : in out Instance; Data : Storage_Element) is begin This.Encoder.Push (Data); end Receive; ------------------ -- End_Of_Frame -- ---------------...
-- Copyright 2011-2019 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2011, Adrian-Ken Rueegsegger -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that...
-- -- 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...
package CSS.Analysis.Parser.Parser_Tokens is subtype yystype is CSS.Analysis.Parser.YYstype; YYLVal, YYVal : YYSType; type Token is (END_OF_INPUT, ERROR, R_PROPERTY, R_DEF_NAME, R_IDENT, R_NAME, R_DEFINE, R_FOLLOW, R_ANY, R_NUM, '(', ')', '{', '}', '[', ']', ...
-- 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. ...
with AdaM.a_Type.ordinary_fixed_point_type, gtk.Widget; private with gtk.gEntry, gtk.Box, gtk.Label, gtk.Spin_Button, gtk.Button; package aIDE.Editor.of_fixed_type is type Item is new Editor.item with private; type View is access all Item'Class; package Forge is ...
----------------------------------------------------------------------- -- AWA.Tags.Models -- AWA.Tags.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen.goog...
-- -- 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...
with System.Storage_Elements; package GC is pragma Preelaborate; pragma Linker_Options ("-lgc"); function Version return String; function Heap_Size return System.Storage_Elements.Storage_Count; procedure Collect; end GC;
-- Test LU decomposition on a real valued square matrix. with Ada.Numerics.Generic_elementary_functions; with Crout_LU; with Text_IO; use Text_IO; with Test_Matrices; procedure crout_lu_tst_2 is type Real is digits 15; subtype Index is Integer range 0..50; Starting_Index : constant Index := Index'First +...
-- This spec has been automatically generated from STM32F7x9.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.PWR is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_PLS_Field is HAL.U...
A : array (1..N) of T := (others => V);
-- -- 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...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
--PRÁCTICA 3: CÉSAR BORAO MORATINOS (Chat_Messages.adb) with Ada.Text_IO; with Lower_Layer_UDP; with Ada.Strings.Unbounded; package body Chat_Messages is package ATI renames Ada.Text_IO; use Ada.Strings.Unbounded; procedure Init_Message (Server_EP: LLU.End_Point_Type; Client_EP_Receive: LLU.End_Poin...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- CZ1101A.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. -- Unlim...
----------------------------------------------------------------------- -- mat-expressions-parser_io -- Input IO for Lex parser -- 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 ...
------------------------------------------------------------------------------- -- -- -- 0MQ Ada-binding -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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...
with Ada.Text_IO; use Ada.Text_IO; package body mylog with SPARK_Mode is procedure Print (m : logmsg) is begin case m.typ is when NONE => Put ("NONE"); when GPS => Put ("GPS: "); when TEXT => Put ("TXT: "); end case; end Print; end mylog;
with Ada.Containers.Doubly_Linked_Lists; with Ada.Text_IO; use Ada.Text_IO; with GL.Attributes; with GL.Culling; with GL.Objects.Buffers; with GL.Objects.Programs; with GL.Objects.Vertex_Arrays; with GL.Rasterization; with GL.Toggles; with GL.Types.Colors; with GL.Uniforms; with GL_Enums_Feedback; with GL_Util; with...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
with Ada.Streams; package XML.Streams is pragma Preelaborate; function Create ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Encoding : Encoding_Type := No_Encoding; URI : String := "") return Reader; function Create ( Stream : not null access Ada.Streams.Root_Stream_Type'Class; Encod...
-- -- Copyright (C) 2020, AdaCore -- -- This spec has been automatically generated from STM32F0x8.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- STM32F0x8 package Interfaces.STM32 is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Base type -- ------------...
-- trivial_example.adb -- A very simple example of the use of Parse_Args -- Copyright (c) 2015, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Strings; use Ada.Strings; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers; use Ada.Containers; with Ada.Containers.Vectors; with Ada.Integer_text_IO; procedure Main is package Vector_Pkg is new Vectors(Index_Type => Natural, ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
separate (SPARKNaCl) procedure Sanitize_GF32 (R : out GF32) is begin R := GF32'(others => 0); pragma Inspection_Point (R); -- See RM H3.2 (9) -- Add target-dependent code here to -- 1. flush and invalidate data cache, -- 2. wait until writes have committed (e.g. a memory-fence instruction) -- 3....
-- Copyright 2008-2014 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...