content
stringlengths
23
1.05M
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Iterator_Interfaces; limited with Regions.Entities; limited with Regions.Symbols; package Regions is pragma Pure; type Region is limited i...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hoc...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
package body Swap_Generics is procedure Swap_Generic (Value_1 : in out Data_Type; Value_2 : in out Data_Type) is Tmp : Data_Type; begin Tmp := Value_1; Value_1 := Value_2; Value_2 := Tmp; end Swap_Generic; end Swap_Generics;
-- Abstract: -- -- WisiToken wrapper around the re2c lexer -- -- References: -- -- [1] http://re2c.org/ -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under...
with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Text_Io; use Ada.Text_Io; procedure Upper_Case_String is S : String := "alphaBETA"; begin Put_Line(To_Upper(S)); Put_Line(To_Lower(S)); end Upper_Case_String;
-- 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...
with NRF52_DK.IOs; use NRF52_DK.IOs; with SteeringControl; use SteeringControl; with NRF52_DK.Buttons; use NRF52_DK.Buttons; with NRF52_DK.Time; with car_priorities; procedure Main is begin loop null; end loop; end Main;
----------------------------------------------------------------------- -- Servlets Tests - Unit tests for Servlet.Core -- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
-- AoC 2020, Day 23 with Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Strings.Fixed; use Ada.Strings.Fixed; package body Day is package TIO renames Ada.Text_IO; function to_cup_number(n : in Cup_Number_Mod) return Cup_Number is v : Natural := Natural(n+1); begin if v < Na...
package PP_LF_Rounded is -- Operations whose semantics is the same as the corresponding -- operations on type Long_Float. These operations can appear both in -- Ada expressions and in SPARK assertions. -- -- The intention is that programmers do not enter these operations -- directly into the Ada code...
separate(Practica2) function Es_primo(N:in natural) return Boolean is begin if n=0 then return true; else if n=1 then return true;-- ya sabemos que el uno es primo asi que yo miro los que son distintos de 1 en siguiente bucle else for i in 2..n loop if (n mod i)=0 and I=N then -- aqui explico si ...
With Ada.Strings.Fixed; Package Body Risi_Script.Types.Identifier.Scope is Function Image( Input : Scope ) return String is Function Img( Input : in out Scope ) return String is begin case Input.Length is when 0 => return ""; when 1 => return Input.First_Element; Whe...
-- 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...
----------------------------------------------------------------------- -- wiki-plugins-conditions -- Condition Plugin -- Copyright (C) 2016, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this ...
package Array_Pointer_Type is type A; type PA is access A; type A is array(1..2) of Boolean; end Array_Pointer_Type;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; with TOML; procedure Main is procedure Assert (Predicate : Boolean; Message : String); -- If Predicate is false, emit the given error Message procedure Assert_Eq (Left, Right : TOML.TOML_Value; Message : String); -- Shortcut for Assert (TOML.Equals (Left, Right), Message) procedur...
-- Automatically generated, do not edit. package OpenAL.Extension.Float32_Thin is -- Constants AL_FORMAT_MONO_FLOAT32 : constant := 16#10010#; AL_FORMAT_STEREO_FLOAT32 : constant := 16#10011#; end OpenAL.Extension.Float32_Thin;
package DDS.Request_Reply.Replieruntypedimpl is pragma Elaborate_Body; -- function RTI_Connext_ReplierUntypedImpl_Send_Sample -- (Self : not null access RTI_Connext_ReplierUntypedImpl; -- Data : System.Address; -- Related_Request_Info : DDS.SampleId...
package body My_Class is procedure Primitive(Self: Object) is begin Put_Line("Hello World!"); end Primitive; procedure Dynamic(Self: Object'Class) is begin Put("Hi there! ... "); Self.Primitive; -- dispatching call: calls different subprograms, -- dependi...
with openGL.Texture, openGL.GlyphImpl.Texture, freetype_c.FT_GlyphSlot; package openGL.Glyph.texture -- -- A specialisation of Glyph for creating texture glyphs. -- is type Item is new Glyph.item with private; ----------- -- Forge -- function to_Glyph (glyth_Slot : in freetype...
with Ada.Containers; with Ada.Strings.Equal_Case_Insensitive; with Ada.Strings.Less_Case_Insensitive; with Ada.Strings.Hash_Case_Insensitive; with Ada.Strings.Wide_Hash_Case_Insensitive; with Ada.Strings.Wide_Wide_Hash_Case_Insensitive; procedure casing is use type Ada.Containers.Hash_Type; package AS renames Ada.Str...
with Ada.Containers.Indefinite_Ordered_Sets; with Ada.Finalization; with Ada.Text_IO; use Ada.Text_IO; procedure Heronian is package Int_IO is new Ada.Text_IO.Integer_IO(Integer); use Int_IO; -- ----- Some math... function GCD (A, B : in Natural) return Natural is (if B = 0 then A else GCD (B, A mod B)); ...
package Memory.Container is type Container_Type is abstract new Memory_Type with private; type Container_Pointer is access all Container_Type'Class; function Get_Memory(mem : Container_Type'Class) return Memory_Pointer; procedure Set_Memory(mem : in out Container_Type'Class; o...
with Tipos_Tarea, Ada.Text_IO; use Tipos_Tarea, Ada.Text_IO; procedure Tarea_Dina_Declare is T1 : Tarea_Repetitiva(1); T_Dinamica : Tarea_Ptr; Td : Tarea_Ptr; begin Put_Line("Tarea Principal"); T_Dinamica := new Tarea_Repetitiva(4); declare task type T; type A is access T; P : A; ...
package Vect2_Pkg is function K return Positive; function N return Positive; end Vect2_Pkg;
pragma License (Unrestricted); -- implementation unit package System.Exponentiations is pragma Pure; generic type Integer_Type is range <>; function Generic_Exp_Integer (Left : Integer_Type; Right : Natural) return Integer_Type; generic type Integer_Type is range <>; function Generic...
-- ----------------------------------------------------------------------------- -- smk, the smart make -- © 2018 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licensed under the Apache License, Version 2.0 ...
package Math_Pkg is procedure Is_Prime(To_Check : in Integer; Prime : out Boolean); end Math_PKg;
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: register definitions for the HMC5883L package HMC5883L.Register with SPARK_Mode is HMC5883L_ADDRESS : constant := 16#3C#...
with System.Address_To_Access_Conversions; with Interfaces.C.Strings; with Ada.Tags; with Ada.Exceptions; with GDNative.Thin; with GDNative.Context; with GDNative.Console; with GDNative.Exceptions; package body GDNative.Objects is package S renames System; package IC renames Interfaces.C; package ICS ren...
---------------------------------------------------------------------------- -- -- Ada client for BaseX -- ---------------------------------------------------------------------------- with Ada.Strings; with Ada.Strings.Fixed; with Ada.Strings.Maps; with Ada.Exceptions; with Ada.Streams; with GNAT.MD5; package body A...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- { dg-do compile } with Ada.Strings.Bounded; package Pack11 is package My_Strings is new Ada.Strings.Bounded.Generic_Bounded_Length (4); subtype My_Bounded_String is My_Strings.Bounded_String; type Rec1 is tagged null record; type Rec2 is record S : My_Bounded_String; end record; pragma Pack (Rec...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-gnata -O2 -fno-inline" } with Ada.Unchecked_Conversion; package body Loop_Optimization2 is function To_Addr_Ptr is new Ada.Unchecked_Conversion (System.Address, Addr_Ptr); function To_Address is new Ada.Unchecked_Conversion (Tag, System.Address); function ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- AOC 2020, Day 6 package Day is function anyone_sum(filename : in String) return Natural; function everyone_sum(filename : in String) return Natural; end Day;
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Input; use GBA.Input; package GBA.Input.Buffered is procedure Update_Key_State; function Is_Key_Down (K : Key) return Boolean with Inline_Always; function Are_Any_Down (F : Key_Flags) return Boolean with Inline_Always; f...
with AdaCar.Parametros; use AdaCar.Parametros; with AdaCar.Entrada_Salida; with AdaCar.Alarmas; package body AdaCar.Motores is type Canal_Encendido is mod 4; -- 0 => Canal_A -- 1 => Canal_B -- 2 => Canal_C -- 3 => Canal_D ---------------- -- Motores_PO -- ---------------- protected Motor...
package body Bonacci is function Generate(Start: Sequence; Length: Positive := 10) return Sequence is begin if Length <= Start'Length then return Start(Start'First .. Start'First+Length-1); else declare Sum: Natural := 0; begin for I in Start'Range l...
package body History_Variables is -- set and get procedure Set(V: in out Variable; Item: Item_Type) is begin V.History.Prepend(Item); end Set; function Get(V: Variable) return Item_Type is begin return V.History.First_Element; end Get; -- number of items in history (including the ...
-- The MIT License (MIT) -- -- Copyright (c) 2016-2017 artium@nihamkin.com -- -- 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 rig...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Element_Vectors; with Program.Elements.Select_Paths; with Program.Element_Vis...
-- -- 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...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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...
------------------------------------------------------------------------------ -- -- -- Generic HEX String Handling Package -- -- -- -- -...
-- -- N-Body integrations demonstrate the need for high accuracy and -- reliable error estimates. -- -- N-Body equation: -- Acceleration(Body_j) -- = SumOver(Body_k) { Mass(Body_k) * G * DeltaR / NORM(DeltaR)**3 } -- -- where DeltaR = (X(Body_k) - X(Body_j)) is a vector, -- and where G is the gravitaional const...
procedure Interval_proc is procedure some_procedure is begin -- this cannot be empty end; Interval_Length : Time_Span := To_Time_Span(0.5); Next_Call_Time : Time; begin Next_Call_Time := Clock; loop some_procedure; Next_Call_Time := Next_Call_Time + Interval_Length; ...
-- { dg-do compile } */ -- { dg-options "-cargs -I -gnatws" } -- { dg-error "search directory missing" "" { target *-*-* } 0 }
with ACO.Generic_Entry_Types; with ACO.OD_Types.Entries; package ACO.OD.Example is -- Shall be generated based on an EDS file type Dictionary is new Object_Dictionary with private; use ACO.OD_Types.Entries; -- 0x1008 Manufacturer Device Name VAR Device_Name_Str : constant String := "A device name"...
package Space_Image_Format is Width: constant := 25; Height: constant := 6; type Width_Range is range 1 .. Width; type Height_Range is range 1 .. Height; type Pixel is new Character range '0' .. '9'; type Layer is array (Width_Range, Height_Range) of Pixel; type Layer_Stack is array (Positive ran...
-- This spec has been automatically generated from STM32F427x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; with HAL; package STM32_SVD.CAN is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------ -- MCR_Register -- ------------...
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.CRC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype IDR_IDR_Field is HAL....
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- MIT License -- Copyright (c) 2021 Stephen 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,...
with launch_simple_chat_Client, launch_simple_chat_Registrar, launch_simple_instant_events_demo, launch_simple_deferred_events_demo, lace_demo_Events, lace_demo_Keyboard, lace.Observer.instant, lace.Subject .local, lace.Response, lace.Event.utility, launch_strin...
with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A007 is use Ada.Integer_Text_IO; Nth : constant Integer := 10001; N : constant Integer := 1E+6; Primes_N : Integer := 0; I, J, Result : Integer; type Large_Array_Bool is array (Integer ran...
with AdaCar.Parametros; package AdaCar.Seguimiento_Sensor is task Seguimiento_Task with Priority => Parametros.Prioridad_Seguimiento_Task; end AdaCar.Seguimiento_Sensor;
with Interfaces; with Fmt.Generic_Mod_Int_Argument; package Fmt.Uint32_Argument is new Generic_Mod_Int_Argument(Interfaces.Unsigned_32);
----------------------------------------------------------------------- -- helios-monitor -- Helios monitor -- 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 co...
with eGL; package opengl.surface_Profile.privvy is function to_eGL (Self : in surface_Profile.Item'Class) return egl.EGLConfig; end opengl.surface_Profile.privvy;
package openGL.Impostor.simple -- -- Can impostor any 'visual'. -- is type Item is new Impostor.item with private; type View is access all Item'Class; overriding function current_Camera_look_at_Rotation (Self : in Item) return Matrix_3x3; overriding function update_Required (Self : access Item; ...
-- Copyright (c) 2013, Nordic Semiconductor ASA -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, this -- lis...
pragma License (Unrestricted); -- extended unit with Ada.Numerics; package Ada.Colors is -- Color spaces. pragma Pure; subtype Brightness is Float range 0.0 .. 1.0; subtype Hue is Float range 0.0 .. Float'Pred (2.0 * Numerics.Pi); type RGB is record Red : Brightness; Green : Brightness; ...
private with Unchecked_Conversion; with Interfaces; package Emulator_8080.Processor is subtype Register_Type is Emulator_8080.Byte_Type; type Address_Type is new Natural range 0 .. 16#FFFF#; subtype Rom_Address_Type is Address_Type range 0 .. 16#1FFF#; subtype Ram_Address_Type is Address_Type range 16#200...
with Ada.Text_IO; procedure Map is type First_Range is new Float range 0.0 .. 10.0; type Second_Range is new Float range -1.0 .. 0.0; function Translate (Value : First_Range) return Second_Range is B1 : Float := Float (Second_Range'First); B2 : Float := Float (Second_Range'Last); A1 : Float ...
separate (Numerics) function Max_Real_Array (Item : in Real_Vector) return Real is Result : Real := Item (Item'First); begin for N of Item loop Result := Real'Max (Result, N); end loop; return Result; end Max_Real_Array;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Main; use Main; with Ada.Exceptions; with Reporter; with RASCAL.TaskManager; package body Controller_Internet is -- package TaskManager renames RASCAL.TaskManager; -- procedure Handle (The : in TEL_ViewHomePage_Type) is Child : Integer; begin Child := Task...
-- $Id: Errors.mi,v 1.5 1994/08/15 22:13:23 grosch rel $ -- $Log: Errors.mi,v $ -- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994 with Strings, Idents, Sets, Position, Sort, Unchecked_Conversion; use Strings, Idents, Sets, Position; package body Errors is package Int_Io is new Integer_Io (Integer ); use Int_I...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Strings.Hash; package Tokenization is type Tokenizer (<>) is limited private; type Symbol_Id is new Positive; type Token_Kind is (Identif...
pragma License (Unrestricted); -- extended unit package Ada.Streams.Block_Transmission.Strings is -- There are efficient streaming operations for String. pragma Pure; procedure Read is new Block_Transmission.Read (Positive, Character, String); procedure Write is new Block_Transmission.Write ...
-- NORX3241 -- an Ada implementation of the NORX Authenticated Encryption Algorithm -- created by Jean-Philippe Aumasson, Philipp Jovanovic and Samuel Neves -- This instantiation words on 32-bit words, with 4 rounds and a parallelism -- degree of 1 -- Copyright (c) 2016, James Humphry - see LICENSE file for details ...
with C.signal; package body System.Native_Interrupts is use type C.signed_int; procedure Raise_Interrupt (Interrupt : Interrupt_Id) is begin if C.signal.C_raise (C.signed_int (Interrupt)) < 0 then raise Program_Error; end if; end Raise_Interrupt; end System.Native_Interrupts;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Img_Enum_New is pragma Pure; -- required for Enum'Image by compiler (s-imenne.ads) procedure Image_Enumeration_8 ( Pos : Natural; S : in out String; P : out Natural; Names : String; Indexe...
package Ancestor_Type is type T is tagged private; package B is function make return T; end B; private type T is tagged record n: Natural; end record; end Ancestor_Type;
with Ada.Real_Time; use Ada.Real_Time; package Timeout is procedure Start (Timeout_Time : out Time ; Duration : Time_Span); function Timed_Out (Timeout_Time : Time) return Boolean; end Timeout;
with System.Address_To_Named_Access_Conversions; with System.Formatting.Address; with System.Long_Long_Integer_Types; with System.Termination; package body System.Unbounded_Stack_Allocators.Debug is pragma Suppress (All_Checks); use type Storage_Elements.Storage_Offset; subtype Word_Unsigned is Long_Long_Inte...
----------------------------------------------------------------------- -- asf-servlets-faces-mappers -- Read faces specific configuration files -- Copyright (C) 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
package Tkmrpc.Operations.Ike is Tkm_Version : constant Operations.Operation_Type := 16#0000#; Tkm_Limits : constant Operations.Operation_Type := 16#0001#; Tkm_Reset : constant Operations.Operation_Type := 16#0002#; Nc_Reset : constant Operations.Operation_Type := 16#0100#; Nc_Create : constant Ope...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Upg1 is procedure Print(A, B: in Integer) is Spaces: Integer; begin if A < B then Spaces := (B - A) * 4; for I in 1..Spaces loop Put(' '); end loop; end if; for X in 1..A loo...
-- A parallel single-source, all-destinations shortest-path finder. -- Each task is assigned a node, and tries to extend the path by -- cloning new tasks that explore all successors of that node. -- The graph is represented by adjacency lists. This representation -- is fixed, and global to all tasks. -- The min...
with System; with Interfaces.C; with GDNative.Thin; use GDNative.Thin; package Simple is procedure godot_gdnative_init (p_options : access godot_gdnative_init_options) with Export => True, Convention => C, External_Name => "godot_gdnative_init"; procedure godot_gdnative_terminate (p_options : access godot_...
with System; package Lv.Mem is -- Allocate a memory dynamically -- @param size size of the memory to allocate in bytes -- @return pointer to the allocated memory function Alloc (Size : Uint32_T) return System.Address; -- Free an allocated data -- @param data pointer to an allocated memory p...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- IntCode Interpreter with Ada.Containers; with Ada.Containers.Hashed_Maps; with Ada.Containers.Vectors; package IntCode is procedure load(s : String); procedure load_file(path : String); procedure eval; procedure append_input(val : Integer); function take_output return Integer; procedure poke(addr : Na...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
package body Generic_Unit_Vectors with SPARK_Mode is function addition(Left, Right : Unit_Vector) return Unit_Vector is begin return (Left.x + Right.x, Left.y + Right.y, Left.z + Right.z); end addition; end Generic_Unit_Vectors;
with Text_IO; use Text_IO; with Tarmi; use Tarmi; with Tarmi.Environments; use Tarmi.Environments; with Tarmi.Evaluation; use Tarmi.Evaluation; with Tarmi.Symbols; use Tarmi.Symbols; with Tarmi.Combiners; use Tarmi.Combiners; use type Tarmi.Datum; procedure Test_Eval is Env : Environment := Make_Environment ((Datu...
----------------------------------------------------------------------- -- ado-sessions-entities -- Find entity types -- Copyright (C) 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 this f...
package body Chi_Square is function Distance(Bins: Bins_Type) return Flt is Bad_Bins: Natural := 0; Sum: Natural := 0; Expected: Flt; Result: Flt; begin for I in Bins'Range loop if Bins(I) < 5 then Bad_Bins := Bad_Bins + 1; end if; Sum := Sum +...
with Ada.Text_IO; package body Simple_IO with SPARK_Mode => Off is procedure Put_Line (S : in String) is begin Ada.Text_IO.Put_Line (S); end Put_Line; procedure Put_Line (S : in Integer) is begin Ada.Text_IO.Put_Line (Integer'Image (S)); end Put_Line; end Simple_IO;
-- ----------------------------------------------------------------------------- -- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- components-utils-files -- Include raw files in the output -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...