CombinedText
stringlengths
4
3.42M
package body problem_18 is function Solution_1 return Integer is Triangle : array (Natural range 1 .. 15, Natural range 1 .. 15) of Natural := ( (75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (95, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (17, 47, 82, 0, 0...
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...
-- 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 Stories.Test_Data.Tests.FinishedStories_Container.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standar...
with Interfaces.C.Strings, System; use type Interfaces.C.int, System.Address; package body FLTK.Widgets.Valuators.Adjusters is procedure adjuster_set_draw_hook (W, D : in System.Address); pragma Import (C, adjuster_set_draw_hook, "adjuster_set_draw_hook"); pragma Inline (...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; procedure Goodbye_World is begin Ada.Text_IO.Put("Goodbye, World!"); end Goodbye_World;
-- { dg-do run } -- { dg-options "-O -gnatp" } -- This test requires architecture- and OS-specific support code for unwinding -- through signal frames (typically located in *-unwind.h) to pass. Feel free -- to disable it if this code hasn't been implemented yet. procedure Null_Pointer_Deref3 is procedure Leaf is...
-- -- 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...
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. with Tk.TtkWidget.Ttk_Widget_Options_Test_D...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Error in samples has been corrcted with Kernel.Serial_Output; use Kernel.Serial_Output; with ada.strings.unbounded; use ada.strings.unbounded; with ada.strings.unbounded.text_io; use ada.strings.unbounded.text_io; with System; use System; with tools; use tools; package body devices1 is EYES_REACTION...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
--////////////////////////////////////////////////////////// -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT SYSTEM UTILITIES -- -- -- -- ...
with impact.d2.Collision, impact.d2.contact.Manager, impact.d2.world_Callbacks, impact.d2.Solid, impact.d2.Joint, impact.d2.Math; package impact.d2.World -- -- The world class manages all physics entities, dynamic simulation, -- and asynchronous queries. The world also contains efficie...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- This spec has been automatically generated from STM32L5x2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DBGMCU is pragma Preelaborate; --------------- -- Registers -- --------------- subtype IDCODE_DEV_ID_Field...
package GESTE_Fonts.FreeSans8pt7b is Font : constant Bitmap_Font_Ref; private FreeSans8pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#00#, 16#04#, 16#00#, 16#08#, 16#00#, 16#10#, 16#00#, 16#20#, 16#00#, 16#40#, 16#00#, 16#80#, 16#01#, 16#...
----------------------------------------------------------------------- -- awa-storages-modules -- Storage management module -- Copyright (C) 2012, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
-- { dg-do run } -- { dg-options "-O3 -gnatn" } with Opt50_Pkg; use Opt50_Pkg; procedure Opt50 is B : Boolean; E : Enum; begin Get ("four", E, B); if B = True then raise Program_Error; end if; Get ("three", E, B); if B = False then raise Program_Error; end if; declare A : Enum_Boolean_Ar...
------------------------------------------------------------------------------ -- -- -- File: -- -- formatted_output-integer_output.ads -- -- ...
-- -- 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...
with Ada.Containers; with Ada.Containers.Hashed_Maps; with Ada.Containers.Hashed_Sets; with Ada.Strings.Unbounded; with Ada.Strings.Unbounded.Hash; with Ada.Streams.Stream_IO; package GraphML_Writers is package S_U renames Ada.Strings.Unbounded; type GraphML_Type is (GraphML_Boolean, GraphML_Int, GraphML_Strin...
with Ada.Text_IO; use Ada.Text_IO; procedure Kocsma is type Ital is (Sor, Bor, Palinka); -- task Kocsmaros task Kocsmaros is entry Tolt( Mit: in Ital ); end Kocsmaros; task body Kocsmaros is begin for I in 1..20 loop accept Tolt ( Mit: in Ital ) do ...
with Ada.Strings.Unbounded; with Ada.Containers.Vectors; package Menu is -- More convenient way to access unbounded strings package SU renames Ada.Strings.Unbounded; -- Access to procedure to call for items type T_Func_Ptr is access procedure; -- An item in the menu type T_Item is record...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
<?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/> <cdfg class_id="1" tracking_level="1" version="0...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DBGMCU is pragma Preelaborate; --------------- -- Registers -- --------------- subtype IDCODE_DEV_ID_Field...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
package Notcurses.Strings is function Width (Str : Wide_Wide_String) return Natural; end Notcurses.Strings;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package Problem_11 is procedure Solve; end Problem_11;
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with asm_generic_int_ll64_h; package linux_spi_spidev_h is -- unsupported macro: SPI_CPHA 0x01 -- unsupported macro: SPI_CPOL 0x02 -- unsupported macro: SPI_MODE_0 (0|0) -- unsupported macro: SPI_MODE_1 (0|SPI_CPHA) -...
-- Copyright 2017-2019 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. -- -- ...
with Blueprint; use Blueprint; with Server; with Templates_Parser; with Ada.Text_IO; with Generator; with Ada.Containers; with Ada.Calendar; with Ada.Wide_Wide_Text_IO; with Ada.Wide_Wide_Text_IO.Text_Streams; with Ada.Command_Line; with Ada.Exceptions; with CLIC.Subcommand; with Commands; with CLIC.TTY; with Ada.Chara...
-- C95066A.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...
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
----------------------------------------------------------------------- -- userdb -- Example to find/create an object from the database -- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
----------------------------------------------------------------------- -- asf-contexts.faces -- Faces Contexts -- Copyright (C) 2009, 2010, 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 ...
with interfaces.c.strings; package agar.gui.unit is package cs renames interfaces.c.strings; type unit_t is record key : cs.chars_ptr; abbr : cs.chars_ptr; name : cs.chars_ptr; divider : c.double; func : access function (x : c.double; y : c.int) return c.double; end record; ty...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; use Interfaces.C.Extensions; with mersenne_types_h; with Interfaces.C.Strings; package mersenne_h is -- BSD 3-Clause License -- * -- * Copyright © 2008-2021, Jice and the libtcod contributors. -- * ...
with Ada.Text_IO; use Ada.Text_IO; with Command_Line; with Command_Line.Filesystem; with Test_Directories; procedure TC_CMD_Filesystem is Cmd_1 : aliased constant String := "help"; Cmd_2 : aliased constant String := "help ls"; Cmd_3 : aliased constant String := "ls /test_dir/test_material"; Cmd_4 : alias...
-- Euler1 in Ada with Ada.Integer_Text_IO; procedure Euler1_2 is function mySum(n : in Integer; size : in Integer) return Integer is begin return n * (((size/n) **2 + (size/n)) / 2); end mySum; function Euler(size : in Integer) return Integer is begin return mySum(3,size) + mySum(5,size)...
package Mobs.Test_Data.Tests.MobInventory_Container is end Mobs.Test_Data.Tests.MobInventory_Container;
with impact.d3.Shape.convex, impact.d3.collision.simplex_Solver; package impact.d3.collision.convex_penetration_depth_Solver -- -- ConvexPenetrationDepthSolver provides an interface for penetration depth calculation. -- is use Math; type Item is abstract tagged null record; procedure destruct (Sel...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package 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 Foun...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Directories; with Ada.Streams.Stream_IO; with Web.Producers; with Web.RSS; with Vampire.Configurations; with Vampire.Forms.Full; with Vampire.R3.Log_Index_Page; with Vampire.R3.Village_Page; with Vampire.Villages.Load; package body Vampire.Log is use Tabula.Vil...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- original: http://homepage2.nifty.com/m_kamada/math/gmp_ja.htm with Ada.Command_Line; with Ada.Real_Time; with Ada.Text_IO; with C.gmp; procedure pi is use type Ada.Real_Time.Time; use C; use C.gmp; -- Function: void mpf_pi (mpf_t rop) -- Set the value of pi. -- -- Reference: -- http://www.kuri...
pragma Warnings (Off); pragma Ada_95; pragma Source_File_Name (ada_main, Spec_File_Name => "b__swarm.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__swarm.adb"); pragma Suppress (Overflow_Check); with System.Restrictions; with Ada.Exceptions; package body ada_main is E011 : Short_Integer; pragma I...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.JSON.Streams; with League.JSON.Values; package body LSP.Generic_Optional is ---------- -- Read -- ---------- ...
-- C96001A.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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Vectors; use Ada.Containers; procedure AccomRoomSize is type LengthCM is new Integer; type AreaCM2 is new Integer; type RoomType is (Lau...
with impact.d2.Fixture, ada.unchecked_Deallocation; package body impact.d2.Island is -- Position Correction Notes -- ========================= -- I tried the several algorithms for position correction of the 2D revolute joint. -- I looked at these systems: -- - simple pendulum (1m diameter s...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
----------------------------------------------------------------------- -- servlet-parts-web -- Servlet Parts on top of AWS attachments -- 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"); --...
----------------------------------------------------------------------- -- ADO Databases -- Database Objects -- 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 c...
-- Copyright 2009-2019 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. -- -- ...
with AdaBase; with Connect; with CommonText; with Ada.Text_IO; with AdaBase.Results.Sets; procedure Autocommit is package CON renames Connect; package TIO renames Ada.Text_IO; package ARS renames AdaBase.Results.Sets; package CT renames CommonText; insX : constant String := "INSERT INTO fruits (id, f...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is procedure P(X: in out Integer) is begin new_line; end; type r is record a: integer; end record; function f return access r is begin return new r; end; begin P(f.a); end;
procedure numtriangular (n1: in Integer; resultado: out Integer) is indice:integer:=0; begin resultado:=0; indice:=n1; while indice/=0 loop resultado:=resultado+indice; indice:=indice-1; end loop; end numtriangular;
-- { dg-do compile } -- { dg-options "-g" } with Debug2_Pkg; use Debug2_Pkg; package body Debug2 is procedure Proc is function F return String_List_Ptr is begin return new String_List'(Singleton); end; A : String_List_Ptr := F; begin null; end; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
<?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/> <cdfg class_id="1" tracking_level="1" version="0...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Containers; with Ada.Strings.Hash; with Ada.Strings.Wide_Hash; with Ada.Strings.Wide_Wide_Hash; procedure hash is use type Ada.Containers.Hash_Type; type HA is array (Positive range <>) of Ada.Containers.Hash_Type; D : HA := ( Ada.Strings.Hash ("abcdefg"), Ada.Strings.Hash ("ab"), Ada.Strings.Hash ("b...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- Copyright 2015-2016 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. -- -- ...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from ATSAM4SD32C.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- Atmel ATSAM4SD32C device: Cortex-M4 Microcontroller with 2MB dual-bank -- Flash, 160KB SRAM, USB, 100 Pins (refer to -- http://www.atmel.com/device...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_alloc_named_color_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsign...
generic N : in Natural; package DataOperations is subtype Index is Positive range 1 .. N; type Vector is array (Index) of Integer; type Matrix is array (Index) of Vector; procedure Input (a : out Integer); procedure Generate (a : out Integer); procedure FillWithOne (a : out Integer); proce...
-- 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 Ada.Text_IO, Logic; procedure Test_Tri_Logic is use Logic; type F2 is access function(Left, Right: Ternary) return Ternary; type F1 is access function(Trit: Ternary) return Ternary; procedure Truth_Table(F: F1; Name: String) is begin Ada.Text_IO.Put_Line("X | " & Name & "(X)"); for T...
-- 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 ------------------------------------------------------------- package body Program.Nodes.Formal_Procedure_Declarations is function Create (With_Token : not null Program.Lexical_El...
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; package FailStrategy is type Fail is new AbstractStrategyCombinator and Object with record message: access String := null; end record;...
-- { dg-do run } with Ada.Tags; procedure tag1 is type T is tagged null record; X : Ada.Tags.Tag; begin begin X := Ada.Tags.Descendant_Tag ("Internal tag at 16#0#", T'Tag); raise Program_Error; exception when Ada.Tags.Tag_Error => null; end; begin X := Ada.Tags.Descendant_Tag ("...
----------------------------------------------------------------------- -- awa-commands -- AWA commands for server or admin tool -- Copyright (C) 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
with XML, ada.Strings.unbounded, ada.Text_IO; procedure launch_Tree -- -- Loads an xml file, parses it into a tree and displays the tree. -- is the_Tree : xml.Element := xml.to_XML ("./box.dae"); Depth : Natural := 0; procedure show_Element (the_Element : in xml.Element) is u...
package RTCH with Pure is end RTCH;
-- 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.Singles is pragma Preelaborate; Uniform1 : T33; Uniform1v : T34; Uniform2 : T35; Uniform2v : T36; Uniform3 : T37; Uniform3v ...