content stringlengths 23 1.05M |
|---|
with Ada.Text_IO;
package body Forward_AD is
procedure Print (X : in AD_Type) is
use Ada.Text_IO;
begin
Put_Line (" value: " & Real'Image (X.Val));
Print (X.Grad);
New_Line;
end Print;
function Var (X : in Real;
I, N : in Nat;
Dx : in Real := 1.0) return A... |
-----------------------------------------------------------------------
-- awa-users-filters -- Specific filters for authentication and key verification
-- Copyright (C) 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (t... |
with Interfaces; use Interfaces;
package body Lithium.Comment_Cookie_Smaz_Hash is
P : constant array (0 .. 2) of Natural :=
(1, 2, 4);
T1 : constant array (0 .. 2) of Unsigned_8 :=
(44, 115, 66);
T2 : constant array (0 .. 2) of Unsigned_8 :=
(27, 43, 74);
G : constant array (0 .. 122) of... |
with System.Formatting.Float;
package body System.Formatting.Fixed is
pragma Suppress (All_Checks);
procedure Image (
Value : Long_Long_Float;
Item : out String;
Fore_Last, Last : out Natural;
Signs : Sign_Marks := ('-', ' ', ' ');
Base : Number_Base := 10;
Base_Form : Boolean... |
-- The Village of Vampire by YT, このソースコードはNYSLです
package body Vampire.Villages is
use Messages;
use Person_Records;
use People;
use type Ada.Calendar.Time;
use type Ada.Strings.Unbounded.Unbounded_String;
function Equivalent_Messages (Left, Right : Message) return Boolean is
begin
return Left.Day = Right.Day... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package Case_Null is
type T is (a, b, c, d, e);
subtype S is T range b .. d;
subtype S1 is S range a .. d;
-- Low bound out of range of base subtype.
procedure P1 (X : T);
end Case_Null;
|
with Ada.Text_IO; use Ada.Text_IO;
package body generic_mixin is
overriding
procedure simple(Self : Derived) is
begin
Put_Line(" gm:simple");
end;
overriding
procedure compound(Self : Derived) is
begin
Put_Line(" gm:compound, calling Derived.simple");
Sel... |
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2017 - 2020 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your option) ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Data_Type is
-- Complete implementation
type Record_T is null record;
function "<"
(L, R : Record_T)
return Boolean;
function Image
(Element : Record_T)
return String;
end Data_Type;
|
-- Generated at 2016-07-04 19:19:16 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-comments-maps.sx
with Natools.Static_Maps.Web.Comments.Item_Commands;
with Natools.Static_Maps.Web.Comments.Item_Conditions;
with Natools.Static_Maps.Web.Comments.Item_Elements;
with Natools.Static_Maps.Web.Comments.Item_Fo... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Bounded_Dynamic_Strings;
package Dynamic_Strings is
type Dynamic_String is new Bounded_Dynamic_Strings.Sequence;
end Dynamic_Strings;
|
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by John Self of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and t... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- components-widgets-gravatars -- Gravatar Components
-- Copyright (C) 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 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... |
package body Generic_Realtime_Buffer is
---------
-- Put --
---------
procedure Put (B : in out Realtime_Buffer; Item : Element) is
begin
if B.Elements_In_Buffer = No_Of_Elements'Last then
B.Read_From := B.Read_From + 1;
else
B.Elements_In_Buffer := B.Elements_In_Buffer +... |
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Refresh_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
URI : in String);
|
package body RTCH.Visuals.Canvases with
Preelaborate is
function Make_Canvas (Width, Height : in Positive) return Canvas_Access is
begin
return new Canvas (1 .. Width, 1 .. Height);
end Make_Canvas;
procedure Set_Pixel (C : in out Canvas; X, Y : in Positive; Colour : in Colours.Colour) is
begin... |
-- This package was generated by the Ada_Drivers_Library project wizard script
package ADL_Config is
Architecture : constant String := "ARM"; -- From board definition
Board : constant String := "STM32F769_Discovery"; -- From command line
CPU_Core ... |
with Interfaces; use Interfaces;
with Ada.Text_IO;
with Ada.Unchecked_Conversion;
package util is
function rawLongFloatBits is new Ada.Unchecked_Conversion(Long_Float, Unsigned_64);
function rawFloatBits is new Ada.Unchecked_Conversion(Float, Unsigned_32);
function toDouble is new Ada.Unchecked_Conversion... |
with Ada.Containers.Vectors;
with Ada.Text_IO;
with Ada.Unchecked_Conversion;
procedure VLQ is
package Nat_IO is new Ada.Text_IO.Integer_IO (Natural);
type Byte is mod 2**8;
package Byte_IO is new Ada.Text_IO.Modular_IO (Byte);
type Int7 is mod 2**7;
package Int7_IO is new Ada.Text_IO.Modular_IO (I... |
-------------------------------------------------------------------------------
-- Copyright (c) 2017 Daniel King
--
-- 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... |
with Ada.Enumeration;
procedure enum is
package CA is new Ada.Enumeration.Arithmetic (Character, Integer);
use CA;
begin
pragma Assert ('A' + 1 = 'B');
pragma Assert ('B' - 1 = 'A');
pragma Assert ('a' - 'A' = 32);
pragma Debug (Ada.Debug.Put ("OK"));
null;
end enum;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, Fabien Chouteau --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- smart_ptr_example.adb
-- An example of using the Smart_Ptr types
-- Copyright (c) 2016, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Exit_Statements is
pragma ... |
package Bonacci is
type Sequence is array(Positive range <>) of Positive;
function Generate(Start: Sequence; Length: Positive := 10) return Sequence;
Start_Fibonacci: constant Sequence := (1, 1);
Start_Tribonacci: constant Sequence := (1, 1, 2);
Start_Tetranacci: constant Sequence := (1, 1, 2, 4);
... |
pragma License (Unrestricted);
with Ada.Streams.Stream_IO;
package Ada.Text_IO.Text_Streams is
-- type Stream_Access is access all Streams.Root_Stream_Type'Class;
subtype Stream_Access is Streams.Stream_IO.Stream_Access;
-- extended
procedure Open (
File : in out File_Type;
Mode : File_Mode;
... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-----------------------------------------------------------------------
-- keystore-repository-data -- Data access and management for the keystore
-- Copyright (C) 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License"... |
-- { dg-do compile }
-- { dg-excess-errors "instantiation abandoned" }
with Incomplete1;
package body Incomplete2 is end Incomplete2;
|
with Ada.Text_IO;
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A029 is
use Ada.Text_IO;
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
N_Str, N_Str_Copy : String (1 .. 200);
Temp_Product : String (1 .. 3);
FT : File_Typ... |
with AVR, AVR.MCU, AVR.Interrupts;
use AVR, AVR.MCU;
package body Hardware is
procedure Init_Timer1 is
begin
-- Enable Timer1 in the power-save register.
PRR0_Bits (PRTIM1_Bit) := High;
-- Normal WGM with prescaler of 8.
TCCR1A_Bits := (others => False);
TCCR1B_Bits := (CS11_B... |
package ACO.Utils.DS is
-- Some helper data structures, none requiring heap allocations.
-- Mostly inspired, and in parts stolen, from Booch Components (20160321)
pragma Preelaborate;
end ACO.Utils.DS;
|
-- MURMUR3
--
-- taken from http://commons.ada.cx/Deterministic_Hashing
-- source at http://pastebin.com/ZhgRacMr
--
-- Baldrick on #ada provided an implementation of Murmur3.
-- Generic_Murmur3 is the core logic, the rest are convenience functions.
--
-- license: asked on #ada (Baldrick, 2014-04-07): public doma... |
with Ada.Real_Time; use Ada.Real_Time;
package body HCSR04 is
--------------
-- Distance --
--------------
function Distance(TrigPin, EchoPin : Arduino_Nano_33_Ble_Sense.IOs.Pin_Id) return Float is
TimeNow : Ada.Real_Time.Time;
TimeoutStart : Ada.Real_Time.Time;
--Maximum distance of se... |
-----------------------------------------------------------------------
-- demo_server -- Demo server for Ada Server Faces
-- Copyright (C) 2010, 2011, 2012, 2013, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Asis,
AdaM.Source;
package AdaM.Assist.Query.find_All.Actuals_for_traversing
is
type Traversal_State is
record
parent_Stack : AdaM.Source.Entities;
ignore_Starter : asis.Element := asis.Nil_Element;
end record;
Initial_Traversal_State : constant Traversal_State ... |
with Ada.Unchecked_Conversion;
private with STM32_SVD.CORDIC;
package STM32.CORDIC is
pragma Elaborate_Body;
type CORDIC_Coprocessor is limited private;
type CORDIC_Function is
(Cosine,
Sine,
Phase,
Modulus,
Arctangent,
Hyperbolic_Cosine,
Hyperbolic_Sine,
Hype... |
-- Demonstrate Jacobi Eigendecomposition of real valued square matrices.
with Ada.Numerics.Generic_Elementary_Functions;
with extended_real;
with extended_real.elementary_functions;
with extended_real.io;
with e_jacobi_eigen;
with text_io; use text_io;
procedure e_jacobi_eigen_tst_1 is
type Real_8 is digits 15;
... |
package Units.Operations with SPARK_Mode is
-- instantiate some useful functions for the units. Cannot be done
function Sum_Time is new Saturated_Addition (T => Time_Type);
end Units.Operations;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Jensen_Device is
function Sum
( I : not null access Float;
Lo, Hi : Float;
F : access function return Float
) return Float is
Temp : Float := 0.0;
begin
I.all := Lo;
while I.all <= Hi loop
... |
pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from SFMT (SFMT-params19937.h)
with Ada.Numerics.SFMT;
package Ada.Numerics.SFMT_19937 is
new SFMT (
MEXP => 19937,
POS1 => 122,
SL1 => 18,
SL2 => 1,
SR1 => 11,
SR2 => 1,
MSK1 => 16#dfffffef#,
MSK2 => 1... |
--------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-GEVENT.ADB --
-- --
-- Gestion des évènements --
-- ... |
package Loop_Optimization12 is
type Enum1 is (A, B, C, D, E, F, G, H, I, J);
type Enum2 is (A, B, C);
type Enum3 is (A, B, C, D, E, F);
type Enum4 is (A, B, C, D);
type Enum5 is (A, B, C, D, E);
type Arr is array (Enum3, Enum4, Enum4, Enum5, Enum5, Enum3,
Enum2, Enum3, Enum5, Enum... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Interfaces; use Interfaces;
package body Natools.S_Expressions.Printers.Pretty.Config.Main_Cmd is
P : constant array (0 .. 4) of Natural :=
(1, 4, 6, 10, 19);
T1 : constant array (0 .. 4) of Unsigned_8 :=
(90, 49, 2, 41, 29);
T2 : constant array (0 .. 4) of Unsigned_8 :=
(4, 57, 54, 101... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags; use Ada.Tags;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Apsepp.Tags; use Apsepp.Tags;
with Apsepp.Characters; use Apsepp.Characters... |
with
ada.numerics.discrete_Random;
procedure lace.Containers.shuffle_Vector (the_Vector : in out vectors.Vector)
is
use type vectors.Index_type;
begin
for i in reverse 2 .. vectors.Index_type (the_Vector.Length) -- Start from 2, since swapping the
loop ... |
with avtas.lmcp.types; use avtas.lmcp.types;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Unchecked_Conversion;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package avtas.lmcp.byteBuffers is
type Nat is range 1 .. UInt32_t'Last;
type ByteArray is ar... |
pragma License (Unrestricted);
-- generalized unit of Ada.Strings.Equal_Case_Insensitive
generic
type Character_Type is (<>);
type String_Type is array (Positive range <>) of Character_Type;
with procedure Get (
Item : String_Type;
Last : out Natural;
Value : out Wide_Wide_Character;
I... |
-----------------------------------------------------------------------
-- keystore -- Ada keystore
-- Copyright (C) 2019 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 compliance... |
--
-- Copyright 2021 (C) Jeremy Grosser
--
-- SPDX-License-Identifier: BSD-3-Clause
--
-- This is a driver for the Pimoroni PIM526 LED Dot Matrix Breakout using an
-- IS31FL3730 I2C LED matrix driver to control two LTP-305 5x7 matrices.
-- https://shop.pimoroni.com/products/led-dot-matrix-breakout
--
-- The break... |
package body strings is
procedure print (c : character) is
begin
print("" & c);
end print;
procedure print (us : unb.unbounded_string) is
begin
print(unb.to_string(us));
end print;
function endswith (s, p : string) return boolean is
begin
return s'length >= p'length and then s((s'last - p'... |
-- 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 Tk.Wm.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Wm.Test_Data
.Test with
null re... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.NVIC; use STM32_SVD.NVIC;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.EXTI; use STM32_SVD.EXTI;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.RTC; use STM32_SVD.RTC;
with STM32_SVD.SCB; use STM32_SVD.SCB;
package body STM32GD.RTC is
procedure RTC_Hand... |
with Ada.Text_IO;
with Swap_Generics;
package body Sort_Generics is
procedure Sort_Generic (List : in out List_Type) is
Idx_Min : Integer;
procedure Swap is new Swap_Generics.Swap_Generic (Data_Type => Element_Type);
begin
for Current_Idx in List'First .. List'Last - 1 loop
Idx_Min ... |
-- { dg-do compile }
-- { dg-options "-O2 -fdump-tree-optimized" }
with Noinline3_Pkg;
package Noinline3 is new Noinline3_Pkg (0);
-- { dg-final { scan-tree-dump-times "noinline3.inner" 2 "optimized" } }
|
with Ada.Command_Line,
Ada.Text_IO;
procedure Rosetta_Read is
use Ada.Command_Line, Ada.Text_IO;
Source : File_Type;
begin
if Argument_Count /= 1 then
Put_Line (File => Standard_Error,
Item => "Usage: " & Command_Name & " file_name");
Set_Exit_Status (Failure);
return;... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Identifiers;
with Program.Node_Symbols;
with Program.Simple_Resolvers;
with Program.Symbols;
p... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Vulkan.Test.Main is
begin
Put_Line (VkEnumerateInstanceVersion'Img);
end Vulkan.Test.Main;
|
-- Author: mik
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure rendezvous is
task A is
entry Add(N : in Integer; R : out Integer);
end A;
task body A is
Sum : Integer := 0;
begin
loop
accept Add(N : in Integer; R ... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with OpenGL.Error;
package body OpenGL.Buffer_Object is
--
-- Generate buffer name(s).
--
procedure Generate (Buffers : in out Buffer_Array_t) is
begin
Thin.Gen_Buffers
(Size => Buffers'Length,
Buffers => Buffers (Buffers'First)'Address);
end Generate;
--
-- Delete buffer.
--
... |
-- An Ada source file which is supposed to be Ada95 only, but has
-- some Ada 2005 code in it.
procedure Has_05 is
begin
-- Introduce a deliberate Ada 2005 construct to verify that
-- the style_checker uses -gnat05, and that the compiler
-- therefore flags this as a violation.
raise Constraint_Error wi... |
package MAT.Expressions.Parser is
error_count : Natural := 0;
function Parse (Content : in String) return MAT.Expressions.Expression_Type;
end MAT.Expressions.Parser;
|
-- Incomplete code, just a sniplet to do the task. Can be used in any package or method.
-- Adjust the type of Year if you use a different one.
function Is_Leap_Year (Year : Integer) return Boolean is
begin
if Year rem 100 = 0 then
return Year rem 400 = 0;
else
return Year rem 4 = 0;
end if;
end Is... |
with Ada.Text_IO, Numerics.Dense_Matrices, Numerics.Sparse_Matrices.CSparse;
use Ada.Text_IO, Numerics.Dense_Matrices;
package body Dense_AD.Integrator is
function New_Control_Type (Dt : in Real := 1.0;
Tol : in Real := 1.0e-10;
Started : in Boolean := False)
return Cont... |
-------------------------------------
-- Laboratory work #1
-- Variants: 15;23;03
-- F1: d = MAX((A + B + C) *(MA*ME))
-- F2: q = MAX(MH * MK - ML)
-- F3: O = SORT(P)*(MR*MT)
-- Date 16 09 2020
-------------------------------------
with data;
with Ada.Integer_Text_IO, Ada.Text_IO;
use Ada.Integer_Text_IO, Ada.Tex... |
with Ada.Characters.Latin_1;
use Ada.Characters;
package body Lexer is
procedure Open(lexer : out Lexer_Type;
file_name : in String) is
begin
Character_IO.Open(File => lexer.file,
Mode => Character_IO.In_File,
Name => file_name);
... |
with AUnit.Assertions;
package body Z3.Tests is
use AUnit.Assertions;
subtype LLI is Long_Long_Integer;
subtype LLU is Long_Long_Unsigned;
function Simp (V : Bool_Type) return Bool_Type is
begin
return V.Simplified;
end Simp;
function Simp (V : Int_Type) return Int_Type is
begin
... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Standard_Allocators;
package System.Memory is
pragma Preelaborate;
-- required for accessibility check, or task objects (s-memory.ads)
procedure Free (Storage_Address : Address)
renames Standard_Allocators.Free;
en... |
with Ada.Text_IO;
package body example is
i : Number := Number'First;
procedure Print_and_Increment (j: in out Number) is
function Next (k: in Number) return Number is
begin
return k + 1;
end Next;
begin
Ada.Text_IO.Put_Line ( "The total is: " & Number'Image(j) );
j := Next (j);
en... |
-- Description: PIXRACER PROTOTYPING MAIN FILE
-- Main System File
with Ada.Real_Time; use Ada.Real_Time;
with Config; use Config;
with Interfaces; use Interfaces;
with CPU;
with HIL.Devices;
with NVRAM;
with Logger;
with LED_Manager;
with Buzzer_Manager;
with SDLog;
with ULog;
with STM32.DWT;
package bod... |
-- { dg-do run }
-- { dg-options "-O" }
with Loop_Optimization17_Pkg; use Loop_Optimization17_Pkg;
procedure Loop_Optimization17 is
Data : Arr;
begin
Data := (others => (I => 0,
V1 => (others => 0.0),
V2 => (others => 0.0),
S => 0.0));
for ... |
function loop
(Self : Pcap_T ;
Arg2 : int;
Arg3 : Pcap_Handler;
Arg4 : access Unsigned_Char) return Integer;
function Dispatch
(Self : Pcap_T ;
Arg2 : int;
Arg3 : Pcap_Handler;
Arg4 : access Unsigned_Char) return Integer;
function Next (Self : Pcap_T ... |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "IntelX"
type = "api"
useragent = "OWASP Amass"
host = "https://2.intelx.io/"
max = 1000
function start()
set_rate_limit(2)
end
... |
procedure Entry_Point is
X : constant Integer := 11;
begin
-- Failure
pragma Assert (X < 10);
-- Success
pragma Assert (X > 0);
end Entry_Point;
|
with Test_Solution; use Test_Solution;
with Ada.Text_IO; use Ada.Text_IO;
package problem_17 is
function Solution_1( Min, Max : Integer ) return Integer;
procedure Test_Solution_1;
function Get_Solutions return Solution_Case;
end problem_17;
|
-----------------------------------------------------------------------
-- hestia-ports -- Heat port control
-- Copyright (C) 2017, 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... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- util-dates-iso8601 -- ISO8601 dates
-- Copyright (C) 2011, 2013 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 exc... |
with FT801;
with Screen_Settings;
package body Screen_Isr is
protected body ISR_Body is
procedure Handler
is
ISR_Flags : FT801.Interrupts;
begin
if Interrupt_Line.Read_Interrupt_Status then
ISR_Flags := FT801.Read_Interrupts (This => Screen_Settings.Screen... |
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Preview_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
Template : in String;
Image_Directory : in String;
Village_Id : in Tabula.Villages.Village_Id;
Village : in Villages.Village_Type;... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
generic
N: Integer;
package Data is
type Vector is private;
type Matrix is private;
--Procedures, that fills random values into Vectors and Matrixes
procedure Random_Vector (A: out Vector);
procedure Random_Matrix (MA: out Matrix);
--Procedures, that fills Matrixes and Vectors with 1:
procedur... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Runner_Sequential.Create;
function Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes.Create
(Root_Node_Access : Test_Node_Access;
Test_Reporter_Instance_Access :... |
-- { dg-do compile }
procedure Max_Align is
type Block is record
X : Integer;
end record;
for Block'Alignment use Standard'Maximum_Alignment;
type Block_Access is access Block;
Ptr : Block_Access := new Block;
begin
null;
end;
|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Directories; use Ada.Directories;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Hashed_Sets;
with Ada.Strings.Hash;
with Yaml.Source.File;
with Ada.Strings.Unbounded; use Ada.Strings... |
-- { dg-do compile }
-- { dg-options "-O" }
package body Aggr9 is
procedure Proc (X : R1) is
M : R2 := (F => X);
begin
Send (M);
end;
end Aggr9;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.