content stringlengths 23 1.05M |
|---|
pragma License (Unrestricted);
-- extended unit, see AI05-0001-1
private with System.Storage_Elements;
generic
-- type Object is limited private;
type Object is private;
-- limited type could not have copy-assign version New_Object
package System.Initialization is
-- This is an implementation of Matthew... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with Interfaces.C.Strings;
with SDL_SDL_stdinc_h;
package SDL_SDL_main_h is
C_LINKAGE : aliased constant String := "C" & ASCII.NUL; -- ../include/SDL/SDL_main.h:38
-- unsupported macro: main SDL_main
function ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- 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... |
package body Bin_Trees.Traverse is
task body Inorder_Task is
procedure Inorder(Tree: Tree_Type) is
begin
if not Empty(Tree) and not Stop then
Inorder(Tree.Left);
if not Stop then
Process_Data(Item => Tree.Item);
end if... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Interfaces.Connection;
with AdaBase.Bindings.SQLite;
with AdaBase.Results;
with Ada.Exceptions;
package AdaBase.Connection.Base.SQLite is
package AIC renames AdaBase.Interfaces.Connection;
p... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Numerics.Long_Elementary_Functions;
with Riemann;
procedure Main is
Xs : array(1..4) of Float :=
(1.0, 2.0, 3.0, 4.0);
Results : array(1..4) of Long_Float :=
(0.74682413, 0.8820813907, 0.88620734825952, 0.8862269117895);
package TIO renames Ada.T... |
with overriding_ops_p; use overriding_ops_p;
package overriding_ops is
task type Light_Programmer is new Device with
overriding entry Set_Name (Name : Name_Type);
end Light_Programmer;
-- Object that represents a light
protected type Light is new Device with
overriding procedure Set_Name (Name... |
with Ada.Assertions; use Ada.Assertions;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Text_IO; use Ada.Text_IO;
with Rejuvenation.Utils; use Rejuvenation.Utils;
package body Rejuvenation.Parameters is
function To_Param_Default_Array
(Children : Ada_Node_Array; Default_Expr : Expr)
return... |
with Longest_Common_Prefix;
procedure Main
with SPARK_Mode => On
is
begin
Longest_Common_Prefix.A := (1, 2, 3, 4, 5, 1, 2, 3, 4, 5, others => 0);
end Main;
|
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 aaa_00hello is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Strea... |
with Incr.Parsers.Incremental;
package Ada_LSP.Documents.Debug is
package P renames Incr.Parsers.Incremental.Parser_Data_Providers;
procedure Dump
(Self : Document;
Name : String;
Data : P.Parser_Data_Provider'Class);
end Ada_LSP.Documents.Debug;
|
------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- --
-- ... |
-- -----------------------------------------------------------------------------
-- 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 ... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with Interfaces.C.Strings;
with SDL_stdinc_h;
package SDL_main_h is
C_LINKAGE : aliased constant String := "C" & ASCII.NUL; -- ..\SDL2_tmp\SDL_main.h:86
-- unsupported macro: main SDL_main
-- Simple DirectMedia... |
with
openGL.Model.Terrain,
openGL.IO,
ada.unchecked_Deallocation,
ada.unchecked_Conversion;
package body openGL.Terrain
is
type Heightmap_view is access all height_Map;
type Heightmap_Grid is array (math.Index range <>,
math.Index range <>) of Heightmap_view;... |
-- parse_args.ads
-- A simple command line option parser
-- Copyright (c) 2014 - 2021, 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 copi... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Strings is
pragma Pure;
end System.Strings;
|
-- 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) a... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with
ada.command_Line,
ada.Text_IO,
ada.Strings.unbounded,
xml.Reader;
procedure launch_Outline
is
use ada.command_Line,
ada.Text_IO,
ada.Strings.unbounded,
XML.Reader;
Line_Max : constant := 60000;
Depth : natural := 0;
XML_File : File_Ty... |
-- Copyright (c) 2015-2019 Marcel Schneider
-- for details see License.txt
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Equal_Case_Insensitive;
with Ada.Strings.Unbounded.Hash_Case_Insensitive;
with Ada.Containers.Hashed_Maps; use Ada.Containers;
with Tokens; use Tokens;
package P... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit specialized for Windows
with C;
package System.Native_Interrupts is
pragma Preelaborate;
subtype Interrupt_Id is C.signed_int;
function Is_Blocked (Interrupt : Interrupt_Id) return Boolean is (False);
procedure Block (Interrupt : Interrupt_Id)
... |
-- C52103X.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... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Debug_Trace;
package body Apsepp.Scope_Debug is
----------------------------------------------------------------------------
function C (Entity_Name : String;
En, Ex : Bool... |
with LR.Synchro.Fifo; -- XXXX
package body LR.Synchro is
package Synchro renames LR.Synchro.Fifo; -- XXXX
function Nom_Strategie return String renames Synchro.Nom_Strategie;
procedure Demander_Lecture renames Synchro.Demander_Lecture;
procedure Demander_Ecriture renames Synchro.Demander_Ecritur... |
-- The Cupcake GUI Toolkit
-- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com>
-- Report bugs and issues on <http://github.com/skordal/cupcake/issues>
-- vim:ts=3:sw=3:et:si:sta
package body Cupcake.Colors is
-- Multiplies the components of a color with a constant:
function "*" (Left : in Co... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C;
package Glfw is
subtype Seconds is Interfaces.C.double;
Initialization_Exception : exception;
-- for convenience, besides executing GLFW's init procedures, this also call... |
with Ada.Text_IO;
use Ada.Text_IO;
with Data;
use Data;
with Ada.Integer_Text_IO;
with Ada.Integer_Text_IO;
with System.Multiprocessors;
use System.Multiprocessors;
procedure lab1 is
cpu1 : CPU_Range := 1;
cpu2 : CPU_Range := 1;
cpu3 : CPU_Range := 1;
N : Integer := 50;
task T1 is
pragma Priorit... |
with HAL.I2C; use HAL.I2C;
use HAL;
package T67XX_I2C_IO is
type Delay_Procedure_Type is access procedure;
type IO_Port is tagged record
Port : Any_I2C_Port;
Device : I2C_Address;
Ptr : Delay_Procedure_Type;
end record;
type Any_IO_Port is access all IO_Port'Class;
procedu... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with
Ahven,
float_Math.Geometry.d2;
package body math_Tests.Geometry_2d
is
use Ahven,
float_Math;
function almost_Equal (Left, Right : in Real) return Boolean
is
Tolerance : constant := 0.000_001;
begin
return abs (Left - Right) <= Tolerance;
end almost_Equal;
pro... |
-----------------------------------------------------------------------
-- awa-comments-modules-tests -- Unit tests for comments module
-- Copyright (C) 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
package Radar_Internals is
-- Types
type Object_Status_T is (Out_Of_Range, Tracked, Cleared, Selected);
subtype Object_Distance_Km_T is Float range 0.01 .. 100.0;
subtype Speed_Kph_T is Float range 0.0 .. 50.0;
type Speed_Setting_T is (Stopped, Slow, Normal, Fast);
-- Actions on the Radar
procedu... |
with Discr8_Pkg3; use Discr8_Pkg3;
package Discr8_Pkg2 is
Max : constant Natural := Value;
type List_T is array (Natural range <>) of Integer;
type L is record
List : List_T (1 .. Max);
end record;
end Discr8_Pkg2;
|
with Ada.Command_Line;
with Ada.Directories;
with Ada.Strings.Unbounded;
package body Utils is
---------------
-- Open_File --
---------------
procedure Open_File
(File : in out File_Type; Mode : File_Mode; Path : String;
File_Form : String := DEFAULT_FILE_FORM_VALUE; Auto : Boolean := Fa... |
-- This spec is just a stand-in for a real Ada to C MPI binding, to enable
-- compilation of Ada translated from MPI-using C code.
with Ada.Real_Time;
with Ada.Unchecked_Deallocation;
with System;
package MPI is
package ART renames Ada.Real_Time;
type Request is private;
-- MPI_comm - communicator (handle)... |
generic
Sample_Size: Positive;
type Item_Type is private;
package S_Of_N_Creator is
subtype Index_Type is Positive range 1 .. Sample_Size;
type Item_Array is array (Index_Type) of Item_Type;
procedure Update(New_Item: Item_Type);
function Result return Item_Array;
end S_Of_N_Creator;
|
with impact.d3.collision.Detector.discrete,
impact.d3.Shape.convex.internal.polyhedral.box;
package impact.d3.collision.Detector.discrete.box_box
--
--
-- impact.d3.collision.Detector.discrete.box_box wraps the ODE box-box collision detector.
--
is
use impact.d3.collision.Detector.discrete;
type Item ... |
with Ada.Characters.Latin_1;
package MyStringTokeniser with SPARK_Mode is
type TokenExtent is record
Start : Positive;
Length : Natural;
end record;
type TokenArray is array(Positive range <>) of TokenExtent;
function Is_Whitespace(Ch : Character) return Boolean is
(Ch = ' ' or Ch = Ada... |
package body Operator_Subprogram_Calls is
type R is
record
I : Integer;
end record;
function "<"(P1 : R; P2 : R) return Boolean;
procedure Test is
R1 : R := (I => 42);
R2 : R := (I => 42);
function Foo(I1 : R; I2 : R) return Boolean renames "<";
begin
if... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Img_Char is
pragma Pure;
-- required for Character'Image by compiler (s-imgcha.ads)
procedure Image_Character_05 (
V : Character;
S : in out String;
P : out Natural);
-- helper
Hex_Prefix : co... |
-----------------------------------------------------------------------
-- keystore-marshallers -- Data marshaller for the 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 us... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, 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 f... |
-----------------------------------------------------------------------
-- akt-callbacks -- Callbacks for Ada Keystore GTK application
-- 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... |
with
Ahven.Framework;
package JSA.Tests.Intermediate_Backups is
type Test is new Ahven.Framework.Test_Case with null record;
overriding
procedure Initialize (T : in out Test);
private
procedure Run;
end JSA.Tests.Intermediate_Backups;
|
with Ada.Unchecked_Deallocation;
with PB_Support.IO;
with PB_Support.Internal;
package body Google.Protobuf.Struct is
package List_Value_IO is
new PB_Support.IO.Message_IO
(Google.Protobuf.Struct.List_Value,
Google.Protobuf.Struct.List_Value_Vector,
Google.Protobuf.Struct.Append);
t... |
with Ada.Text_Io;
use Ada.Text_Io;
procedure Concurrent is
task type Task1 is
entry Insert (In1 : in Integer);
end Task1;
task body Task1 is
Value : Integer;
begin
Value := 10;
accept Insert(In1 : in Integer) do
Value := In1;
end Insert;
Put_Line(Integer'Image(Value));
end Task... |
with Ada.Containers.Vectors; use Ada.Containers;
with NeuralNet;
with DataBatch;
with MathUtils;
package NNClassifier is
pragma Assertion_Policy (Pre => Check,
Post => Check,
Type_Invariant => Check);
package LabelVecPkg is new Ada.Containers.Vectors(Inde... |
-- Copyright 2016 Steven Stewart-Gallus
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agr... |
limited with Engines;
with Ada.Containers.Vectors, Ada.Strings.Bounded;
with Libtcod.Maps, Libtcod.Color, Libtcod.Console;
with Components, Components.Destructibles, Components.Attackers, Components.AIs;
use Components, Components.Destructibles, Components.Attackers, Components.AIs;
use Libtcod;
package Actors is
... |
-- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LALR Ada re2c PROCESS wisitoken_grammar.wy
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- Author: Stephen Leake <stephe-leake@stephe-leake.org>
--
-- This file is part of GNU Emacs.
--
-- GNU Emacs is ... |
package Archive_Searcher is
type Object is tagged null record;
function Search
(Self : in out Object;
Search_For : in String)
return String;
end Archive_Searcher;
|
-----------------------------------------------------------------------
-- mat-consoles - Console interface
-- Copyright (C) 2014, 2015 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... |
-- package Givens_Rotation
--
-- cos = P/r, sin = L/r, r = sqrt(P*P + L*L)
--
-- (P is for Pivot, L is for Low.
--
-- clockwise rotation: notice all rotations are centered on the diagonal
--
-- 1 0 0 0 0 0 0
-- 0 c s 0 0 P r
-- 0 -s c 0 0 x L = 0
-- 0 0 0 1 0... |
package body T67XX is
---------------
-- Device_Id --
---------------
function Device_Id (This : in out T67XX_Sensor) return UInt16
is
Answer : I2C_Data (1 .. 4);
begin
Read (This.Port, 4, FIRMWARE_REVISION, 1, Answer);
return Shift_Left (UInt16 (Answer (3)), 8) or UInt16 (Answer (... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
--
-- ABench2020 Benchmark Suite
--
-- Linked List Program
--
-- Licensed under the MIT License. See LICENSE file in the ABench root
-- directory for license information.
--
-- Uncomment the line below to print the result.
-- with Ada.Text_IO; use Ada.Text_IO;
procedure Linked_List is
type Vector is array (Po... |
package Compiler is
UTFMAX : constant := 4;
RUNEMAX : 16#10FFF#;
Bit1 : constant := 7;
BitX : constant := 6;
Bit2 : constant := 5;
Bit3 : constant := 4;
Bit4 : constant := 3;
Bit5 : constant := 2;
Tx : constant := (left_shift (1, (BitX + 1)) - 1) xor 16#FF#;
T2 : constant := (left_shift ... |
generic
type T is range <>;
package Atomic.Signed
with Preelaborate, Spark_Mode => On,
Abstract_State => null
is
-- Based on GCC atomic built-ins. See:
-- https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
--
-- The specification is exactly the same for all sizes of data (8, 16, 32... |
-- { dg-do compile }
-- { dg-options "-O" }
with Loop_Optimization11_Pkg; use Loop_Optimization11_Pkg;
procedure Loop_Optimization11 is
Arr : array (Prot, Mem) of Integer := (others => (others => 0));
begin
Put_Line (Img (0) & " ");
for I in Arr'Range (1) loop
for J in Arr'Range (2) loop
decla... |
-- Spiral Square
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
procedure Spiral_Square is
type Array_Type is array(Positive range <>, Positive range <>) of Natural;
function Spiral (N : Positiv... |
pragma Check_Policy (Trace => Ignore);
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Formatting.Address;
with System.Stack;
with System.Storage_Map;
with System.Unwind.Occurrences;
with System.Unwind.Standard;
with C.basetsd;
with C.vadefs;
with C.winbase;
with C.windef;
wi... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- css-analysis-rules-types -- Rules for CSS pre-defined value types
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
-- -*- Mode: Ada -*-
-- Filename : crash.adb
-- Description : Provides access to the multiboot information from GRUB
-- Legacy and GRUB 2.
-- Author : Luke A. Guest
-- Created On : Thur Nov 17 16:52:05 2016
-- Licence : See LICENCE in... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Tags.Generic_Dispatching_Constructor;
with Slim.Messages.ANIC;
with Slim.Messages.BUTN;
with Slim.Messages.DSCO;
with Slim.M... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_SDL_stdinc_h;
package SDL_SDL_h is
SDL_INIT_TIMER : constant := 16#00000001#; -- ../include/SDL/SDL.h:61
SDL_INIT_AUDIO : constant := 16#00000010#; -- ../include/SDL/SDL.h:62
SDL_INIT_VIDEO : constant := 16#000000... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
with World;
package Parameters is
FPS : constant := 30;
Frame_Period : constant := 1000 / FPS;
type Equipment is (Engine, Cargo, Tank, Drill);
type Equipment_Level is range 1 .. 7;
Price : constant array (Equipment, Equipment_Level) of Natural :... |
with Ada.Strings.Unbounded;
with GNATCOLL.Projects;
with GNATCOLL.VFS;
with Libadalang.Analysis;
with Libadalang.Common;
with GraphML_Writers;
package Extraction is
package GPR renames GNATCOLL.Projects;
package GW renames GraphML_Writers;
package LAL renames Libadalang.Analysis;
package LALCO rena... |
-- AoC 2020, Day 25
with Ada.Text_IO;
package body Day is
package TIO renames Ada.Text_IO;
card_subject_number : constant Long_Integer := 7;
door_subject_number : constant Long_Integer := 7;
div_constant : constant Long_Integer := 20201227;
procedure transform(value : in out Long_Integer; subject_num : ... |
With Ada.Text_IO; Use Ada.Text_IO;
Procedure HelloWorld is
begin
Put("Programacao em Ada!");
New_Line;
Put_Line("Hello World!!");
end HelloWorld; |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 Felix Krause <contact@flyx.org>
--
-- 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/licen... |
package body GMP.Generic_F is
function To_MP_Float (X : Long_Float) return MP_Float is
begin
return To_MP_Float (X, Precision);
end To_MP_Float;
function Value (Image : String; Base : Number_Base := 10) return MP_Float is
begin
return Value (Image, Base, Precision);
end Value;
function "+" (Right : MP_... |
function Is_Prime(Item : Positive) return Boolean is
Result : Boolean := True;
Test : Natural;
begin
if Item /= 2 and Item mod 2 = 0 then
Result := False;
else
Test := 3;
while Test < Integer(Sqrt(Float(Item))) loop
if Item mod Test = 0 then
Result := False;
... |
with Swaps; use Swaps;
with Ada.Text_IO;
package body Sorts is
procedure Display_List (List : in Integer_List) is
package IO renames Ada.Text_IO;
procedure Put_String(S : String) renames Ada.Text_IO.Put;
begin
IO.Put ("(");
for I in List'First .. List'Last loop
if i /= List'Firs... |
package body Ada.Characters.ASCII.Handling is
function Is_Control (Item : Character) return Boolean is
begin
return Item in Character'Val (0) .. Character'Val (16#1f#)
or else Item = Character'Val (16#7f#);
end Is_Control;
function Is_Graphic (Item : Character) return Boolean is
begin
... |
with Simple_IO;
package body Side_Effects
with SPARK_Mode => On
is
X, Y, Z, R : Integer;
function F (X : Integer) return Integer is
begin
Z := 0; -- Side effect
return X + 1;
end F;
procedure Test is
begin
X := 10;
Y := 20;
Z := 10;
R := Y / Z + F (X); -- pos... |
pragma Check_Policy (Trace => Ignore);
with Ada.Unchecked_Conversion;
with System.Address_To_Constant_Access_Conversions;
with System.Storage_Elements;
with System.Unwind.Representation;
with C.unwind_pe;
package body System.Unwind.Searching is
pragma Suppress (All_Checks);
use type Storage_Elements.Storage_Offse... |
pragma Restrictions (No_Streams);
with System;
-- with Interfaces; use Interfaces;
with HAL.I2C; use HAL.I2C;
use HAL;
generic
type IO_Port (<>) is abstract tagged limited private;
type Any_IO_Port is access all IO_Port'Class;
with procedure Read
(This : Any_IO_Port;
Func : UInt8... |
with Ada.Text_IO, Ada.Calendar, Ada.Numerics.Discrete_Random;
use Ada.Text_IO;
procedure Utkereszt is
type lampaszinek is (piros, pirossarga, zold, sarga);
protected jelzolampa is
procedure valt;
function szin return lampaszinek;
private aktszin : lampaszinek := piros;
end jelzol... |
-- 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 Protypo.Api.Engine_Values.Enumerated_Records;
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
package User_Records is
type User_Field is (First_Name, Last_Name, Telephone);
package User_Record_Package is
new Protypo.Api.Engine_Values.Enumerated_Records (User_Field);
function Split_Bit (Param... |
----------------------------------------------------------
-- Copyright (c), The MIT License (MIT)
-- Author: Lyaaaaaaaaaaaaaaa
--
-- Revision History:
-- 18/09/2019 Lyaaaaaaaaaaaaaaa
-- - Added file header
-- - Removed procedure Init_Objects (unused procedure)
--------------------------------------------------... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Euler;
procedure Test_Euler_Method is
package Float_Euler is new Euler (Float);
use Float_Euler;
function Newton_Cooling_Law (T, Y : Float) return Float is
begin
return -0.07 * (Y - 20.0);
end Newton_Cooling_Law;
Y : Waveform := Solve (Newton_Cooling_L... |
--
-- In this example two different tasks exchange values
-- through a third task. Delays are used to assure the
-- get isn't executed by the same task that did the put.
--
with Ada.Text_IO; use Ada.Text_IO;
procedure Task_Queue is
-- cf. Barnes, J., "Programming in Ada 2012" (Chapter 20)
task Buffer is
... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with System;
with Interfaces.C.Strings;
private with Yaml.Parser;
private with Yaml.Presenter;
package Yaml.C is
-- this is an implementation of libyaml's C interface declared in yaml.h
funct... |
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Register block for various chip control sig... |
-- C45251A.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... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Results.Sets;
package AdaBase.Interfaces.Statement is
type iStatement is limited interface;
function successful (Stmt : iStatement) return Boolean is abstract;
function column_count ... |
package Concat1_Pkg is
function Ident (I : Integer) return Integer;
end Concat1_Pkg;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.