content stringlengths 23 1.05M |
|---|
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Martin Becker (becker@rcs.ei.tum.de>
with HIL.Devices.Timers;
with Units; use Units;
with HAL; use HAL;
-- @summary
-- Target-independent specification for simple HIL of Hardware T... |
with Ada.Text_Io; use Ada.Text_Io;
with Iban_Code;
procedure Check_Iban is
procedure Check(Iban : String) is
begin
if Iban_Code.Is_Legal(Iban) then
Put_Line(Iban & " is valid.");
else
Put_Line(Iban & " is not valid.");
end if;
end Check;
begin
Check("GB82 WEST 1234 5698 ... |
with
box2d_c.Binding,
box2d_physics.Object,
c_math_c.Vector_3,
c_math_c.Matrix_4x4,
c_math_c.Conversion,
Swig,
interfaces.C,
ada.unchecked_Deallocation,
ada.unchecked_Conversion;
package body box2d_Physics.Joint
is
use c_math_c.Conversion,
box2d_c.Binding,
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- 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... |
-- { dg-do compile }
procedure access_func is
type Abomination is access
function (X : Integer) return access
function (Y : Float) return access
function return Integer;
begin
null;
end;
|
-- {{Ada/Sourceforge|fibonacci_1.adb}}
pragma License (Gpl);
pragma Ada_95;
with Ada.Text_IO;
with Ada.Command_Line;
procedure Fibonacci_1 is
type Integer_Type is range 0 .. 999_999_999_999_999_999;
package CL renames Ada.Command_Line;
package T_IO renames Ada.Text_IO;
package I_IO is new Ada.Text_IO.... |
--
-- Copyright (C) 2021, AdaCore
--
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
with System;
package Interfaces.STM32.Flash is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
subtype ACR_LA... |
------------------------------------------------------------------------------
-- G N A T C O L L --
-- --
-- Copyright (C) 2009-2019, AdaCore --
-- ... |
with GLOBE_3D;
package Box is
procedure Create (object : in out GLOBE_3D.p_Object_3D;
Sides : GLOBE_3D.Vector_3D := (1.0, 1.0, 1.0);
scale : GLOBE_3D.Real := 1.0;
centre : GLOBE_3D.Point_3D := (0.0, 0.0, 0.0));
... |
package body Server is
Count : Natural := 0;
procedure Foo is
begin
Count := Count + 1;
end Foo;
function Bar return Natural is
begin
return Count;
end Bar;
end Server;
|
-- kvflyweights-refcounted_lists.adb
-- A package of singly-linked reference-counting lists for the KVFlyweights
-- packages. Resources are associated with a key that can be used to create
-- them if they have not already been created.
-- Copyright (c) 2016, James Humphry
--
-- Permission to use, copy, modify, and/or ... |
with Text_IO; use Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
with Spline;
procedure Spline_tst_1 is
type Real is digits 15;
package math is new Ada.Numerics.Generic_Elementary_Functions (Real);
use math;
package rio is new Float_IO (Real);
use rio;
type Index is range 1 .. 178;
... |
pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
with Types; use Types;
-- @summary
-- This package exposes many Arduino runtime routines to Ada
--
-- @description
-- This package imports all of the necessary Arduino runtime library calls
-- that are needed.
--
package Sparkduino is
-- Configures ... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
pragma Warnings (Off);
pragma Style_Checks (Off);
with GL.Buffer.general;
with GL.Geometry;
package GL.Buffer.vertex is new GL.Buffer.general (base_object => GL.Buffer.array_Object,
index => GL.geometry.positive_vertex_Id,
... |
-- Copyright (c) 2020-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 req... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Regex.State_Machines;
with Regex.Syntax_Trees;
package Regex.Debug is
-- Prints the parse tree for the regular expression:
proce... |
package SDL is
pragma Linker_Options("-lSDL");
type Capabilities is mod 2 ** 31;
for Capabilities'Size use 32;
pragma Convention(C, Capabilities);
Timer : Capabilities := 16#0000_0001#;
Audio : Capabilities := 16#0000_0010#;
Video : Capabilities := 16#0000_0020#;
CDROM : Capa... |
------------------------------------------------------------------------------
-- --
-- J E W L . W I N D O W S --
-- --
... |
-------------------------------------------------------------------------------
-- Package : Cmd_Flags --
-- Description : Manage user provided CLI flags for the program. --
-- Author : Simon Rowe <simon@wiremoons.com> --
... |
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Bluetooth;
with Ada.Streams;
with Ada.Unchecked_Conversion;
package Locations is
-- Location and navigation profile allows these characteristics... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.Time; use HAL.Time;
with HAL.I2C; use HAL.I2C;
with HAL; use HAL;
package SGP30 is
Default_I2C_Address : constant I2C_Address := 16#B0#;
type SGP30_Status is (Ok, I2C_Error, Checksum_Error);
... |
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control;
with Ada.Real_Time; use Ada.Real_Time;
with STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.EXTI;
with STM32GD.Timer;
with STM32GD.Timer.Peripheral;
with STM32GD.Board; use STM32GD.Board;
with Peripherals;
procedure Main is
package GPIO renam... |
with Config_String_Parsers;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Config_String_Parsers is
function Identity (X : String) return String
is (X);
package Test_Parsers is
new Config_String_Parsers (Name_Type => string,
Value_Type => String,
... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Markdown.List_Items;
with Markdown.Lists;
with Markdown.Visitors;
package body Markdown.Blocks is
type List_Access is access all Markdown.Lists... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- 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 Lic... |
with STM32GD.Timer;
with STM32GD.Timer.Peripheral;
with STM32_SVD.Interrupts;
package Peripherals is
package Timer is new STM32GD.Timer.Peripheral;
end Peripherals;
|
-- 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.TIM16 is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_CKD_Field is HA... |
-----------------------------------------------------------------------
-- util-listeners -- Listeners
-- Copyright (C) 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complia... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
-- AOC 2020, Day 13
with Ada.Containers.Vectors;
package Day is
type Schedule is private;
function load_file(filename : in String) return Schedule;
function bus_mult(s : in Schedule) return Long_Long_Integer;
function earliest_matching(s : in Schedule) return Long_Long_Integer;
function earliest_matching_it... |
-- Copyright 2017-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.
name = "ShadowServer"
type = "misc"
local shadowServerWhoisAddress = ""
-- shadowServerWhoisURL is the URL for the ShadowServer whois server.
local shadowServerWhoi... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with PixelArray;
with Ada.Containers.Vectors;
package ImageRegions is
-- 0 and 255 are reserved to represent 0 / 1 in "binary" images
type RegionLabel is new Integer range 1 .. 254;
New_Region_Pixel_Threshold: constant Positive := 10;
type Rect is tagged record
x, y, width, height: Natural;
end ... |
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
-- 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... |
-- Demonstrates use of package: Disorderly.Random
with Disorderly.Random; use Disorderly.Random;
with Disorderly.Random.Clock_Entropy;
with Text_io; use text_io;
procedure Random_demo_1 is
X : Random_Int;
Stream_1 : State;
-- Must declare one of these for each desired independent stream of rands.
... |
function Product(Item : Int_Array) return Integer is
Prod : Integer := 1;
begin
for I in Item'range loop
Prod := Prod * Item(I);
end loop;
return Prod;
end Product;
|
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with GL.Types;
package Silo is
type Label_Data is private;
Empty_Stack : Exception;
procedure Get_Data (Label_String : out Unbounded_String;
Label_Position : out GL.Types.Singles.Vector2);
procedure Push (Data : Label_Data... |
-- Copyright (c) 2013, Nordic Semiconductor ASA
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice, this
-- lis... |
with Ada.Text_IO;
procedure Program is
Comment_Characters : String := "#;";
begin
loop
declare
Line : String := Ada.Text_IO.Get_Line;
begin
exit when Line'Length = 0;
Outer_Loop : for I in Line'Range loop
for J in Comment_Characters'Range loop
if Comment_Characters(J) = Line(I) then... |
package Separated is
procedure Watch_Me;
function Look_Out return Float;
end Separated;
|
-- { dg-do compile }
procedure aggr7 is
package P is
type T is limited private;
type TT is limited private;
type TTT is tagged limited private;
private
type T is limited
record
Self : access T := T'Unchecked_Access;
end record;
type TT is tagged... |
-- RUN: %llvmgcc -S %s -I%p/Support
package body Var_Offset is
function F (X : T) return Character is
begin
return X.Bad_Field;
end;
end;
|
-- Copyright 2017-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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
-- (a... |
package openGL.remote_Model
--
-- Provides a DSA friendly base class for 3D models.
--
is
pragma remote_Types;
type Item is abstract tagged
record
Id : model_Id := null_model_Id;
Scale : Vector_3 := (1.0, 1.0, 1.0);
Shine : openGL.Shine := 200.0;
end record;
en... |
-- 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.TtkLabelFrame.Ttk_Label_Frame_Options_Test_Data
.Ttk_Label_Frame_Options_Tests
is
type Test_Ttk_Label_Frame_Options ... |
-----------------------------------------------------------------------
-- asf-applications-tests - ASF Application tests using ASFUnit
-- Copyright (C) 2011, 2012, 2015, 2017, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "... |
with Ada.Text_Io;
procedure Main is
begin
Ada.Text_Io.Put_Line(Item=>'Hello World');
end Main;
|
package body Word_Wrap is
procedure Push_Word(State: in out Basic; Word: String) is
begin
if Word'Length + State.Size >= State.Length_Of_Output_Line then
Put_Line(State.Line(1 .. State.Size));
State.Line(1 .. Word'Length) := Word; -- may raise CE if Word too long
State.Size := Wo... |
-----------------------------------------------------------------------
-- gen-artifacts-mappings -- Type mapping artifact for Code Generator
-- Copyright (C) 2011, 2012, 2015, 2018, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version... |
pragma License (Unrestricted);
private with System.UTF_Conversions.From_8_To_16;
private with System.UTF_Conversions.From_8_To_32;
private with System.UTF_Conversions.From_16_To_32;
private with System.UTF_Conversions.From_16_To_8;
private with System.UTF_Conversions.From_32_To_8;
private with System.UTF_Conversions.Fr... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Compare_Array_Unsigned_8 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Unsigned_8 is mod 2 ** 8;
for Unsigned_8'Size use 8;
pa... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
-- Autogenerated by Generate, do not edit
package GL.API.UInts is
pragma Preelaborate;
Uniform1 : T51;
Uniform1v : T52;
Uniform2 : T53;
Uniform2v : T54;
Uniform3 : T55;
Uniform3v : ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_Io, Datos;
with Crear_Lista_Vacia, Esc, Ins, Interseccion;
use Datos;
use Ada.Text_Io;
procedure Prueba_Interseccion is
Lis1, Lis2 : Lista; -- variables del programa principal
procedure Pedir_Return is
begin
Put_Line("pulsa return para continuar ");
Skip_Line;
end ... |
with Ada.Numerics.Discrete_Random;
with Ada.Text_IO;
procedure Scaffolding is
package Try is new Ada.Numerics.Discrete_Random (Boolean);
use Try;
Dice : Generator;
Level : Integer := 0;
function Step return Boolean is
begin
if Random (Dice) then
Level := Level + 1;
Ada.Text_... |
with Ada.Exception_Identification.From_Here;
with System.Debug; -- assertions
with C.winbase;
with C.windef;
with C.winerror;
package body System.Synchronous_Objects is
use Ada.Exception_Identification.From_Here;
use type C.windef.DWORD;
use type C.windef.WINBOOL;
function atomic_load (
ptr : not nul... |
--
-- Copyright (C) 2015-2016 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; version 2 of the License.
--
-- This program is distributed in the hope that it w... |
with Vect9_Pkg; use Vect9_Pkg;
package Vect9 is
type Rec is record
Data : Vector_Access;
end record;
procedure Proc
(This : in Rec;
CV : in Unit_Vector;
Data : in out Unit_Vector);
end Vect9;
|
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
with Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse;
use Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
procedure Linear_Solver_Test is
use Real_IO, Int_IO, Real_Functions;
Mat : Sparse_Ma... |
with Ada.Containers.Indefinite_Ordered_Maps;
with kv.avm.Capabilities;
with kv.avm.Control;
with kv.avm.Registers;
with kv.avm.Actor_References;
package kv.avm.Brokers is
type Broker_Type is new kv.avm.Capabilities.Capability_Interface with private;
overriding procedure Execute
(Self : in out Broker_... |
-----------------------------------------------------------------------
-- util-commands-consoles -- Console interface
-- Copyright (C) 2014, 2015, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
with Es_Divisor;
function Suma_Divisores_Propios (N: Integer) return Integer is
Cont: Integer;
begin
Cont := 0;
for I in 1..N-1 loop
if Es_Divisor(I, N) then
Cont := Cont + I;
end if;
end loop;
return Cont;
end Suma_Divisores_Propios; |
with Ada.Directories; use Ada.Directories;
package body platform is
function get_ui_specification_filepath return string is
begin
return Current_Directory & "/../../../../../src/form/covidsim_form.ui";
end;
function get_covid_raw_data_filepath return string is
begin
return Current_Director... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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... |
with System;
package Thin_Pointer1 is
type Stream is array (Integer range <>) of Character;
type Stream_Ptr is access Stream;
for Stream_Ptr'Size use Standard'Address_Size;
type Buf is record
A : System.Address;
end record;
type Buf_Wrapper is record
B : Buf;
end record;
type B... |
with
glx.Pointers;
package body openGL.Context -- TODO: Finish this package.
is
procedure define (Self : in out Item; Profile : in openGL.surface_Profile.item'Class)
is
pragma Unreferenced (Profile);
use GlX,
glx.Pointers;
begin
if Self.glx_Context = null
then
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with OpenGL.Types;
with OpenGL.Thin;
package OpenGL.Matrix is
type Matrix_4x4f_t is new Types.Float_Arrays.Real_Matrix (1 .. 4, 1 .. 4);
type Matrix_4x4d_t is new Types.Double_Arrays.Real_Matrix (1 .. 4, 1 .. 4);
type Mode_t is (Texture, Modelview, Color, Projection);
-- proc_map : glMatrixMode
procedure... |
with Bitmaps.RGB;
package ImageOps is
function Manhattan_Distance (A, B : in Bitmaps.RGB.Pixel) return Natural;
function Adj_Distance_Sum
(Source : in Bitmaps.RGB.Image) return Long_Integer;
procedure Noise (Target : in out Bitmaps.RGB.Image);
end ImageOps;
|
-- C85005E.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... |
-- Miscellaneous types and functions.
package Util is
-- Type to represent a memory address.
type Address_Type is mod 2 ** 64;
-- Type to represent access time in cycles.
type Time_Type is new Long_Integer range 0 .. Long_Integer'Last;
-- Type to represent the cost of a memory subsystem.
type Cost... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (C) 2017-2020 by Heisenbug Ltd. (gh+saatana@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by... |
-- PR ada/42253
-- Testcase by Duncan Sands <baldrick@gcc.gnu.org>
-- { dg-do run }
with Thin_Pointer2_Pkg; use Thin_Pointer2_Pkg;
procedure Thin_Pointer2 is
begin
if F /= '*' then
raise Program_Error;
end if;
end;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with
gel.Sprite,
openGL.Visual,
ada.unchecked_Deallocation;
package body gel.Camera
is
--------
-- Forge
--
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
Self.destroy;
deallocate (Self);
e... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Containers.Doubly_Linked_Lists;
limited with Rules;
package Rule_Lists is
type Rule_Access is access all Rules.Rule_Record;
package Lists is
new Ada.Containers.Doubly_Linked_Lists (Element_Type => Rule_Access);
-- function Element (List : Lists.List) return Natural;
end Rule_Lists;
|
with
cached_Rotation;
package body any_Math.any_fast_Rotation
is
function to_Matrix_2x2 (m11, m12,
m21, m22 : Real) return Matrix_2x2
is
begin
return (1 => (m11, m12),
2 => (m21, m22));
end to_Matrix_2x2;
package the_Cache is new cached_Rotation (F... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Non_Determinism is
Some_Condition : Boolean := True;
-- select else
task Task1 is
entry Send_Message (Message : String);
end Task1;
task body Task1 is
begin
Put_Line ("Start of Task 1");
select
accept Send_Message (Message : Str... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2017, AdaCore --
-- --
-- ... |
package body getter.file is
procedure close is
begin
ada.text_io.close(current_ptr.all);
free(current_ptr);
files_stack.delete_last;
if not files_stack_t.is_empty(files_stack) then
current_ptr := files_stack_t.last_element(files_stack).descriptor;
current_line := files_stack_t.last_eleme... |
--
-- 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.Containers.Doubly_Linked_Lists;
w... |
with Ada.text_IO;
-- testing attributes 'Value and 'Image as applied to Integer
procedure HelloEx1 is
A,B,C : Integer;
begin
A := Integer'Value ( Ada.text_IO.Get_Line);
B := Integer'Value ( Ada.text_IO.Get_Line);
C := A + B ;
if c = 0 then
Ada.text_IO.... |
--
-- \brief Simple ada test program
-- \author Alexander Senier
-- \date 2019-01-03
--
with GNAT.IO;
with Except;
with Ada.Command_Line;
procedure Main is
use GNAT.IO;
begin
declare
begin
Put_Line ("Hello World!");
Except.Do_Sth_2;
Put_Line ("Bye World!");
Except.Do_Something;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- facebook - Use Facebook Graph API
-- Copyright (C) 2012, 2013, 2014 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... |
pragma Warnings (Off);
pragma Style_Checks (Off);
package GLOBE_3D.Wire_frame is
type Segment is record
P1, P2 : Positive; -- Indices to o.Point
colour : GL.RGBA_Color;
end record;
type Segment_array is array (Positive range <>) of Segment;
type p_Segment_array is access Segment_array;
... |
------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
-- CC3004A.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... |
-- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Danish is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "*formal parameter.*is not modified*");
... |
-----------------------------------------------------------------------
-- util-processes-tests - Test for processes
-- Copyright (C) 2011, 2012, 2016, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
with Test_Directories; use Test_Directories;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Bitmap; use Bitmap;
with Bitmap.Buffer; use Bitmap.Buffer;
with Bitmap.File_IO; use Bitmap.File_IO;
with Bitmap.Memory_Mapped; use Bit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.