CombinedText
stringlengths
4
3.42M
-- This file is generated by SWIG. Do *not* modify by hand. -- with llvm; with Interfaces.C.Strings; package LLVM_Target.Binding is LLVMBigEndian : constant := 0; LLVMLittleEndian : constant := 1; procedure LLVMInitializeAllTargets; function LLVMInitializeNativeTarget return Interfaces.C.int; ...
with Ada.Integer_Text_IO, Ada.Text_IO, Constraint_Engine; use Ada.Integer_Text_IO, Ada.Text_IO; procedure Example is package Test_Engine renames Constraint_Engine; use Test_Engine; P : Type_Problem; S : Var_Vector.Vector; begin P.Add_Var(Low_Interval => 0, Top_Interval => 40...
with AdaBase; with Connect; with Ada.Text_IO; with AdaBase.Logger.Facility; procedure Wipe_Out is package CON renames Connect; package TIO renames Ada.Text_IO; package ALF renames AdaBase.Logger.Facility; numrows : AdaBase.Affected_Rows; bfast : constant String := "breakfast"; cmd1 : constant Str...
-- Copyright 2017 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 = "ThreatCrowd" type = "api" function start() setratelimit(10) end function vertical(ctx, domain) local c local cfg = dat...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, AdaCore -- -- -- -- ...
-- Copyright 2012-2017 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_IO, Ada.Unchecked_Deallocation; use Ada.Text_IO; package body hetro_stack is procedure Free is new Ada.Unchecked_Deallocation(hetroStackElem, hetroStackElemPtr); procedure PushFront(Stack: in out hetroStack; Data: ItemPt) is Pt : hetroStackElemPtr := new hetroStackElem; begin Pt.Data := ...
with Ada.Strings.Unbounded; private with Ada.Containers.Indefinite_Vectors; generic with procedure Print_Line(Indention: Natural; Line: String); package S_Expr is function "-"(S: String) return Ada.Strings.Unbounded.Unbounded_String renames Ada.Strings.Unbounded.To_Unbounded_String; function "+"(U: Ada...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package TLSF.Proof.Model with SPARK_Mode, Pure, Preelaborate, Ghost is end TLSF.Proof.Model;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Unchecked_Deallocation; with Ada.Containers.Vectors; with Ada.Containers.Indefinite_Vectors; with Protypo.Tokens; private package Protypo.Code_Trees is use Ada.Strings.Unbounded; package ID_Lists is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, ...
with Progress_Indicators.Work_Trackers; package SP.Progress is package PI renames Progress_Indicators; task type Update_Progress (Work : access PI.Work_Trackers.Work_Tracker) with CPU => 1 is entry Stop; end Update_Progress; end SP.Progress;
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the t...
package body NXP.Board is procedure Initialize_Board is Configuration : GPIO_Port_Configuration; begin Enable_Clock (LEDs); Configuration.Mode := Mode_Out; Configuration.Output_Type := Push_Pull; Configuration.Speed := Speed_Low; Configuration.Resistors := Fl...
-- This spec has been automatically generated from STM32L4x6.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.HASH is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_DATATYPE_Field is ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising fr...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Streams; with League.Strings; package Network.Addresses is pragma Preelaborate; type Address is private; -- Composable and future-proo...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
package Packet is Sensor_Reading_Tag : constant Natural := 6; Voltage_Tag : constant Natural := 7; Temperature_Tag : constant Natural := 8; Humidity_Tag : constant Natural := 9; Pressure_Tag : constant Natural := 10; Lux_Tag : constant Natural := 11; UV_Index_Tag ...
------------------------------------------------------------------------------- -- Copyright (c) 2016 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...
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; package stddef_h is -- unsupported macro: NULL ((void *)0) -- arg-macro: procedure offsetof (TYPE, MEMBER) -- __builtin_offsetof (TYPE, MEMBER) subtype ptrdiff_t is int; -- /home/synack/.config/a...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- util-beans-objects-tests -- Unit tests for objects -- 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...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C34006D.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...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package WebIDL is pragma Pure; end WebIDL;
with Ada.Text_IO; procedure Octal is package IIO is new Ada.Text_IO.Integer_IO(Integer); begin for I in 0 .. Integer'Last loop IIO.Put(I, Base => 8); Ada.Text_IO.New_Line; end loop; end Octal;
-- { dg-do compile } with Deques; procedure Show_Deques_Priority is use Deques; PD : aliased P_Deque := Create; begin PD.Pop; end Show_Deques_Priority;
with Interfaces; use Interfaces; -- @summary functions to provide a string image of numbers -- overapproximating the length, otherwise too much code needed. package Generic_Bounded_Image with SPARK_Mode is generic type T is (<>); -- any modular type or discrete function Image_32 (item : T) return String...
----------------------------------------------------------------------- -- gen-artifacts -- Artifacts for Code Generator -- Copyright (C) 2011, 2012, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
-- This spec has been automatically generated from STM32WB55x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.CRS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_TRIM_Field is HAL....
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Primes.PrimeNumberRequest_DataReader; with Primes.PrimeNumberReply_DataWriter; with DDS.Request_Reply.Replier.Typed_Replier_Generic; package Primes.PrimeNumberReplier is new DDS.Request_Reply.Replier.Typed_Replier_Generic (Request_DataReader => Primes.PrimeNumberRequest_DataReader, Reply_DataWriter => Prime...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package shaintrin_h is -- Copyright (C) 2013-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public L...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. ------------------------------------------------------------...
with Numerics, Numerics.Sparse_Matrices; use Numerics, Numerics.Sparse_Matrices; package Forward_AD is type AD_Type is tagged private; type AD_Vector is array (Nat range <>) of AD_Type; function Var (X : in Real; I, N : in Nat; Dx : in Real := 1.0) return AD_Type; function Zero (N :...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- Render Tests - Unit tests for AWA Wiki rendering -- 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 this f...
with GL_Types, Interfaces.C; package GL -- -- Provides types and constants common to all openGL profiles. -- is pragma Pure; use Interfaces; --------- -- Types -- -- GLvoid -- subtype GLvoid is GL_Types.GLvoid; type GLvoid_array is array (C.size_t range <>) of aliased...
-- $Header: /dc/uc/self/arcadia/ayacc/src/RCS/output_file_body.a,v 1.2 1993/05/31 22:36:35 self Exp self $ -- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- The primary authors of ayacc were David Taback and Deepak Tolani. -- Enhancements were made by Ronald J. Schmalz...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Man_Or_Boy is function Zero return Integer is begin return 0; end Zero; function One return Integer is begin return 1; end One; function Neg return Integer is begin return -1; end Neg; function A ( K : Integer; X1, X2, X3, X4, X...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Defining_Names; with Program.Elements.Aspect_Specifications; with Program.Element_Vectors; with Program...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that th...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Type_Declarations is function Create (Type_Token : not null Program.Lexical_Elements .Lexical_Element_Acc...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Elements.Defining_Names; with Program.Elements.Paramet...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Containers.Indefinite_Doubly_Linked_Lists; with Ada.Containers.Ordered_Maps; with Ada.Strings.Unbounded; package Tabula.Villages.Lists is package User_Lists is new Ada.Containers.Indefinite_Doubly_Linked_Lists (String); type Village_Summary is record T...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with AdaM.Factory; package body AdaM.Comment is -- Storage Pool -- record_Version : constant := 1; max_Comments : constant := 5_000; package Pool is new AdaM.Factory.Pools (".adam-store", "comments", ...
with AdaM.Any, Ada.Containers.Vectors, Ada.Streams; private with AdaM.context_Item; package AdaM.context_Clause is type Item is new Any.item with private; -- View -- type View is access all Item'Class; procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type...
-- C95086D.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, 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 sumDiv is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Stre...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- This spec has been automatically generated from STM32L4x3.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.U...
-- Mean lunar phase computations -- Given a date expressed as a decimal Julian day, -- compute the mean lunar phase (and later the next mean new moon). -- The algorithm is in the public domain ---------------------------------------------------------------------------- -- Copyright Miletus 2015 -- Permission is hereby ...
-- gamma(1+x) = x! for x=0,1,2 ... -- Calls 2 important Test procedures from Factorial, then quick test. with Factorial; with text_io; use text_io; with ada.numerics.generic_elementary_functions; procedure Factorial_tst_1 is type Real is digits 15; package F is new Factorial (Real); use F; package Math is n...
with Ada.Strings.Fixed; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A040 is use Ada.Strings.Fixed; use Ada.Integer_Text_IO; Max_E : constant Integer := 7; -- 1E+x N : constant array (Integer range 1 .. Max_E) of Integer := (1, 10, 100, 10...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h; with glib; with glib.Values; with System; with System; with glib; -- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h; package GStream...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising fr...
-------------------------------------------------------------------------------- -- 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...
-- { dg-do run } procedure Alignment10 is type Short_T is mod 2 ** 16; for Short_T'Size use 16; for Short_T'Alignment use 1; subtype Short_Sub_T is Short_T range 1000 .. 1005; A : aliased Short_T := 1000; B : Short_Sub_T; for B'Address use A'Address; pragma Import (Ada, B); b...
----------------------------------------------------------------------- -- asf-applications-main-tests - Unit tests for Applications -- Copyright (C) 2011, 2012, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
-- This spec has been automatically generated from STM32F40x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.TIM is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------ -- CR1_Register -- -------------...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstbytereader_h; with glib; with glib.Values; with System; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; limited with GStreamer.GST_Low_Level.gstreame...
with A_Stack; use A_Stack; package Reverser with SPARK_Mode is subtype Array_Range is Natural range 1 .. 10_000; type Array_Of_Items is array (Array_Range range <>) of Item; procedure Reverse_Array (A : in out Array_Of_Items) with Global => (In_Out => The_Stack), Pre => A'Length > 0 and th...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2022, AdaCore -- -- -- -- ...
-- Copyright (c) 2021, Karsten Lueth (kl@kloc-consulting.de) -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice...
with Ada.IO_Exceptions; with Ada.Streams; private with C.openssl.sha; package Crypto.SHA256 is pragma Preelaborate; subtype Fingerprint is Ada.Streams.Stream_Element_Array (0 .. 31); subtype Message_Digest is String (1 .. 64); type Context (<>) is private; function Initial return Context; procedure Update...
-- Copyright 2012-2021 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. -- -- ...
-- A55B14A.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 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; ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is procedure P(x:integer;) is begin x := 0; end; begin P(0); end;
package hauntedhouse is -- W: Wall, R: Room, C: Corridor, E: Exit type Fields is (W,R,C,E); type Position is record x: Natural; y: Natural; end record; function IsWall(pos: Position) return Boolean; function IsCorrect(pos: Position) return Boolean; function IsCorridor(pos: Positi...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Elements.Defining_Names; with Program.Elements.Express...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package ship is type Ship_Type is Private; type Ship_Data is Private; type Ship_Modify is (build, colony, grid, max); function is_Colony return Ship_Data; function is_StarShip return Ship_Data; function is_Station return Ship_Data; function show_me_ship_type (ship: in Ship_Data) return String; functio...
----------------------------------------------------------------------- -- asf-helpers-beans -- Helper packages to write ASF applications -- Copyright (C) 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
-- Copyright 2016-2021 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. -- -- ...
----------------------------------------------------------------------- -- contexts-facelets -- Contexts for facelets -- Copyright (C) 2009, 2010, 2011, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
package Array28_Pkg is subtype Outer_Type is String (1 .. 8); subtype Inner_Type is String (1 .. 5); function F return Inner_Type; end Array28_Pkg;
-- CE3806D.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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...