content
stringlengths
23
1.05M
with impact.d3.Transform, impact.d3.Matrix, impact.d3.Vector; with impact.d3.min_max; package body impact.d3.aabb_Util is procedure Transform_Aabb (halfExtents : in math.Vector_3; margin : in math.Real; t : in Tran...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . E V E N T -- -- S p e c -- ----...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- AOC 2020, Day 18 package Day is function hw_sum(filename : in String) return Long_Integer; function hw_newmath_sum(filename : in String) return Long_Integer; private function eval_string(expr : in String) return Long_Integer; function eval_newmath_string(expr : in String) return Long_Integer; end Day;
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with League.Strings; with League.Base_Codecs; with JWS; with JWS.RS256; pragma Unreferenced (JWS.RS256); procedur...
-- { dg-do run } -- { dg-options "-gnatws" } procedure Test_Bounded is type Bounded (Length : Natural := 0) is record S : String (1..Length); end record; type Ref is access all Bounded; X : Ref := new Bounded; begin null; end Test_Bounded;
with AUnit.Run; with AUnit.Reporter.Text; with ImageTests; with ShapeMatchingTests; with ShapeDatabaseTest; with HistogramTests; with HistogramDescriptorTests; with NeuralNetTests; with NeuralNetIOTests; with DataBatchTests; with NNClassifierTests; with TrainingSetTests; with CSVTests; with OpenCLTests; with GpuImageT...
with Ada.Text_IO; use Ada.Text_IO; package body Memory.Trace is function Create_Trace(mem : Memory_Pointer) return Trace_Pointer is result : constant Trace_Pointer := new Trace_Type; begin Set_Memory(result.all, mem); return result; end Create_Trace; function Clone(mem : Trace_Type) re...
with Interfaces; package STM32.F4.GPIO.Ports is -- Single GPIO pin generic Register: in out GPIO_Registers; Bit: Port_Bit_Number; package GPIO_Port_Boolean is procedure Set(Value: Boolean) with Inline; -- Output to port function Value return Boolean with Inline; -- Read port end GPIO_Port_Boolean; -- Mul...
with Ada.Text_IO; use Ada; procedure Hello is begin Text_IO.Put_Line("procedure Hello is"); -- notice that "procedure" and "is" aren't highlighted here end Hello;
package Giza.Bitmap_Fonts.FreeSerifBoldItalic8pt7b is Font : constant Giza.Font.Ref_Const; private FreeSerifBoldItalic8pt7bBitmaps : aliased constant Font_Bitmap := ( 16#0C#, 16#71#, 16#C6#, 16#18#, 16#41#, 16#08#, 16#20#, 16#0E#, 16#38#, 16#C7#, 16#8E#, 16#14#, 16#28#, 16#40#, 16#04#, 16#83#, 16#60#, 16#90...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" private with GL.Low_Level; package GL.Errors is -- not Pure because Error_Flag can change with each call pragma Preelaborate; -- The behavior of this package depends on the scenario variable ...
-- Copyright ©2021,2022 Steve Merrony -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish,...
-- Generated at 2015-03-03 23:00:05 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-tag_pages-maps.sx package Natools.Static_Maps.Web.Tag_Pages is pragma Pure; type Command is (Unknown_Command, Current_Tag, If_Index, If_Slash_Index, If_Slashless_Index, If_Tag, ...
-- -- 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...
------------------------------------------------------------------------------- -- 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 w...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Strings.UTF_Encoding; private with Lexer.Base; with Text.Pool; with Yaml.Source; private package Yaml.Lexer is use Ada.Strings.UTF_Encoding; Default_Initial_Buffer_Size : constant := ...
-- 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...
with GNATCOLL.Strings_Impl, Ada.Wide_Wide_Characters.Handling, Ada.Characters,Ada.Containers.Doubly_Linked_Lists; use Ada.Wide_Wide_Characters.Handling; package Compiler is package aString is new GNATCOLL.Strings_Impl.Strings (SSize => GNATCOLL.Strings_Impl.Optimal_String_Size, Character_Type ...
with Ada.Numerics.Generic_Elementary_Functions; with Ahven.Framework; with Floats.Api; package Test_Floats.Read is use Floats; use Floats.Api; type Test is new Ahven.Framework.Test_Case with null record; procedure Initialize (T : in out Test); procedure Float; procedure Double; end Test_Floats.R...
----------------------------------------------------------------------- -- components-root -- ASF Root View Component -- Copyright (C) 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 use ...
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O G A...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Containers.Vectors; with Ada.Containers.Hashed_Maps; with League.String_Vectors; with League.Strings; with League.Strings.Hash; with WebIDL.Argum...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with GNAT.Sockets; use GNAT.Sockets; package IRC is type Mode is (Quit, Part, Privmsg, Join); Modes : array (Mode) of Unbounded_String := (To_Unbounded_String ("QUIT"), To_Unbounded_String ("PART"), To_Unbounded_String ("PRIVMS...
-- Spécification du module Ensembles. generic Capacite : Integer; -- Nombre maximal d'éléments qu'un ensemble peut contenir. type T_Element is private; -- Type des éléments de l'ensemble. package Ensembles_Tableau is type T_Ensemble is limited private; -- Initilaiser un ensemble. L'ensemble est vide...
pragma License (Unrestricted); with Ada.Strings.Unbounded_Wide_Strings.Functions.Maps; with Ada.Strings.Wide_Maps; package Ada.Strings.Wide_Unbounded is pragma Preelaborate; -- type Unbounded_Wide_String is private; -- pragma Preelaborable_Initialization (Unbounded_Wide_String); subtype Unbounded_Wide_String i...
package body System.Storage_Pools.Subpools.Unbounded is type Unbounded_Subpool_Access is access all Unbounded_Subpool; -- implementation overriding function Create_Subpool ( Pool : in out Unbounded_Pool_With_Subpools) return not null Subpool_Handle is Subpool : constant not null Unboun...
with Ada.Unchecked_Conversion; with STM32.Device; package body STM32.HRTimers is ---------------------------------------------------------------------------- -- HRTimer Master functions ----------------------------------------------- ------------------------------------------------------------------------...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure henge
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- 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...
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 bigints is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...
with Ada . Text_IO ; with Ada . Integer_Text_IO ; with Ada . Float_Text_IO ; with Binary_Heap ; with Measure_Time ; use Ada . Text_IO ; use Ada . Integer_Text_IO ; use Ada . Float_Text_IO ; with Ada.Numerics.Discrete_Random ; procedure test_queue is arr_size : constant Natural := 100 ; package Binary_Heap_F...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- asf.beans -- Bean Registration and Factory -- 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"); -- you may no...
with Ada.Containers.Murmur_Hash_3; with Ada.Strings.Naked_Maps.Case_Folding; function Ada.Strings.Generic_Hash_Case_Insensitive (Key : String_Type) return Containers.Hash_Type is Mapping : constant not null Naked_Maps.Character_Mapping_Access := Strings.Naked_Maps.Case_Folding.Case_Folding_Map; State : C...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Containers.Bounded_Ordered_Maps; with Ada.Streams.Stream_IO; with League.Strings; with Torrent.Metainfo_Files; package Tor...
with RTCH.Maths; use RTCH.Maths; package RTCH.Colours with Pure is type Colour is record Red : Float := 0.0; Green : Float := 0.0; Blue : Float := 0.0; end record; function Make_Colour (Red, Green, Blue : Float) return Colour is (Colour'(Red => Red, Green => Gree...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_h; package bits_types_clock_t_h is -- Returned by `clock'. subtype clock_t is bits_types_h.uu_clock_t; -- /usr/include/bits/types/clock_t.h:7 end bits_types_clock_t_h;
with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Subprograms is A, B, C, D : Integer; procedure Max_Min (A, B: in Integer; C, D: out Integer) is begin if A > B then C := A; D := B; else C := B; D := A; end if; end Max_Min; begin Put("...
with avtas.lmcp.types; use avtas.lmcp.types; with avtas.lmcp.byteBuffers; use avtas.lmcp.byteBuffers; with Ada.Streams; with Utilities; package avtas.lmcp.object is type Object is abstract tagged null record; type Object_Acc is access all Object; type Object_Any is access all Object'Class; -- function c...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
configuration DSA is pragma Starter (None); -- Server Server_Partition : Partition := (Server); procedure Run_Server is in Server_Partition; -- Client Client_Partition : Partition; for Client_Partition'Termination use Local_Termination; procedure Client; for Client_Partition'Main use Client...
-- This is the official SFML example converted to ASFML with Ada.Command_Line; with Sf.Window.Videomode; use Sf, Sf.Window, Sf.Window.Videomode; with Sf.Window.Event; use Sf.Window.Event; with Sf.Window.Window; use Sf.Window.Window; with Sf.Graphics.Color; use Sf.Graphics, Sf.Graphics.Color; with Sf.Graphics.RenderW...
-- -- ## What is a consumer? -- A consumer is an object that implement the `Consumer_Interface`. -- It is expected to accept a single string as argument and it can do -- whatever it wants with it. A consumer receives its parameter from -- the builtin function `@` after the `#...#` processing has taken -- place. -- -- ...
with Extraction.Node_Edge_Types; package body Extraction.Project_Files is use type GPR.Project_Type; procedure Extract_Nodes (Project : GPR.Project_Type; Graph : Graph_Operations.Graph_Context) is begin Graph.Write_Node(Project); Graph.Write_Node(Project.Project_Path); end Ext...
-- C74208B.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.Command_Line; use Ada.Command_Line; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Memory; use Memory; with Parser; with Device; with Benchmark; use Benchmark; with Benchmark_Runner; use Benchmark_Runner...
package Discr18_Pkg is subtype Length is Natural range 0..256; type Multiple_Discriminants (A, B : Length) is tagged record S1 : String (1..A); S2 : String (1..B); end record; procedure Do_Something (Rec : in out Multiple_Discriminants); type Multiple_Discriminant_Extension...
with Ada.Text_IO; with Gnat.Command_Line; with Gnat.Strings; procedure Test_GNAT_Command_Line is package ATI renames Ada.Text_IO; package GCL renames Gnat.Command_Line; type Options_Record is record -- Initialized Config : GCL.Command_Line_Configuration; -- Initialized Debug : alias...
pragma Ada_2012; limited with Protypo.Api.Engine_Values.Handlers; package Protypo.Api.Engine_Values is use Ada.Strings.Unbounded; type Engine_Value_Class is ( Void, Int, Real, Text, Array_Handler, Record_Handler, Ambivalent_Handler, Function_Handler, Re...
----------------------------------------------------------------------- -- secret-services -- Ada wrapper for Secret Service -- 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 ...
PACKAGE Math IS -- specification for math functions to be used with AdaEd. -- see package body for usage guidelines. -- written by Michael B. Feldman, The George Washington University -- May 1992. -- Transcendentals FUNCTION Sin (X : Float) RETURN Float; FUNCTION Cos (X : Float) RETURN Float; ...
{% load kdev_filters %} {% block license_header %} {% if license %} -- {{ license|lines_prepend:"-- " }} -- {% endif %} {% endblock license_header %} procedure {{ name }} is begin end {{ name }};
-- This spec has been automatically generated from msp430g2553.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- Special Function package MSP430_SVD.SPECIAL_FUNCTION is pragma Preelaborate; --------------- -- Registers -- --------------- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with System.Address_To_Access_Conversions; with Interfaces.C; with Coroutines.Polling; package body Coroutines is -- void * cre...
with String_Vectors; use String_Vectors; with String_Vectors_Utils; use String_Vectors_Utils; with Ada.Containers; use Ada.Containers; -- TODO: -- asked Ada expert how to get operators of String_Vectors -- without also including Ada.Containers -- See https://gt3-prod-1.adacore.com/#/tickets/UC02-053 for...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package body System.Allocation.Memory is function Alloc (Size : size_t) return System.Address is use all type SAA.Heap_Arena; Max_Align : constant := Standard'Maximum_Alignment; Res : Address; begin ...
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.ETM is pragma Preelaborate; --------------- -- Registers -- --------------- subtype ETM_CR_PORTSIZE_Field is HAL.UInt3; ...
with Node; use Node; with RandInt; package Plunderer is package RAD renames RandInt; task type PlundererTask(nodes: pArray_pNodeObj; maxSleep: Natural; intervals: Natural) is entry Stop; end PlundererTask; type pPlundererTask is access PlundererTask; end Plunderer;
----------------------------------------------------------------------- -- keystore-keys -- Keystore key management -- Copyright (C) 2019, 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 this fil...
package Debug2_Pkg is type String_Ptr is access all String; function To_Heap return String_Ptr; type String_List(Chars_Length: Positive) is private; type String_List_Ptr is access constant String_List; function Singleton return String_List; private type String_List(Chars_Length: Positive)...
with Ada.Streams; with Ada.Streams.Stream_IO; with System; with Other_Basic_Subprogram_Calls; use Other_Basic_Subprogram_Calls; package body Task_Subprogram_Calls is type R is record I : Integer; end record; type S is access R; procedure R_Output(Stream : not null access Ada.Stream...
-- This spec has been automatically generated from cortex_m-debug.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; -- ARM 32-bit Cortex-M Microcontroller package Cortex_M_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- Debug_Ba...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with avtas.lmcp.types; use avtas.lmcp.types; with afrl.cmasi.object; use afrl.cmasi.object; with afrl.cmasi.enumerations; use afrl.cmasi.enumerations; with afrl.cmasi.AbstractGeometry; use afrl.cmasi.AbstractGeometry; with afrl.cmasi.location3d; use afrl.cmasi.location3d; with Ada.Strings.Unbounded; use Ada.Strings.Unb...
type Container is array (Positive range <>) of Element; for Item of Container loop Do_Something(Item); end loop;
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- 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 pe...
------------------------------------------------------------------------------ -- -- -- JSON Parser/Constructor -- -- -- -- -...
with halfbox_panel; use halfbox_panel; with halfbox_info; use halfbox_info; package halfbox is type halfbox_t is record -- mesures de la demi-boite info : halfbox_info_t; -- face inférieure panel_bottom : halfbox_panel_t; -- face arrière ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- Blink a led with Interfaces.SaxonSOC.GPIO; use Interfaces.SaxonSOC.GPIO; procedure Blink is type Large is mod 2 ** 32; Counter_1 : Large := 0; begin -- GPIO_A_Output_Enable := 16#1111_1111#; GPIO_A_Output_Enable := 16#01#; GPIO_A_Output := 0; loop GPIO_A_Output := GPIO_A_Output xor 16#11...
type Long_Number is array (Natural range <>) of Unsigned_32; function "*" (Left, Right : Long_Number) return Long_Number is Result : Long_Number (0..Left'Length + Right'Length - 1) := (others => 0); Accum : Unsigned_64; begin for I in Left'Range loop for J in Right'Range loop Accum := Unsigned...
-- { dg-do run } -- { dg-options "-gnatws" } procedure Derived_Type2 is package Pkg is type Parent (B : Boolean := True) is record case B is when True => S : String (1 .. 5); when False => F : Float; end case; end record; function Create (X : Parent) re...
with Dsp.Functions; with Ada.Complex_Text_IO; with Ada.Text_IO; with Ada.Numerics.Complex_Types; procedure Main is use Dsp.Functions; use Ada.Complex_Text_IO; use Ada; use Ada.Numerics.Complex_Types; F1 : Real_FIR; F2 : Complex_IIR; F3 : Complex_IIR; Result : constant Scalar_Array (0 .. 10) :...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstenumtypes_h is -- unsupported macro: GST_TYPE_OBJECT_FLAGS (gst_object_flags_get_type()) -- unsupported macro: GST_TYPE_BIN_FLAGS (gst_bin_f...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Definitions; package Program.Elements.Anonymous_Access_Definitions is pragma Pure (Program.Elements.Anonymous_Access_Definitions)...
----------------------------------------------------------------------- -- package body Factorial. Use Stieltjes' continued fraction to get Log of N! -- 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,...
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); -- Edward Parse Library. -- -- ©2015 E. Fish; All Rights Reserved. Package EPL.Types with Pure is Type Bracket is ( Parentheses, Brackets, Braces, Chevrons, ...
pragma Restrictions (No_Exception_Propagation); package no_exc_prop is protected Simple_Barrier is entry Wait; procedure Signal; private Signaled : Boolean := False; end Simple_Barrier; end no_exc_prop;
with Ada.Environment_Variables; with Dotenv; with Print_Variable; procedure Example_1 is begin Dotenv.Config; Ada.Environment_Variables.Iterate (Print_Variable'Access); end Example_1;
------------------------------------------------------------------------------- -- Copyright 2021, The Septum 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 License at ...
package body Ada.Calendar.Naked is function To_Native_Time (T : Time) return System.Native_Calendar.Native_Time is begin return System.Native_Calendar.To_Native_Time (Duration (T)); end To_Native_Time; function To_Time (T : System.Native_Calendar.Native_Time) return Time is begin retu...
-- Computus_test : Comparison of Easter date computations methods. -- copyright Miletus 2015-2017 - no transformation allowed, no commercial use -- application developed using GPS GPL 2014 of Adacore -- inquiries: see www.calendriermilesien.org -- Versions -- M2017-11-14 : several tests possible within one single ses...
with Ada.Exception_Identification.From_Here; with System.Native_Real_Time; with System.Native_Time; with System.Storage_Elements; with System.Debug; -- assertions with C.errno; with C.fcntl; with C.poll; with C.sys.types; with C.unistd; package body System.Synchronous_Objects is use Ada.Exception_Identification.From...
with System; package body CBOR_Codec is subtype Additional_Value_Type is Integer range 0 .. 31; Additional_8Bit : constant Additional_Value_Type := 24; Additional_16Bit : constant Additional_Value_Type := 25; Additional_32Bit : constant Additional_Value_Type := 26; Additional_64Bit : constant Addi...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- -- Copyright (C) 2015-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. -- -- ...
with Memory.Transform; use Memory.Transform; generic type T_Type (<>) is new Transform_Type with private; type T_Pointer is access all T_Type'Class; with function Create_Transform return T_Pointer; package Parser.Transform_Parser is procedure Parse(parser : in out Parser_Type; result :...
package body Parser is function Evaluate (Root : in Node_Ptr) return Integer is Result : Integer := 0; begin if Root /= null then case Root.Node_Type is when Empty => null; when Literal => return Root.Value; when Plus => ...
with Tkmrpc.Types; package Tkmrpc.Contexts.isa is type isa_State_Type is (clean, -- Initial clean state invalid, -- Error state stale, -- IKE SA stale. active -- IKE SA is in active use. ); function Get_State (Id : Types.isa_id_type) r...
-- -- 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 Entities; use Entities; with Materials; use Materials; with Vectors2D; use Vectors2D; package Circles is type Circle is new Entities.Entity with record Radius : Float; end record; pragma Pack (Circle); type CircleAcc is access all Circle; -- Create a new Circle function Create(Pos, Vel,...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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.Strings.Fixed; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A052 is use Ada.Strings.Fixed; use Ada.Integer_Text_IO; Nx : constant Integer := 6; N_Max : constant Integer := 10; Num_Nx_Str : array (Integer range 1 .. Nx) of ...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . E V E N T -- -- B o d y -- -- ...
----------------------------------------------------------------------- -- asf-applications-main-tests - Unit tests for Application -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
-- Tests LU decomposition on a real valued banded matrix. -- -- Shows how interative refinement can clean up the mess when no -- pivoting is used in LU decomposition. Also shows that iterative -- refinement is ineffective if the problem is ill-conditioned. -- (Pivoting doesn't solve the problem of ill-conditioning ...
-- -- 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 share freely, not taking more than you give. -- with Ada.Text_IO; with Ada.Strings.Unbound...
with Ada.Numerics.Discrete_Random; with Ada.Text_IO; package body Mazes is package RNG is new Ada.Numerics.Discrete_Random (Positive); package Random_Direction is new Ada.Numerics.Discrete_Random (Directions); Generator : RNG.Generator; Dir_Generator : Random_Direction.Generator; function "-" (Dir...