CombinedText
stringlengths
4
3.42M
separate (SPARKNaCl) procedure Sanitize_Boolean (R : out Boolean) is begin R := False; -- Boolean'Pos (0) -- It seems an inspection point is not possible on R here, since -- it is passed by copy in a register -- pragma Inspection_Point (R); -- See RM H3.2 (9) -- Add target-dependent code here to ...
-- { dg-do compile } with Prot2_Pkg1; with Prot2_Pkg2; package body Prot2 is type A is array (1 .. Prot2_Pkg1.Num) of Integer; type E is (One, Two); type Rec (D : E := One) is record case D is when One => L : A; when Two => null; end case; end record; package My_Pkg2 i...
with Ada.Numerics.Discrete_Random; with Ada.Containers.Vectors; with Ada.Finalization; use Ada.Containers; use Ada.Finalization; with Memory; use Memory; with Util; use Util; -- Base package for benchmarks. package Benchmark is -- An exception that is raised when an invalid argument is -- provided to a ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
-- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com) -- // -- // This software is provided 'as-is', without any express or implied warranty. -- // In no event will the authors be held li...
with Ada.Text_IO; use Ada.Text_IO; with GNAT.OS_Lib; use GNAT.OS_Lib; with Ada.Numerics.Discrete_Random; with Ada.Strings.Fixed; use Ada.Strings.Fixed; procedure Launcher is Java : constant String := "C:\Program Files\Java\jre1.8.0_191\bin\java"; Engine : constant String := "lib/engine.jar"; Ref_Name : consta...
package body Life_Pkg is ------------- -- Gtk_New -- ------------- procedure Gtk_New (Life_Value : out Life_Access) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Gtk_New unimplemented"); end; ---------------- -- Initialize -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package Program.Elements.Clauses is pragma Pure (Program.Elements.Clauses); type Clause is limited interface and Program.Elements.Element; type ...
pragma Ada_2012; with Ada.Text_IO.Text_Streams; with Ada.Streams; with Ada.Streams.Stream_IO; with Ada.Strings.Unbounded; with Natools.Getopt_Long; with Natools.String_Slices; with Markup.Parsers.Markdown.Extensions; with Instances; with Markup.Parsers.Markdown.Extensions; package body Generator.Markdown is packag...
with Ada.Integer_Text_IO; procedure Sum_Digits is -- sums the digits of an integer (in whatever base) -- outputs the sum (in base 10) function Sum_Of_Digits(N: Natural; Base: Natural := 10) return Natural is Sum: Natural := 0; Val: Natural := N; begin while Val > 0 loop Sum := S...
with Ada.Exceptions; use Ada.Exceptions; with kv.avm.Symbol_Tables; with kv.avm.References; with kv.avm.Instructions; with kv.avm.Registers; use kv.avm.Registers; with kv.avm.Log; use kv.avm.Log; package body kv.avm.Code_Generator is ---------------------------------------------------------------------------- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore and other contributors -- -- -- -- ...
-- C95040C.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 License (Unrestricted); -- Ada 2012 with Ada.Characters.Conversions; with Ada.Strings.Generic_Equal_Case_Insensitive; function Ada.Strings.Wide_Wide_Equal_Case_Insensitive is new Generic_Equal_Case_Insensitive ( Wide_Wide_Character, Wide_Wide_String, Characters.Conversions.Get); -- pragma ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package body A_Stack with SPARK_Mode, -- The_Stack is actually refined into three constituents Refined_State => (The_Stack => (P, V, M)) is subtype Pointer_T is Integer range 0 .. Stack_Size; subtype Index_T is Pointer_T range 1 .. Pointer_T'Last; P : Pointer_T := 0; V : array (Inde...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME 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...
package GESTE_Fonts.FreeSansOblique5pt7b is Font : constant Bitmap_Font_Ref; private FreeSansOblique5pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#02#, 16#02#, 16#01#, 16#00#, 16#80#, 16#40#, 16#40#, 16#00#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#81...
package body vole_lex_io is -- 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: in integer) is c : character; i : integer := 1; loc : integer := buf'first; begin ...
------------------------------------------------------------------------------ -- -- -- AUDIO / RIFF / WAV -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 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 ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; package Program.Elements.Raise_Expressions is pragma Pure (Program.Elements.Raise_Exp...
-- MIT License -- -- Copyright (c) 2020 Max Reznik -- -- 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, mo...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with openGL.Primitive.indexed; package body openGL.Model.line.colored is --------- --- Forge -- function to_line_Model (Color : in openGL.Color; End_1, End_2 : in Vector_3 := Origin_3D) return Item is Self : Item; begin Self.Col...
with Ada.Directories; with Ahven.Framework; with Annotation.Api; package Test_Annotation.Append is package Skill renames Annotation.Api; use Annotation; use Annotation.Api; type Test is new Ahven.Framework.Test_Case with null record; procedure Initialize (T : in out Test); procedure Set_Up (T : i...
pragma License (Unrestricted); private with System.Finalization_Root; package Ada.Finalization is pragma Pure; type Controlled is abstract tagged private; pragma Preelaborable_Initialization (Controlled); procedure Initialize (Object : in out Controlled) is null; procedure Adjust (Object : in out Contr...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Types; private with GL.Low_Level; package GL.Culling is pragma Preelaborate; type Face_Selector is (Front, Back, Front_And_Back); use GL.Types; procedure Set_Front_Face (Face : ...
-- Image_Random: True random numbers from a digital camera -- Copyright (C) 2020 by Pragmada Software Engineering -- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses -- -- 2020-09-01 Initial version -- with Ada.Directories; with Ada.Sequential_IO; with GNAT.OS_Lib; with GNAT.SHA...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Val_LLD is pragma Pure; -- required for Fixed'Value by compiler (s-valdec.ads) function Value_Long_Long_Decimal (Str : String; Scale : Integer) return Long_Long_Integer; end System.Val_LLD;
with Ada.Text_IO; use Ada.Text_IO; with System.OS_Lib; use System.OS_Lib; procedure Execute_Synchronously is Result : Integer; Arguments : Argument_List := ( 1=> new String'("cmd.exe"), 2=> new String'("/C dir c:\temp\*.adb") ); begin Spawn ( ...
<?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="...
<?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="...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT 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="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" vers...
-- ---------------------------------------------------------------------------- -- Note this is an implementation package and is subject to change att any time. -- ---------------------------------------------------------------------------- with DDS.ReadCondition; with DDS.Request_Reply.Impl; private package DDS.Re...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Numerics; use Numerics; package body Chebyshev is function CGL_Transform (F : in Real_Vector) return Real_Vector is N : constant Nat := F'Length; X : constant Real_Vector := Chebyshev_Gauss_Lobatto (N, -1.0, 1.0); G : Real_Vector := (2.0 / Real (N - 1)) * F; T : Real_Matr...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
with Ada.Finalization; use Ada.Finalization; package controlled1 is type Test is new Controlled with null record; procedure Add_Test (T : access Test'Class); type Test_Case1 is new Test with null record; type Test_Suite is new Test with null record; type Test_Case is new Test_Case1 with record ...
with AAA.Strings; with GNAT.Strings; with GNAT.Command_Line; private with Ada.Strings.Unbounded; private with Ada.Containers.Vectors; package CLIC.Subcommand is -- This root package defines the interface types to be used in the -- Subcommand. See CLIC.Subcommand.Instance to create the parser/executor. ty...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
package Test_Floats is end Test_Floats;
with Ada.Text_IO; use Ada.Text_IO; package body Yeison_Experiments is ------------ -- Append -- ------------ procedure Append (L : in out List; I : Integer) is begin Put_Line ("Append Integer " & I'Image); end Append; ------------ -- Append -- ------------ procedure Append (L : ...
-- package Tridiagonal_LU -- -- The package implements Crout's method for LU decomposition of -- tri-diagonal matrices. Matrix A is input in the form of three -- diagonals: the central diagonal of A, indexed by 0, and the -- two side diagonals indexed by -1 and 1. -- -- The LU form of A can then be used to solve simu...
-- Copyright 2010-2016 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-2017, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C64005C.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 RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2015,2016 Steven Stewart-Gallus -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law o...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
function Fib(x: in Integer) return Integer is Result : Integer; begin if x = 0 then Result := 0; elsif x = 1 then Result := 1; else Result := Fib(x-2) + Fib(x-1); end if; return Result; end Fib;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.RCC is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- CR_Register -- --------------...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with xcb.xcb_render_pointfix_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_render_create_linear_gradient_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; ...
-- -- Copyright (c) 2015, John Leimon <jleimon@gmail.com> -- -- 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 all copies. -- -- THE SOFTWARE IS PROVIDED "AS ...
with impact.d3.Vector; with impact.d3.collision.Proxy; with Ada.Containers; with impact.d3.Scalar; -- #include "impact.d3.Shape.convex.internal.multi_sphere.h" -- #include "BulletCollision/CollisionShapes/impact.d3.collision.Margin.h" -- #include "LinearMath/impact.d3.Quaternion.h" -- #include "LinearMath/btSerial...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- 6 package Asis.Implementation ------------------------------------------------------------------------------- ----------------------------------------------...
-- Copyright 2012-2015 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. -- -- ...
-- StrongEd$WrapWidth=256 -- StrongEd$Mode=Ada -- with Ada.Command_Line; with Ada.Text_IO; with Ada.Characters.Handling; with Ada.Strings.Unbounded;-- use Ada.Strings.Unbounded; with System.Unsigned_Types; use System.Unsigned_Types; With Ada.Strings; use Ada.Strings; With Ada.String...
-- Copyright 2018-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with ACO.Configuration; with ACO.Drivers; with ACO.Events; with ACO.Messages; with Ada.Finalization; with Ada.Real_Time; use Ada.Real_Time; private with ACO.Messages.Buffer; private with Ada.Synchronous_Task_Control; package ACO.CANopen is type Handler_Base is abstract new Ada.Finalization.Limited_Controlled w...
with GTK.MAIN; with Q_BINGADA; procedure BINGADA is begin GTK.MAIN.INIT; Q_BINGADA.P_CREATE_WIDGETS; -- All GTK applications must have a Gtk.Main.Main. Control ends here -- and waits for an event to occur (like a key press or a mouse event), -- until Gtk.Main.Main_Quit is called. GTK....
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 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 fr...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2010, Alexander Senier -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or withou...
pragma Ada_2012; -- with Ada.Text_IO; use Ada.Text_IO; package body Fakedsp.Background_Tasks is use Fakedsp.Card; ------------- -- Adc_Dac -- ------------- task body Adc_Dac is use Data_Streams; task Reader is entry Read_From (Source : in Data_Source_Access); entry Get ...
------------------------------------------------------------------------------ -- -- -- GNAT 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="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.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers; --- @summary --- The `Spark_Unbound` package contains various unbound generic data structures. --- All data structures are formally proven by Spark and `Storage_Error` for heap allocation is handled internally. --- --- @description ...
pragma License (Unrestricted); with Ada.Iterator_Interfaces; private with Ada.Finalization; private with System.Native_Environment_Variables; package Ada.Environment_Variables is pragma Preelaborate; function Value (Name : String) return String; function Value (Name : String; Default : String) return String; ...
-- ----------------------------------------------------------------- -- -- AdaSDL -- -- Binding to Simple Direct Media Layer -- -- Copyright (C) 2001 A.M.F.Vargas -- -- Antonio M. F....
with Ada.Containers.Doubly_Linked_Lists; with Ada.Text_IO; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with Interfaces.C; use Interfaces.C; with System; with GL; with GLext; with GLX; with GLXext; with X11; with XLib; with xcb; use xcb; with xcb_xfixes; with xcb_shape; with xproto; use xproto; wit...
-------------------------------------------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.JSON.Objects; with League.JSON.Streams; with League.Strings.Hash; with LSP.Messages; with LSP.Message_Handlers; with LSP....
-------------------------------------------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit specialized for Darwin (or Linux, or Windows) package System.Long_Long_Complex_Types is pragma Pure; -- Complex type Imaginary is new Float; type Complex is record Re, Im : Float; end record; pragma Complex_Representation (Complex); ...
with C.stdlib; with C.sys.types; with C.sys.uio; with C.unistd; package body System.Termination is pragma Suppress (All_Checks); New_Line : aliased constant C.char := C.char'Val (10); procedure Error_Put_Line (S : String) is iovec : aliased array (0 .. 1) of aliased C.sys.uio.struct_iovec := ( ...
-- 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; package Maps.Tes...
with openGL.Shader, openGL.Buffer.general, openGL.Program, openGL.Attribute, openGL.Texture, openGL.Palette, openGL.Tasks, openGL.Errors, GL.Binding, GL.lean, GL.Pointers, System, Interfaces.C.Strings, System.storage_Elements; package body openGL....
-------------------------------------------------------------------------------------------------------------------- -- 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...
-- REST API Validation -- API to validate -- -- The version of the OpenAPI document: 1.0.0 -- Contact: Stephane.Carrez@gmail.com -- -- NOTE: This package is auto generated by OpenAPI-Generator 6.0.0-SNAPSHOT. -- https://openapi-generator.tech -- Do not edit the class manually. pragma Warnings (Off, "*is not ref...