content stringlengths 23 1.05M |
|---|
with Ada.Text_IO; use Ada.Text_IO;
with Test_Solution; use Test_Solution;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Problem_1;
with Problem_2;
with Problem_3;
with Problem_4;
with Problem_5;
with Problem_6;
with Problem_7;
with Problem_8;
with Problem_9;
with Problem_10;
with Problem_11;
with Probl... |
--
-- 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.
--
-------------------------------------------... |
-- Copyright 2020 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... |
-- Abstract :
--
-- Output Ada code implementing the grammar defined by input
-- parameters, and a parser for that grammar. The grammar parser
-- actions must be Ada.
--
-- Copyright (C) 2017 - 2020 Free Software Foundation, Inc.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or mod... |
pragma profile(Ravenscar);
pragma Partition_Elaboration_Policy (Sequential);
package account with SPARK_Mode
is
Num_Accounts : Natural := 0;
task type Account_Management is
end Account_Management;
-- tasks at package level
t1 : Account_Management;
t2 : Account_Management;
end Account;
|
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Crew.Inventory.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Crew.Inventory
.Test_Data
... |
With
System.Address_Image,
Ada.Strings.Fixed,
Ada.Strings.Unbounded;
Separate(Risi_Script.Types.Implementation)
Package Body Image_Operations is
-------------------------
-- UTILITY FUNCTIONS --
-------------------------
Function Trim( S : String ) return String is
Use Ada.Strings.Fixed, Ada.Stri... |
-- { dg-do compile }
with gen_interface_p;
package gen_interface is
type T is interface;
procedure P (Thing: T) is abstract;
package NG is new gen_interface_p (T, P);
end;
|
pragma License (Unrestricted);
-- extended unit
with Ada.IO_Exceptions;
with Ada.Streams;
private with Ada.Finalization;
private with System.Native_Environment_Encoding;
package Ada.Environment_Encoding is
-- Platform-depended text encoding.
pragma Preelaborate;
-- encoding identifier
type Encoding_Id ... |
with Ada.Unchecked_Deallocation;
package body BT is
procedure Free is new Ada.Unchecked_Deallocation (Trit_Array, Trit_Access);
-- Conversions
-- String to BT
function To_Balanced_Ternary (Str: String) return Balanced_Ternary is
J : Positive := 1;
Tmp : Trit_Access;
begin
Tmp := new ... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020-2021 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
separate (Regex.Regular_Expressions) procedure Compile (Output : in out Regular_Expression) is
Start_State : constant State_Machine_St... |
-- using glibc provided by Linux From Scratch
private package iconv.Inside is
pragma Preelaborate;
function Version return String;
procedure Iterate (Process : not null access procedure (Name : in String));
end iconv.Inside;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Ordered_Sets;
with Ada.Containers.Vectors;
package body Coroutines.Timeouts is
type Timeout_Manager;
type... |
with Ada.Text_IO, Ada.Command_Line;
use Ada.Text_IO, Ada.Command_Line;
procedure powerset is
procedure print_subset (set : natural) is
-- each i'th binary digit of "set" indicates if the i'th integer belongs to "set" or not.
k : natural := set;
first : boolean := true;
begin
Put ("{");
for i in 1..... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2022 AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
--******************************************************************************
--
-- package CALENDAR
--
--******************************************************************************
package CALENDAR is
type TIME is private;
subtype YEAR_NUMBER is INTEGER range 1901 .. 2099;
subtype MONTH_NUMBER is INT... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
pragma License (Unrestricted);
-- implementation unit
package System.Once is
pragma Preelaborate;
type Flag is mod 2 ** 8; -- it should be initialized to zero
for Flag'Size use 8;
pragma Atomic (Flag);
procedure Initialize (
Flag : not null access Once.Flag;
Process : not null access proce... |
PROCEDURE Defining_Character_literal IS
BEGIN
DECLARE
TYPE E2 IS ('1');
BEGIN
NULL;
END;
END Defining_Character_literal;
|
with Ada.Real_Time;
procedure Delay_Until is
use Ada.Real_Time;
Start_Time : Time := Clock;
Period : constant Time_Span := Milliseconds(5000);
Poll_Time : Time;
begin
Poll_Time := Start_Time;
delay until Poll_Time;
end Delay_Until;
|
with Ada.Text_IO; use Ada.Text_IO;
package body NewLineExamples is
function Text_New_Lines (Text : String) return String
is
begin
return Text & ASCII.CR & ASCII.LF & ASCII.CR & ASCII.LF;
end Text_New_Lines;
function Twice_Text_New_Line (Text : String) return String
is
begin
return Te... |
-- 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.USBHSD is
pragma Preelaborate;
... |
-- C46042A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
with Ada.Text_IO;
with Ada.Calendar;
with Interfaces; use Interfaces;
with Formatted_Output; use Formatted_Output;
with Formatted_Output_Integer; use Formatted_Output_Integer;
with Formatted_Output_Long_Integer; use Formatted_Output_Long_Integer;
with Fo... |
pragma Ada_2012;
package body Pcap is
---------------
-- Lookupdev --
---------------
function Lookupdev (D : String) return String is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Lookupdev unimplemented");
return raise Program_Error w... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package Aggr15 is
type T is tagged record
I : Integer;
end record;
type DATA_T is record
D : T;
end record;
type ALL_DATA_T is array (1..2, 1..2) of DATA_T;
function ALL_CREATE return ALL_DATA_T;
end Aggr15;
|
-- C57003A.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... |
package OpenGL.State is
type Capability_t is
(Alpha_Test,
Auto_Normal,
Blend,
Color_Array,
Color_Logic_Op,
Color_Material,
Color_Sum,
Color_Table,
Convolution_1D,
Convolution_2D,
Cull_Face,
Depth_Test,
Dither,
Edge_Flag_Array,
Fog,
Fog_Coord_Array,
H... |
pragma License (Unrestricted);
-- implementation unit
package System.Formatting.Literals.Float is
pragma Pure;
-- parsing Ada-form literals of real types
procedure Get_Literal (
Item : String;
Last : out Natural;
Result : out Long_Long_Float;
Error : out Boolean);
end System.Format... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Day20 is
type Position is record
X : Integer;
Y : Integer;
end record;
function Next_Pos (Pos : Position; Dir : Character) return Position is
begin
case Dir is
when 'N' => return (Pos.X, Pos.Y + 1);
when 'S' => ret... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with TOML; use TOML;
with TOML.File_IO;
package body Offmt_Lib.Storage is
From_TOML_Error : exception;
function To_TOML (List : Trace_Element_Lists.List) return TOML_Value;
function To_TOML (Elt ... |
-----------------------------------------------------------------------
-- sqlbench-simple -- Simple SQL benchmark
-- Copyright (C) 2018 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 excep... |
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstatomicqueue_h is
-- GStreamer
-- * Copyright (C) 2009-2010 Edward Hervey <bilboed@bilboed.com>
-- ... |
package body scanner.DFA is
function YYText return Wide_Wide_String is
Aux : constant Wide_Wide_String (1 .. YY_CP - YY_BP)
:= Wide_Wide_String (YY_Ch_Buf.Data (YY_BP .. YY_CP - 1));
begin
return Aux;
end YYText;
-- returns the length of the matched text
function YYLength return I... |
-----------------------------------------------------------------------
-- gen-model-tables -- Database table model representation
-- Copyright (C) 2009 - 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
-- 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... |
-- Taken from #2943 submitted by @koenmeersman
with Ada.Text_IO;
separate (Buffer);
package body Test is
procedure Inner is separate;
begin
null;
end Test;
|
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-----------------------------------------------------------------------
-- wiki-filters -- Wiki filters
-- Copyright (C) 2015, 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 file exce... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
procedure Range_Extraction is
type Sequence is array (Positive range <>) of Integer;
function Image (S : Sequence) return String is
Result : Unbounded_St... |
procedure My_Package is
generic
type Unsigned_Type is range <>;
package Generic_Integer_Images is
function Digit_To_Character (X : Unsigned_Type) return Character;
end Generic_Integer_Images;
package body Generic_Integer_Images is
function Digit_To_Character (X : Unsigned_Type) return Character is... |
package UxAS.Comms.Transport.Receiver is
type Transport_Receiver_Base is abstract new Transport_Base with private;
type Transport_Receiver_Base_Ref is access all Transport_Receiver_Base;
type Any_Transport_Receiver_Base is access Transport_Receiver_Base'Class;
Any_Address_Accepted : constant String := "... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Software Configuration
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description:
-- Configuration of the Software, adjust these parameters to your needs
package... |
--------------------------------------------------------------------------------
-- 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... |
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2021 Zane Myers
--
-- 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 witho... |
-- 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 AVR.MCU;
package body Hardware.DriveTrain is
procedure Init is
begin
MCU.DDRB_Bits (Pin_Right) := DD_Output;
MCU.DDRB_Bits (Pin_Left) := DD_Output;
PWM.Connect (Pin_Right, Motor_Right);
PWM.Connect (Pin_Left, Motor_Left);
PWM.Set (Motor_Right, Rotate_Stop);
PWM.Set (M... |
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "JRM wrote this note.";
message2 : constant String := "1972 Miami Dolphins";
cipherlen : constant Positive := Cipher_Length (message);
cipher2len : constant Positive := C... |
pragma Extend_System (Aux_DEC);
with System; use System;
package Valued_Proc_Pkg is
procedure GETMSG (STATUS : out UNSIGNED_LONGWORD;
MSGLEN : out UNSIGNED_WORD);
pragma Interface (EXTERNAL, GETMSG);
pragma IMPORT_VALUED_PROCEDURE (GETMSG, "SYS$GETMSG",
... |
-- SPDX-FileCopyrightText: 2010-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with WebIDL.Abstract_Sources;
with League.Strings;
with WebIDL.Scanner_Handlers;
with WebIDL.Tokens;
with WebIDL.Scanner_Types; use WebIDL.Scanner_Typ... |
--
-- Copyright (C) 2015-2017 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2011, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with YAML;
use type YAML.Error_Kind;
procedure Parser is
function LStrip (S : String) return String;
function Image (M : YAML.Mark_Type) return String;
procedure Process (P : in out YAML.Parser_Type);
procedure Put (N : YAML.Node_Ref; Indent : Natural);
function LS... |
generic
type Elem is private;
package generic_package_declaration is
procedure Exchange(U, V : in out Elem);
end generic_package_declaration;
|
generic
type T is (<>);
with function MAX_ADD(X : T; I : INTEGER) return T;
package Discr16_G is
LO : T := T'val(T'pos(T'first));
HI : T := T'val(T'pos(MAX_ADD(LO, 15)));
type A2 is array(T range <>) of T;
type R2(D : T) is
record
C : A2(LO..D);
end record;
end;
|
------------------------------------------------------------------------------
-- --
-- J E W L --
-- --
... |
with
GL,
GL.Binding,
openGL.Tasks,
interfaces.C;
package body openGL.Renderer
is
use GL,
interfaces.C;
procedure Background_is (Self : in out Item; Now : in openGL.Color;
Opacity : in Opaqueness := 1.0)
is
begin
Self... |
package body kv.avm.Methods is
----------------------------------------------------------------------------
function New_Method(Name : String; Code : kv.avm.Instructions.Code_Access) return Method_Access is
Method : Method_Access;
begin
Method := new Method_Type;
Method.Initialize(Name, Code... |
with Ada.Text_IO; use Ada.Text_IO;
package body Route_Aggregator with SPARK_Mode is
pragma Unevaluated_Use_Of_Old (Allow);
pragma Assertion_Policy (Ignore);
-- Lemmas used to factor out reasonning about the redefined model of
-- Int64_Formal_Set_Maps
-------------------
-- Model_Include --
--... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package body Test_Date.Read is
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Date.Read");
Ahven.Framework.Add_Test_Routine (T, Date_1'Access, "1. date: date = 1");
Ahven.Framework.Add_Test_Routine (T, Date_2'Access, "2. date: date = -1");
end Initialize;
procedure Da... |
-----------------------------------------------------------------------
-- security-oauth-clients -- OAuth Client Security
-- Copyright (C) 2012, 2013, 2017, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
--
-- 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.Calendar;
with Database.Events;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Test QR least squares equation solving real valued square matrices.
with Ada.Numerics.Generic_elementary_functions;
with Givens_QR;
with Test_Matrices;
With Text_IO; use Text_IO;
procedure givens_qr_tst_3 is
type Real is digits 15;
subtype Index is Integer range 1..137;
subtype Row_Index is Index;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
package Display is
subtype history_origin is String (1 .. 45);
subtype history_elapsed is String (1 .. 8);
subtype history_action is String (1 .. 8);
subtype five... |
private
with lumen.Window;
package gel.Window.lumen
--
-- Provides a window which uses 'Lumen' as the backend.
--
is
type Item is new gel.Window.item with private;
type View is access all Item'Class;
---------
--- Forge
--
procedure define (Self : in View; Title : in String;
... |
-- with Ada.Containers.Vectors;
-- with Ada.Text_IO;
with Ada.Long_Long_Integer_Text_IO;
with Ada.Strings;
with Ada.Strings.Bounded;
with Ada.Containers; use Ada.Containers;
-- Note that this package currently only handles positive numbers.
package body BigInteger is
use BigInteger.Int_Vector;
-- Sadly we can't u... |
with Ada.Text_IO; use Ada.Text_IO;
procedure param_out is
procedure test_2 (nb : in out Integer) is
begin
nb := 789;
end test_2;
ma_var : Integer := 123;
begin
Put_Line("avant : " & Integer'Image(ma_var));
test_2(ma_var);
Put_Line("après : " & Integer'Image(ma_var));
end param_... |
-- This spec has been automatically generated from STM32F303xE.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.OPAMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype OPAMP1_CR_OPAMP1_EN_Field is... |
-- { dg-do compile }
-- { dg-options "-Os -g" }
with Opt7_Pkg;
package body Opt7 is
procedure Parse (Str : String;
Time_Type : out time_t;
Abs_Time : out Time;
Delt_Time : out Duration) is
Year : Year_Number;
Month :... |
procedure prueba2 is
x:Integer := 0;
procedure Minimo2 () is
y:Integer;
function Minimo (a, b: Integer) return Integer is
yy:Integer;
begin
az := 12;
end Minimo;
begin
az := 12;
end Minimo2;
procedure Minimo4 () is
yt:Integer;
begin
az := 12;
end Minimo4;
begin
x := 1;... |
-----------------------------------------------------------------------
-- package body A_Legendre. Data structure for Associated Legendre Polynomials.
-- 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 grante... |
procedure Enumeration is
type MyColor is (Blue, Red, Green, Yellow);
for MyColor use (Blue => 11,
Red => 22,
Green => 33,
Yellow => 44);
type YourColor is (Blue, White, Red);
for YourColor use (0, 1, 2);
begin
null;
end Enumeration;
|
------------------------------------------------------------------------------
-- Copyright (c) 2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-------------------------------------------------------------------------------
-- package body Orthogonal_Polys, Gram-Schmidt polynomials on discrete grid points.
-- Copyright (C) 2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is h... |
-- Abstract :
--
-- Types and operations for generating parsers, common to all parser
-- types.
--
-- The wisi* packages deal with reading *.wy files and generating
-- source code files. The wisitoken-generate* packages deal with
-- computing parser properties from the grammar. (For historical
-- reasons, not al... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Gnat.Regpat;
package body Parse_Lines is
procedure Search_For_Pattern(Pattern: Gnat.Regpat.Pattern_Matcher;
Search_In: String;
First, Last: out Positive;
Found: out Boolean) is
use Gnat.Regpat;
Result: ... |
with
Shell,
Ada.Text_IO;
procedure Test_Wait_On_Process
is
use Ada.Text_IO;
begin
Put_Line ("Begin 'Wait_On_Process' test.");
New_Line (2);
declare
use Shell;
Sleep : Shell.Process := Start (Program => "sleep",
Arguments => (1 => (+"3")));
... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O ... |
with Ada.Text_IO; use Ada.Text_IO;
package body base_type is
procedure method(Self : The_Type) is
begin
Put_Line(" bt:method");
end;
end base_type;
|
with Ada.Numerics.Generic_Elementary_Functions;
package body Math is
package Float_Elementary_Functions is new Ada.Numerics.Generic_Elementary_Functions (Float);
use Float_Elementary_Functions;
function Hypot(P : Point2D) return Float is
X : constant Float := abs P(P'First);
Y : constant F... |
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Vectors;
with Ada.Finalization;
with GNAT.Sockets;
with League.Strings;
... |
with Ada.Numerics;
with System.Long_Long_Elementary_Functions;
package body System.Long_Long_Complex_Elementary_Functions is
-- libgcc
function mulxc3 (Left_Re, Left_Im, Right_Re, Right_Im : Long_Long_Float)
return Long_Long_Complex
with Import, Convention => C, External_Name => "__mulxc3";
funct... |
------------------------------------------------------------------------------
-- File: apackdemo.adb
-- Description: aPLib binding demo (Q&D!)
-- Date/version: 24-Feb-2001 ; ... ; 9.III.1999
-- Author: Gautier de Montmollin - gdemont@hotmail.com
-------------------------------------... |
-- =============================================================================
-- Package AVR.POWER_MANAGEMENT
--
-- Handles the power management.
-- - Sleep mode
-- - Power reduction
-- =============================================================================
package AVR.POWER_MANAGEMENT is
type Sleep_Mode_C... |
-----------------------------------------------------------------------
-- Sessions Tests - Unit tests for ASF.Sessions
-- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
However, I have found the following bug, having to do with end_of_file
detection:
-----8<-----CUT-HERE-----8<-----
BUG #1: The following is returned:
Rule 5: COMP ->
** parse returned OK
main task terminated due to unhandled exception END_ERROR
propagated from GET_TOKEN at line 104 (End of file on TEXT_IO input)
G... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Command_Line;
with PortScan.Ops;
with Signals;
with Unix;
package body PortScan.Packages is
package CLI renames Ada.Command_Line;
package OPS renames PortScan.Ops;
package SIG renames Signals;
... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 Felix Krause <contact@flyx.org>
-- 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... |
with Ada.Command_Line;
with Trie;
procedure SevenWords is
words : constant Trie.Trie := Trie.Make_Trie("../american-english-filtered");
argument_length : Natural := 0;
fragment_ends : Trie.Fragment_Endpoint_Array(1 .. Ada.Command_Line.Argument_Count);
begin
if Ada.Command_Line.Argument_Count = 0 then
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.