content stringlengths 23 1.05M |
|---|
-- { dg-do compile }
-- { dg-options "-fdump-tree-gimple" }
with VFA1_Pkg; use VFA1_Pkg;
procedure VFA1_3 is
Temp : Short_Integer;
function F (I : Short_Integer) return Short_Integer is
begin
return I;
end;
function F2 return Short_Integer is
begin
return Short_Integer(Buffer1.A);
end;
pro... |
<AnimDB FragDef="chrysalis/objects/desk/workdesk/fragment_ids.xml" TagDef="chrysalis/objects/desk/workdesk/tags.xml">
<FragmentList>
<Interact>
<Fragment BlendOutDuration="0.2" Tags="ScopeSlave">
<AnimLayer>
<Blend ExitTime="0" StartTime="0" Duration="0.2"/>
<Animation name="drawer_top_open"/>
<... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with HAL;
package body STM32GD.CLOCKS.TREE is
procedure Init is
RCC : RCC_Peripheral renames RCC_Periph;
begin
if PLL_Source = HSE_Input then
RCC.CR.HSEON := 1;
while RCC.CR.HSERDY = 0 loop
null;
end loop;
end if;
RCC.... |
-----------------------------------------------------------------------
-- Util.Beans.Objects.Time -- Helper conversion for Ada Calendar Time
-- Copyright (C) 2010, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
pragma License (Unrestricted);
-- generalized unit of Ada.Text_IO.Bounded_IO
with Ada.Strings.Generic_Bounded;
generic
with package Bounded_Strings is new Strings.Generic_Bounded (<>);
with package Bounded is new Bounded_Strings.Generic_Bounded_Length (<>);
with procedure Put (
File : File_Type;
I... |
with GNAT.Sockets; use GNAT.Sockets;
procedure SocketSend is
procedure sendData (IP : String; Msg : String) is
Client : Socket_Type;
Address : Sock_Addr_Type;
Channel : Stream_Access;
begin
Create_Socket (Client);
Address.Addr := Inet_Addr(ip);
Address.Port := 256;
Con... |
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Widgets.Groups.Windows.Single is
procedure single_window_set_draw_hook
(W, D : in System.Address);
pragma Import (C, single_window_set_draw_hook, "single_window_set_draw_hook");
pragma Inline (single_window... |
with Protypo.Api.Interpreters;
with Protypo.Api.Consumers.File_Writer;
with Protypo.Api.Engine_Values.Engine_Value_Array_Wrappers;
with Protypo.Api.Engine_Values.Engine_Value_Holders;
with User_Records;
with Integer_Arrays;
with Ada.Command_Line;
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Exceptions;
with Protypo.Ap... |
generic
type ELEMENT is private;
package LIST_PACKAGE is
type LIST is private;
EMPTY_LIST : constant LIST;
procedure APPEND(L : in out LIST; E : in ELEMENT);
procedure REMOVE(L : in out LIST; E : out ELEMENT);
procedure CONS(E : in ELEMENT; L : in out LIST);
function FIRST(L : in LIST... |
-- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Flash
package MSP430_SVD.FLASH is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- FLASH Control 1
type FCTL1... |
package body System.Synchronous_Control is
pragma Suppress (All_Checks);
procedure Yield is
begin
Yield_Hook.all;
end Yield;
procedure Unlock_Abort is
begin
Unlock_Abort_Hook.all;
end Unlock_Abort;
procedure Lock_Abort is
begin
Lock_Abort_Hook.all;
end Lock_Abort;
end... |
with Ada.Containers.Indefinite_Hashed_Sets;
with Ada.Strings.Fixed.Hash;
package AUnit.Test_Filters.List_Filters is
type List_Filter is new AUnit.Test_Filters.Name_Filter with private;
procedure Read (Self : in out List_Filter; Path : String);
---
-- Reads a textfile containing tests to run
-- Lines ... |
-- { dg-do compile }
-- { dg-options "-g" }
with debug1; use debug1;
procedure test_debug1 is
Blob : Meta_Data;
begin
null;
end;
|
package Cards is
type Face_Type is range 2 .. 14;
type Suit_Type is (Heart, Spade, Diamond, Club);
type Card is tagged record
Face : Face_Type;
Suit : Suit_Type;
end record;
function Image(Self : Card) return String;
end Cards; |
-- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.JPEG is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- JPEG codec configuration ... |
-- { dg-do compile }
-- { dg-options "-O2" }
procedure boolean_subtype is
subtype Component_T is Boolean;
function Condition return Boolean is
begin
return True;
end;
V : Integer := 0;
function Component_Value return Integer is
begin
V := V + 1;
return V;
end;
Most_Sig... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Paths;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package ... |
-- Lumen.Binary.Endian -- Parent package for big- vs. little-endian
-- byte-ordering services
--
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software... |
-- SipHash24_String_Hashing
-- Instantiations of SipHash with recommended parameters for the String types
-- in order to replace Ada.Strings.Hash and friends. The key must be set with
-- SetKey before using any of these routines, or there will be no protection
-- from hash flooding attacks.
-- Copyright (c) 2015, Jame... |
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Catch_Error is
subtype Small_Integer is Integer range 0 .. 1000;
Result : Small_Integer;
Multiplicand : Small_Integer;
begin
Multiplicand := 2;
-- The following should evaluate to an out of range value
... |
with Ada.Containers.Vectors;
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Ordered_Sets;
package Word_List is
subtype Word is String(1 .. 24);
type Pattern is new String(1 .. 24);
function "<"(a, b : Pattern) return Boolean;
function "="(a, b : Pattern) return Boolean;
package Word_Vectors ... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-----------------------------------------------------------------------
-- net-sockets-udp -- UDP socket-like interface
-- Copyright (C) 2016 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 ... |
with Datos;
use Datos;
procedure Calcular_Maximo_Y_Posicion ( L : in Lista; Max, Pos_Max : out Integer ) is
-- pre:
-- post: Max contendra el mayor valor de L y Pos_max su posicion
-- Si L es vacia entonces Pos_Max vale cero
LCopia : Lista;
Pos : Integer;
begin
LCopia := L;
Max := 0;
Pos := 1;... |
with speedModule; use speedModule;
with perception;
package body Wrapper
with SPARK_Mode
is
procedure Init is
begin
if not (Safe) then
-- Running init in a non fresh state is wrong
Initialized := False;
return;
end if;
CurrentSpeed := 4.5;
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package body Aircraft is
procedure Ascend(AirC: in out Aircraft_Type) is
begin
AirC.Is_In_The_Air := True;
end;
procedure Land(AirC: in out Aircraft_Type) is
begin
AirC.Is_In_The_Air := False;
end;
function Get_Is_In_The_Air(AirC: in Aircraft_Type) return Boolean is
begin
r... |
-- Mojang Session API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-generator.tech
-- Do not edit the class... |
with Interfaces;
use Interfaces;
-- Definitions of standard USB protocol: Data structures, Values, etc
package USB.Protocol is
-- Those types are used in structures
-- Per Table 9-3 USB 3-2 rev 1.0
type Request_Type_Code is (
Request_Type_Standard, Request_Type_Class,
Request_Type_Vendor, Request... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- atlas-reviews-beans -- Beans for module reviews
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fi... |
with System.UTF_Conversions;
package body System.C_Encoding is
use type C.size_t;
use type C.wchar_t;
-- implementation of Character (UTF-8) from/to char (UTF-8)
function To_char (
Item : Character;
Substitute : C.char)
return C.char
is
pragma Unreferenced (Substitute);
begi... |
-- { dg-do run }
with Ada.Text_Io; use Ada.Text_Io;
procedure requeue1 is
protected P is
entry Requeue_Without_Abort;
entry Queue_Without;
procedure Open;
private
Opened: Boolean := False;
end P;
protected body P is
entry Requeue_Without_Abort when True is
begin
-- BU... |
with GL.Types; use GL.Types;
with GA_Maths;
with Multivectors;
package GL_Util is
subtype Pick_Window is Singles.Vector4;
type GL_Pick is private;
-- function From_GL (V3 : GL.Types.Singles.Vector3) return C3GA.Vector_E3;
-- procedure GL_Color_3fm (R, G, B : GL.Types.Single);
procedure Loa... |
with Ada.Text_IO;
with Ada.Command_Line;
procedure Hello is
package IO renames Ada.Text_IO;
Name : String := Ada.Command_Line.Argument (1);
begin
pragma Foo;
IO.Put_Line("Hello, world!");
IO.New_Line;
end Hello;
|
-- { dg-do run }
procedure Array4 is
type A is array (1..5) of Integer;
f : constant A := (1, 2, 3, 4, 5);
i1 : integer renames f(1);
i2 : integer renames f(2);
i3 : integer renames f(3);
i4 : integer renames f(4);
i5 : integer renames f(5);
procedure Link_Failure;
pragma Import (C, Link_... |
-----------------------------------------------------------------------
-- components-utils-files -- Include raw files in the output
-- 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 u... |
with Ada.Text_IO, History_Variables;
procedure Test_History is
package Str_With_Hist is new History_Variables(String);
-- define a history variable
S: Str_With_Hist.Variable;
Sum: Integer := 0;
begin
-- assign three values
S.Set("one");
S.Set(S.Get & S.Get); --"oneone"
S.Set("three");
... |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@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 Ho... |
pragma License (Unrestricted);
-- extended unit
private with System.Unwind;
package Ada.Exception_Identification is
-- "Pure" version of Ada.Exceptions.
pragma Pure;
type Exception_Id is private;
pragma Preelaborable_Initialization (Exception_Id);
Null_Id : constant Exception_Id;
function Exceptio... |
package p_StepHandler.IPHandler is
type IPHandler is new T_StepHandler with private;
type Ptr_IPHandler is access all IPHandler;
function Make (Handler : in out IPHandler) return IPHandler;
procedure Handle (Self : in out IPHandler);
function Process_Block (Self : IPHandler ;
... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Text_IO;
procedure Exercise4 is
Item : Integer;
begin
Put_Line("Enter the type of house you want to purchase");
Put_Line("1. Single Family");
Put_Line("2. Townhouse");
Put_Line("3. Condominium");
Put_Line("Your Choice? ");
Ada.Integer_Te... |
with Ada.Characters.Latin_1;
with Ada.Command_Line;
with Ada.Exceptions;
with Ada.Integer_Text_IO;
with Ada.Streams.Stream_IO;
with Ada.Text_IO;
with XML.Streams;
procedure dump_event is
use type XML.Encoding_Type;
use type XML.Event_Type;
use type XML.Standalone_Type;
procedure Dump_One_Event (Event : in XML.Event... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Recursive_Binary_Search is
Not_Found : exception;
generic
type Index is range <>;
type Element is private;
type Array_Of_Elements is array (Index range <>) of Element;
with function "<" (L, R : Element) return Boolean is <>;
function ... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
-- test for deflating and inflating
with Ada.Command_Line;
with Ada.Directories;
with Ada.Environment_Variables;
with Ada.Text_IO;
with Ada.Streams.Stream_IO;
with zlib;
procedure test_di is
use type Ada.Streams.Stream_Element;
use type Ada.Streams.Stream_Element_Offset;
Verbose : Boolean := False;
begin
for I in 1... |
-- Standard Ada library specification
-- 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.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
pragma Warnings (Off, "use of this unit is non-portable and version-dependent");
private with System.Parameters;
pragma Warnings (On);
with System;
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
--
-- Provides functionality ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do compile }
with Unchecked_Conversion;
procedure Unchecked_Convert4 is
type Uint32 is mod 2**32;
type Rec is record
I : Uint32;
end record;
for Rec'Size use 32;
pragma Atomic (Rec);
function Conv is new Unchecked_Conversion (Uint32, Rec);
function F return Uint32;
pragma Import (Ada, ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
protected type Event is
procedure Signal;
procedure Reset;
entry Wait;
private
Fired : Boolean := False;
end Event;
|
with Ada.Unchecked_Deallocation;
generic
type Item is tagged private; -- List Data Field
with function "="(ObjA: Item'Class; ObjB: Item'Class) return Boolean;
package hetro_stack is
type hetroStack is private;
type ItemPt is access all Item'Class;
type hetroStackElem is private;
type hetroSt... |
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
with Interfaces.C.Strings;
with Notcurses_Thin;
package body Notcurses.Strings is
function Width
(Str : Wide_Wide_String)
return Natural
is
use Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
use Interfaces.C.Strings;
Chars : constant cha... |
package body Test_Floats.Read is
package Skill renames Floats.Api;
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Floats.Read");
Ahven.Framework.Add_Test_Routine (T, Float'Access, "test float");
Ahven.Framework.Add_Test_Routine (T, Double'Access, "test double");
end I... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa.users -- User registration, authentication processes
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the ... |
-- NB. this file is edited by sed commands in the Makefile
package Build_Options is
macOS : constant Boolean := False;
end Build_Options;
|
package Big_Integers with
Ghost,
SPARK_Mode
is
pragma Annotate (GNATprove, External_Axiomatization);
type Big_Integer is private;
Zero : constant Big_Integer;
function "=" (L, R : Big_Integer) return Boolean with Import;
function "<" (L, R : Big_Integer) return Boolean with Import;
function "<... |
with System; use System;
with Interfaces.C; use Interfaces.C;
package Memory_Compare is
pragma Preelaborate;
function memcmp (S1 : Address; S2 : Address; N : size_t) return int;
pragma Export (C, memcmp, "memcmp");
-- compares the first n bytes of the memory areas s1 and s2. It returns
-- an integer le... |
with ada.Text_IO;
with GNAT.Source_Info;
with AUnit.Assertions;
with System.Address_Image;
with Interfaces.C.Strings;
with ada.Unchecked_Conversion;
package body Dl.Test_Basics is
use AUnit;
use AUnit.Assertions;
-- Fixture elements
----------
-- Name --
----------
function Name (T : Test_Case)... |
-- Task 2 of RTPL WS17/18
-- Team members: Hannes B. and Gabriel Z.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
package body myTasks with SPARK_Mode is
-- Procedure for option 5
procedure opt5 is
task1 : myAmount;
begin
Put ("Add (a) or Remove (r) element (current:");
P... |
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.OS_Lib;
with GNAT.Strings;
with GNATCOLL.Projects;
with GNATCOLL.VFS;
with Ada.Directories;
procedure GPR_Tools.Gpradd is
use GNATCOLL.VFS;
use GNAT.Strings;
use GNATCOLL.Projects;
use Ada.Directories;
Env : Project_Environment_Access;
GN... |
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 Zane Myers
--
-- 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 witho... |
package body openGL.Texture.Coordinates
is
overriding
function to_Coordinates (Self : in xz_Generator; the_Vertices : access Sites) return Coordinates_2D
is
the_Coords : Coordinates_2D (1 .. the_Vertices'Length);
begin
for Each in the_Coords'Range
loop
declare
the_V... |
-----------------------------------------------------------------------
-- nodes-facelets -- Facelets composition nodes
-- Copyright (C) 2009, 2010, 2011, 2015, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
with Ada.Text_IO; use Ada.Text_IO;
package body Input is
function Get return Colors.Color_Set_T is
Ret_Val : Colors.Color_Set_T;
begin
-- Query user to determine what colors to add to the set
return Ret_Val;
end Get;
end Input;
|
--------------------------------------------------------------------------------
-- Copyright (c) 2013, Felix Krause <contact@flyx.org>
--
-- 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... |
with Ada.References.Strings;
with System.Address_To_Constant_Access_Conversions;
with System.Startup;
with System.Storage_Elements;
package body Ada.Bind_Time_Variables is
use type System.Storage_Elements.Storage_Offset;
type Length_Type is mod 2 ** Character'Size;
type Length_Access is access constant Length... |
-----------------------------------------------------------------------
-- awa-wikis-modules -- Module wikis
-- Copyright (C) 2015, 2016, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not u... |
-----------------------------------------
-- Example Newton-Bisection Hybrid
-- Root-Finding Method created by
-- Oscar Veliz based off of NewtSafe from
-- https://www.ldeo.columbia.edu/~mspieg/e4300/BlankPDFs/Lecture06_blank.pdf
-- and rtsafe from Numerical Recipies in C p.366-367 and
-- Numerical Methods That Work b... |
-- Model IED Simulator
-- COL Gene Ressler, 1 December 2007
with Ada.Text_IO;
with Ada.Characters.Latin_1;
use Ada.Characters.Latin_1;
with Ada.Strings.Fixed;
use Ada.Strings.Fixed;
with Ada.Strings;
with Ada.Strings.Bounded;
with Binary_Search;
with Ada.Containers.Generic_Array_Sort;
package body Scanner is
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
package GESTE_Fonts.FreeSansOblique5pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeSansOblique5pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#02#, 16#02#, 16#01#, 16#00#, 16#80#, 16#40#,
16#40#, 16#00#, 16#10#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#02#, 16#81... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
package System.Allocation is
pragma Preelaborate;
end System.Allocation; |
pragma Ada_2012;
with Ada.Containers.Indefinite_Ordered_Maps;
with Project_Processor.Parsers.Abstract_Parsers;
package body Project_Processor.Parsers is
package Extension_Maps is
new Ada.Containers.Indefinite_Ordered_Maps (Key_Type => string,
Element_Type =... |
--
-- 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.
--
-------------------------------------------... |
-- *************************************************************************************
--
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code and its contents shall not be used for other than UK Government
--... |
with
openGL.Shader,
openGL.Program,
openGL.Buffer.general,
openGL.Tasks,
openGL.Attribute,
openGL.Errors,
GL.lean,
GL.Pointers,
Interfaces.C.Strings,
System.storage_Elements;
package body openGL.Geometry.colored
is
use GL.lean, GL.Pointers;
use Interfaces;
... |
private package SPARKNaCl.Car
with Pure,
SPARK_Mode => On
is
--==========================================
-- Functions supporting normalization
-- of GF values following "+", "-" or "*"
-- operations.
--
-- See the specific subtype declarations
-- in the private part of the specificat... |
-----------------------------------------------------------------------
-- util-dates-formats-tests - Test for date formats
-- Copyright (C) 2011, 2013, 2014, 2015, 2016, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "L... |
------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- --
-- ... |
package Mod_Inv is
procedure X_GCD(A, B: in Natural; D, X, Y: out Integer);
-- the Extended Euclidean Algorithm
-- finds (D, X, Y) with D = GCD(A, B) = A*X + B*Y
function Inverse(A, M: Integer) return Integer;
-- computes the multiplicative inverse Inv_A of A mod M, using X_GCD
-- raises... |
package SPARKNaCl.Sign
with Pure,
SPARK_Mode => On
is
-- Limited, so no assignment or comparison, and always
-- pass-by-reference.
type Signing_PK is limited private;
type Signing_SK is limited private;
--------------------------------------------------------
-- Public key signatures
-... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Subtype_Indications;
package Program.Elements.Derived_Types is... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- C36104B.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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
--------------------------------------------------------------------------------
-- Copyright (c) 2013, Felix Krause <contact@flyx.org>
--
-- 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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do run }
-- { dg-options "-gnatp -fstrict-volatile-bitfields" }
procedure Misaligned_Volatile is
type Byte is mod 2**8;
type Block is record
B : Boolean;
V : Byte;
end record;
pragma Volatile (Block);
pragma Pack (Block);
for Block'Alignment use 1;
type Pair is array (1 .. 2... |
func add(one, two): return one+two;
let num = 5;
if :&add(5.2, 5):+5 > num {
print_expr num;
print_str <s>;
print_expr_ln :&add(5.2, 5):+5;
} |
package Lto10_Pkg is
type U16 is mod 2 ** 16;
type Position is record
X, Y, Z : U16;
end record;
for Position'Size use 48;
type Pixel is record
Pos : Position;
end record;
pragma Pack (Pixel);
Minus_One : Integer := -1;
Pix : Pixel := (Pos => (X => 0, Y => 0, Z => 0));
end Lt... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.