content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Ada.Command_Line;
with Stemmer.Factory;
procedure Stemwords is
use Stemmer.Factory;
function Get_Language (Name : in String) return Language_Type;
function Is_Space (C : in Character) return Boolean;
function Is_Space (C : in Character) return Boolean is
begin
return C = '... |
package body Loop_Optimization16_Pkg is
function F return Natural is
begin
return Natural (Index_Base'Last);
end;
end Loop_Optimization16_Pkg;
|
-----------------------------------------------------------------------
-- ADO SQL -- Basic SQL Generation
-- Copyright (C) 2010, 2011, 2012, 2015, 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... |
-----------------------------------------------------------------------
-- are-tests -- Various tests for the are tool (based on examples)
-- Copyright (C) 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Containers.Vectors;
with GL.Objects.Programs;
with GL.Types;
with GA_Maths;
with Multivectors;
package Geosphere is
-- some very ancient code to compute a triangulated sphere
use Multivectors;
type Geosphere is private;
type Indices is array (1 .. 3) of integer;
Geosphere_Exception : Exce... |
with STM32GD.Board;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.USART; use STM32_SVD.USART;
package body Last_Chance_Handler is
procedure Put_Char (Char : Byte) is
begin
while USART1_Periph.ISR.TXE = 0 loop
null;
end loop;
USART1_Periph.TDR.TDR := UInt9 (Char);
end Put_Char;
... |
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Strings.Fixed;
with Ada.Strings.U... |
------------------------------------------------------------------------------
-- Copyright (c) 2011-2013, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
--
-- package Debugged (body)
--
------------------------------------------------------------------------------
-- Update information:
--
-- 1996.07.26 (Jacob Sparre Andersen)
-- Copied from Debugging (1996.07.26).
--
-- (Insert addit... |
package Enclosing_Record_Reference is
pragma elaborate_body;
type T is record
F1: access function(x: integer) return T;
F2: access function(x: T) return integer; --??
F3: access function(x: T) return T; --??
F4: access function(x: integer) return acce... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
--
-- 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... |
-----------------------------------------------------------------------
-- awa-blogs-module -- Blog and post management module
-- Copyright (C) 2011, 2012, 2013, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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... |
-----------------------------------------------------------------------
-- awa-events-queues-persistents -- Persistent event queues
-- Copyright (C) 2012, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
package enum_colors is
type Traffic_Light is (Red, Yellow, Green);
end enum_colors;
|
generic
type Element is private;
type Index is (<>);
type Seq is array (Index range <>) of Element;
function Is_Palindrome(S: Seq) return Boolean;
|
------------------------------------------------------------------------------
-- Copyright (c) 2017-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package Asis.Gela.Parser.Tokens is
subtype YYSTYPE is Asis.Element;
subtype T is YYSTYPE;
YYLVal, YYVal : YYSType;
type Token is
(End_Of_Input, Error, New_Line_Token, Separator_Token,
Comment_Token, Identifier_Token, Integer_Literal_Token,
Real_Literal_Token, Character_... |
---------------------------------------------------------------------------------
-- 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.
------------------------------------------------------------... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Amb is
type Alternatives is array (Positive range <>) of Unbounded_String;
type Amb (Count : Positive) is record
This : Positive := 1;
Left : access Amb;
List : Alternatives (1.... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
private with HelperText;
private with PortScan;
private with Ada.Containers.Vectors;
package Pilot is
procedure display_usage;
procedure react_to_unknown_first_level_comm... |
-- -----------------------------------------------------
-- Copyright (C) by:
-- Antonio F. Vargas - Ponta Delgada - Azores - Portugal
-- avargas@adapower.net
-- www.adapower.net/~avargas
-- -----------------------------------------------------
-- This program is in the public domain
-- ----------... |
-- { dg-do compile }
-- { dg-options "-cargs --param max-completely-peeled-insns=200 -margs -O3" }
package body Opt42 is
function "*" (Left, Right : in Array_Type) return Array_Type is
Temp : Float;
Result : Array_Type;
begin
for I in Index_Type loop
for J in Index_Type loop
... |
with Ada.Text_IO; use Ada.Text_IO;
package body base_iface is
procedure class_wide(Self : The_Interface'Class) is
begin
Put_Line(" iface'Class:class-wide, calling Self.simple");
Self.simple;
end;
end base_iface;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Text.Chunk_Test;
package body Text.Suite is
Result : aliased AUnit.Test_Suites.Test_Suite;
Chunk_TC : aliased Chunk_Test.TC;
function Suite return AUnit.Test_Suites.Access_Test_Suite i... |
with SDL;
with SDL.Libraries;
with SDL.Log;
-- Run with: LD_LIBRARY_PATH=./gen/debug/test:$LD_LIBRARY_PATH ./gen/debug/test/libraries
procedure Libraries is
Lib : SDL.Libraries.Handles;
begin
SDL.Libraries.Load (Lib, "libtestmaths.so");
SDL.Log.Set (Category => SDL.Log.Application, Priority => SDL.Log.Debu... |
with
openGL.Tasks,
GL.Binding,
ada.Text_IO;
package body openGL.Errors
is
use GL;
function Current return String
is
use GL.Binding;
check_is_OK : constant Boolean := openGL.Tasks.Check; pragma Unreferenced (check_is_OK);
the_Error : constant GL.GLenum := glGetError;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Strings.Hash;
with System;
with Yaml.Dom.Node_Memory;
package body Yaml.Dom.Node is
use type Text.Reference;
use type Ada.Containers.Hash_Type;
use type Count_Type;
use type Syst... |
with Ada.Text_IO; use Ada.Text_IO;
with Yeison_Experiments; use Yeison_Experiments;
procedure Experiments is
LS : constant List := ("a", "b", "c");
-- LI : constant List := (1, 2, 3);
-- Ideally, this should be allowed in the future
begin
null;
end Experiments;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2022, AdaCore --
-- --
-- Redis... |
pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
with Sparkduino; use Sparkduino;
package body Pwm
is
Pwm_Resolution : constant := 8;
procedure Configure_Timers
is
begin
null;
end Configure_Timers;
procedure SetRate (Index : Pwm_Index;
Value : Word)
is
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- RUN: %llvmgcc -S -emit-llvm %s -o - | not grep ptrtoint
package Constant_Fold is
Error : exception;
end;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
-- CD2D11A.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... |
-- { dg-do run }
-- { dg-options "-gnatws" }
with Address_Null_Init; use Address_Null_Init;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Address_Null_Init is
begin
if B /= null then
Put_Line ("ERROR: B was not default initialized to null!");
end if;
if A /= null then
Put_Line ("ERROR... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
with GNAT.OS_Lib;
with TOML.File_IO;
with Simple_Logging;
package body CLIC.Config.Load is
package Trace renames Simple_Logging;
use TOML;
---------------
-- From_TOML --
---------------
procedure From_TOML (C : in out CLIC.Config.Instance;
Origin : String;
... |
-- Implantation du module Arbre_Binaire
with Ada.Text_IO ; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body Arbre_Binaire is
procedure Free is
new Ada.Unchecked_Deallocation (Object => T_Noeud, Name => T_Abr);
procedure Initialiser ( Abr : out T_Abr ) is
begin
Abr := Null ;
end Ini... |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
name = "Searx"
type = "scrape"
function start()
set_rate_limit(4)
math.randomseed(os.time())
end
function vertical(ctx, domain)
... |
-----------------------------------------------------------------------
-- awa-storages-stores -- The storage interface
-- 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 ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.HASHCRYPT is
pragma Preelaborat... |
with Ada.Text_IO;
package body Linereader is
SL : constant Natural := Separator_Sequence'Length;
function End_Of_Input(Self : Reader) return Boolean is
begin
return Self.End_Of_Input;
end End_Of_Input;
procedure Restore (Self : in out Reader) is
begin
Self.Position := Self.Backup;
e... |
------------------------------------------------------------------------------
-- G N A T C O L L --
-- --
-- Copyright (C) 2009-2019, AdaCore --
-- ... |
with Ada.Unchecked_Deallocation;
package body Tree_Naive_Pointers is
procedure initialize is
begin
Reset(g);
end;
procedure make_node(n: out NodePtr; x: Integer) is
begin
n := new Node;
n.x := x;
n.y := Random(g);
end make_node;
procedure delete_node(n: in out NodePtr) is
procedure free is new Ada.Uncheck... |
-----------------------------------------------------------------------
-- package Runge_Coeffs_PD_8, coefficients for Prince-Dormand Runge Kutta
-- 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 grante... |
-----------------------------------------------------------------------
-- akt -- Ada Keystore Tool
-- Copyright (C) 2019, 2021 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 comp... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- { dg-do run }
with Ada.Text_IO;
procedure Modular1 is
type T1 is mod 9;
package T1_IO is new Ada.Text_IO.Modular_IO(T1);
X: T1 := 8;
J1: constant := 5;
begin for J2 in 5..5 loop
pragma Assert(X*(2**J1) = X*(2**J2));
... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ implementation of builtin field types --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
with
collada.Asset,
collada.Libraries;
package collada.Document
--
-- Models a colada document.
--
is
type Item is tagged private;
function to_Document (Filename : in String) return Item;
function Asset (Self : in Item) return collada.Asset .item;
function Libraries (Self : in Item) ret... |
--
-- Copyright 2021 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package body Evaluate.Matrices is
--------------------------------------------------------------------------
-- Check functions for the input received
-- Those functions set the global variables to the received value
... |
with Ada.Unchecked_Conversion, Interfaces.C, Interfaces.C.Extensions;
package body Libtcod.Input is
use sys_h, console_types_h, mouse_types_h, Interfaces.C;
use type Interfaces.C.Extensions.bool;
function TCOD_Keycode_To_Key_Type is new Ada.Unchecked_Conversion
(Source => TCOD_keycode_t, Target => Key_T... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with
Ada.Iterator_Interfaces,
Ada.Directories,
Ada.Containers.Vectors;
private
with
Ada.Finalization;
package Shell.Directory_Iteration
is
type Directory is tagged private
with
Default_Iterator => Iterate,
Iterator_Element => Constant_Reference_Type,
Constant_Indexi... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
with GL.Enums;
package body GL.Tessellation is
procedure Set_Patch_Vertices (Value : Int) is
begin
API.Set_Patch_Parameter_Int (Enums.Vertices, Value);
end Set_Patch_Vertic... |
------------------------------------------------------------------------------
-- 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... |
-- flyweights-untracked_ptrs.adb
-- A package of generalised references which point to resources inside a
-- Flyweight without tracking or releasing those resources
-- Copyright (c) 2016, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is here... |
generic
type Real is digits <>;
procedure Real_To_Rational(R: Real;
Bound: Positive;
Nominator: out Integer;
Denominator: out Positive);
|
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Hashing; use SPARKNaCl.Hashing;
with Interfaces; use Interfaces;
procedure Core3
is
Second_Key : constant Salsa20_Key :=
Construct ((16#dc#, 16#90#, 16#8d#, ... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with Ada.Exceptions;
with Ada.Finalization;
with Ada.Unchecked_Conversion;
package System.Tasking.Protected_Objects.Entries is
type Node is limited record
Super : aliased Synchronous_Objects.Queue_Node;
E : Protected_Entry_Index... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package Program.Elements.Definitions is
pragma Pure (Program.Elements.Definitions);
type Definition is limited interface and Program.Elements.Elemen... |
------------------------------------------------------------------------------
-- Copyright (c) 2021, Lev Kujawski.
--
-- 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 restrictio... |
-- Copyright 2016 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 or agr... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- html-factory -- Factory for HTML UI Components
-- Copyright (C) 2009, 2010, 2011, 2012, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Ada.Long_Integer_Text_IO;
with Ada.Numerics.Long_Elementary_Functions;
-- Copyright 2021 Melwyn Francis Carlo
procedure A003 is
use Ada.Text_IO;
use Ada.Long_Integer_Text_IO;
use Ada.Numerics.Long_Elementary_Functions;
-- File Reference: http://www.naturalnumbers.org/primes.html... |
-- Minimal Example to produce "integer literal expected" error in Dimension Aspect
--
-- Steps to reproduce:
-- * Dimension_System is applied on Integer type
-- * subtype Dimension is set to a negative integer literal
--
-- Wrong Behavior: -1 is a valid integer literal, however, compiler complains it is not... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2021, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- servlet-parts -- Servlet Parts
-- 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 this file except i... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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... |
-- 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.NVIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ICTR_INTLINESNUM_Fiel... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Tests.Parser_Data.XML_Reader is
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_Stri... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ iterator over types --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
-- C45201A.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... |
with Adventofcode.File_Line_Readers;
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_2.Main is
procedure Eval (Path : String) is
Count : Natural := 0;
begin
for Line of Adventofcode.File_Line_Readers.Read_Lines (Path) loop
if Parse (Line).Valid2 then
Count := Count +... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with Interfaces.C.Extensions;
package a_nodes_h is
type Program_Text is new Interfaces.C.Strings.chars_ptr; -- a_nodes.h:11
subtype ASIS_Integer is int; -- a_nodes.h:12
subtype Element_ID is int; ... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with festival.Pointers;
with interfaces.C;
package festival.pointer_Pointers is
-- FILE_Pointer_Pointer
--
type FILE_Pointer_Pointer is access all festival.Pointers.FILE_Pointer;
-- ostream_Pointer_Pointer
--
type ostream_P... |
-- { dg-do compile }
package constructor is
type R (Name_Length : Natural) is record
Name : Wide_String (1..Name_Length);
Multiple : Boolean;
end record;
Null_Params : constant R :=
(Name_Length => 0,
Name => "",
Multiple => False);
end;
|
--
-- echo [string ...]
--
-- Write arguments to the standard output
--
-- The echo utility writes any specified operands, separated by single blank
-- (`` '') characters and followed by a newline (``\n'') character, to the
-- standard output.
--
with Ada.Command_Line;
with Ada.Text_IO;
use Ada;
procedure Echo is
begi... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
with MOS; use MOS;
with Instruction; use Instruction;
with Ada.Real_Time;
package Main_Loop is
use type Ada.Real_Time.Time;
use type Ada.Real_Time.Time_Span;
The_Clock : Ada.Real_Time.Time := Ada.Real_Time.Clock;
pro... |
package Array_Swapping
is
subtype ElementType is Natural range 0..1000;
subtype IndexType is Positive range 1..100;
type ArrayType is array (IndexType) of ElementType;
procedure Rotate3(A: in out ArrayType; X, Y, Z: in IndexType)
with
Depends => (A => (A, X, Y, Z)),
Pre => X /= Y an... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin
if 0=1 then Q(0); elsif 1=2 then Q(1); end if;
end;
|
------------------------------------------------------------------------------
-- Copyright (c) 2013, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Text_IO;
package body Exceptions... |
-- Display_NORX_Traces
-- A utility to display traces of the encryption process for the test vectors
-- suggested in Appendix A of the NORX specification
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with System.Storage_Elements;
with NORX;
generic
with package NORX_Package is new NORX(<>);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.