content
stringlengths
23
1.05M
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.PRIC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype HFROSCCFG_DIV_Field is HA...
$NetBSD: patch-src__editor_src_src__editor__buffer.adb,v 1.2 2014/04/30 16:32:20 marino Exp $ Disambiguation required to compile with FSF GNAT 4.9.0 --- src_editor/src/src_editor_buffer.adb.orig 2012-09-28 15:42:43.000000000 +0000 +++ src_editor/src/src_editor_buffer.adb @@ -5820,7 +5820,7 @@ package body Src_Editor_...
-- { dg-do run } -- { dg-options "-O2" } with Enum1_Pkg; use Enum1_Pkg; procedure Enum1 is function Cond return Boolean is begin return My_N = Two or My_N = Three; end; begin if Cond then raise Constraint_Error; end if; end;
WITH Ada.Text_Io; USE Ada.Text_Io; procedure Ver_Substring_aa is -- salida: 11 booleanos(SE) -- post: corresponden a cada uno de los casos de pruebas dise�ados. -- pre: { True } function Substring_aa( S : String) return Boolean is -- EJERCICIO 3- ESPECIFICA E IMPLEMENTA recursiva...
function Lnko ( A, B : Positive ) return Positive is X: Positive := A; Y: Natural := B; Tmp: Natural; begin while Y /= 0 loop Tmp := X mod Y; X := Y; Y := Tmp; end loop; return X; end Lnko;
----------------------------------------------------------------------- -- keystore-passwords-tests -- Tests for Keystore.Passwords -- 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...
------------------------------------------------------------------------------ -- File : Float_portable_binary_transfer.ads -- Description : Split & merge floating - point numbers into integers to -- facilitate a portable transfer, including Input - Output -- Date / Version :...
with Interfaces; use Interfaces; with Bitmap_Graphics; use Bitmap_Graphics; package body Bitmap_Buffer is -- Set the color for the whole buffer. procedure Set(Buf: Buffer_Ref; Clr: Color) is Val: Unsigned_8; begin case Clr is when White => Val := 255; when Black => Val := 0; end case...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package body GBA.Numerics.Vectors is function Pointwise (V, W : Vec) return Vec is begin return ( 0 => Operator (V (0), W (0)) , 1 => Operator (V (1), W (1)) ); end; function Scalar (V : Vec; E : Element) retu...
with Ada.Text_IO; procedure Integers_In_English is type Spellable is range -999_999_999_999_999_999..999_999_999_999_999_999; function Spell (N : Spellable) return String is function Twenty (N : Spellable) return String is begin case N mod 20 is when 0 => return "zero"; ...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.GPIO is pragma Preelaborate; --------------- -- Registers -- --------------- -- MODER_MODE array element subtype MODE...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2021, AdaCore -- -- -- -- ...
with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put_Line("Hello, world!"); end Hello;
-- -- 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; either version 2 of the License, or -- (at your option) any later version. -- -- ...
with Runge_8th; with Text_IO; use Text_IO; with Sinu; with Ada.Numerics.Generic_Elementary_Functions; procedure runge_8th_order_demo_1 is type Real is digits 15; package Sinusoid is new Sinu (Real); use Sinusoid; package Sin_Integrate is new Runge_8th (Real, Dyn_Index, Dynamical_Variable, F, "*",...
-- { dg-do compile } package body Iface2 is procedure change (This, That : Prot.Any_Future) is begin null; end; end Iface2;
----------------------------------------------------------------------- -- servlet-rest-tests - Unit tests for Servlet.Rest and Servlet.Core.Rest -- Copyright (C) 2016, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Lic...
with SDL_Display; package body Render is Width : constant := 320; Height : constant := 240; package Display is new SDL_Display (Width => Width, Height => Height, Pixel_Scale => 4, Buffer_Size => 320 * 240); Screen_Pt : GESTE.Pix_Point := (0, 0); ----------------- ...
-- 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.LCD is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_DUTY_Field is HAL.U...
with Memory.RAM; use Memory.RAM; package body Test.RAM is procedure Run_Tests is mem : RAM_Pointer := Create_RAM(latency => 100, burst => 1, word_size => 4, word_count => 8); ...
with CSS.Core.Sheets; package CSS.Parser.Parser is Error_Count : Natural := 0; function Parse (Content : in String; Document : in CSS.Core.Sheets.CSSStylesheet_Access) return Integer; -- Set or clear the parser debug flag. -- procedure Set_Debug (Flag : in Boolean); end CSS.Parser....
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Text_IO.Text_Streams; package body File_Operations.Heap is package TIO renames Ada.Text_IO; package STR renames Ada.Text_IO.Text_Streams; procedure slurp_file (dossier : String) is begin ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Interrupts.Names; with SAM.Device; with SAM.GPIO; package Screen_Isr is Interrupt_Line : SAM.GPIO.GPIO_Point renames SAM.Device.PC9; protected ISR_Body is procedure Handler;-- with -- Attach_Handler => Ada.Interrupts.Names.PIOC; end ISR_Body; end Screen_Isr;
with OpenGL.Error; package body OpenGL.Check is procedure State_OK (Message : in String := "") is use type Error.Error_t; Error_Value : constant Error.Error_t := Error.Get_Error; begin if Error_Value /= Error.No_Error then if Message'Length /= 0 then Raise_Exception (Message & ": ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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...
-- Abstract: -- -- An unbounded minimum Fibonacci heap of definite non-limited elements. -- -- References: -- -- [1] Introduction to Algorithms, Third Edition. Thomas H. Cormen, -- Charles E. Leiserson, Ronald L. Rivest, Clifford Stein. Chapter 19. -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. --...
----------------------------------------------------------------------- -- Generic Quicksort procedure ----------------------------------------------------------------------- generic type Element_Type is private; type Index_Type is (<>); type Element_Array is array(Index_Type range <>) of Element_Type; wit...
with AOC.AOC_2019.Day01; with AOC.AOC_2019.Day02; with AOC.AOC_2019.Day03; with AOC.AOC_2019.Day05; with AOC.AOC_2019.Day06; with AOC.AOC_2019.Day07; with AOC.AOC_2019.Day08; package body AOC.AOC_2019 is function Get_Day (R : Runner_2019; Day_Number : Natural) return Day.Access_Day is begin return (case Da...
with Leds; use Leds; with Morse; use Morse; with Ada.Real_Time; use Ada.Real_time; package body Tasking is procedure Last_Chance_Handler (Msg : System.Address; Line : Integer) is begin Led_Set(LED0, Red); Led_Set(LED1, Red); end Last_Chance_Handler; procedure Wait_Forever is begin loo...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- Util.Serialize.Mappers.Record_Mapper -- Mapper for record types -- Copyright (C) 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
Pragma Ada_2012; Pragma Assertion_Policy( Check ); Package EVIL.Util with Pure, SPARK_Mode => On is End EVIL.Util;
with Ada.Calendar; with Ada.Containers.Indefinite_Ordered_Maps; with Ada.Streams; private with Ada.Calendar.Formatting; private with Ada.Characters.Latin_1; package Web is use type Ada.Streams.Stream_Element_Offset; -- string map package String_Maps is new Ada.Containers.Indefinite_Ordered_Maps (String, String...
with AdaBase.Results.Sets; with Connect; with CommonText; with Ada.Text_IO; procedure Iterate is package CON renames Connect; package TIO renames Ada.Text_IO; package AR renames AdaBase.Results; package CT renames CommonText; fruit : aliased AR.Textual; color : aliased AR.Textual; calori...
private with GStreamer.GST_Low_Level.Gstreamer_0_10_Gst_Rtsp_Gstrtspurl_H; with Glib; with System; with Ada.Finalization; with GNAT.Sockets; package GStreamer.Rtsp.url is DEFAULT_PORT : constant := 554; type GstRTSPUrl (<>)is tagged private; function Get_Type return GLIB.GType; function Parse (Urlstr : ...
with GLOBE_3D; package Sierpinski is type Cubic_Face_count is new Integer range 1 .. 6; type Cubic_Face_texture is array (Cubic_Face_count) of GLOBE_3D.Image_id; procedure Create_Cube ( object : in out GLOBE_3D.p_Object_3D; scale : GLOBE_3D.Real; centre : ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with physics.Shape, physics.Model, lace.Any; package physics.Object -- -- Provide an interface for physics objects. -- is use Math; type Item is limited interface and lace.Any.limited_item; type View is access all Item'Class; type Views is array (Positive range <>) of View; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- csstools -- CSS Tools Command -- Copyright (C) 2017, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
-- Copyright (c) 2010 - 2018, 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: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do compile } -- { dg-options "-gnatws" } with System; use System; procedure Trampoline1 is A : Integer; function F (I : Integer) return Integer is begin return A + I; end F; CA : System.Address := F'Code_Address; begin if CA = System.Null_Address then raise Program_Error; end if; end...
procedure main is aft : integer := 1; s, str : string(1..3); begin s := "abc"; str((aft)..3) := s(1..3); end;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- keystore-tools -- Tools 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 use this file exce...
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.WWDG is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_T_Field is HAL.UIn...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Project: StratoX -- System: Stratosphere Balloon Flight Controller -- Author: Martin Becker (becker@rcs.ei.tum.de) -- based on AdaCore's Ada_Driver_Library -- XXX! Nothing here is thread-safe! -- @summary Directory (end directory entries) handling for FAT FS package FAT_Filesystem.Directories with SPARK_Mode...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with agar.core.types; with agar.core.tail_queue; with agar.gui.widget.label; package agar.gui.widget.fixed_plotter is use type c.unsigned; type item_t is limited private; type item_access_t is access all item_t; pragma convention (c, item_access_t); type plotter_t; type plotter_access_t is access all pl...
with AVR.MCU; -- ============================================================================= -- Package body AVR.TIMERS.CLOCK -- ============================================================================= package body AVR.TIMERS.CLOCK is procedure Initialize (Timer : TIMERS.Timer_Type) is use t...
with Interfaces.C.Strings, System; use type Interfaces.C.int, Interfaces.C.Strings.chars_ptr, System.Address; package body FLTK.Event is procedure fl_event_add_handler (F : in System.Address); pragma Import (C, fl_event_add_handler, "fl_event_add_handler"); pragma Inl...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ skills vector container implementation -- -- |___/_|\_\_|_|____| by: Dennis Przytarski, Timm Felden ...
-- -- 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; either version 2 of the License, or -- (at your option) any later version. -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation; use Rejuvenation; with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns; with Rejuvenation.Simple_Factory; ...
package Constant2_Pkg2 is function F1 return Boolean; function F2 return Boolean; end Constant2_Pkg2;
----------------------------------------------------------------------- -- awa-services -- Services -- Copyright (C) 2011, 2012, 2013, 2014, 2016, 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 ...
--------------------------------------------------------------------------- -- package Hypot -- Copyright (C) 2018 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
pragma Ada_2012; with Ada.Streams; use Ada.Streams; with Interfaces; use Interfaces; with AUnit.Assertions; use AUnit.Assertions; with AUnit.Test_Caller; with Endianness; use Endianness; package body Tests is package Caller is new AUnit.Test_Caller (Fixture); Test_Suite : aliased AUnit.Test_Suites.Test_Suit...
-- Used for all testcases for SQLite driver with AdaBase.Driver.Base.SQLite; with AdaBase.Statement.Base.SQLite; package Connect is -- All specific drivers renamed to "Database_Driver" subtype Database_Driver is AdaBase.Driver.Base.SQLite.SQLite_Driver; subtype Stmt_Type is AdaBase.Statement.Base.SQLite.S...
-- 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. -- -- Send requests for ayacc information to ayacc-info@ics.uci.edu -- Send bug reports for ayacc to ...
with Ada.Text_IO; use Ada.Text_IO; procedure String_Concatenation is S : String := "Hello"; begin Put_Line (S); declare S1 : String := S & " literal"; begin Put_Line (S1); end; end String_Concatenation;
with AdaM.Environment; procedure AdaM.parse (File : in String; Into : in out AdaM.Environment.item);
with Basic_Subprogram_Calls.Child; with Other_Basic_Subprogram_Calls; with Subprogram_Unit; with Subprogram_Unit_2; package body Basic_Subprogram_Calls is function F7 return Integer; function F8 return Integer is begin return 42; end F8; function F9 return Integer; function F9 retu...
--------------------------------------------------------------------------------- -- 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. ------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; procedure Move_To_Front is subtype Lower_Case is Character range 'a' .. 'z'; subtype Index is Integer range 0 .. 25; type Table is array (Index) of Lower_Case; Alphabet: constant Table := "abcdefghijklmnopqrstuvwxyz"; type Number_String is array(Positive range <>) of Natural; func...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.NVMCTRL is pragma Preelaborate; --------------- -- Registers -- --------------- -- Write Mode type CTRLA_WMODESelect ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; package User is procedure Hello_Part1 is begin Put_Line ("Hello from part1"); end Hello_Part1; end User;
----------------------------------------------------------------------- -- ado-sequences-tests -- Test sequences factories -- Copyright (C) 2011, 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 t...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Common; use Common; with LMCP_Messages; use LMCP_Messages; private with UxAS.Comms.LMCP_Object_Message_Sender_Pipes; -- Package only concerned with message passing. It defines its own state, -- named Mailbox here, which is not mixed ...
package Irc is pragma Pure (Irc); Version : constant String := "0.1.0"; end Irc;
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with League.String_Vectors; with WebIDL.Parsers; with WebIDL.Scanners; with WebIDL.String_Sources; with WebIDL.Token_Handlers; with WebIDL.Tokens; package...
with Types; use Types; package Commands is type Drive_Special is (Straight, CW, CCW); -- Command Constructors function Construct_Date_Time (D : Day; H : Hour; M : Minute) return Comm_Rec; function Construct_Drive...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 - 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) ...
with Ada.Containers.Vectors; generic type Element_Type is private; type Element_Array is array (Positive range <>) of Element_Type; package Readable_Sequences.Generic_Sequences is type Sequence is tagged private; Empty_Sequence : constant Sequence; type Cursor is private; Beginning : constant Curs...
pragma License (Unrestricted); -- Ada 2012 package Ada.Locales is pragma Preelaborate; pragma Remote_Types; -- extended from here -- These are language code defined by ISO 639-1/2. -- Ada RM requires alpha-3 in spite of that -- almost all the operating systems use alpha-2. type ISO_639_Alp...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Pixels; with GL.Low_Level.Enums; package GL.Objects.Renderbuffers is pragma Preelaborate; type Renderbuffer_Target (<>) is tagged limited private; procedure Allocate (Object : Rende...
package body Task_With_Body is task body The_Task_Type is begin null; end The_Task_Type; end Task_With_Body;
with Ada.Text_IO; use Ada.Text_IO; procedure Loop_Continue is begin for I in 1..10 loop Put (Integer'Image(I)); if I = 5 or I = 10 then New_Line; goto Continue; end if; Put (","); <<C...
-- see http://gcc.gnu.org/onlinedocs/gcc/AVR-Built_002din-Functions.html with Interfaces; package System.GCC_Builtins is pragma Pure; subtype U8 is Interfaces.Unsigned_8; subtype I8 is Interfaces.Integer_8; subtype U16 is Interfaces.Unsigned_16; subtype I16 is Interfaces.Integer_16; subtype U32 is...
with Interfaces; with Ada.Numerics.Float_Random; use Interfaces; generic type T is private; with function "+" (L, R : T) return T is <>; with function "-" (L, R : T) return T is <>; with function "*" (L, R : T) return T is <>; with function "/" (L, R : T) return T is <>; with function ">" (L, R : T) ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with System.Parameters; with System.Storage_Elements; with System.Allocation.Arenas; package System.Secondary_Stack is package SP renames System.Parameters; package SSE renames System.Storage_Elements; package SAA renames System....
-- Copyright (C)2021,2022 Steve 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, merge, publis...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Compilation_Unit_Vectors; with Program.Contexts; with Program.Source_Buffers; with Program.Symbols; with Program.Visibili...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Text_IO; use Ada.Text_IO; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation.Finder; with Rejuvenat...
----------------------------------------------------------------------- -- gen-commands-distrib -- Distrib command for dynamo -- Copyright (C) 2012, 2013, 2014, 2017, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licen...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Glib; use Glib; with Gtk.Adjustment; use Gtk.Adjustment; with Gtk.Button; use Gtk.Button; with Gtk.Combo_Box; use Gtk.Combo_Box; with Gtk.Combo_Box_Text; use Gtk.Combo_Box_Text; with Gtk.Label; use Gtk.Label; with Gtk.Main; use Gtk.Main; with Gtk.Scale; use Gtk.Scale; with Gtk.Spin_Button; use Gtk.Spin_Button; wi...
with openGL.Program.lit.textured_skinned; package openGL.Geometry.lit_textured_skinned -- -- Supports per-vertex site, texture, lighting and skinning. -- is type Item is new openGL.Geometry.item with private; function new_Geometry return access Geometry.lit_textured_skinned.item'Class; procedure defi...
with Measure_Units; use Measure_Units; with Ada.Text_IO; use Ada.Text_IO; procedure Aviotest0 is Avg_Speed : Kn := 350.0; Travel_Time : Duration := 2.0 * 3600.0; -- two hours CR : Climb_Rate := 1500.0; Climb_Time : Duration := 60.0 * 20; -- 2 minutes Alt0 : Ft := 50_000.0; -- from her...
-- SPDX-License-Identifier: MIT -- -- Copyright (c) 2016 - 2018 Gautier de Montmollin (maintainer of the Ada version) -- SWITZERLAND -- -- 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 Softwar...
-- 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...
----------------------------------------------------------------------- -- mat-targets-probes - Definition and Analysis of process start events -- Copyright (C) 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
-- { dg-do compile } -- { dg-options "-O -fdump-tree-optimized" } package body Loop_Optimization21 is function Min (X : in Item_Vector) return Item is Tmp_Min : Item; begin Tmp_Min := X (X'First); for I in X'First + 1 .. X'Last loop if X (I) <= Tmp_Min then Tmp_Min := X (I); end if...