content stringlengths 23 1.05M |
|---|
PACKAGE BODY math IS
-- body of Math function package, which interfaces to the Ultrix
-- math library. Normally we could interface our Ada math functions
-- directly to the corresponding C functions, but this is not possible
-- because the C functions deal only with double-precision float
-- quantities and A... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Calendar.Formatting;
with Ada.Characters.Latin_1;
with Ada.Directories;
with Ada.Hierarchical_File_Names;
with Ada.Streams.Stream_IO;
with Tabula.Calendar;
with System.Debug;
package body Tabula.Debug is
Line_Break : constant Character := Ada.Characters.Latin... |
pragma License (Unrestricted);
-- with Ada.Task_Identification;
package Ada.Asynchronous_Task_Control is
pragma Preelaborate;
-- procedure Hold (T : Task_Identification.Task_Id);
-- procedure Continue (T : Task_Identification.Task_Id);
-- function Is_Held (T : Task_Identification.Task_Id)
-- return Boolean;... |
-- package Mes_Tasches_P is
package Input_1 is
task Ma_Tasche is
entry Accepter
(Continuer : Boolean);
end Ma_Tasche;
task Mon_Autre_Tasche;
task type Tasche_Type_1_T;
Une_Tasche : Tasche_Type_1_T;
task type Tasche_Type_2_T is
entry Start;
entry Lire
(Donnee : ... |
with Solve; use Solve;
with Ada.Text_IO; use Ada.Text_IO;
procedure Solve_Part_1 is
Input_File : File_Type;
Previous_Value : Integer;
Value : Integer;
Answer : Integer := 0;
begin
Open (Input_File, In_File, "input.txt");
Previous_Value := Get_Line_Integer (Input_File);
while not... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Containers;
procedure Euler is
package Integer_Vectors is new Vectors(Natural, Integer);
Fibs : Integer_Vectors.Vector;
Last : Integer_Vectors.Cursor;
Second_To_Last : Integer_... |
package openGL.Model.hexagon_Column
--
-- Models a column with six sides.
--
is
type Item is abstract new Model.item with
record
Radius : Real := 1.0;
Height : Real := 1.0;
end record;
private
Normal : constant Vector_3 := (0.0, 0.0, 1.0);
end openGL.Model.hexagon_Column;
|
with Ada.IO_Exceptions;
private with Ada.Finalization;
private with C.libxml.encoding;
private with C.libxml.xmlerror;
private with C.libxml.xmlreader;
private with C.libxml.xmlwriter;
package XML is
pragma Preelaborate;
pragma Linker_Options ("-lxml2");
function Version return String;
procedure Check_Version;
... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 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... |
generic
type elem is private; -- generico
package dpila is
type pila is limited private; -- evitas asignacion y comparacion de igualdad/desigualdad
mal_uso: exception;
espacio_desbordado: exception; --overflow
procedure pvacia(p: out pila);
procedure empila(p: in out pila; x: in elem);
procedure ... |
with RASCAL.Utility; use RASCAL.Utility;
with RASCAL.UserMessages;
with Main; use Main;
with Interfaces.C; use Interfaces.C;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Exceptions;
with Re... |
with Ada.Text_IO; use Ada.Text_IO;
procedure sample is
-- ================
-- VARIABLES
-- ================
Const : constant Integer := 3;
Var : Positive := 5;
-- ================
-- TYPES
-- ================
type My_Range is range 1 .. 5; -- inclusive
Mod_Size : constant Posi... |
with Ada.Text_IO;
package body MathUtils is
function rand01 return Float is
begin
return Ada.Numerics.Float_Random.Random(gen);
end rand01;
function rand(min, max: Float) return Float is
begin
return (max - min)*rand01 + min;
end rand;
function mse(a, b: in Vector) return Float is
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with ABR; use ABR;
-- Afficher la fréquence absolue des caractères d'une chaîne de caractère.
procedure Frequences_Caracteres is
-- Calculer la fréquence absolue (Frequences) de chaque caractère de Texte... |
-- This spec has been automatically generated from STM32F0xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.NVIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IPR0_PRI_00_Field is STM32_SVD.... |
with Ada.Text_IO;
with Ada.Text_IO.Text_Streams;
procedure Goodbye_World is
stdout: Ada.Text_IO.File_Type := Ada.Text_IO.Standard_Output;
begin
String'Write(Ada.Text_IO.Text_Streams.Stream(stdout), "Goodbye World");
end Goodbye_World;
|
with Littlefs;
package RAM_BD is
function Create (Size : Littlefs.LFS_Size)
return access constant Littlefs.LFS_Config;
end RAM_BD;
|
with Ada.Text_IO;
procedure part1 is
type Index is range 0 .. 200;
type Cell is range 0 .. 9;
type Row is array (Index) of Cell;
type Grid is array (Index) of Row;
type RowResult is record
parsedRow: Row;
width: Integer;
end record;
type GridResult is record
parsedGrid: ... |
-----------------------------------------------------------------------
-- ado-schemas-tests -- Test loading of database schema
-- Copyright (C) 2009 - 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not... |
-- -*- Mode: Ada -*-
-- Filename : multiboot.ads
-- Description : Provides access to the multiboot information from GRUB
-- Legacy and GRUB 2.
-- Author : Luke A. Guest
-- Created On : Fri Jun 15 14:43:04 2012
-- Licence : See LICENCE... |
with Ada.Containers.Vectors;
with Ada.IO_Exceptions;
package body Memory is
package IO is new Ada.Text_IO.Integer_IO(Value);
function Read_Comma_Separated(
From: File_Type := Standard_Input) return Block is
package Vec is new Ada.Containers.Vectors(
Index_type => Address, Element_Type =>... |
-----------------------------------------------------------------------
-- css-tools-messages -- CSS tools messages
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
use Protypo.Api.Engine_Values.Engine_Value_Vectors;
with Protypo.Api.Engine_Values.Parameter_Lists;
use Protypo.Api.Engine_Values.Parameter_Lists;
package Protypo.Api.Engine_Values.Handlers is
type Array_Interface is interface;
type Array_Interface_Access is... |
-- MIT License
--
-- Copyright (c) 2021 Glen Cornell <glen.m.cornell@gmail.com>
--
-- 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 rig... |
--
-- 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 Configs;
package Config_Tables is
... |
-----------------------------------------------------------------------
-- package body Binary_Rank, routines for Marsaglia's Rank Test.
-- Copyright (C) 1995-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... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- reader1.c
--
-- section: xmlReader
-- synopsis: Parse an XML file with an xmlReader
-- purpose: Demonstrate the use of xmlReaderForFile() to parse an XML file
-- and dump the informations about the nodes found in the process.
-- (Note that the XMLReader functions require libxml2 version later
-- ... |
-- Copyright (c) 2018 RREE <rolf.ebert.gcc@gmx.de>
--
-- 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 appl... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Numerics.Discrete_Random;
procedure reversi is
package Discrete_Random is new Ada.Numerics.Discrete_Random(Result_Subtype => Integer);
use Discrete_Random;
gen : Generator;
etat : State;
jeu : array ... |
-----------------------------------------------------------------------
-- AWA.Counters.Models -- AWA.Counters.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-... |
pragma Ada_2012;
package body Line_Arrays.Classified is
--------------
-- Classify --
--------------
function Classify (Classifier : Classifier_Type;
Lines : Line_Array)
return Classified_Line_Vectors.Vector
is
Result : Classified_Line_Vectors.Vec... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with USB;
with USB.LibUSB1;
with USB.Protocol;
with Interfaces.C;
with Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use USB.LibUSB1;
procedure List_Devices_C is
Ctx: aliased Context_Access;
R: Status;
Ri: Integer;
Cnt: ssize_t;
Devs: aliased Device_Access_Lists.Pointer... |
F1, F2 : File_Type;
begin
Open (F1, In_File, "city.ppm");
Create (F2, Out_File, "city_median.ppm");
Put_PPM (F2, Median (Get_PPM (F1), 1)); -- Window 3x3
Close (F1);
Close (F2);
|
with Ada.Strings.Unbounded;
with Ada.Containers.Hashed_Maps;
use Ada.Containers;
package VM is
type Instruction_Index is new Natural;
type VM is private;
VM_Exception : exception;
function load_file(file : in String) return VM;
procedure reset(v : in out VM);
function acc(v : in VM) return Integer;
fu... |
with Trendy_Test;
package Trendy_Test.Reports is
-- Prints the results of a given test and sets a failure exit code.
procedure Print_Basic_Report (Results : Trendy_Test.Test_Report_Vectors.Vector);
end Trendy_Test.Reports;
|
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure fixce is
type D is delta 128.0 / (2 ** 15) range 0.0 .. 256.0;
type R is range 0 .. 200;
dd : D;
RA : constant array (1 .. 3) of R := (127, 128, 200);
begin
dd := D (RA (2));
for i in RA'range loop
dd := D (RA (i));
end loop;
end fixce... |
-----------------------------------------------------------------------
-- html -- ASF HTML Components
-- Copyright (C) 2009, 2010, 2011, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Strings_Edit.Base64 Luebeck --
-- Interface Autumn, 2014 --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2017, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
with OpenGL.Thin;
with OpenGL.Vertex;
package OpenGL.Vertex_Array is
type Attribute_Index_t is new Thin.Unsigned_Integer_t;
type Attribute_Count_t is new Thin.Size_t range 0 .. Thin.Size_t'Last;
-- proc_map : glEnableVertexAttribArray
procedure Enable_Attribute_Array
(Index : in Attribute_Index_t);
pra... |
with AUnit.Assertions; use AUnit.Assertions;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package body Test.Test_Suite is
use Quaternions;
function Image (Q : Quaternion) return String
is ("("
& Q.W'Image
& ","
& Q.X'Image
& ","
& Q.Y'Image
& ","
... |
with GNAT.OS_Lib;
package Support is
type Real is digits 18;
procedure halt (return_code : Integer := 0) renames GNAT.OS_Lib.OS_Exit;
function max (a : in Real; b : in Real) return Real;
function min (a : in Real; b : in Real) return Real;
function max (a : in Integer; b : in Integer) return Integer;
fun... |
with Messages; use Messages;
with Ada.Streams.Stream_Io; use Ada.Streams.Stream_Io;
with Ada.Calendar; use Ada.Calendar;
with Ada.Text_Io;
procedure Streams_Example is
S1 : Sensor_Message;
M1 : Message;
C1 : Control_Message;
Now : Time := Clock;
The_File : Ada.Streams.Stream_Io.File_Type;
The_Stream ... |
--
-- Copyright (C) 2017 Nico Huber <nico.h@gmx.de>
--
-- 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.
--
-- This pr... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Check_Positive is
N : Integer;
F : Float;
C : Character;
B : Boolean;
begin
Put ("Enter an integer value: "); -- Put a String
Get (N); -- Reads in an integer value
Put_Line ("Value of Integer: " & N... |
pragma License (Unrestricted);
-- implementation unit for System.Initialization
private with Ada.Tags;
package System.Storage_Pools.Overlaps is
pragma Preelaborate;
type Overlay_Pool is limited new Root_Storage_Pool with null record
with Disable_Controlled => True;
-- Actually, an allocation addres... |
with Ada.Command_Line;
with Ada.Directories;
with Ada.Environment_Variables;
with Ada.Streams.Stream_IO;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with Serialization.XML;
with XML.Streams;
procedure test_serialize is
Verbose : Boolean := False;
procedure Put (Item : in String) is
begin
if Verbose then
Ada.T... |
package Benchmark.Heap is
type Heap_Type is new Benchmark_Type with private;
function Create_Heap return Benchmark_Pointer;
overriding
procedure Set_Argument(benchmark : in out Heap_Type;
arg : in String);
overriding
procedure Run(benchmark : in Heap_Type);
privat... |
pragma License (Unrestricted);
-- Ada 2012, specialized for Darwin (or FreeBSD)
package System.Multiprocessors is
pragma Preelaborate;
type CPU_Range is range 0 .. Integer'Last;
Not_A_Specific_CPU : constant CPU_Range := 0;
subtype CPU is CPU_Range range 1 .. CPU_Range'Last;
function Number_Of_CPUs re... |
with Sf.System.Time;
package body Sf.System.Sleep is
procedure sfDelay (Seconds : Duration) is
begin
sfSleep (Duration => Time.sfSeconds (Float (Seconds)));
end sfDelay;
end Sf.System.Sleep;
|
-- ----------------------------------------------------------------- --
-- --
-- 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 ... |
with System.Machine_Code;
with AVR.USART;
with TEST;
pragma Unreferenced (TEST);
procedure Main is
F_CPU : constant := 16_000_000;
USART_BAUDRATE : constant := 9600;
begin
AVR.USART.Reg_USART1.UCSRB.RXEN := True;
AVR.USART.Reg_USART1.UCSRB.TXEN := True;
AVR.USART.Reg_USART1.UCSRB.RXCIE := True;
AVR.U... |
function System.Environment_Block return C.char_ptr_ptr is
environ : C.char_ptr_ptr
with Import, Convention => C;
begin
return environ;
end System.Environment_Block;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Arbitrary; use Arbitrary;
with Arbitrary.Const; use Arbitrary.Const;
procedure Golden_Ratio is
precision : integer;
begin
if Argument_Count /= 1 then
Put_Line("usage: " & Command_Name & " <digits>");
return;
end if;
preci... |
pragma Ada_2012;
package body GStreamer.Rtsp.Transport is
--------------
-- Get_Type --
--------------
function Get_Type return GLIB.GType is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Get_Type unimplemented");
return raise Program_E... |
--------------------------------------------------------------------------
-- package body Givens_QR, QR decomposition using Givens rotations
-- Copyright (C) 2008-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, pr... |
package Slots is
procedure Xaa;
procedure Xab;
procedure Xac;
procedure S1a(Value : in Integer);
procedure S1b(Value : in Integer);
procedure S1c(Value : in Integer);
end Slots;
|
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with AdaBase.Results.Sets;
procedure Spatial2 is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package CT renames CommonText;
begin
CON.connect_database;
declare
sql : ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- C35A05A.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... |
-- PR ada/33788
-- Origin: Oliver Kellogg <oliver.kellogg@eads.com>
-- { dg-do compile }
package body Bit_Packed_Array1 is
procedure Generate_Callforward is
Compiler_Crash : String :=
Laser_Illuminator_Code_Group_T'Image
(MADR.ISF.Laser_Illuminator_Code (0));
begin
null;
e... |
-- { dg-do run }
with addr2_p; use addr2_p;
procedure addr2 is
begin
Process (B1);
Process (Blk => B1);
Process (B2);
Process (Blk => B2);
end;
|
separate (Numerics.Sparse_Matrices)
procedure Compress (Mat : in out Sparse_Matrix) is
X : Real_Vector (1 .. Integer (Mat.X.Length)) := (others => 0.0);
I : Int_Array (1 .. Integer (Mat.X.Length)) := (others => 0);
Col, Count : Int_Array (1 .. Mat.N_Col + 1) := (others => 0);
Index... |
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.Flash is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ACR_LATENCY_Field is HAL.UInt4;
... |
with Ada.Finalization;
with Ada.IO_Exceptions;
with Ada.Streams;
private with C.zconf;
private with C.zlib;
package zlib is
pragma Preelaborate;
pragma Linker_Options ("-lz");
function Version return String;
type Stream_Mode is (Deflating, Inflating);
type Stream is limited private;
-- subtype Open_Stream ... |
generic
type Element_Type is private;
type Index_Type is (<>);
type Collection is array(Index_Type range <>) of Element_Type;
with function "<" (Left, right : element_type) return boolean is <>;
procedure Generic_Heapsort(Item : in out Collection);
|
with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System;
package body Ada.Containers.Limited_Ordered_Maps is
use type Binary_Trees.Node_Access;
-- diff
function Upcast is
new Unchecked_Conversion (Cursor, Binary_Trees.Node_Access);
function Downcast is
... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with GBA.Interrupts;
use GBA.Interrupts;
with GBA.Memory;
use GBA.Memory;
with GBA.BIOS.Generic_Interface;
package GBA.BIOS.Raw.Thumb is
IMPORT_PREFIX : constant String := "bios_thumb__";
procedure Soft_Reset
with Import, Exte... |
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Ordered_Maps;
with Ada.Streams.Unbounded_Storage_IO;
with Ada.Strings.Maps.Constants;
procedure mapstreaming is
use type Ada.Containers.Count_Type;
use type Ada.Streams.Stream_Element_Offset;
use type Ada.Strings.Maps.Character_Mapping;
Source : constant Ada.Stri... |
-------------------------------------------------------------------------------
-- package body Text_Utilities; for Random and Basic_Rand.
-- Copyright (C) 1995-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provi... |
------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- --
-- ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
private with GL.API.Mac_OS_X;
function GL.API.Subprogram_Reference (Function_Name : String)
return System.Address is
-- OSX-specific implementation uses CoreFoundation functions
use GL.API.Mac... |
--- src/gprlib.adb.orig 2021-05-19 05:22:13 UTC
+++ src/gprlib.adb
@@ -745,9 +745,6 @@ procedure Gprlib is
for Dir of Imported_Library_Directories loop
Library_Switches_Table.Append ("-L" & Dir);
- if Path_Option /= null then
- Add_Rpath (Dir);
- end if;
end loop;
... |
package body Ant_Handler with SPARK_Mode => On
is
function Do_Something (Text : String) return String
is begin
return Text;
end Do_Something;
end Ant_Handler;
|
-- { dg-do compile }
-- { dg-options "-O" }
package body Opt11 is
procedure Proc is
R : Rec;
begin
R := (others => <>);
end;
end Opt11;
|
with Ada.Strings.Maps;
with Ada.Containers.Indefinite_Vectors;
with Ada.Containers.Indefinite_Ordered_Maps;
generic
type Token_Type is (<>);
type State_Type is (<>);
Start_State : State_Type;
EOF_Token : Token_Type;
package Finite_State_Scanners is
type Automata_Table is private;
procedure Add_B... |
with
openGL.Geometry.textured,
openGL.Primitive.indexed;
package body openGL.Model.box.textured
is
type Geometry_view is access all Geometry.textured.item'Class;
---------
--- Forge
--
function new_Box (Size : in Vector_3;
Faces : in textured.Faces;
... |
pragma Ada_2012;
pragma Assertion_Policy (disable);
package body Fakedsp.Protected_Buffers is
------------------
-- State_Buffer --
------------------
protected body State_Buffer is
---------
-- Set --
---------
procedure Set (S : State_Type)
is
begin
State ... |
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A032 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
Temp_Str_1, Temp_Str_2 : String (1 .. 10);
Temp_Str_3 : String (1 .. 20);
Duplicate_Found : Boolean;
Products_List : arra... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.OPAMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype OPAMP1_CSR_VP_SEL_Field is HAL.UIn... |
package body Multiply_Proof with
SPARK_Mode
is
----------------------
-- Array_Diff_Lemma --
----------------------
procedure Array_Diff_Lemma
(Previous, Conversion : Big_Integer;
X, Y : Integer_255;
J, K : Index_Type)
is
begin
Partial_Product... |
pragma License (Unrestricted);
-- separated and auto-loaded by compiler
private generic
type Num is delta <> digits <>;
package Ada.Wide_Wide_Text_IO.Decimal_IO is
Default_Fore : Field := Num'Fore;
Default_Aft : Field := Num'Aft;
Default_Exp : Field := 0;
-- procedure Get (
-- File : File_Type; -- In... |
package body Player is
function Build (Race : String;
Good_Ability : Good_Type;
Bad_Ability : Bad_Type;
Victory_Condition : Victory;
Homeworld : Planet.Object)
return Object
is
play... |
with Ada;
procedure protected_lf is
protected prot is
pragma Lock_Free;
procedure w (arg : Integer);
function r return Integer;
private
value : Integer := 0;
end prot;
protected body prot is
procedure w (arg: Integer) is
begin
value := arg;
end w;
function r return Integer is
begin
return va... |
with AUnit.Test_Suites;
package Test_Suite is
function Create_Test_Suite return AUnit.Test_Suites.Access_Test_Suite;
end Test_Suite; |
-- Copyright 2015,2017 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 o... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Sam Hoc... |
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_Io; use Ada.Text_Io;
procedure Traversal_Example is
package Int_List is new Ada.Containers.Doubly_Linked_Lists(Integer);
use Int_List;
procedure Print(Position : Cursor) is
begin
Put_Line(Integer'Image(Element(Position)));
end Print;
The_Li... |
-- { dg-do compile }
-- { dg-options "-gnatwr" }
procedure Slice5 is
type Item_Type is record
I : Integer;
end record;
type Index_Type is (A, B);
type table is array (integer range <>) of integer;
subtype Small is Integer range 1 .. 10;
T1 : constant Table (Small) := (Small => 0);
... |
-- This package defines the instructions for the VM
package Instruction with SPARK_Mode is
-- instruction opcodes, where NOP represents e.g. blank lines
type OpCode is (NOP,ADD,SUB,MUL,DIV,RET,LDR,STR,MOV,JMP,JZ);
-- number of registers in the VM
NUM_REGS : constant Integer := 32;
-- the type... |
with Leds; use Leds;
procedure Main is
begin
Led_Init;
loop
Blink(LED0, Blue);
Blink(LED1, Green);
Blink(LED0, Cyan);
Blink(LED1, Red);
Blink(LED0, Magenta);
Blink(LED1, Yellow);
Blink(LED0, White);
Blink(LED1, Blue);
Blink(LED0, Green);
Blink(LED1, ... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+flacada@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 Sam ... |
pragma Check_Policy (Validate => Disable);
-- with Ada.Strings.Naked_Maps.Debug;
with Ada.UCD.General_Category;
with System.Once;
with System.Reference_Counting;
package body Ada.Strings.Naked_Maps.General_Category is
use type UCD.Difference_Base;
procedure Fill (
To : out Character_Ranges;
Table : ... |
with Ada.Text_IO;
with PrimeInstances;
package body Problem_58 is
-- 1 3 5 7 9 13 17 21 25 31 37 43 49 ...
-- 2 2 2 2 4 4 4 4 6 6 6 6 8...
package IO renames Ada.Text_IO;
package Positive_Primes renames PrimeInstances.Positive_Primes;
procedure Solve is
increment : Positive := 2;
l... |
-- { dg-do run }
-- { dg-options "-gnatp" }
with Renaming8_Pkg1; use Renaming8_Pkg1;
procedure Renaming8 is
begin
if not B then
raise Program_Error;
end if;
end;
|
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2018, Componolit GmbH
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.