hexsha
stringlengths 40
40
| size
int64 3
1.05M
| ext
stringclasses 163
values | lang
stringclasses 53
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
112
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
sequencelengths 1
10
| max_stars_count
float64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
113
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
sequencelengths 1
10
| max_issues_count
float64 1
116k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
113
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
sequencelengths 1
10
| max_forks_count
float64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 3
1.05M
| avg_line_length
float64 1
966k
| max_line_length
int64 1
977k
| alphanum_fraction
float64 0
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dccc326a479a3f46b154fd8c17fa47cb5ee39458 | 3,410 | ads | Ada | tools/scitools/conf/understand/ada/ada05/g-comver.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | tools/scitools/conf/understand/ada/ada05/g-comver.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/g-comver.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- G N A T . C O M P I L E R _ V E R S I O N --
-- --
-- S p e c --
-- --
-- Copyright (C) 2002-2005, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides a routine for obtaining the version number of the
-- GNAT compiler used to compile the program. It relies on the generated
-- constant in the binder generated package that records this information.
-- Note: to use this package you must first instantiate it, for example:
-- package CVer is new GNAT.Compiler_Version;
-- and then you use the function in the instantiated package (Cver.Version).
-- The reason that this unit is generic is that otherwise the direct attempt
-- to import the necessary variable from the binder file causes trouble when
-- building a shared library, since the symbol is not available.
-- Note: this unit is only useable if the main program is written in Ada.
-- It cannot be used if the main program is written in foreign language.
generic
package GNAT.Compiler_Version is
pragma Pure;
function Version return String;
-- This function returns the version in the form "v.vvx (yyyyddmm)".
-- Here v.vv is the main version number (e.g. 3.16), x is the version
-- designator (e.g. a1 in 3.16a1), and yyyyddmm is the date in ISO form.
-- An example of the returned value would be "3.16w (20021029)". The
-- version is actually that of the binder used to bind the program,
-- which will be the same as the compiler version if a consistent
-- set of tools is used to build the program.
end GNAT.Compiler_Version;
| 53.28125 | 78 | 0.51349 |
180d0d0e66edea292ccc02bbdcd25bfdb9d20738 | 8,271 | adb | Ada | src/giza-widget-tiles.adb | Fabien-Chouteau/Giza | 9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd | [
"BSD-3-Clause"
] | 7 | 2017-10-18T02:40:24.000Z | 2020-12-19T22:41:19.000Z | src/giza-widget-tiles.adb | Fabien-Chouteau/Giza | 9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd | [
"BSD-3-Clause"
] | null | null | null | src/giza-widget-tiles.adb | Fabien-Chouteau/Giza | 9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd | [
"BSD-3-Clause"
] | 2 | 2019-05-06T08:30:26.000Z | 2020-11-22T11:27:27.000Z | ------------------------------------------------------------------------------
-- --
-- Giza --
-- --
-- Copyright (C) 2015 Fabien Chouteau ([email protected]) --
-- --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
package body Giza.Widget.Tiles is
---------------
-- Set_Dirty --
---------------
overriding
procedure Set_Dirty (This : in out Instance;
Dirty : Boolean := True)
is
begin
Set_Dirty (Parent (This), Dirty);
for Index in This.Widgs'Range loop
if This.Widgs (Index) /= null then
This.Widgs (Index).Set_Dirty (Dirty);
end if;
end loop;
end Set_Dirty;
----------
-- Draw --
----------
overriding procedure Draw
(This : in out Instance;
Ctx : in out Context.Class;
Force : Boolean := True)
is
W, H : Integer;
Margin : constant Integer := 1;
procedure Draw_Tile (Index : Integer);
---------------
-- Draw_Tile --
---------------
procedure Draw_Tile (Index : Integer) is
begin
if Index in This.Widgs'Range and then This.Widgs (Index) /= null then
-- Ctx.Set_Bounds ((My_Bounds.Org + Ref.Pos, Ref.Widg.Get_Size));
This.Widgs (Index).Set_Size ((W, H));
Ctx.Set_Position ((0, 0));
Ctx.Save;
Ctx.Set_Bounds (((0, 0), (W, H)));
Draw (This.Widgs (Index).all, Ctx, Force);
Ctx.Restore;
-- Translate for next tile
case This.Dir is
when Top_Down | Bottom_Up =>
Ctx.Translate ((0, This.Spacing + H));
when Left_Right | Right_Left =>
Ctx.Translate ((This.Spacing + W, 0));
end case;
end if;
end Draw_Tile;
begin
if This.Dirty or else Force then
Draw (Parent (This), Ctx, Force);
end if;
case This.Dir is
when Top_Down | Bottom_Up =>
H := This.Get_Size.H;
H := H - 2 * This.Margin;
H := H - (This.Number_Of_Widget - 1) * This.Spacing;
H := H / This.Number_Of_Widget;
W := This.Get_Size.W - 2 * This.Margin;
when Left_Right | Right_Left =>
W := This.Get_Size.W;
W := W - 2 * This.Margin;
W := W - (This.Number_Of_Widget - 1) * This.Spacing;
W := W / This.Number_Of_Widget;
H := This.Get_Size.H - 2 * This.Margin;
end case;
Ctx.Save;
Ctx.Translate ((Margin, Margin));
if This.Dir = Left_Right or else This.Dir = Top_Down then
for Index in This.Widgs'Range loop
Draw_Tile (Index);
end loop;
else
for Index in reverse This.Widgs'Range loop
Draw_Tile (Index);
end loop;
end if;
Ctx.Restore;
end Draw;
-----------------------
-- On_Position_Event --
-----------------------
overriding
function On_Position_Event
(This : in out Instance;
Evt : Position_Event_Ref;
Pos : Point_T)
return Boolean
is
W, H : Integer;
begin
case This.Dir is
when Top_Down | Bottom_Up =>
H := This.Get_Size.H / This.Number_Of_Widget;
when Left_Right | Right_Left =>
W := This.Get_Size.W / This.Number_Of_Widget;
end case;
for Index in This.Widgs'Range loop
case This.Dir is
when Top_Down =>
if Pos.Y in (Index - 1) * H .. Index * H then
return On_Position_Event (This.Widgs (Index).all,
Evt,
Pos - (0, (Index - 1) * H));
end if;
when Bottom_Up =>
if Pos.Y in (This.Widgs'Last - Index) * H ..
(This.Widgs'Last - Index + 1) * H
then
return On_Position_Event
(This.Widgs (Index).all,
Evt,
Pos - (0, (This.Widgs'Last - Index) * H));
end if;
when Left_Right =>
if Pos.X in (Index - 1) * W .. Index * W then
return On_Position_Event (This.Widgs (Index).all,
Evt,
Pos - ((Index - 1) * W, 0));
end if;
when Right_Left =>
if Pos.X in (This.Widgs'Last - Index) * W ..
(This.Widgs'Last - Index + 1) * W
then
return On_Position_Event (This.Widgs (Index).all,
Evt,
Pos - ((Index - 1) * W, 0));
end if;
end case;
end loop;
return False;
end On_Position_Event;
--------------
-- On_Event --
--------------
overriding
function On_Event
(This : in out Instance;
Evt : Event_Not_Null_Ref) return Boolean
is
Handled : Boolean := False;
begin
for W of This.Widgs loop
if W /= null then
Handled := Handled or W.On_Event (Evt);
end if;
end loop;
return Handled;
end On_Event;
---------------
-- Set_Child --
---------------
procedure Set_Child
(This : in out Instance;
Index : Positive;
Child : Widget.Reference)
is
begin
if Index in This.Widgs'Range then
This.Widgs (Index) := Child;
end if;
end Set_Child;
-----------------
-- Set_Spacing --
-----------------
procedure Set_Spacing (This : in out Instance; Spacing : Natural) is
begin
This.Spacing := Spacing;
end Set_Spacing;
----------------
-- Set_Margin --
----------------
procedure Set_Margin (This : in out Instance; Margin : Natural) is
begin
This.Margin := Margin;
end Set_Margin;
end Giza.Widget.Tiles;
| 34.177686 | 78 | 0.472494 |
d04853e97fb238389ffff24ce6d55b8e82b36ced | 3,654 | adb | Ada | Ada95/samples/sample-helpers.adb | mvaisakh/android_external_libncurses | d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f | [
"DOC",
"Unlicense"
] | 35 | 2015-03-07T13:26:22.000Z | 2021-11-06T16:18:59.000Z | Ada95/samples/sample-helpers.adb | mvaisakh/android_external_libncurses | d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f | [
"DOC",
"Unlicense"
] | 3 | 2017-04-07T21:02:48.000Z | 2017-04-08T17:59:35.000Z | Ada95/samples/sample-helpers.adb | mvaisakh/android_external_libncurses | d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f | [
"DOC",
"Unlicense"
] | 19 | 2015-06-16T06:13:44.000Z | 2021-07-24T02:37:45.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- Sample.Helpers --
-- --
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 1998-2006,2008 Free Software Foundation, Inc. --
-- --
-- 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, publish, --
-- distribute, distribute with modifications, sublicense, and/or sell --
-- copies of the Software, and to permit persons to whom the Software is --
-- furnished to do so, subject to the following conditions: --
-- --
-- The above copyright notice and this permission notice shall be included --
-- in all copies or substantial portions of the Software. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
-- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control
-- $Revision: 1.12 $
-- $Date: 2008/07/26 18:48:08 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Sample.Explanation; use Sample.Explanation;
-- This package contains some conveniant helper routines used throughout
-- this example.
--
package body Sample.Helpers is
procedure Window_Title (Win : in Window;
Title : in String)
is
Height : Line_Count;
Width : Column_Count;
Pos : Column_Position := 0;
begin
Get_Size (Win, Height, Width);
if Title'Length < Width then
Pos := (Width - Title'Length) / 2;
end if;
Add (Win, 0, Pos, Title);
end Window_Title;
procedure Not_Implemented is
begin
Explain ("NOTIMPL");
end Not_Implemented;
end Sample.Helpers;
| 52.956522 | 78 | 0.444718 |
d0b11ad79e76f33e0d7e81cc116fcaff7bc9f1bc | 186 | ads | Ada | host/stm32gd-i2c.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | host/stm32gd-i2c.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | host/stm32gd-i2c.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | with STM32_SVD; use STM32_SVD;
package STM32GD.I2C is
pragma Preelaborate;
subtype I2C_Address is UInt7;
type I2C_Data is array (Natural range <>) of Byte;
end STM32GD.I2C;
| 16.909091 | 53 | 0.736559 |
cb8e782db569075a773317726e2fdcfda3fd2a76 | 3,599 | ads | Ada | source/amf/mof/cmof/amf-cmof-elements-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/mof/cmof/amf-cmof-elements-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/mof/cmof/amf-cmof-elements-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Elements.Generic_Hash;
function AMF.CMOF.Elements.Hash is
new AMF.Elements.Generic_Hash (CMOF_Element, CMOF_Element_Access);
| 71.98 | 78 | 0.400389 |
18e6cab1c86335342591368cd161d59758248cf0 | 387 | ada | Ada | Task/Create-an-object-at-a-given-address/Ada/create-an-object-at-a-given-address-2.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Create-an-object-at-a-given-address/Ada/create-an-object-at-a-given-address-2.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | null | null | null | Task/Create-an-object-at-a-given-address/Ada/create-an-object-at-a-given-address-2.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | with Ada.Text_IO; use Ada.Text_IO;
with System.Storage_Elements; use System.Storage_Elements;
procedure Test_Address is
X : Integer := 123;
Y : Integer;
for Y'Address use X'Address;
begin
Put_Line ("At address:" & Integer_Address'Image (To_Integer (Y'Address)));
Put_Line (Integer'Image (Y));
X := 456;
Put_Line (Integer'Image (Y));
end Test_Address;
| 27.642857 | 77 | 0.679587 |
0e4dc203e1362c92bc8308ce3336f6945e445f98 | 5,604 | ads | Ada | bb-runtimes/src/s-bbpara__x86_64.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/src/s-bbpara__x86_64.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/src/s-bbpara__x86_64.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . P A R A M E T E R S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2005 The European Space Agency --
-- Copyright (C) 2003-2021, AdaCore --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
-- The port of GNARL to bare board targets was initially developed by the --
-- Real-Time Systems Group at the Technical University of Madrid. --
-- --
------------------------------------------------------------------------------
-- This package defines basic parameters used by the low level tasking system
-- This is the x86-64 version of this package
pragma Restrictions (No_Elaboration_Code);
package System.BB.Parameters is
pragma Pure;
--------------------
-- Hardware clock --
--------------------
Ticks_Per_Second : constant := 1_000_000_000;
-- On x86-64 we read the TSC frequency from the CPU and convert that time
-- to nanoseconds.
TSC_Frequency : constant := 0;
-- The frequency of the Time Stamp Clock (TSC) in Hertz. When set to zero
-- the runtime will attempt to determine its value from the processor's
-- internal registers following the guidelines provided by the Intel 64 and
-- IA-32 Architectures Software Developer's Manual, Volume 3B, Section
-- 18.7.3. Since the TSC clock source is implemented differently across
-- the different Intel chip families, on some certain processors the
-- runtime may fail to either determine the TSC frequency or will set it
-- incorrectly. In the former case the runtime will raise a Program_Error
-- on boot, while for the latter always check to ensure the timing
-- behaviour is as expected. In both cases you will need to manual set the
-- TSC_Frequency constant above.
APIC_Timer_Divider : constant := 16;
-- Since the timer frequency is typically in GHz, clock the timer down as
-- we do not need such a fine grain timer capable of firing every
-- nanosecond (which also means the longest delay we can have before
-- having to reset the 32-bit timer is ~ 1 second). Instead we aim for
-- microsecond granularity.
----------------
-- Interrupts --
----------------
-- These definitions are in this package in order to isolate target
-- dependencies.
subtype Interrupt_Range is Natural range 0 .. 255;
-- Number of interrupts supported by the Local APIC
------------
-- Stacks --
------------
Interrupt_Stack_Frame_Size : constant := 8 * 1024; -- bytes
-- Size of the interrupt stack used for handling an interrupt.
Interrupt_Stack_Size : constant :=
Interrupt_Stack_Frame_Size *
(Interrupt_Priority'Last - Interrupt_Priority'First + 1);
-- Total size of the interrupt stack per processor. Each processor
-- allocates an individual interrupt stack frame for each priority level.
Interrupt_Sec_Stack_Size : constant := 128;
-- Size of the secondary stack for interrupt handlers
Exception_Stack_Size : constant := 4096; -- bytes
-- Size for each processor exception stack.
----------
-- CPUS --
----------
Max_Number_Of_CPUs : constant := 1;
-- Maximum number of CPUs
Multiprocessor : constant Boolean := Max_Number_Of_CPUs /= 1;
-- Are we on a multiprocessor board?
end System.BB.Parameters;
| 49.157895 | 79 | 0.533012 |
0ee751a22470bdf3ada2cd0132f273414c5edea7 | 4,264 | ads | Ada | arch/ARM/STM32/svd/stm32l0x3/stm32_svd-aes.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 2 | 2018-05-16T03:56:39.000Z | 2019-07-31T13:53:56.000Z | arch/ARM/STM32/svd/stm32l0x3/stm32_svd-aes.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | arch/ARM/STM32/svd/stm32l0x3/stm32_svd-aes.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | -- This spec has been automatically generated from STM32L0x3.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.AES is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_DATATYPE_Field is HAL.UInt2;
subtype CR_MODE_Field is HAL.UInt2;
subtype CR_CHMOD_Field is HAL.UInt2;
-- control register
type CR_Register is record
-- AES enable
EN : Boolean := False;
-- Data type selection (for data in and data out to/from the
-- cryptographic block)
DATATYPE : CR_DATATYPE_Field := 16#0#;
-- AES operating mode
MODE : CR_MODE_Field := 16#0#;
-- AES chaining mode
CHMOD : CR_CHMOD_Field := 16#0#;
-- Computation Complete Flag Clear
CCFC : Boolean := False;
-- Error clear
ERRC : Boolean := False;
-- CCF flag interrupt enable
CCFIE : Boolean := False;
-- Error interrupt enable
ERRIE : Boolean := False;
-- Enable DMA management of data input phase
DMAINEN : Boolean := False;
-- Enable DMA management of data output phase
DMAOUTEN : Boolean := False;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR_Register use record
EN at 0 range 0 .. 0;
DATATYPE at 0 range 1 .. 2;
MODE at 0 range 3 .. 4;
CHMOD at 0 range 5 .. 6;
CCFC at 0 range 7 .. 7;
ERRC at 0 range 8 .. 8;
CCFIE at 0 range 9 .. 9;
ERRIE at 0 range 10 .. 10;
DMAINEN at 0 range 11 .. 11;
DMAOUTEN at 0 range 12 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
-- status register
type SR_Register is record
-- Read-only. Computation complete flag
CCF : Boolean;
-- Read-only. Read error flag
RDERR : Boolean;
-- Read-only. Write error flag
WRERR : Boolean;
-- unspecified
Reserved_3_31 : HAL.UInt29;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register use record
CCF at 0 range 0 .. 0;
RDERR at 0 range 1 .. 1;
WRERR at 0 range 2 .. 2;
Reserved_3_31 at 0 range 3 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Advanced encryption standard hardware accelerator
type AES_Peripheral is record
-- control register
CR : aliased CR_Register;
-- status register
SR : aliased SR_Register;
-- data input register
DINR : aliased HAL.UInt32;
-- data output register
DOUTR : aliased HAL.UInt32;
-- key register 0
KEYR0 : aliased HAL.UInt32;
-- key register 1
KEYR1 : aliased HAL.UInt32;
-- key register 2
KEYR2 : aliased HAL.UInt32;
-- key register 3
KEYR3 : aliased HAL.UInt32;
-- initialization vector register 0
IVR0 : aliased HAL.UInt32;
-- initialization vector register 1
IVR1 : aliased HAL.UInt32;
-- initialization vector register 2
IVR2 : aliased HAL.UInt32;
-- initialization vector register 3
IVR3 : aliased HAL.UInt32;
end record
with Volatile;
for AES_Peripheral use record
CR at 16#0# range 0 .. 31;
SR at 16#4# range 0 .. 31;
DINR at 16#8# range 0 .. 31;
DOUTR at 16#C# range 0 .. 31;
KEYR0 at 16#10# range 0 .. 31;
KEYR1 at 16#14# range 0 .. 31;
KEYR2 at 16#18# range 0 .. 31;
KEYR3 at 16#1C# range 0 .. 31;
IVR0 at 16#20# range 0 .. 31;
IVR1 at 16#24# range 0 .. 31;
IVR2 at 16#28# range 0 .. 31;
IVR3 at 16#2C# range 0 .. 31;
end record;
-- Advanced encryption standard hardware accelerator
AES_Periph : aliased AES_Peripheral
with Import, Address => System'To_Address (16#40026000#);
end STM32_SVD.AES;
| 30.898551 | 67 | 0.560976 |
c5eb15a42986276cebb6fb63d5d6f41cbbe65f86 | 3,096 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1307b.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1307b.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1307b.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- CC1307B.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.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT AN ENUMERATION LITERAL (BOTH AN IDENTIFIER AND A
-- CHARACTER LITERAL) MAY BE USED AS A DEFAULT SUBPROGRAM NAME
-- AND AS A DEFAULT INITIAL VALUE FOR AN OBJECT PARAMETER.
-- HISTORY:
-- BCB 08/09/88 CREATED ORIGINAL TEST.
WITH REPORT; USE REPORT;
PROCEDURE CC1307B IS
TYPE ENUM IS (R, 'S', R1);
BEGIN
TEST ("CC1307B", "CHECK THAT AN ENUMERATION LITERAL (BOTH AN " &
"IDENTIFIER AND A CHARACTER LITERAL) MAY BE " &
"USED AS A DEFAULT SUBPROGRAM NAME AND AS A " &
"DEFAULT INITIAL VALUE FOR AN OBJECT PARAMETER");
DECLARE
GENERIC
WITH FUNCTION J RETURN ENUM IS R;
WITH FUNCTION K RETURN ENUM IS 'S';
OBJ1 : ENUM := R;
OBJ2 : ENUM := 'S';
PACKAGE P IS
END P;
PACKAGE BODY P IS
VAR1, VAR2 : ENUM := R1;
BEGIN
VAR1 := J;
IF VAR1 /= R THEN
FAILED ("WRONG VALUE FOR DEFAULT SUBPROGRAM " &
"NAME - IDENTIFIER");
END IF;
VAR2 := K;
IF VAR2 /= 'S' THEN
FAILED ("WRONG VALUE FOR DEFAULT SUBPROGRAM " &
"NAME - CHARACTER LITERAL");
END IF;
IF OBJ1 /= R THEN
FAILED ("WRONG VALUE FOR OBJECT PARAMETER - " &
"IDENTIFIER");
END IF;
IF OBJ2 /= 'S' THEN
FAILED ("WRONG VALUE FOR OBJECT PARAMETER - " &
"CHARACTER LITERAL");
END IF;
END P;
PACKAGE NEW_P IS NEW P;
BEGIN
NULL;
END;
RESULT;
END CC1307B;
| 34.786517 | 79 | 0.550711 |
d09969f0579ea1603b98ad865c57e4ebaccd8e23 | 2,876 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5014c.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5014c.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5014c.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- CD5014C.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.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT AN ADDRESS CLAUSE CAN BE GIVEN IN THE PRIVATE PART
-- OF A GENERIC PACKAGE SPECIFICATION FOR A VARIABLE OF AN INTEGER
-- TYPE, WHERE THE VARIABLE IS DECLARED IN THE VISIBLE PART OF THE
-- SPECIFICATION.
-- HISTORY:
-- CDJ 07/24/87 CREATED ORIGINAL TEST.
-- BCB 09/30/87 CHANGED TEST TO STANDARD FORMAT.
-- PWB 05/11/89 CHANGED EXTENSION FROM '.DEP' TO '.ADA'.
-- MCH 04/03/90 ADDED INSTANTIATION.
WITH SYSTEM; USE SYSTEM;
WITH SPPRT13; USE SPPRT13;
WITH REPORT; USE REPORT;
PROCEDURE CD5014C IS
BEGIN
TEST ("CD5014C", " AN ADDRESS CLAUSE CAN BE GIVEN " &
"IN THE PRIVATE PART OF A GENERIC PACKAGE " &
"SPECIFICATION FOR A VARIABLE OF AN INTEGER " &
"TYPE, WHERE THE VARIABLE IS DECLARED IN THE " &
"VISIBLE PART OF THE SPECIFICATION");
DECLARE
GENERIC
PACKAGE PKG IS
TYPE INTEGER_TYPE IS RANGE 0 .. 100;
INTEGER_OBJ1 : INTEGER_TYPE := 50;
PRIVATE
FOR INTEGER_OBJ1 USE AT VARIABLE_ADDRESS;
END PKG;
PACKAGE BODY PKG IS
BEGIN
IF EQUAL(3,3) THEN
INTEGER_OBJ1 := 7;
END IF;
IF INTEGER_OBJ1 /= 7 THEN
FAILED ("INCORRECT VALUE FOR INTEGER VARIABLE");
END IF;
IF INTEGER_OBJ1'ADDRESS /= VARIABLE_ADDRESS THEN
FAILED ("INCORRECT ADDRESS FOR INTEGER VARIABLE");
END IF;
END PKG;
PACKAGE INSTANTIATE IS NEW PKG;
BEGIN
NULL;
END;
RESULT;
END CD5014C;
| 33.835294 | 79 | 0.626912 |
0ec3ef4481409b9d9cc494623fe61e3d551dda5c | 91,511 | adb | Ada | gcc-gcc-7_3_0-release/gcc/ada/exp_pakd.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/ada/exp_pakd.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/exp_pakd.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E X P _ P A K D --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Atree; use Atree;
with Checks; use Checks;
with Einfo; use Einfo;
with Errout; use Errout;
with Exp_Dbug; use Exp_Dbug;
with Exp_Util; use Exp_Util;
with Layout; use Layout;
with Lib.Xref; use Lib.Xref;
with Namet; use Namet;
with Nlists; use Nlists;
with Nmake; use Nmake;
with Opt; use Opt;
with Sem; use Sem;
with Sem_Aux; use Sem_Aux;
with Sem_Ch3; use Sem_Ch3;
with Sem_Ch8; use Sem_Ch8;
with Sem_Ch13; use Sem_Ch13;
with Sem_Eval; use Sem_Eval;
with Sem_Res; use Sem_Res;
with Sem_Util; use Sem_Util;
with Sinfo; use Sinfo;
with Snames; use Snames;
with Stand; use Stand;
with Targparm; use Targparm;
with Tbuild; use Tbuild;
with Ttypes; use Ttypes;
with Uintp; use Uintp;
package body Exp_Pakd is
---------------------------
-- Endian Considerations --
---------------------------
-- As described in the specification, bit numbering in a packed array
-- is consistent with bit numbering in a record representation clause,
-- and hence dependent on the endianness of the machine:
-- For little-endian machines, element zero is at the right hand end
-- (low order end) of a bit field.
-- For big-endian machines, element zero is at the left hand end
-- (high order end) of a bit field.
-- The shifts that are used to right justify a field therefore differ in
-- the two cases. For the little-endian case, we can simply use the bit
-- number (i.e. the element number * element size) as the count for a right
-- shift. For the big-endian case, we have to subtract the shift count from
-- an appropriate constant to use in the right shift. We use rotates
-- instead of shifts (which is necessary in the store case to preserve
-- other fields), and we expect that the backend will be able to change the
-- right rotate into a left rotate, avoiding the subtract, if the machine
-- architecture provides such an instruction.
-----------------------
-- Local Subprograms --
-----------------------
procedure Compute_Linear_Subscript
(Atyp : Entity_Id;
N : Node_Id;
Subscr : out Node_Id);
-- Given a constrained array type Atyp, and an indexed component node N
-- referencing an array object of this type, build an expression of type
-- Standard.Integer representing the zero-based linear subscript value.
-- This expression includes any required range checks.
function Compute_Number_Components
(N : Node_Id;
Typ : Entity_Id) return Node_Id;
-- Build an expression that multiplies the length of the dimensions of the
-- array, used to control array equality checks.
procedure Convert_To_PAT_Type (Aexp : Node_Id);
-- Given an expression of a packed array type, builds a corresponding
-- expression whose type is the implementation type used to represent
-- the packed array. Aexp is analyzed and resolved on entry and on exit.
procedure Get_Base_And_Bit_Offset
(N : Node_Id;
Base : out Node_Id;
Offset : out Node_Id);
-- Given a node N for a name which involves a packed array reference,
-- return the base object of the reference and build an expression of
-- type Standard.Integer representing the zero-based offset in bits
-- from Base'Address to the first bit of the reference.
function Known_Aligned_Enough (Obj : Node_Id; Csiz : Nat) return Boolean;
-- There are two versions of the Set routines, the ones used when the
-- object is known to be sufficiently well aligned given the number of
-- bits, and the ones used when the object is not known to be aligned.
-- This routine is used to determine which set to use. Obj is a reference
-- to the object, and Csiz is the component size of the packed array.
-- True is returned if the alignment of object is known to be sufficient,
-- defined as 1 for odd bit sizes, 4 for bit sizes divisible by 4, and
-- 2 otherwise.
function Make_Shift_Left (N : Node_Id; S : Node_Id) return Node_Id;
-- Build a left shift node, checking for the case of a shift count of zero
function Make_Shift_Right (N : Node_Id; S : Node_Id) return Node_Id;
-- Build a right shift node, checking for the case of a shift count of zero
function RJ_Unchecked_Convert_To
(Typ : Entity_Id;
Expr : Node_Id) return Node_Id;
-- The packed array code does unchecked conversions which in some cases
-- may involve non-discrete types with differing sizes. The semantics of
-- such conversions is potentially endianness dependent, and the effect
-- we want here for such a conversion is to do the conversion in size as
-- though numeric items are involved, and we extend or truncate on the
-- left side. This happens naturally in the little-endian case, but in
-- the big endian case we can get left justification, when what we want
-- is right justification. This routine does the unchecked conversion in
-- a stepwise manner to ensure that it gives the expected result. Hence
-- the name (RJ = Right justified). The parameters Typ and Expr are as
-- for the case of a normal Unchecked_Convert_To call.
procedure Setup_Enumeration_Packed_Array_Reference (N : Node_Id);
-- This routine is called in the Get and Set case for arrays that are
-- packed but not bit-packed, meaning that they have at least one
-- subscript that is of an enumeration type with a non-standard
-- representation. This routine modifies the given node to properly
-- reference the corresponding packed array type.
procedure Setup_Inline_Packed_Array_Reference
(N : Node_Id;
Atyp : Entity_Id;
Obj : in out Node_Id;
Cmask : out Uint;
Shift : out Node_Id);
-- This procedure performs common processing on the N_Indexed_Component
-- parameter given as N, whose prefix is a reference to a packed array.
-- This is used for the get and set when the component size is 1, 2, 4,
-- or for other component sizes when the packed array type is a modular
-- type (i.e. the cases that are handled with inline code).
--
-- On entry:
--
-- N is the N_Indexed_Component node for the packed array reference
--
-- Atyp is the constrained array type (the actual subtype has been
-- computed if necessary to obtain the constraints, but this is still
-- the original array type, not the Packed_Array_Impl_Type value).
--
-- Obj is the object which is to be indexed. It is always of type Atyp.
--
-- On return:
--
-- Obj is the object containing the desired bit field. It is of type
-- Unsigned, Long_Unsigned, or Long_Long_Unsigned, and is either the
-- entire value, for the small static case, or the proper selected byte
-- from the array in the large or dynamic case. This node is analyzed
-- and resolved on return.
--
-- Shift is a node representing the shift count to be used in the
-- rotate right instruction that positions the field for access.
-- This node is analyzed and resolved on return.
--
-- Cmask is a mask corresponding to the width of the component field.
-- Its value is 2 ** Csize - 1 (e.g. 2#1111# for component size of 4).
--
-- Note: in some cases the call to this routine may generate actions
-- (for handling multi-use references and the generation of the packed
-- array type on the fly). Such actions are inserted into the tree
-- directly using Insert_Action.
function Revert_Storage_Order (N : Node_Id) return Node_Id;
-- Perform appropriate justification and byte ordering adjustments for N,
-- an element of a packed array type, when both the component type and
-- the enclosing packed array type have reverse scalar storage order.
-- On little-endian targets, the value is left justified before byte
-- swapping. The Etype of the returned expression is an integer type of
-- an appropriate power-of-2 size.
--------------------------
-- Revert_Storage_Order --
--------------------------
function Revert_Storage_Order (N : Node_Id) return Node_Id is
Loc : constant Source_Ptr := Sloc (N);
T : constant Entity_Id := Etype (N);
T_Size : constant Uint := RM_Size (T);
Swap_RE : RE_Id;
Swap_F : Entity_Id;
Swap_T : Entity_Id;
-- Swapping function
Arg : Node_Id;
Adjusted : Node_Id;
Shift : Uint;
begin
if T_Size <= 8 then
-- Array component size is less than a byte: no swapping needed
Swap_F := Empty;
Swap_T := RTE (RE_Unsigned_8);
else
-- Select byte swapping function depending on array component size
if T_Size <= 16 then
Swap_RE := RE_Bswap_16;
elsif T_Size <= 32 then
Swap_RE := RE_Bswap_32;
else pragma Assert (T_Size <= 64);
Swap_RE := RE_Bswap_64;
end if;
Swap_F := RTE (Swap_RE);
Swap_T := Etype (Swap_F);
end if;
Shift := Esize (Swap_T) - T_Size;
Arg := RJ_Unchecked_Convert_To (Swap_T, N);
if not Bytes_Big_Endian and then Shift > Uint_0 then
Arg :=
Make_Op_Shift_Left (Loc,
Left_Opnd => Arg,
Right_Opnd => Make_Integer_Literal (Loc, Shift));
end if;
if Present (Swap_F) then
Adjusted :=
Make_Function_Call (Loc,
Name => New_Occurrence_Of (Swap_F, Loc),
Parameter_Associations => New_List (Arg));
else
Adjusted := Arg;
end if;
Set_Etype (Adjusted, Swap_T);
return Adjusted;
end Revert_Storage_Order;
------------------------------
-- Compute_Linear_Subscript --
------------------------------
procedure Compute_Linear_Subscript
(Atyp : Entity_Id;
N : Node_Id;
Subscr : out Node_Id)
is
Loc : constant Source_Ptr := Sloc (N);
Oldsub : Node_Id;
Newsub : Node_Id;
Indx : Node_Id;
Styp : Entity_Id;
begin
Subscr := Empty;
-- Loop through dimensions
Indx := First_Index (Atyp);
Oldsub := First (Expressions (N));
while Present (Indx) loop
Styp := Etype (Indx);
Newsub := Relocate_Node (Oldsub);
-- Get expression for the subscript value. First, if Do_Range_Check
-- is set on a subscript, then we must do a range check against the
-- original bounds (not the bounds of the packed array type). We do
-- this by introducing a subtype conversion.
if Do_Range_Check (Newsub)
and then Etype (Newsub) /= Styp
then
Newsub := Convert_To (Styp, Newsub);
end if;
-- Now evolve the expression for the subscript. First convert
-- the subscript to be zero based and of an integer type.
-- Case of integer type, where we just subtract to get lower bound
if Is_Integer_Type (Styp) then
-- If length of integer type is smaller than standard integer,
-- then we convert to integer first, then do the subtract
-- Integer (subscript) - Integer (Styp'First)
if Esize (Styp) < Esize (Standard_Integer) then
Newsub :=
Make_Op_Subtract (Loc,
Left_Opnd => Convert_To (Standard_Integer, Newsub),
Right_Opnd =>
Convert_To (Standard_Integer,
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Styp, Loc),
Attribute_Name => Name_First)));
-- For larger integer types, subtract first, then convert to
-- integer, this deals with strange long long integer bounds.
-- Integer (subscript - Styp'First)
else
Newsub :=
Convert_To (Standard_Integer,
Make_Op_Subtract (Loc,
Left_Opnd => Newsub,
Right_Opnd =>
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Styp, Loc),
Attribute_Name => Name_First)));
end if;
-- For the enumeration case, we have to use 'Pos to get the value
-- to work with before subtracting the lower bound.
-- Integer (Styp'Pos (subscr)) - Integer (Styp'Pos (Styp'First));
-- This is not quite right for bizarre cases where the size of the
-- enumeration type is > Integer'Size bits due to rep clause ???
else
pragma Assert (Is_Enumeration_Type (Styp));
Newsub :=
Make_Op_Subtract (Loc,
Left_Opnd => Convert_To (Standard_Integer,
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Styp, Loc),
Attribute_Name => Name_Pos,
Expressions => New_List (Newsub))),
Right_Opnd =>
Convert_To (Standard_Integer,
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Styp, Loc),
Attribute_Name => Name_Pos,
Expressions => New_List (
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Styp, Loc),
Attribute_Name => Name_First)))));
end if;
Set_Paren_Count (Newsub, 1);
-- For the first subscript, we just copy that subscript value
if No (Subscr) then
Subscr := Newsub;
-- Otherwise, we must multiply what we already have by the current
-- stride and then add in the new value to the evolving subscript.
else
Subscr :=
Make_Op_Add (Loc,
Left_Opnd =>
Make_Op_Multiply (Loc,
Left_Opnd => Subscr,
Right_Opnd =>
Make_Attribute_Reference (Loc,
Attribute_Name => Name_Range_Length,
Prefix => New_Occurrence_Of (Styp, Loc))),
Right_Opnd => Newsub);
end if;
-- Move to next subscript
Next_Index (Indx);
Next (Oldsub);
end loop;
end Compute_Linear_Subscript;
-------------------------------
-- Compute_Number_Components --
-------------------------------
function Compute_Number_Components
(N : Node_Id;
Typ : Entity_Id) return Node_Id
is
Loc : constant Source_Ptr := Sloc (N);
Len_Expr : Node_Id;
begin
Len_Expr :=
Make_Attribute_Reference (Loc,
Attribute_Name => Name_Length,
Prefix => New_Occurrence_Of (Typ, Loc),
Expressions => New_List (Make_Integer_Literal (Loc, 1)));
for J in 2 .. Number_Dimensions (Typ) loop
Len_Expr :=
Make_Op_Multiply (Loc,
Left_Opnd => Len_Expr,
Right_Opnd =>
Make_Attribute_Reference (Loc,
Attribute_Name => Name_Length,
Prefix => New_Occurrence_Of (Typ, Loc),
Expressions => New_List (Make_Integer_Literal (Loc, J))));
end loop;
return Len_Expr;
end Compute_Number_Components;
-------------------------
-- Convert_To_PAT_Type --
-------------------------
-- The PAT is always obtained from the actual subtype
procedure Convert_To_PAT_Type (Aexp : Node_Id) is
Act_ST : Entity_Id;
begin
Convert_To_Actual_Subtype (Aexp);
Act_ST := Underlying_Type (Etype (Aexp));
Create_Packed_Array_Impl_Type (Act_ST);
-- Just replace the etype with the packed array type. This works because
-- the expression will not be further analyzed, and Gigi considers the
-- two types equivalent in any case.
-- This is not strictly the case ??? If the reference is an actual in
-- call, the expansion of the prefix is delayed, and must be reanalyzed,
-- see Reset_Packed_Prefix. On the other hand, if the prefix is a simple
-- array reference, reanalysis can produce spurious type errors when the
-- PAT type is replaced again with the original type of the array. Same
-- for the case of a dereference. Ditto for function calls: expansion
-- may introduce additional actuals which will trigger errors if call is
-- reanalyzed. The following is correct and minimal, but the handling of
-- more complex packed expressions in actuals is confused. Probably the
-- problem only remains for actuals in calls.
Set_Etype (Aexp, Packed_Array_Impl_Type (Act_ST));
if Is_Entity_Name (Aexp)
or else
(Nkind (Aexp) = N_Indexed_Component
and then Is_Entity_Name (Prefix (Aexp)))
or else Nkind_In (Aexp, N_Explicit_Dereference, N_Function_Call)
then
Set_Analyzed (Aexp);
end if;
end Convert_To_PAT_Type;
-----------------------------------
-- Create_Packed_Array_Impl_Type --
-----------------------------------
procedure Create_Packed_Array_Impl_Type (Typ : Entity_Id) is
Loc : constant Source_Ptr := Sloc (Typ);
Ctyp : constant Entity_Id := Component_Type (Typ);
Csize : constant Uint := Component_Size (Typ);
Ancest : Entity_Id;
PB_Type : Entity_Id;
PASize : Uint;
Decl : Node_Id;
PAT : Entity_Id;
Len_Expr : Node_Id;
Len_Bits : Uint;
Bits_U1 : Node_Id;
PAT_High : Node_Id;
Btyp : Entity_Id;
Lit : Node_Id;
procedure Install_PAT;
-- This procedure is called with Decl set to the declaration for the
-- packed array type. It creates the type and installs it as required.
procedure Set_PB_Type;
-- Sets PB_Type to Packed_Bytes{1,2,4} as required by the alignment
-- requirements (see documentation in the spec of this package).
-----------------
-- Install_PAT --
-----------------
procedure Install_PAT is
Pushed_Scope : Boolean := False;
begin
-- We do not want to put the declaration we have created in the tree
-- since it is often hard, and sometimes impossible to find a proper
-- place for it (the impossible case arises for a packed array type
-- with bounds depending on the discriminant, a declaration cannot
-- be put inside the record, and the reference to the discriminant
-- cannot be outside the record).
-- The solution is to analyze the declaration while temporarily
-- attached to the tree at an appropriate point, and then we install
-- the resulting type as an Itype in the packed array type field of
-- the original type, so that no explicit declaration is required.
-- Note: the packed type is created in the scope of its parent type.
-- There are at least some cases where the current scope is deeper,
-- and so when this is the case, we temporarily reset the scope
-- for the definition. This is clearly safe, since the first use
-- of the packed array type will be the implicit reference from
-- the corresponding unpacked type when it is elaborated.
if Is_Itype (Typ) then
Set_Parent (Decl, Associated_Node_For_Itype (Typ));
else
Set_Parent (Decl, Declaration_Node (Typ));
end if;
if Scope (Typ) /= Current_Scope then
Push_Scope (Scope (Typ));
Pushed_Scope := True;
end if;
Set_Is_Itype (PAT, True);
Set_Is_Packed_Array_Impl_Type (PAT, True);
Set_Packed_Array_Impl_Type (Typ, PAT);
Analyze (Decl, Suppress => All_Checks);
if Pushed_Scope then
Pop_Scope;
end if;
-- Set Esize and RM_Size to the actual size of the packed object
-- Do not reset RM_Size if already set, as happens in the case of
-- a modular type.
if Unknown_Esize (PAT) then
Set_Esize (PAT, PASize);
end if;
if Unknown_RM_Size (PAT) then
Set_RM_Size (PAT, PASize);
end if;
Adjust_Esize_Alignment (PAT);
-- Set remaining fields of packed array type
Init_Alignment (PAT);
Set_Parent (PAT, Empty);
Set_Associated_Node_For_Itype (PAT, Typ);
Set_Original_Array_Type (PAT, Typ);
-- Propagate representation aspects
Set_Is_Atomic (PAT, Is_Atomic (Typ));
Set_Is_Independent (PAT, Is_Independent (Typ));
Set_Is_Volatile (PAT, Is_Volatile (Typ));
Set_Is_Volatile_Full_Access (PAT, Is_Volatile_Full_Access (Typ));
Set_Treat_As_Volatile (PAT, Treat_As_Volatile (Typ));
-- For a non-bit-packed array, propagate reverse storage order
-- flag from original base type to packed array base type.
if not Is_Bit_Packed_Array (Typ) then
Set_Reverse_Storage_Order
(Etype (PAT), Reverse_Storage_Order (Base_Type (Typ)));
end if;
-- We definitely do not want to delay freezing for packed array
-- types. This is of particular importance for the itypes that are
-- generated for record components depending on discriminants where
-- there is no place to put the freeze node.
Set_Has_Delayed_Freeze (PAT, False);
Set_Has_Delayed_Freeze (Etype (PAT), False);
-- If we did allocate a freeze node, then clear out the reference
-- since it is obsolete (should we delete the freeze node???)
Set_Freeze_Node (PAT, Empty);
Set_Freeze_Node (Etype (PAT), Empty);
end Install_PAT;
-----------------
-- Set_PB_Type --
-----------------
procedure Set_PB_Type is
begin
-- If the user has specified an explicit alignment for the
-- type or component, take it into account.
if Csize <= 2 or else Csize = 4 or else Csize mod 2 /= 0
or else Alignment (Typ) = 1
or else Component_Alignment (Typ) = Calign_Storage_Unit
then
PB_Type := RTE (RE_Packed_Bytes1);
elsif Csize mod 4 /= 0
or else Alignment (Typ) = 2
then
PB_Type := RTE (RE_Packed_Bytes2);
else
PB_Type := RTE (RE_Packed_Bytes4);
end if;
end Set_PB_Type;
-- Start of processing for Create_Packed_Array_Impl_Type
begin
-- If we already have a packed array type, nothing to do
if Present (Packed_Array_Impl_Type (Typ)) then
return;
end if;
-- If our immediate ancestor subtype is constrained, and it already
-- has a packed array type, then just share the same type, since the
-- bounds must be the same. If the ancestor is not an array type but
-- a private type, as can happen with multiple instantiations, create
-- a new packed type, to avoid privacy issues.
if Ekind (Typ) = E_Array_Subtype then
Ancest := Ancestor_Subtype (Typ);
if Present (Ancest)
and then Is_Array_Type (Ancest)
and then Is_Constrained (Ancest)
and then Present (Packed_Array_Impl_Type (Ancest))
then
Set_Packed_Array_Impl_Type (Typ, Packed_Array_Impl_Type (Ancest));
return;
end if;
end if;
-- We preset the result type size from the size of the original array
-- type, since this size clearly belongs to the packed array type. The
-- size of the conceptual unpacked type is always set to unknown.
PASize := RM_Size (Typ);
-- Case of an array where at least one index is of an enumeration
-- type with a non-standard representation, but the component size
-- is not appropriate for bit packing. This is the case where we
-- have Is_Packed set (we would never be in this unit otherwise),
-- but Is_Bit_Packed_Array is false.
-- Note that if the component size is appropriate for bit packing,
-- then the circuit for the computation of the subscript properly
-- deals with the non-standard enumeration type case by taking the
-- Pos anyway.
if not Is_Bit_Packed_Array (Typ) then
-- Here we build a declaration:
-- type tttP is array (index1, index2, ...) of component_type
-- where index1, index2, are the index types. These are the same
-- as the index types of the original array, except for the non-
-- standard representation enumeration type case, where we have
-- two subcases.
-- For the unconstrained array case, we use
-- Natural range <>
-- For the constrained case, we use
-- Natural range Enum_Type'Pos (Enum_Type'First) ..
-- Enum_Type'Pos (Enum_Type'Last);
-- Note that tttP is created even if no index subtype is a non
-- standard enumeration, because we still need to remove padding
-- normally inserted for component alignment.
PAT :=
Make_Defining_Identifier (Loc,
Chars => New_External_Name (Chars (Typ), 'P'));
declare
Indexes : constant List_Id := New_List;
Indx : Node_Id;
Indx_Typ : Entity_Id;
Enum_Case : Boolean;
Typedef : Node_Id;
begin
Indx := First_Index (Typ);
while Present (Indx) loop
Indx_Typ := Etype (Indx);
Enum_Case := Is_Enumeration_Type (Indx_Typ)
and then Has_Non_Standard_Rep (Indx_Typ);
-- Unconstrained case
if not Is_Constrained (Typ) then
if Enum_Case then
Indx_Typ := Standard_Natural;
end if;
Append_To (Indexes, New_Occurrence_Of (Indx_Typ, Loc));
-- Constrained case
else
if not Enum_Case then
Append_To (Indexes, New_Occurrence_Of (Indx_Typ, Loc));
else
Append_To (Indexes,
Make_Subtype_Indication (Loc,
Subtype_Mark =>
New_Occurrence_Of (Standard_Natural, Loc),
Constraint =>
Make_Range_Constraint (Loc,
Range_Expression =>
Make_Range (Loc,
Low_Bound =>
Make_Attribute_Reference (Loc,
Prefix =>
New_Occurrence_Of (Indx_Typ, Loc),
Attribute_Name => Name_Pos,
Expressions => New_List (
Make_Attribute_Reference (Loc,
Prefix =>
New_Occurrence_Of (Indx_Typ, Loc),
Attribute_Name => Name_First))),
High_Bound =>
Make_Attribute_Reference (Loc,
Prefix =>
New_Occurrence_Of (Indx_Typ, Loc),
Attribute_Name => Name_Pos,
Expressions => New_List (
Make_Attribute_Reference (Loc,
Prefix =>
New_Occurrence_Of (Indx_Typ, Loc),
Attribute_Name => Name_Last)))))));
end if;
end if;
Next_Index (Indx);
end loop;
if not Is_Constrained (Typ) then
Typedef :=
Make_Unconstrained_Array_Definition (Loc,
Subtype_Marks => Indexes,
Component_Definition =>
Make_Component_Definition (Loc,
Aliased_Present => False,
Subtype_Indication =>
New_Occurrence_Of (Ctyp, Loc)));
else
Typedef :=
Make_Constrained_Array_Definition (Loc,
Discrete_Subtype_Definitions => Indexes,
Component_Definition =>
Make_Component_Definition (Loc,
Aliased_Present => False,
Subtype_Indication =>
New_Occurrence_Of (Ctyp, Loc)));
end if;
Decl :=
Make_Full_Type_Declaration (Loc,
Defining_Identifier => PAT,
Type_Definition => Typedef);
end;
Install_PAT;
return;
-- Case of bit-packing required for unconstrained array. We create
-- a subtype that is equivalent to use Packed_Bytes{1,2,4} as needed.
elsif not Is_Constrained (Typ) then
-- When generating standard DWARF (i.e when GNAT_Encodings is
-- DWARF_GNAT_Encodings_Minimal), the ___XP suffix will be stripped
-- by the back-end but generate it anyway to ease compiler debugging.
-- This will help to distinguish implementation types from original
-- packed arrays.
PAT :=
Make_Defining_Identifier (Loc,
Chars => Make_Packed_Array_Impl_Type_Name (Typ, Csize));
Set_PB_Type;
Decl :=
Make_Subtype_Declaration (Loc,
Defining_Identifier => PAT,
Subtype_Indication => New_Occurrence_Of (PB_Type, Loc));
Install_PAT;
return;
-- Remaining code is for the case of bit-packing for constrained array
-- The name of the packed array subtype is
-- ttt___XPsss
-- where sss is the component size in bits and ttt is the name of
-- the parent packed type.
else
PAT :=
Make_Defining_Identifier (Loc,
Chars => Make_Packed_Array_Impl_Type_Name (Typ, Csize));
-- Build an expression for the length of the array in bits.
-- This is the product of the length of each of the dimensions
Len_Expr := Compute_Number_Components (Typ, Typ);
-- Temporarily attach the length expression to the tree and analyze
-- and resolve it, so that we can test its value. We assume that the
-- total length fits in type Integer. This expression may involve
-- discriminants, so we treat it as a default/per-object expression.
Set_Parent (Len_Expr, Typ);
Preanalyze_Spec_Expression (Len_Expr, Standard_Long_Long_Integer);
-- Use a modular type if possible. We can do this if we have
-- static bounds, and the length is small enough, and the length
-- is not zero. We exclude the zero length case because the size
-- of things is always at least one, and the zero length object
-- would have an anomalous size.
if Compile_Time_Known_Value (Len_Expr) then
Len_Bits := Expr_Value (Len_Expr) * Csize;
-- Check for size known to be too large
if Len_Bits >
Uint_2 ** (Standard_Integer_Size - 1) * System_Storage_Unit
then
if System_Storage_Unit = 8 then
Error_Msg_N
("packed array size cannot exceed " &
"Integer''Last bytes", Typ);
else
Error_Msg_N
("packed array size cannot exceed " &
"Integer''Last storage units", Typ);
end if;
-- Reset length to arbitrary not too high value to continue
Len_Expr := Make_Integer_Literal (Loc, 65535);
Analyze_And_Resolve (Len_Expr, Standard_Long_Long_Integer);
end if;
-- We normally consider small enough to mean no larger than the
-- value of System_Max_Binary_Modulus_Power, checking that in the
-- case of values longer than word size, we have long shifts.
if Len_Bits > 0
and then
(Len_Bits <= System_Word_Size
or else (Len_Bits <= System_Max_Binary_Modulus_Power
and then Support_Long_Shifts_On_Target))
then
-- We can use the modular type, it has the form:
-- subtype tttPn is btyp
-- range 0 .. 2 ** ((Typ'Length (1)
-- * ... * Typ'Length (n)) * Csize) - 1;
-- The bounds are statically known, and btyp is one of the
-- unsigned types, depending on the length.
if Len_Bits <= Standard_Short_Short_Integer_Size then
Btyp := RTE (RE_Short_Short_Unsigned);
elsif Len_Bits <= Standard_Short_Integer_Size then
Btyp := RTE (RE_Short_Unsigned);
elsif Len_Bits <= Standard_Integer_Size then
Btyp := RTE (RE_Unsigned);
elsif Len_Bits <= Standard_Long_Integer_Size then
Btyp := RTE (RE_Long_Unsigned);
else
Btyp := RTE (RE_Long_Long_Unsigned);
end if;
Lit := Make_Integer_Literal (Loc, 2 ** Len_Bits - 1);
Set_Print_In_Hex (Lit);
Decl :=
Make_Subtype_Declaration (Loc,
Defining_Identifier => PAT,
Subtype_Indication =>
Make_Subtype_Indication (Loc,
Subtype_Mark => New_Occurrence_Of (Btyp, Loc),
Constraint =>
Make_Range_Constraint (Loc,
Range_Expression =>
Make_Range (Loc,
Low_Bound =>
Make_Integer_Literal (Loc, 0),
High_Bound => Lit))));
if PASize = Uint_0 then
PASize := Len_Bits;
end if;
Install_PAT;
-- Propagate a given alignment to the modular type. This can
-- cause it to be under-aligned, but that's OK.
if Present (Alignment_Clause (Typ)) then
Set_Alignment (PAT, Alignment (Typ));
end if;
return;
end if;
end if;
-- Could not use a modular type, for all other cases, we build
-- a packed array subtype:
-- subtype tttPn is
-- System.Packed_Bytes{1,2,4} (0 .. (Bits + 7) / 8 - 1);
-- Bits is the length of the array in bits
Set_PB_Type;
Bits_U1 :=
Make_Op_Add (Loc,
Left_Opnd =>
Make_Op_Multiply (Loc,
Left_Opnd =>
Make_Integer_Literal (Loc, Csize),
Right_Opnd => Len_Expr),
Right_Opnd =>
Make_Integer_Literal (Loc, 7));
Set_Paren_Count (Bits_U1, 1);
PAT_High :=
Make_Op_Subtract (Loc,
Left_Opnd =>
Make_Op_Divide (Loc,
Left_Opnd => Bits_U1,
Right_Opnd => Make_Integer_Literal (Loc, 8)),
Right_Opnd => Make_Integer_Literal (Loc, 1));
Decl :=
Make_Subtype_Declaration (Loc,
Defining_Identifier => PAT,
Subtype_Indication =>
Make_Subtype_Indication (Loc,
Subtype_Mark => New_Occurrence_Of (PB_Type, Loc),
Constraint =>
Make_Index_Or_Discriminant_Constraint (Loc,
Constraints => New_List (
Make_Range (Loc,
Low_Bound =>
Make_Integer_Literal (Loc, 0),
High_Bound =>
Convert_To (Standard_Integer, PAT_High))))));
Install_PAT;
-- Currently the code in this unit requires that packed arrays
-- represented by non-modular arrays of bytes be on a byte
-- boundary for bit sizes handled by System.Pack_nn units.
-- That's because these units assume the array being accessed
-- starts on a byte boundary.
if Get_Id (UI_To_Int (Csize)) /= RE_Null then
Set_Must_Be_On_Byte_Boundary (Typ);
end if;
end if;
end Create_Packed_Array_Impl_Type;
-----------------------------------
-- Expand_Bit_Packed_Element_Set --
-----------------------------------
procedure Expand_Bit_Packed_Element_Set (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Lhs : constant Node_Id := Name (N);
Ass_OK : constant Boolean := Assignment_OK (Lhs);
-- Used to preserve assignment OK status when assignment is rewritten
Rhs : Node_Id := Expression (N);
-- Initially Rhs is the right hand side value, it will be replaced
-- later by an appropriate unchecked conversion for the assignment.
Obj : Node_Id;
Atyp : Entity_Id;
PAT : Entity_Id;
Ctyp : Entity_Id;
Csiz : Int;
Cmask : Uint;
Shift : Node_Id;
-- The expression for the shift value that is required
Shift_Used : Boolean := False;
-- Set True if Shift has been used in the generated code at least once,
-- so that it must be duplicated if used again.
New_Lhs : Node_Id;
New_Rhs : Node_Id;
Rhs_Val_Known : Boolean;
Rhs_Val : Uint;
-- If the value of the right hand side as an integer constant is
-- known at compile time, Rhs_Val_Known is set True, and Rhs_Val
-- contains the value. Otherwise Rhs_Val_Known is set False, and
-- the Rhs_Val is undefined.
function Get_Shift return Node_Id;
-- Function used to get the value of Shift, making sure that it
-- gets duplicated if the function is called more than once.
---------------
-- Get_Shift --
---------------
function Get_Shift return Node_Id is
begin
-- If we used the shift value already, then duplicate it. We
-- set a temporary parent in case actions have to be inserted.
if Shift_Used then
Set_Parent (Shift, N);
return Duplicate_Subexpr_No_Checks (Shift);
-- If first time, use Shift unchanged, and set flag for first use
else
Shift_Used := True;
return Shift;
end if;
end Get_Shift;
-- Start of processing for Expand_Bit_Packed_Element_Set
begin
pragma Assert (Is_Bit_Packed_Array (Etype (Prefix (Lhs))));
Obj := Relocate_Node (Prefix (Lhs));
Convert_To_Actual_Subtype (Obj);
Atyp := Etype (Obj);
PAT := Packed_Array_Impl_Type (Atyp);
Ctyp := Component_Type (Atyp);
Csiz := UI_To_Int (Component_Size (Atyp));
-- We remove side effects, in case the rhs modifies the lhs, because we
-- are about to transform the rhs into an expression that first READS
-- the lhs, so we can do the necessary shifting and masking. Example:
-- "X(2) := F(...);" where F modifies X(3). Otherwise, the side effect
-- will be lost.
Remove_Side_Effects (Rhs);
-- We convert the right hand side to the proper subtype to ensure
-- that an appropriate range check is made (since the normal range
-- check from assignment will be lost in the transformations). This
-- conversion is analyzed immediately so that subsequent processing
-- can work with an analyzed Rhs (and e.g. look at its Etype)
-- If the right-hand side is a string literal, create a temporary for
-- it, constant-folding is not ready to wrap the bit representation
-- of a string literal.
if Nkind (Rhs) = N_String_Literal then
declare
Decl : Node_Id;
begin
Decl :=
Make_Object_Declaration (Loc,
Defining_Identifier => Make_Temporary (Loc, 'T', Rhs),
Object_Definition => New_Occurrence_Of (Ctyp, Loc),
Expression => New_Copy_Tree (Rhs));
Insert_Actions (N, New_List (Decl));
Rhs := New_Occurrence_Of (Defining_Identifier (Decl), Loc);
end;
end if;
Rhs := Convert_To (Ctyp, Rhs);
Set_Parent (Rhs, N);
-- If we are building the initialization procedure for a packed array,
-- and Initialize_Scalars is enabled, each component assignment is an
-- out-of-range value by design. Compile this value without checks,
-- because a call to the array init_proc must not raise an exception.
-- Condition is not consistent with description above, Within_Init_Proc
-- is True also when we are building the IP for a record or protected
-- type that has a packed array component???
if Within_Init_Proc
and then Initialize_Scalars
then
Analyze_And_Resolve (Rhs, Ctyp, Suppress => All_Checks);
else
Analyze_And_Resolve (Rhs, Ctyp);
end if;
-- Case of component size 1,2,4 or any component size for the modular
-- case. These are the cases for which we can inline the code.
if Csiz = 1 or else Csiz = 2 or else Csiz = 4
or else (Present (PAT) and then Is_Modular_Integer_Type (PAT))
then
Setup_Inline_Packed_Array_Reference (Lhs, Atyp, Obj, Cmask, Shift);
-- The statement to be generated is:
-- Obj := atyp!((Obj and Mask1) or (shift_left (rhs, Shift)))
-- or in the case of a freestanding Reverse_Storage_Order object,
-- Obj := Swap (atyp!((Swap (Obj) and Mask1)
-- or (shift_left (rhs, Shift))))
-- where Mask1 is obtained by shifting Cmask left Shift bits
-- and then complementing the result.
-- the "and Mask1" is omitted if rhs is constant and all 1 bits
-- the "or ..." is omitted if rhs is constant and all 0 bits
-- rhs is converted to the appropriate type
-- The result is converted back to the array type, since
-- otherwise we lose knowledge of the packed nature.
-- Determine if right side is all 0 bits or all 1 bits
if Compile_Time_Known_Value (Rhs) then
Rhs_Val := Expr_Rep_Value (Rhs);
Rhs_Val_Known := True;
-- The following test catches the case of an unchecked conversion of
-- an integer literal. This results from optimizing aggregates of
-- packed types.
elsif Nkind (Rhs) = N_Unchecked_Type_Conversion
and then Compile_Time_Known_Value (Expression (Rhs))
then
Rhs_Val := Expr_Rep_Value (Expression (Rhs));
Rhs_Val_Known := True;
else
Rhs_Val := No_Uint;
Rhs_Val_Known := False;
end if;
-- Some special checks for the case where the right hand value is
-- known at compile time. Basically we have to take care of the
-- implicit conversion to the subtype of the component object.
if Rhs_Val_Known then
-- If we have a biased component type then we must manually do the
-- biasing, since we are taking responsibility in this case for
-- constructing the exact bit pattern to be used.
if Has_Biased_Representation (Ctyp) then
Rhs_Val := Rhs_Val - Expr_Rep_Value (Type_Low_Bound (Ctyp));
end if;
-- For a negative value, we manually convert the two's complement
-- value to a corresponding unsigned value, so that the proper
-- field width is maintained. If we did not do this, we would
-- get too many leading sign bits later on.
if Rhs_Val < 0 then
Rhs_Val := 2 ** UI_From_Int (Csiz) + Rhs_Val;
end if;
end if;
-- Now create copies removing side effects. Note that in some complex
-- cases, this may cause the fact that we have already set a packed
-- array type on Obj to get lost. So we save the type of Obj, and
-- make sure it is reset properly.
New_Lhs := Duplicate_Subexpr (Obj, Name_Req => True);
New_Rhs := Duplicate_Subexpr_No_Checks (Obj);
-- First we deal with the "and"
if not Rhs_Val_Known or else Rhs_Val /= Cmask then
declare
Mask1 : Node_Id;
Lit : Node_Id;
begin
if Compile_Time_Known_Value (Shift) then
Mask1 :=
Make_Integer_Literal (Loc,
Modulus (Etype (Obj)) - 1 -
(Cmask * (2 ** Expr_Value (Get_Shift))));
Set_Print_In_Hex (Mask1);
else
Lit := Make_Integer_Literal (Loc, Cmask);
Set_Print_In_Hex (Lit);
Mask1 :=
Make_Op_Not (Loc,
Right_Opnd => Make_Shift_Left (Lit, Get_Shift));
end if;
New_Rhs :=
Make_Op_And (Loc,
Left_Opnd => New_Rhs,
Right_Opnd => Mask1);
end;
end if;
-- Then deal with the "or"
if not Rhs_Val_Known or else Rhs_Val /= 0 then
declare
Or_Rhs : Node_Id;
procedure Fixup_Rhs;
-- Adjust Rhs by bias if biased representation for components
-- or remove extraneous high order sign bits if signed.
procedure Fixup_Rhs is
Etyp : constant Entity_Id := Etype (Rhs);
begin
-- For biased case, do the required biasing by simply
-- converting to the biased subtype (the conversion
-- will generate the required bias).
if Has_Biased_Representation (Ctyp) then
Rhs := Convert_To (Ctyp, Rhs);
-- For a signed integer type that is not biased, generate
-- a conversion to unsigned to strip high order sign bits.
elsif Is_Signed_Integer_Type (Ctyp) then
Rhs := Unchecked_Convert_To (RTE (Bits_Id (Csiz)), Rhs);
end if;
-- Set Etype, since it can be referenced before the node is
-- completely analyzed.
Set_Etype (Rhs, Etyp);
-- We now need to do an unchecked conversion of the
-- result to the target type, but it is important that
-- this conversion be a right justified conversion and
-- not a left justified conversion.
Rhs := RJ_Unchecked_Convert_To (Etype (Obj), Rhs);
end Fixup_Rhs;
begin
if Rhs_Val_Known
and then Compile_Time_Known_Value (Get_Shift)
then
Or_Rhs :=
Make_Integer_Literal (Loc,
Rhs_Val * (2 ** Expr_Value (Get_Shift)));
Set_Print_In_Hex (Or_Rhs);
else
-- We have to convert the right hand side to Etype (Obj).
-- A special case arises if what we have now is a Val
-- attribute reference whose expression type is Etype (Obj).
-- This happens for assignments of fields from the same
-- array. In this case we get the required right hand side
-- by simply removing the inner attribute reference.
if Nkind (Rhs) = N_Attribute_Reference
and then Attribute_Name (Rhs) = Name_Val
and then Etype (First (Expressions (Rhs))) = Etype (Obj)
then
Rhs := Relocate_Node (First (Expressions (Rhs)));
Fixup_Rhs;
-- If the value of the right hand side is a known integer
-- value, then just replace it by an untyped constant,
-- which will be properly retyped when we analyze and
-- resolve the expression.
elsif Rhs_Val_Known then
-- Note that Rhs_Val has already been normalized to
-- be an unsigned value with the proper number of bits.
Rhs := Make_Integer_Literal (Loc, Rhs_Val);
-- Otherwise we need an unchecked conversion
else
Fixup_Rhs;
end if;
Or_Rhs := Make_Shift_Left (Rhs, Get_Shift);
end if;
if Nkind (New_Rhs) = N_Op_And then
Set_Paren_Count (New_Rhs, 1);
Set_Etype (New_Rhs, Etype (Left_Opnd (New_Rhs)));
end if;
New_Rhs :=
Make_Op_Or (Loc,
Left_Opnd => New_Rhs,
Right_Opnd => Or_Rhs);
end;
end if;
-- Now do the rewrite
Rewrite (N,
Make_Assignment_Statement (Loc,
Name => New_Lhs,
Expression =>
Unchecked_Convert_To (Etype (New_Lhs), New_Rhs)));
Set_Assignment_OK (Name (N), Ass_OK);
-- All other component sizes for non-modular case
else
-- We generate
-- Set_nn (Arr'address, Subscr, Bits_nn!(Rhs))
-- where Subscr is the computed linear subscript
declare
Bits_nn : constant Entity_Id := RTE (Bits_Id (Csiz));
Set_nn : Entity_Id;
Subscr : Node_Id;
Atyp : Entity_Id;
Rev_SSO : Node_Id;
begin
if No (Bits_nn) then
-- Error, most likely High_Integrity_Mode restriction
return;
end if;
-- Acquire proper Set entity. We use the aligned or unaligned
-- case as appropriate.
if Known_Aligned_Enough (Obj, Csiz) then
Set_nn := RTE (Set_Id (Csiz));
else
Set_nn := RTE (SetU_Id (Csiz));
end if;
-- Now generate the set reference
Obj := Relocate_Node (Prefix (Lhs));
Convert_To_Actual_Subtype (Obj);
Atyp := Etype (Obj);
Compute_Linear_Subscript (Atyp, Lhs, Subscr);
-- Set indication of whether the packed array has reverse SSO
Rev_SSO :=
New_Occurrence_Of
(Boolean_Literals (Reverse_Storage_Order (Atyp)), Loc);
-- Below we must make the assumption that Obj is
-- at least byte aligned, since otherwise its address
-- cannot be taken. The assumption holds since the
-- only arrays that can be misaligned are small packed
-- arrays which are implemented as a modular type, and
-- that is not the case here.
Rewrite (N,
Make_Procedure_Call_Statement (Loc,
Name => New_Occurrence_Of (Set_nn, Loc),
Parameter_Associations => New_List (
Make_Attribute_Reference (Loc,
Prefix => Obj,
Attribute_Name => Name_Address),
Subscr,
Unchecked_Convert_To (Bits_nn, Convert_To (Ctyp, Rhs)),
Rev_SSO)));
end;
end if;
Analyze (N, Suppress => All_Checks);
end Expand_Bit_Packed_Element_Set;
-------------------------------------
-- Expand_Packed_Address_Reference --
-------------------------------------
procedure Expand_Packed_Address_Reference (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Base : Node_Id;
Offset : Node_Id;
begin
-- We build an expression that has the form
-- outer_object'Address
-- + (linear-subscript * component_size for each array reference
-- + field'Bit_Position for each record field
-- + ...
-- + ...) / Storage_Unit;
Get_Base_And_Bit_Offset (Prefix (N), Base, Offset);
Rewrite (N,
Unchecked_Convert_To (RTE (RE_Address),
Make_Op_Add (Loc,
Left_Opnd =>
Unchecked_Convert_To (RTE (RE_Integer_Address),
Make_Attribute_Reference (Loc,
Prefix => Base,
Attribute_Name => Name_Address)),
Right_Opnd =>
Unchecked_Convert_To (RTE (RE_Integer_Address),
Make_Op_Divide (Loc,
Left_Opnd => Offset,
Right_Opnd =>
Make_Integer_Literal (Loc, System_Storage_Unit))))));
Analyze_And_Resolve (N, RTE (RE_Address));
end Expand_Packed_Address_Reference;
---------------------------------
-- Expand_Packed_Bit_Reference --
---------------------------------
procedure Expand_Packed_Bit_Reference (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Base : Node_Id;
Offset : Node_Id;
begin
-- We build an expression that has the form
-- (linear-subscript * component_size for each array reference
-- + field'Bit_Position for each record field
-- + ...
-- + ...) mod Storage_Unit;
Get_Base_And_Bit_Offset (Prefix (N), Base, Offset);
Rewrite (N,
Unchecked_Convert_To (Universal_Integer,
Make_Op_Mod (Loc,
Left_Opnd => Offset,
Right_Opnd => Make_Integer_Literal (Loc, System_Storage_Unit))));
Analyze_And_Resolve (N, Universal_Integer);
end Expand_Packed_Bit_Reference;
------------------------------------
-- Expand_Packed_Boolean_Operator --
------------------------------------
-- This routine expands "a op b" for the packed cases
procedure Expand_Packed_Boolean_Operator (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Typ : constant Entity_Id := Etype (N);
L : constant Node_Id := Relocate_Node (Left_Opnd (N));
R : constant Node_Id := Relocate_Node (Right_Opnd (N));
Ltyp : Entity_Id;
Rtyp : Entity_Id;
PAT : Entity_Id;
begin
Convert_To_Actual_Subtype (L);
Convert_To_Actual_Subtype (R);
Ensure_Defined (Etype (L), N);
Ensure_Defined (Etype (R), N);
Apply_Length_Check (R, Etype (L));
Ltyp := Etype (L);
Rtyp := Etype (R);
-- Deal with silly case of XOR where the subcomponent has a range
-- True .. True where an exception must be raised.
if Nkind (N) = N_Op_Xor then
Silly_Boolean_Array_Xor_Test (N, Rtyp);
end if;
-- Now that that silliness is taken care of, get packed array type
Convert_To_PAT_Type (L);
Convert_To_PAT_Type (R);
PAT := Etype (L);
-- For the modular case, we expand a op b into
-- rtyp!(pat!(a) op pat!(b))
-- where rtyp is the Etype of the left operand. Note that we do not
-- convert to the base type, since this would be unconstrained, and
-- hence not have a corresponding packed array type set.
-- Note that both operands must be modular for this code to be used
if Is_Modular_Integer_Type (PAT)
and then
Is_Modular_Integer_Type (Etype (R))
then
declare
P : Node_Id;
begin
if Nkind (N) = N_Op_And then
P := Make_Op_And (Loc, L, R);
elsif Nkind (N) = N_Op_Or then
P := Make_Op_Or (Loc, L, R);
else -- Nkind (N) = N_Op_Xor
P := Make_Op_Xor (Loc, L, R);
end if;
Rewrite (N, Unchecked_Convert_To (Ltyp, P));
end;
-- For the array case, we insert the actions
-- Result : Ltype;
-- System.Bit_Ops.Bit_And/Or/Xor
-- (Left'Address,
-- Ltype'Length * Ltype'Component_Size;
-- Right'Address,
-- Rtype'Length * Rtype'Component_Size
-- Result'Address);
-- where Left and Right are the Packed_Bytes{1,2,4} operands and
-- the second argument and fourth arguments are the lengths of the
-- operands in bits. Then we replace the expression by a reference
-- to Result.
-- Note that if we are mixing a modular and array operand, everything
-- works fine, since we ensure that the modular representation has the
-- same physical layout as the array representation (that's what the
-- left justified modular stuff in the big-endian case is about).
else
declare
Result_Ent : constant Entity_Id := Make_Temporary (Loc, 'T');
E_Id : RE_Id;
begin
if Nkind (N) = N_Op_And then
E_Id := RE_Bit_And;
elsif Nkind (N) = N_Op_Or then
E_Id := RE_Bit_Or;
else -- Nkind (N) = N_Op_Xor
E_Id := RE_Bit_Xor;
end if;
Insert_Actions (N, New_List (
Make_Object_Declaration (Loc,
Defining_Identifier => Result_Ent,
Object_Definition => New_Occurrence_Of (Ltyp, Loc)),
Make_Procedure_Call_Statement (Loc,
Name => New_Occurrence_Of (RTE (E_Id), Loc),
Parameter_Associations => New_List (
Make_Byte_Aligned_Attribute_Reference (Loc,
Prefix => L,
Attribute_Name => Name_Address),
Make_Op_Multiply (Loc,
Left_Opnd =>
Make_Attribute_Reference (Loc,
Prefix =>
New_Occurrence_Of
(Etype (First_Index (Ltyp)), Loc),
Attribute_Name => Name_Range_Length),
Right_Opnd =>
Make_Integer_Literal (Loc, Component_Size (Ltyp))),
Make_Byte_Aligned_Attribute_Reference (Loc,
Prefix => R,
Attribute_Name => Name_Address),
Make_Op_Multiply (Loc,
Left_Opnd =>
Make_Attribute_Reference (Loc,
Prefix =>
New_Occurrence_Of
(Etype (First_Index (Rtyp)), Loc),
Attribute_Name => Name_Range_Length),
Right_Opnd =>
Make_Integer_Literal (Loc, Component_Size (Rtyp))),
Make_Byte_Aligned_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Result_Ent, Loc),
Attribute_Name => Name_Address)))));
Rewrite (N,
New_Occurrence_Of (Result_Ent, Loc));
end;
end if;
Analyze_And_Resolve (N, Typ, Suppress => All_Checks);
end Expand_Packed_Boolean_Operator;
-------------------------------------
-- Expand_Packed_Element_Reference --
-------------------------------------
procedure Expand_Packed_Element_Reference (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Obj : Node_Id;
Atyp : Entity_Id;
PAT : Entity_Id;
Ctyp : Entity_Id;
Csiz : Int;
Shift : Node_Id;
Cmask : Uint;
Lit : Node_Id;
Arg : Node_Id;
begin
-- If the node is an actual in a call, the prefix has not been fully
-- expanded, to account for the additional expansion for in-out actuals
-- (see expand_actuals for details). If the prefix itself is a packed
-- reference as well, we have to recurse to complete the transformation
-- of the prefix.
if Nkind (Prefix (N)) = N_Indexed_Component
and then not Analyzed (Prefix (N))
and then Is_Bit_Packed_Array (Etype (Prefix (Prefix (N))))
then
Expand_Packed_Element_Reference (Prefix (N));
end if;
-- The prefix may be rewritten below as a conversion. If it is a source
-- entity generate reference to it now, to prevent spurious warnings
-- about unused entities.
if Is_Entity_Name (Prefix (N))
and then Comes_From_Source (Prefix (N))
then
Generate_Reference (Entity (Prefix (N)), Prefix (N), 'r');
end if;
-- If not bit packed, we have the enumeration case, which is easily
-- dealt with (just adjust the subscripts of the indexed component)
-- Note: this leaves the result as an indexed component, which is
-- still a variable, so can be used in the assignment case, as is
-- required in the enumeration case.
if not Is_Bit_Packed_Array (Etype (Prefix (N))) then
Setup_Enumeration_Packed_Array_Reference (N);
return;
end if;
-- Remaining processing is for the bit-packed case
Obj := Relocate_Node (Prefix (N));
Convert_To_Actual_Subtype (Obj);
Atyp := Etype (Obj);
PAT := Packed_Array_Impl_Type (Atyp);
Ctyp := Component_Type (Atyp);
Csiz := UI_To_Int (Component_Size (Atyp));
-- Case of component size 1,2,4 or any component size for the modular
-- case. These are the cases for which we can inline the code.
if Csiz = 1 or else Csiz = 2 or else Csiz = 4
or else (Present (PAT) and then Is_Modular_Integer_Type (PAT))
then
Setup_Inline_Packed_Array_Reference (N, Atyp, Obj, Cmask, Shift);
Lit := Make_Integer_Literal (Loc, Cmask);
Set_Print_In_Hex (Lit);
-- We generate a shift right to position the field, followed by a
-- masking operation to extract the bit field, and we finally do an
-- unchecked conversion to convert the result to the required target.
-- Note that the unchecked conversion automatically deals with the
-- bias if we are dealing with a biased representation. What will
-- happen is that we temporarily generate the biased representation,
-- but almost immediately that will be converted to the original
-- unbiased component type, and the bias will disappear.
Arg :=
Make_Op_And (Loc,
Left_Opnd => Make_Shift_Right (Obj, Shift),
Right_Opnd => Lit);
Set_Etype (Arg, Ctyp);
-- Component extraction is performed on a native endianness scalar
-- value: if Atyp has reverse storage order, then it has been byte
-- swapped, and if the component being extracted is itself of a
-- composite type with reverse storage order, then we need to swap
-- it back to its expected endianness after extraction.
if Reverse_Storage_Order (Atyp)
and then (Is_Record_Type (Ctyp) or else Is_Array_Type (Ctyp))
and then Reverse_Storage_Order (Ctyp)
then
Arg := Revert_Storage_Order (Arg);
end if;
-- We needed to analyze this before we do the unchecked convert
-- below, but we need it temporarily attached to the tree for
-- this analysis (hence the temporary Set_Parent call).
Set_Parent (Arg, Parent (N));
Analyze_And_Resolve (Arg);
Rewrite (N, RJ_Unchecked_Convert_To (Ctyp, Arg));
-- All other component sizes for non-modular case
else
-- We generate
-- Component_Type!(Get_nn (Arr'address, Subscr))
-- where Subscr is the computed linear subscript
declare
Get_nn : Entity_Id;
Subscr : Node_Id;
Rev_SSO : constant Node_Id :=
New_Occurrence_Of
(Boolean_Literals (Reverse_Storage_Order (Atyp)), Loc);
begin
-- Acquire proper Get entity. We use the aligned or unaligned
-- case as appropriate.
if Known_Aligned_Enough (Obj, Csiz) then
Get_nn := RTE (Get_Id (Csiz));
else
Get_nn := RTE (GetU_Id (Csiz));
end if;
-- Now generate the get reference
Compute_Linear_Subscript (Atyp, N, Subscr);
-- Below we make the assumption that Obj is at least byte
-- aligned, since otherwise its address cannot be taken.
-- The assumption holds since the only arrays that can be
-- misaligned are small packed arrays which are implemented
-- as a modular type, and that is not the case here.
Rewrite (N,
Unchecked_Convert_To (Ctyp,
Make_Function_Call (Loc,
Name => New_Occurrence_Of (Get_nn, Loc),
Parameter_Associations => New_List (
Make_Attribute_Reference (Loc,
Prefix => Obj,
Attribute_Name => Name_Address),
Subscr,
Rev_SSO))));
end;
end if;
Analyze_And_Resolve (N, Ctyp, Suppress => All_Checks);
end Expand_Packed_Element_Reference;
----------------------
-- Expand_Packed_Eq --
----------------------
-- Handles expansion of "=" on packed array types
procedure Expand_Packed_Eq (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
L : constant Node_Id := Relocate_Node (Left_Opnd (N));
R : constant Node_Id := Relocate_Node (Right_Opnd (N));
LLexpr : Node_Id;
RLexpr : Node_Id;
Ltyp : Entity_Id;
Rtyp : Entity_Id;
PAT : Entity_Id;
begin
Convert_To_Actual_Subtype (L);
Convert_To_Actual_Subtype (R);
Ltyp := Underlying_Type (Etype (L));
Rtyp := Underlying_Type (Etype (R));
Convert_To_PAT_Type (L);
Convert_To_PAT_Type (R);
PAT := Etype (L);
LLexpr :=
Make_Op_Multiply (Loc,
Left_Opnd => Compute_Number_Components (N, Ltyp),
Right_Opnd => Make_Integer_Literal (Loc, Component_Size (Ltyp)));
RLexpr :=
Make_Op_Multiply (Loc,
Left_Opnd => Compute_Number_Components (N, Rtyp),
Right_Opnd => Make_Integer_Literal (Loc, Component_Size (Rtyp)));
-- For the modular case, we transform the comparison to:
-- Ltyp'Length = Rtyp'Length and then PAT!(L) = PAT!(R)
-- where PAT is the packed array type. This works fine, since in the
-- modular case we guarantee that the unused bits are always zeroes.
-- We do have to compare the lengths because we could be comparing
-- two different subtypes of the same base type.
if Is_Modular_Integer_Type (PAT) then
Rewrite (N,
Make_And_Then (Loc,
Left_Opnd =>
Make_Op_Eq (Loc,
Left_Opnd => LLexpr,
Right_Opnd => RLexpr),
Right_Opnd =>
Make_Op_Eq (Loc,
Left_Opnd => L,
Right_Opnd => R)));
-- For the non-modular case, we call a runtime routine
-- System.Bit_Ops.Bit_Eq
-- (L'Address, L_Length, R'Address, R_Length)
-- where PAT is the packed array type, and the lengths are the lengths
-- in bits of the original packed arrays. This routine takes care of
-- not comparing the unused bits in the last byte.
else
Rewrite (N,
Make_Function_Call (Loc,
Name => New_Occurrence_Of (RTE (RE_Bit_Eq), Loc),
Parameter_Associations => New_List (
Make_Byte_Aligned_Attribute_Reference (Loc,
Prefix => L,
Attribute_Name => Name_Address),
LLexpr,
Make_Byte_Aligned_Attribute_Reference (Loc,
Prefix => R,
Attribute_Name => Name_Address),
RLexpr)));
end if;
Analyze_And_Resolve (N, Standard_Boolean, Suppress => All_Checks);
end Expand_Packed_Eq;
-----------------------
-- Expand_Packed_Not --
-----------------------
-- Handles expansion of "not" on packed array types
procedure Expand_Packed_Not (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Typ : constant Entity_Id := Etype (N);
Opnd : constant Node_Id := Relocate_Node (Right_Opnd (N));
Rtyp : Entity_Id;
PAT : Entity_Id;
Lit : Node_Id;
begin
Convert_To_Actual_Subtype (Opnd);
Rtyp := Etype (Opnd);
-- Deal with silly False..False and True..True subtype case
Silly_Boolean_Array_Not_Test (N, Rtyp);
-- Now that the silliness is taken care of, get packed array type
Convert_To_PAT_Type (Opnd);
PAT := Etype (Opnd);
-- For the case where the packed array type is a modular type, "not A"
-- expands simply into:
-- Rtyp!(PAT!(A) xor Mask)
-- where PAT is the packed array type, Mask is a mask of all 1 bits of
-- length equal to the size of this packed type, and Rtyp is the actual
-- actual subtype of the operand.
Lit := Make_Integer_Literal (Loc, 2 ** RM_Size (PAT) - 1);
Set_Print_In_Hex (Lit);
if not Is_Array_Type (PAT) then
Rewrite (N,
Unchecked_Convert_To (Rtyp,
Make_Op_Xor (Loc,
Left_Opnd => Opnd,
Right_Opnd => Lit)));
-- For the array case, we insert the actions
-- Result : Typ;
-- System.Bit_Ops.Bit_Not
-- (Opnd'Address,
-- Typ'Length * Typ'Component_Size,
-- Result'Address);
-- where Opnd is the Packed_Bytes{1,2,4} operand and the second argument
-- is the length of the operand in bits. We then replace the expression
-- with a reference to Result.
else
declare
Result_Ent : constant Entity_Id := Make_Temporary (Loc, 'T');
begin
Insert_Actions (N, New_List (
Make_Object_Declaration (Loc,
Defining_Identifier => Result_Ent,
Object_Definition => New_Occurrence_Of (Rtyp, Loc)),
Make_Procedure_Call_Statement (Loc,
Name => New_Occurrence_Of (RTE (RE_Bit_Not), Loc),
Parameter_Associations => New_List (
Make_Byte_Aligned_Attribute_Reference (Loc,
Prefix => Opnd,
Attribute_Name => Name_Address),
Make_Op_Multiply (Loc,
Left_Opnd =>
Make_Attribute_Reference (Loc,
Prefix =>
New_Occurrence_Of
(Etype (First_Index (Rtyp)), Loc),
Attribute_Name => Name_Range_Length),
Right_Opnd =>
Make_Integer_Literal (Loc, Component_Size (Rtyp))),
Make_Byte_Aligned_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Result_Ent, Loc),
Attribute_Name => Name_Address)))));
Rewrite (N, New_Occurrence_Of (Result_Ent, Loc));
end;
end if;
Analyze_And_Resolve (N, Typ, Suppress => All_Checks);
end Expand_Packed_Not;
-----------------------------
-- Get_Base_And_Bit_Offset --
-----------------------------
procedure Get_Base_And_Bit_Offset
(N : Node_Id;
Base : out Node_Id;
Offset : out Node_Id)
is
Loc : Source_Ptr;
Term : Node_Id;
Atyp : Entity_Id;
Subscr : Node_Id;
begin
Base := N;
Offset := Empty;
-- We build up an expression serially that has the form
-- linear-subscript * component_size for each array reference
-- + field'Bit_Position for each record field
-- + ...
loop
Loc := Sloc (Base);
if Nkind (Base) = N_Indexed_Component then
Convert_To_Actual_Subtype (Prefix (Base));
Atyp := Etype (Prefix (Base));
Compute_Linear_Subscript (Atyp, Base, Subscr);
Term :=
Make_Op_Multiply (Loc,
Left_Opnd => Subscr,
Right_Opnd =>
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Atyp, Loc),
Attribute_Name => Name_Component_Size));
elsif Nkind (Base) = N_Selected_Component then
Term :=
Make_Attribute_Reference (Loc,
Prefix => Selector_Name (Base),
Attribute_Name => Name_Bit_Position);
else
return;
end if;
if No (Offset) then
Offset := Term;
else
Offset :=
Make_Op_Add (Loc,
Left_Opnd => Offset,
Right_Opnd => Term);
end if;
Base := Prefix (Base);
end loop;
end Get_Base_And_Bit_Offset;
-------------------------------------
-- Involves_Packed_Array_Reference --
-------------------------------------
function Involves_Packed_Array_Reference (N : Node_Id) return Boolean is
begin
if Nkind (N) = N_Indexed_Component
and then Is_Bit_Packed_Array (Etype (Prefix (N)))
then
return True;
elsif Nkind (N) = N_Selected_Component then
return Involves_Packed_Array_Reference (Prefix (N));
else
return False;
end if;
end Involves_Packed_Array_Reference;
--------------------------
-- Known_Aligned_Enough --
--------------------------
function Known_Aligned_Enough (Obj : Node_Id; Csiz : Nat) return Boolean is
Typ : constant Entity_Id := Etype (Obj);
function In_Partially_Packed_Record (Comp : Entity_Id) return Boolean;
-- If the component is in a record that contains previous packed
-- components, consider it unaligned because the back-end might
-- choose to pack the rest of the record. Lead to less efficient code,
-- but safer vis-a-vis of back-end choices.
--------------------------------
-- In_Partially_Packed_Record --
--------------------------------
function In_Partially_Packed_Record (Comp : Entity_Id) return Boolean is
Rec_Type : constant Entity_Id := Scope (Comp);
Prev_Comp : Entity_Id;
begin
Prev_Comp := First_Entity (Rec_Type);
while Present (Prev_Comp) loop
if Is_Packed (Etype (Prev_Comp)) then
return True;
elsif Prev_Comp = Comp then
return False;
end if;
Next_Entity (Prev_Comp);
end loop;
return False;
end In_Partially_Packed_Record;
-- Start of processing for Known_Aligned_Enough
begin
-- Odd bit sizes don't need alignment anyway
if Csiz mod 2 = 1 then
return True;
-- If we have a specified alignment, see if it is sufficient, if not
-- then we can't possibly be aligned enough in any case.
elsif Known_Alignment (Etype (Obj)) then
-- Alignment required is 4 if size is a multiple of 4, and
-- 2 otherwise (e.g. 12 bits requires 4, 10 bits requires 2)
if Alignment (Etype (Obj)) < 4 - (Csiz mod 4) then
return False;
end if;
end if;
-- OK, alignment should be sufficient, if object is aligned
-- If object is strictly aligned, then it is definitely aligned
if Strict_Alignment (Typ) then
return True;
-- Case of subscripted array reference
elsif Nkind (Obj) = N_Indexed_Component then
-- If we have a pointer to an array, then this is definitely
-- aligned, because pointers always point to aligned versions.
if Is_Access_Type (Etype (Prefix (Obj))) then
return True;
-- Otherwise, go look at the prefix
else
return Known_Aligned_Enough (Prefix (Obj), Csiz);
end if;
-- Case of record field
elsif Nkind (Obj) = N_Selected_Component then
-- What is significant here is whether the record type is packed
if Is_Record_Type (Etype (Prefix (Obj)))
and then Is_Packed (Etype (Prefix (Obj)))
then
return False;
-- Or the component has a component clause which might cause
-- the component to become unaligned (we can't tell if the
-- backend is doing alignment computations).
elsif Present (Component_Clause (Entity (Selector_Name (Obj)))) then
return False;
elsif In_Partially_Packed_Record (Entity (Selector_Name (Obj))) then
return False;
-- In all other cases, go look at prefix
else
return Known_Aligned_Enough (Prefix (Obj), Csiz);
end if;
elsif Nkind (Obj) = N_Type_Conversion then
return Known_Aligned_Enough (Expression (Obj), Csiz);
-- For a formal parameter, it is safer to assume that it is not
-- aligned, because the formal may be unconstrained while the actual
-- is constrained. In this situation, a small constrained packed
-- array, represented in modular form, may be unaligned.
elsif Is_Entity_Name (Obj) then
return not Is_Formal (Entity (Obj));
else
-- If none of the above, must be aligned
return True;
end if;
end Known_Aligned_Enough;
---------------------
-- Make_Shift_Left --
---------------------
function Make_Shift_Left (N : Node_Id; S : Node_Id) return Node_Id is
Nod : Node_Id;
begin
if Compile_Time_Known_Value (S) and then Expr_Value (S) = 0 then
return N;
else
Nod :=
Make_Op_Shift_Left (Sloc (N),
Left_Opnd => N,
Right_Opnd => S);
Set_Shift_Count_OK (Nod, True);
return Nod;
end if;
end Make_Shift_Left;
----------------------
-- Make_Shift_Right --
----------------------
function Make_Shift_Right (N : Node_Id; S : Node_Id) return Node_Id is
Nod : Node_Id;
begin
if Compile_Time_Known_Value (S) and then Expr_Value (S) = 0 then
return N;
else
Nod :=
Make_Op_Shift_Right (Sloc (N),
Left_Opnd => N,
Right_Opnd => S);
Set_Shift_Count_OK (Nod, True);
return Nod;
end if;
end Make_Shift_Right;
-----------------------------
-- RJ_Unchecked_Convert_To --
-----------------------------
function RJ_Unchecked_Convert_To
(Typ : Entity_Id;
Expr : Node_Id) return Node_Id
is
Source_Typ : constant Entity_Id := Etype (Expr);
Target_Typ : constant Entity_Id := Typ;
Src : Node_Id := Expr;
Source_Siz : Nat;
Target_Siz : Nat;
begin
Source_Siz := UI_To_Int (RM_Size (Source_Typ));
Target_Siz := UI_To_Int (RM_Size (Target_Typ));
-- For a little-endian target type stored byte-swapped on a
-- big-endian machine, do not mask to Target_Siz bits.
if Bytes_Big_Endian
and then (Is_Record_Type (Target_Typ)
or else
Is_Array_Type (Target_Typ))
and then Reverse_Storage_Order (Target_Typ)
then
Source_Siz := Target_Siz;
end if;
-- First step, if the source type is not a discrete type, then we first
-- convert to a modular type of the source length, since otherwise, on
-- a big-endian machine, we get left-justification. We do it for little-
-- endian machines as well, because there might be junk bits that are
-- not cleared if the type is not numeric. This can be done only if the
-- source siz is different from 0 (i.e. known), otherwise we must trust
-- the type declarations (case of non-discrete components).
if Source_Siz /= 0
and then Source_Siz /= Target_Siz
and then not Is_Discrete_Type (Source_Typ)
then
Src := Unchecked_Convert_To (RTE (Bits_Id (Source_Siz)), Src);
end if;
-- In the big endian case, if the lengths of the two types differ, then
-- we must worry about possible left justification in the conversion,
-- and avoiding that is what this is all about.
if Bytes_Big_Endian and then Source_Siz /= Target_Siz then
-- Next step. If the target is not a discrete type, then we first
-- convert to a modular type of the target length, since otherwise,
-- on a big-endian machine, we get left-justification.
if not Is_Discrete_Type (Target_Typ) then
Src := Unchecked_Convert_To (RTE (Bits_Id (Target_Siz)), Src);
end if;
end if;
-- And now we can do the final conversion to the target type
return Unchecked_Convert_To (Target_Typ, Src);
end RJ_Unchecked_Convert_To;
----------------------------------------------
-- Setup_Enumeration_Packed_Array_Reference --
----------------------------------------------
-- All we have to do here is to find the subscripts that correspond to the
-- index positions that have non-standard enumeration types and insert a
-- Pos attribute to get the proper subscript value.
-- Finally the prefix must be uncheck-converted to the corresponding packed
-- array type.
-- Note that the component type is unchanged, so we do not need to fiddle
-- with the types (Gigi always automatically takes the packed array type if
-- it is set, as it will be in this case).
procedure Setup_Enumeration_Packed_Array_Reference (N : Node_Id) is
Pfx : constant Node_Id := Prefix (N);
Typ : constant Entity_Id := Etype (N);
Exprs : constant List_Id := Expressions (N);
Expr : Node_Id;
begin
-- If the array is unconstrained, then we replace the array reference
-- with its actual subtype. This actual subtype will have a packed array
-- type with appropriate bounds.
if not Is_Constrained (Packed_Array_Impl_Type (Etype (Pfx))) then
Convert_To_Actual_Subtype (Pfx);
end if;
Expr := First (Exprs);
while Present (Expr) loop
declare
Loc : constant Source_Ptr := Sloc (Expr);
Expr_Typ : constant Entity_Id := Etype (Expr);
begin
if Is_Enumeration_Type (Expr_Typ)
and then Has_Non_Standard_Rep (Expr_Typ)
then
Rewrite (Expr,
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Expr_Typ, Loc),
Attribute_Name => Name_Pos,
Expressions => New_List (Relocate_Node (Expr))));
Analyze_And_Resolve (Expr, Standard_Natural);
end if;
end;
Next (Expr);
end loop;
Rewrite (N,
Make_Indexed_Component (Sloc (N),
Prefix =>
Unchecked_Convert_To (Packed_Array_Impl_Type (Etype (Pfx)), Pfx),
Expressions => Exprs));
Analyze_And_Resolve (N, Typ);
end Setup_Enumeration_Packed_Array_Reference;
-----------------------------------------
-- Setup_Inline_Packed_Array_Reference --
-----------------------------------------
procedure Setup_Inline_Packed_Array_Reference
(N : Node_Id;
Atyp : Entity_Id;
Obj : in out Node_Id;
Cmask : out Uint;
Shift : out Node_Id)
is
Loc : constant Source_Ptr := Sloc (N);
PAT : Entity_Id;
Otyp : Entity_Id;
Csiz : Uint;
Osiz : Uint;
begin
Csiz := Component_Size (Atyp);
Convert_To_PAT_Type (Obj);
PAT := Etype (Obj);
Cmask := 2 ** Csiz - 1;
if Is_Array_Type (PAT) then
Otyp := Component_Type (PAT);
Osiz := Component_Size (PAT);
else
Otyp := PAT;
-- In the case where the PAT is a modular type, we want the actual
-- size in bits of the modular value we use. This is neither the
-- Object_Size nor the Value_Size, either of which may have been
-- reset to strange values, but rather the minimum size. Note that
-- since this is a modular type with full range, the issue of
-- biased representation does not arise.
Osiz := UI_From_Int (Minimum_Size (Otyp));
end if;
Compute_Linear_Subscript (Atyp, N, Shift);
-- If the component size is not 1, then the subscript must be multiplied
-- by the component size to get the shift count.
if Csiz /= 1 then
Shift :=
Make_Op_Multiply (Loc,
Left_Opnd => Make_Integer_Literal (Loc, Csiz),
Right_Opnd => Shift);
end if;
-- If we have the array case, then this shift count must be broken down
-- into a byte subscript, and a shift within the byte.
if Is_Array_Type (PAT) then
declare
New_Shift : Node_Id;
begin
-- We must analyze shift, since we will duplicate it
Set_Parent (Shift, N);
Analyze_And_Resolve
(Shift, Standard_Integer, Suppress => All_Checks);
-- The shift count within the word is
-- shift mod Osiz
New_Shift :=
Make_Op_Mod (Loc,
Left_Opnd => Duplicate_Subexpr (Shift),
Right_Opnd => Make_Integer_Literal (Loc, Osiz));
-- The subscript to be used on the PAT array is
-- shift / Osiz
Obj :=
Make_Indexed_Component (Loc,
Prefix => Obj,
Expressions => New_List (
Make_Op_Divide (Loc,
Left_Opnd => Duplicate_Subexpr (Shift),
Right_Opnd => Make_Integer_Literal (Loc, Osiz))));
Shift := New_Shift;
end;
-- For the modular integer case, the object to be manipulated is the
-- entire array, so Obj is unchanged. Note that we will reset its type
-- to PAT before returning to the caller.
else
null;
end if;
-- The one remaining step is to modify the shift count for the
-- big-endian case. Consider the following example in a byte:
-- xxxxxxxx bits of byte
-- vvvvvvvv bits of value
-- 33221100 little-endian numbering
-- 00112233 big-endian numbering
-- Here we have the case of 2-bit fields
-- For the little-endian case, we already have the proper shift count
-- set, e.g. for element 2, the shift count is 2*2 = 4.
-- For the big endian case, we have to adjust the shift count, computing
-- it as (N - F) - Shift, where N is the number of bits in an element of
-- the array used to implement the packed array, F is the number of bits
-- in a source array element, and Shift is the count so far computed.
-- We also have to adjust if the storage order is reversed
if Bytes_Big_Endian xor Reverse_Storage_Order (Base_Type (Atyp)) then
Shift :=
Make_Op_Subtract (Loc,
Left_Opnd => Make_Integer_Literal (Loc, Osiz - Csiz),
Right_Opnd => Shift);
end if;
Set_Parent (Shift, N);
Set_Parent (Obj, N);
Analyze_And_Resolve (Obj, Otyp, Suppress => All_Checks);
Analyze_And_Resolve (Shift, Standard_Integer, Suppress => All_Checks);
-- Make sure final type of object is the appropriate packed type
Set_Etype (Obj, Otyp);
end Setup_Inline_Packed_Array_Reference;
end Exp_Pakd;
| 36.256339 | 79 | 0.560523 |
cb64a0c623489197013edff604396b0d72bd33d7 | 563 | adb | Ada | tests/tests/device/get_device_config/main.adb | JeremyGrosser/usb_embedded | 8597a505dd1fd8b28a2e87f069034213ca8a2607 | [
"BSD-3-Clause"
] | null | null | null | tests/tests/device/get_device_config/main.adb | JeremyGrosser/usb_embedded | 8597a505dd1fd8b28a2e87f069034213ca8a2607 | [
"BSD-3-Clause"
] | null | null | null | tests/tests/device/get_device_config/main.adb | JeremyGrosser/usb_embedded | 8597a505dd1fd8b28a2e87f069034213ca8a2607 | [
"BSD-3-Clause"
] | null | null | null | with USB_Testing; use USB_Testing;
with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub;
with USB_Testing.UDC_Scenarios;
with HAL; use HAL;
with USB;
procedure Main is
Scenario : aliased constant UDC_Stub.Stub_Scenario :=
UDC_Scenarios.Enumeration (Verbose => False) &
UDC_Scenarios.Set_Address (Verbose => False, Addr => 42) &
UDC_Scenarios.Get_Config (Verbose => True);
RX_Data : aliased constant UInt8_Array := (0 .. 1 => 0);
begin
USB_Testing.UDC_Scenarios.Two_Classes_UDC_Test (Scenario, RX_Data);
end Main;
| 24.478261 | 70 | 0.71048 |
18cf2b035785612c5a4a49e7a03d888cd4c0754e | 2,611 | adb | Ada | include/sf-network-packet.adb | danva994/ASFML-1.6 | bd74ae700843338a15aef295f99297b866aa0c93 | [
"Zlib"
] | 1 | 2017-10-07T06:20:38.000Z | 2017-10-07T06:20:38.000Z | include/sf-network-packet.adb | danva994/ASFML-1.6 | bd74ae700843338a15aef295f99297b866aa0c93 | [
"Zlib"
] | 3 | 2020-09-15T21:19:34.000Z | 2022-03-02T23:13:46.000Z | include/sf-network-packet.adb | danva994/ASFML-1.6 | bd74ae700843338a15aef295f99297b866aa0c93 | [
"Zlib"
] | 2 | 2020-09-26T21:16:43.000Z | 2022-01-16T19:36:48.000Z | -- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila ([email protected])
-- //
-- // 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 from the use of this software.
-- //
-- // Permission is granted to anyone to use this software for any purpose,
-- // including commercial applications, and to alter it and redistribute it freely,
-- // subject to the following restrictions:
-- //
-- // 1. The origin of this software must not be misrepresented;
-- // you must not claim that you wrote the original software.
-- // If you use this software in a product, an acknowledgment
-- // in the product documentation would be appreciated but is not required.
-- //
-- // 2. Altered source versions must be plainly marked as such,
-- // and must not be misrepresented as being the original software.
-- //
-- // 3. This notice may not be removed or altered from any source distribution.
-- //
-- ////////////////////////////////////////////////////////////
-- ////////////////////////////////////////////////////////////
-- // Headers
-- ////////////////////////////////////////////////////////////
with Interfaces.C.Strings;
package body Sf.Network.Packet is
use Interfaces.C.Strings;
-- ////////////////////////////////////////////////////////////
-- /// Functions to extract data from a packet
-- ///
-- /// \param Packet : Packet to read
-- ///
-- ////////////////////////////////////////////////////////////
procedure sfPacket_ReadString (Packet : sfPacket_Ptr; Str : out String) is
procedure Internal (Packet : sfPacket_Ptr; Str : chars_ptr);
pragma Import (C, Internal, "sfPacket_ReadString");
Temp : chars_ptr;
begin
Internal (Packet, Temp);
Str := Value (Temp) (Str'RANGE);
Free (Temp);
end sfPacket_ReadString;
-- ////////////////////////////////////////////////////////////
-- /// Functions to insert data into a packet
-- ///
-- /// \param Packet : Packet to write
-- ///
-- ////////////////////////////////////////////////////////////
procedure sfPacket_WriteString (Packet : sfPacket_Ptr; Str : String) is
procedure Internal (Packet : sfPacket_Ptr; Str : chars_ptr);
pragma Import (C, Internal, "sfPacket_WriteString");
Temp : chars_ptr := New_String (Str);
begin
Internal (Packet, Temp);
Free (Temp);
end sfPacket_WriteString;
end Sf.Network.Packet;
| 40.169231 | 104 | 0.536959 |
c52ad9a6a15fdc00aa23ed45a5dd17443b5d0c8b | 1,947 | adb | Ada | gdb/testsuite/gdb.ada/vla/vla.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | 1 | 2020-10-14T03:24:35.000Z | 2020-10-14T03:24:35.000Z | gdb/testsuite/gdb.ada/vla/vla.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | gdb/testsuite/gdb.ada/vla/vla.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2019-2021 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.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
procedure Vla is
type Array_Type is array (Natural range <>) of Integer;
type Record_Type (L1, L2 : Natural) is record
I1 : Integer;
A1 : Array_Type (1 .. L1);
I2 : Integer;
A2 : Array_Type (1 .. L2);
I3 : Integer;
end record;
-- Some versions of GCC emit the members in the incorrect order.
-- Since this isn't relevant to the bug at hand, disable
-- reordering to get consistent results.
pragma No_Component_Reordering (Record_Type);
procedure Process (R : Record_Type) is
begin
null;
end Process;
R00 : Record_Type :=
(L1 => 0, L2 => 0,
I1 => 1, A1 => (others => 10),
I2 => 2, A2 => (others => 20),
I3 => 3);
R01 : Record_Type :=
(L1 => 0, L2 => 1,
I1 => 1, A1 => (others => 10),
I2 => 2, A2 => (others => 20),
I3 => 3);
R10 : Record_Type :=
(L1 => 1, L2 => 0,
I1 => 1, A1 => (others => 10),
I2 => 2, A2 => (others => 20),
I3 => 3);
R22 : Record_Type :=
(L1 => 2, L2 => 2,
I1 => 1, A1 => (others => 10),
I2 => 2, A2 => (others => 20),
I3 => 3);
begin
Process (R00); -- Set breakpoint here
Process (R01);
Process (R10);
Process (R22);
end Vla;
| 30.904762 | 73 | 0.596302 |
cbc6354aa74e1ecf1d3980f2707325d474622b37 | 2,013 | ads | Ada | include/sf-graphics-glyph.ads | danva994/ASFML-1.6 | bd74ae700843338a15aef295f99297b866aa0c93 | [
"Zlib"
] | 1 | 2017-10-07T06:20:38.000Z | 2017-10-07T06:20:38.000Z | include/sf-graphics-glyph.ads | danva994/ASFML-1.6 | bd74ae700843338a15aef295f99297b866aa0c93 | [
"Zlib"
] | 3 | 2020-09-15T21:19:34.000Z | 2022-03-02T23:13:46.000Z | include/sf-graphics-glyph.ads | danva994/ASFML-1.6 | bd74ae700843338a15aef295f99297b866aa0c93 | [
"Zlib"
] | 2 | 2020-09-26T21:16:43.000Z | 2022-01-16T19:36:48.000Z | -- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila ([email protected])
-- //
-- // 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 from the use of this software.
-- //
-- // Permission is granted to anyone to use this software for any purpose,
-- // including commercial applications, and to alter it and redistribute it freely,
-- // subject to the following restrictions:
-- //
-- // 1. The origin of this software must not be misrepresented;
-- // you must not claim that you wrote the original software.
-- // If you use this software in a product, an acknowledgment
-- // in the product documentation would be appreciated but is not required.
-- //
-- // 2. Altered source versions must be plainly marked as such,
-- // and must not be misrepresented as being the original software.
-- //
-- // 3. This notice may not be removed or altered from any source distribution.
-- //
-- ////////////////////////////////////////////////////////////
-- ////////////////////////////////////////////////////////////
-- // Headers
-- ////////////////////////////////////////////////////////////
with Sf.Graphics.Rect;
package Sf.Graphics.Glyph is
use Sf.Graphics.Rect;
-- ////////////////////////////////////////////////////////////
-- /// sfGlyph describes a glyph (a visual character)
-- ////////////////////////////////////////////////////////////
type sfGlyph is record
Advance : aliased Integer; -- ///< Offset to move horizontically to the next character
Rectangle : aliased sfIntRect; -- ///< Bounding rectangle of the glyph, in relative coordinates
TexCoords : aliased sfFloatRect; -- ///< Texture coordinates of the glyph inside the bitmap font
end record;
private
pragma Convention (C_Pass_By_Copy, sfGlyph);
end Sf.Graphics.Glyph;
| 42.829787 | 104 | 0.566816 |
c5e4519ebc55abc0ec499ec04bcfdafd583ed821 | 12,406 | adb | Ada | tools-src/gnu/gcc/gcc/ada/sem_maps.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/gcc/gcc/ada/sem_maps.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/gcc/gcc/ada/sem_maps.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S E M _ M A P S --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1996-1998 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Atree; use Atree;
with Einfo; use Einfo;
with Namet; use Namet;
with Output; use Output;
with Sinfo; use Sinfo;
with Uintp; use Uintp;
package body Sem_Maps is
-----------------------
-- Local Subprograms --
-----------------------
function Find_Assoc (M : Map; E : Entity_Id) return Assoc_Index;
-- Standard hash table search. M is the map to be searched, E is the
-- entity to be searched for, and Assoc_Index is the resulting
-- association, or is set to No_Assoc if there is no association.
function Find_Header_Size (N : Int) return Header_Index;
-- Find largest power of two smaller than the number of entries in
-- the table. This load factor of 2 may be adjusted later if needed.
procedure Write_Map (E : Entity_Id);
pragma Warnings (Off, Write_Map);
-- For debugging purposes.
---------------------
-- Add_Association --
---------------------
procedure Add_Association
(M : in out Map;
O_Id : Entity_Id;
N_Id : Entity_Id;
Kind : Scope_Kind := S_Local)
is
Info : constant Map_Info := Maps_Table.Table (M);
Offh : constant Header_Index := Info.Header_Offset;
Offs : constant Header_Index := Info.Header_Num;
J : constant Header_Index := Header_Index (O_Id) mod Offs;
K : constant Assoc_Index := Info.Assoc_Next;
begin
Associations_Table.Table (K) := (O_Id, N_Id, Kind, No_Assoc);
Maps_Table.Table (M).Assoc_Next := K + 1;
if Headers_Table.Table (Offh + J) /= No_Assoc then
-- Place new association at head of chain.
Associations_Table.Table (K).Next := Headers_Table.Table (Offh + J);
end if;
Headers_Table.Table (Offh + J) := K;
end Add_Association;
------------------------
-- Build_Instance_Map --
------------------------
function Build_Instance_Map (M : Map) return Map is
Info : constant Map_Info := Maps_Table.Table (M);
Res : constant Map := New_Map (Int (Info.Assoc_Num));
Offh1 : constant Header_Index := Info.Header_Offset;
Offa1 : constant Assoc_Index := Info.Assoc_Offset;
Offh2 : constant Header_Index := Maps_Table.Table (Res).Header_Offset;
Offa2 : constant Assoc_Index := Maps_Table.Table (Res).Assoc_Offset;
A : Assoc;
A_Index : Assoc_Index;
begin
for J in 0 .. Info.Header_Num - 1 loop
A_Index := Headers_Table.Table (Offh1 + J);
if A_Index /= No_Assoc then
Headers_Table.Table (Offh2 + J) := A_Index + (Offa2 - Offa1);
end if;
end loop;
for J in 0 .. Info.Assoc_Num - 1 loop
A := Associations_Table.Table (Offa1 + J);
-- For local entities that come from source, create the
-- corresponding local entities in the instance. Entities that
-- do not come from source are etypes, and new ones will be
-- generated when analyzing the instance.
if No (A.New_Id)
and then A.Kind = S_Local
and then Comes_From_Source (A.Old_Id)
then
A.New_Id := New_Copy (A.Old_Id);
A.New_Id := New_Entity (Nkind (A.Old_Id), Sloc (A.Old_Id));
Set_Chars (A.New_Id, Chars (A.Old_Id));
end if;
if A.Next /= No_Assoc then
A.Next := A.Next + (Offa2 - Offa1);
end if;
Associations_Table.Table (Offa2 + J) := A;
end loop;
Maps_Table.Table (Res).Assoc_Next := Associations_Table.Last;
return Res;
end Build_Instance_Map;
-------------
-- Compose --
-------------
function Compose (Orig_Map : Map; New_Map : Map) return Map is
Res : constant Map := Copy (Orig_Map);
Off : constant Assoc_Index := Maps_Table.Table (Res).Assoc_Offset;
A : Assoc;
K : Assoc_Index;
begin
-- Iterate over the contents of Orig_Map, looking for entities
-- that are further mapped under New_Map.
for J in 0 .. Maps_Table.Table (Res).Assoc_Num - 1 loop
A := Associations_Table.Table (Off + J);
K := Find_Assoc (New_Map, A.New_Id);
if K /= No_Assoc then
Associations_Table.Table (Off + J).New_Id
:= Associations_Table.Table (K).New_Id;
end if;
end loop;
return Res;
end Compose;
----------
-- Copy --
----------
function Copy (M : Map) return Map is
Info : constant Map_Info := Maps_Table.Table (M);
Res : constant Map := New_Map (Int (Info.Assoc_Num));
Offh1 : constant Header_Index := Info.Header_Offset;
Offa1 : constant Assoc_Index := Info.Assoc_Offset;
Offh2 : constant Header_Index := Maps_Table.Table (Res).Header_Offset;
Offa2 : constant Assoc_Index := Maps_Table.Table (Res).Assoc_Offset;
A : Assoc;
A_Index : Assoc_Index;
begin
for J in 0 .. Info.Header_Num - 1 loop
A_Index := Headers_Table.Table (Offh1 + J) + (Offa2 - Offa1);
if A_Index /= No_Assoc then
Headers_Table.Table (Offh2 + J) := A_Index + (Offa2 - Offa1);
end if;
end loop;
for J in 0 .. Info.Assoc_Num - 1 loop
A := Associations_Table.Table (Offa1 + J);
A.Next := A.Next + (Offa2 - Offa1);
Associations_Table.Table (Offa2 + J) := A;
end loop;
Maps_Table.Table (Res).Assoc_Next := Associations_Table.Last;
return Res;
end Copy;
----------------
-- Find_Assoc --
----------------
function Find_Assoc (M : Map; E : Entity_Id) return Assoc_Index is
Offh : constant Header_Index := Maps_Table.Table (M).Header_Offset;
Offs : constant Header_Index := Maps_Table.Table (M).Header_Num;
J : constant Header_Index := Header_Index (E) mod Offs;
A : Assoc;
A_Index : Assoc_Index;
begin
A_Index := Headers_Table.Table (Offh + J);
if A_Index = No_Assoc then
return A_Index;
else
A := Associations_Table.Table (A_Index);
while Present (A.Old_Id) loop
if A.Old_Id = E then
return A_Index;
elsif A.Next = No_Assoc then
return No_Assoc;
else
A_Index := A.Next;
A := Associations_Table.Table (A.Next);
end if;
end loop;
return No_Assoc;
end if;
end Find_Assoc;
----------------------
-- Find_Header_Size --
----------------------
function Find_Header_Size (N : Int) return Header_Index is
Siz : Header_Index;
begin
Siz := 2;
while 2 * Siz < Header_Index (N) loop
Siz := 2 * Siz;
end loop;
return Siz;
end Find_Header_Size;
------------
-- Lookup --
------------
function Lookup (M : Map; E : Entity_Id) return Entity_Id is
Offh : constant Header_Index := Maps_Table.Table (M).Header_Offset;
Offs : constant Header_Index := Maps_Table.Table (M).Header_Num;
J : constant Header_Index := Header_Index (E) mod Offs;
A : Assoc;
begin
if Headers_Table.Table (Offh + J) = No_Assoc then
return Empty;
else
A := Associations_Table.Table (Headers_Table.Table (Offh + J));
while Present (A.Old_Id) loop
if A.Old_Id = E then
return A.New_Id;
elsif A.Next = No_Assoc then
return Empty;
else
A := Associations_Table.Table (A.Next);
end if;
end loop;
return Empty;
end if;
end Lookup;
-------------
-- New_Map --
-------------
function New_Map (Num_Assoc : Int) return Map is
Header_Size : Header_Index := Find_Header_Size (Num_Assoc);
Res : Map_Info;
begin
-- Allocate the tables for the new map at the current end of the
-- global tables.
Associations_Table.Increment_Last;
Headers_Table.Increment_Last;
Maps_Table.Increment_Last;
Res.Header_Offset := Headers_Table.Last;
Res.Header_Num := Header_Size;
Res.Assoc_Offset := Associations_Table.Last;
Res.Assoc_Next := Associations_Table.Last;
Res.Assoc_Num := Assoc_Index (Num_Assoc);
Headers_Table.Set_Last (Headers_Table.Last + Header_Size);
Associations_Table.Set_Last
(Associations_Table.Last + Assoc_Index (Num_Assoc));
Maps_Table.Table (Maps_Table.Last) := Res;
for J in 1 .. Header_Size loop
Headers_Table.Table (Headers_Table.Last - J) := No_Assoc;
end loop;
return Maps_Table.Last;
end New_Map;
------------------------
-- Update_Association --
------------------------
procedure Update_Association
(M : in out Map;
O_Id : Entity_Id;
N_Id : Entity_Id;
Kind : Scope_Kind := S_Local)
is
J : constant Assoc_Index := Find_Assoc (M, O_Id);
begin
Associations_Table.Table (J).New_Id := N_Id;
Associations_Table.Table (J).Kind := Kind;
end Update_Association;
---------------
-- Write_Map --
---------------
procedure Write_Map (E : Entity_Id) is
M : constant Map := Map (UI_To_Int (Renaming_Map (E)));
Info : constant Map_Info := Maps_Table.Table (M);
Offh : constant Header_Index := Info.Header_Offset;
Offa : constant Assoc_Index := Info.Assoc_Offset;
A : Assoc;
begin
Write_Str ("Size : ");
Write_Int (Int (Info.Assoc_Num));
Write_Eol;
Write_Str ("Headers");
Write_Eol;
for J in 0 .. Info.Header_Num - 1 loop
Write_Int (Int (Offh + J));
Write_Str (" : ");
Write_Int (Int (Headers_Table.Table (Offh + J)));
Write_Eol;
end loop;
for J in 0 .. Info.Assoc_Num - 1 loop
A := Associations_Table.Table (Offa + J);
Write_Int (Int (Offa + J));
Write_Str (" : ");
Write_Name (Chars (A.Old_Id));
Write_Str (" ");
Write_Int (Int (A.Old_Id));
Write_Str (" ==> ");
Write_Int (Int (A.New_Id));
Write_Str (" next = ");
Write_Int (Int (A.Next));
Write_Eol;
end loop;
end Write_Map;
end Sem_Maps;
| 32.907162 | 78 | 0.528132 |
cb4415fdeddd13068135109bc03c2faa7eb107d8 | 1,028 | ads | Ada | source/slim-messages-bled.ads | reznikmm/slimp | acbbb895ba9c2a2dfb28e5065e630326ce958502 | [
"MIT"
] | null | null | null | source/slim-messages-bled.ads | reznikmm/slimp | acbbb895ba9c2a2dfb28e5065e630326ce958502 | [
"MIT"
] | null | null | null | source/slim-messages-bled.ads | reznikmm/slimp | acbbb895ba9c2a2dfb28e5065e630326ce958502 | [
"MIT"
] | null | null | null | -- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package Slim.Messages.bled is
type Bled_Message is new Message with private;
-- Set 16 backlight leds
not overriding procedure Enable_LED (Self : in out Bled_Message);
private
subtype Byte is Ada.Streams.Stream_Element;
type Bled_Message is new Base_Message
(Max_8 => 0,
Max_16 => 1,
Max_32 => 0,
Max_64 => 0)
with null record;
overriding function Read
(Data : not null access
League.Stream_Element_Vectors.Stream_Element_Vector)
return Bled_Message;
overriding procedure Write
(Self : Bled_Message;
Tag : out Message_Tag;
Data : out League.Stream_Element_Vectors.Stream_Element_Vector);
overriding procedure Visit
(Self : not null access Bled_Message;
Visiter : in out Slim.Message_Visiters.Visiter'Class);
end Slim.Messages.bled;
| 27.052632 | 70 | 0.656615 |
cb842152f38159e51b2b8a96645853ff9f6392ef | 646 | adb | Ada | week1/enum.adb | adammw/rtp_labs | 21d8936d301808256f937acb8d0a7056c1065b48 | [
"MIT"
] | null | null | null | week1/enum.adb | adammw/rtp_labs | 21d8936d301808256f937acb8d0a7056c1065b48 | [
"MIT"
] | null | null | null | week1/enum.adb | adammw/rtp_labs | 21d8936d301808256f937acb8d0a7056c1065b48 | [
"MIT"
] | null | null | null | with Ada.Text_Io;
use Ada.Text_Io;
procedure Enum is
type Day_Type is (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday);
subtype Weekday is Day_Type range Monday .. Friday;
begin
Put("Days: ");
for Day in Day_Type loop
Put(Day'img & " ");
end loop;
Put_Line("");
Put("Days (reversed): ");
for Day in reverse Day_Type'Range loop
Put(Day'img & " ");
end loop;
Put_Line("");
Put("Weekdays: ");
for Day in Weekday loop
Put(Day'img & " ");
end loop;
Put_Line("");
Put("Letters A-K: ");
for Char in Character range 'A' .. 'K' loop
Put(Char & " ");
end loop;
Put_Line("");
end Enum;
| 20.83871 | 84 | 0.616099 |
dcc91be86b965be4f12ccc352d56204fe207dcf0 | 5,450 | adb | Ada | gcc-gcc-7_3_0-release/gcc/ada/a-tiboio.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/ada/a-tiboio.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/a-tiboio.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . T E X T _ I O . B O U N D E D _ I O --
-- --
-- B o d y --
-- --
-- Copyright (C) 1997-2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body Ada.Text_IO.Bounded_IO is
type String_Access is access all String;
procedure Free (SA : in out String_Access);
-- Perform an unchecked deallocation of a non-null string
----------
-- Free --
----------
procedure Free (SA : in out String_Access) is
Null_String : constant String := "";
procedure Deallocate is
new Ada.Unchecked_Deallocation (String, String_Access);
begin
-- Do not try to free statically allocated null string
if SA.all /= Null_String then
Deallocate (SA);
end if;
end Free;
--------------
-- Get_Line --
--------------
function Get_Line return Bounded.Bounded_String is
begin
return Bounded.To_Bounded_String (Get_Line);
end Get_Line;
--------------
-- Get_Line --
--------------
function Get_Line
(File : File_Type) return Bounded.Bounded_String
is
begin
return Bounded.To_Bounded_String (Get_Line (File));
end Get_Line;
--------------
-- Get_Line --
--------------
procedure Get_Line
(Item : out Bounded.Bounded_String)
is
Buffer : String (1 .. 1000);
Last : Natural;
Str1 : String_Access;
Str2 : String_Access;
begin
Get_Line (Buffer, Last);
Str1 := new String'(Buffer (1 .. Last));
while Last = Buffer'Last loop
Get_Line (Buffer, Last);
Str2 := new String'(Str1.all & Buffer (1 .. Last));
Free (Str1);
Str1 := Str2;
end loop;
Item := Bounded.To_Bounded_String (Str1.all);
end Get_Line;
--------------
-- Get_Line --
--------------
procedure Get_Line
(File : File_Type;
Item : out Bounded.Bounded_String)
is
Buffer : String (1 .. 1000);
Last : Natural;
Str1 : String_Access;
Str2 : String_Access;
begin
Get_Line (File, Buffer, Last);
Str1 := new String'(Buffer (1 .. Last));
while Last = Buffer'Last loop
Get_Line (File, Buffer, Last);
Str2 := new String'(Str1.all & Buffer (1 .. Last));
Free (Str1);
Str1 := Str2;
end loop;
Item := Bounded.To_Bounded_String (Str1.all);
end Get_Line;
---------
-- Put --
---------
procedure Put
(Item : Bounded.Bounded_String)
is
begin
Put (Bounded.To_String (Item));
end Put;
---------
-- Put --
---------
procedure Put
(File : File_Type;
Item : Bounded.Bounded_String)
is
begin
Put (File, Bounded.To_String (Item));
end Put;
--------------
-- Put_Line --
--------------
procedure Put_Line
(Item : Bounded.Bounded_String)
is
begin
Put_Line (Bounded.To_String (Item));
end Put_Line;
--------------
-- Put_Line --
--------------
procedure Put_Line
(File : File_Type;
Item : Bounded.Bounded_String)
is
begin
Put_Line (File, Bounded.To_String (Item));
end Put_Line;
end Ada.Text_IO.Bounded_IO;
| 30.277778 | 78 | 0.470092 |
cb11fc056f306a0f68100c15c067ded355d52be0 | 1,232 | ads | Ada | tools/scitools/conf/understand/ada/ada05/a-strhas.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | llvm-gcc-4.2-2.9/gcc/ada/a-strhas.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/a-strhas.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- A D A . S T R I N G S . H A S H --
-- --
-- S p e c --
-- --
-- This specification is adapted from the Ada Reference Manual for use with --
-- GNAT. In accordance with the copyright of that document, you can freely --
-- copy and modify this specification, provided that if you redistribute a --
-- modified version, any changes that you have made are clearly indicated. --
-- --
------------------------------------------------------------------------------
with Ada.Containers;
function Ada.Strings.Hash (Key : String) return Containers.Hash_Type;
pragma Pure (Ada.Strings.Hash);
| 58.666667 | 78 | 0.303571 |
dc7b2dfe05aee71994f9fcb12f5ed02e7abe0916 | 24,443 | adb | Ada | source/amf/uml/amf-internals-uml_read_variable_actions.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-internals-uml_read_variable_actions.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-internals-uml_read_variable_actions.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Elements;
with AMF.Internals.Element_Collections;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.UML_Attributes;
with AMF.Visitors.UML_Iterators;
with AMF.Visitors.UML_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.UML_Read_Variable_Actions is
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant UML_Read_Variable_Action_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Enter_Read_Variable_Action
(AMF.UML.Read_Variable_Actions.UML_Read_Variable_Action_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant UML_Read_Variable_Action_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Leave_Read_Variable_Action
(AMF.UML.Read_Variable_Actions.UML_Read_Variable_Action_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant UML_Read_Variable_Action_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then
AMF.Visitors.UML_Iterators.UML_Iterator'Class
(Iterator).Visit_Read_Variable_Action
(Visitor,
AMF.UML.Read_Variable_Actions.UML_Read_Variable_Action_Access (Self),
Control);
end if;
end Visit_Element;
----------------
-- Get_Result --
----------------
overriding function Get_Result
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Output_Pins.UML_Output_Pin_Access is
begin
return
AMF.UML.Output_Pins.UML_Output_Pin_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Result
(Self.Element)));
end Get_Result;
----------------
-- Set_Result --
----------------
overriding procedure Set_Result
(Self : not null access UML_Read_Variable_Action_Proxy;
To : AMF.UML.Output_Pins.UML_Output_Pin_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Result
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Result;
------------------
-- Get_Variable --
------------------
overriding function Get_Variable
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Variables.UML_Variable_Access is
begin
return
AMF.UML.Variables.UML_Variable_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Variable
(Self.Element)));
end Get_Variable;
------------------
-- Set_Variable --
------------------
overriding procedure Set_Variable
(Self : not null access UML_Read_Variable_Action_Proxy;
To : AMF.UML.Variables.UML_Variable_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Variable
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Variable;
-----------------
-- Get_Context --
-----------------
overriding function Get_Context
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Classifiers.UML_Classifier_Access is
begin
return
AMF.UML.Classifiers.UML_Classifier_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Context
(Self.Element)));
end Get_Context;
---------------
-- Get_Input --
---------------
overriding function Get_Input
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin is
begin
return
AMF.UML.Input_Pins.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Input
(Self.Element)));
end Get_Input;
------------------------------
-- Get_Is_Locally_Reentrant --
------------------------------
overriding function Get_Is_Locally_Reentrant
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Locally_Reentrant
(Self.Element);
end Get_Is_Locally_Reentrant;
------------------------------
-- Set_Is_Locally_Reentrant --
------------------------------
overriding procedure Set_Is_Locally_Reentrant
(Self : not null access UML_Read_Variable_Action_Proxy;
To : Boolean) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Locally_Reentrant
(Self.Element, To);
end Set_Is_Locally_Reentrant;
-----------------------------
-- Get_Local_Postcondition --
-----------------------------
overriding function Get_Local_Postcondition
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
begin
return
AMF.UML.Constraints.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Postcondition
(Self.Element)));
end Get_Local_Postcondition;
----------------------------
-- Get_Local_Precondition --
----------------------------
overriding function Get_Local_Precondition
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
begin
return
AMF.UML.Constraints.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Precondition
(Self.Element)));
end Get_Local_Precondition;
----------------
-- Get_Output --
----------------
overriding function Get_Output
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin is
begin
return
AMF.UML.Output_Pins.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Output
(Self.Element)));
end Get_Output;
-----------------
-- Get_Handler --
-----------------
overriding function Get_Handler
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler is
begin
return
AMF.UML.Exception_Handlers.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Handler
(Self.Element)));
end Get_Handler;
------------------
-- Get_Activity --
------------------
overriding function Get_Activity
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Activities.UML_Activity_Access is
begin
return
AMF.UML.Activities.UML_Activity_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Activity
(Self.Element)));
end Get_Activity;
------------------
-- Set_Activity --
------------------
overriding procedure Set_Activity
(Self : not null access UML_Read_Variable_Action_Proxy;
To : AMF.UML.Activities.UML_Activity_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Activity
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Activity;
------------------
-- Get_In_Group --
------------------
overriding function Get_In_Group
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is
begin
return
AMF.UML.Activity_Groups.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Group
(Self.Element)));
end Get_In_Group;
---------------------------------
-- Get_In_Interruptible_Region --
---------------------------------
overriding function Get_In_Interruptible_Region
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region is
begin
return
AMF.UML.Interruptible_Activity_Regions.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Interruptible_Region
(Self.Element)));
end Get_In_Interruptible_Region;
----------------------
-- Get_In_Partition --
----------------------
overriding function Get_In_Partition
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition is
begin
return
AMF.UML.Activity_Partitions.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Partition
(Self.Element)));
end Get_In_Partition;
----------------------------
-- Get_In_Structured_Node --
----------------------------
overriding function Get_In_Structured_Node
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is
begin
return
AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Structured_Node
(Self.Element)));
end Get_In_Structured_Node;
----------------------------
-- Set_In_Structured_Node --
----------------------------
overriding procedure Set_In_Structured_Node
(Self : not null access UML_Read_Variable_Action_Proxy;
To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Structured_Node
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_In_Structured_Node;
------------------
-- Get_Incoming --
------------------
overriding function Get_Incoming
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
begin
return
AMF.UML.Activity_Edges.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Incoming
(Self.Element)));
end Get_Incoming;
------------------
-- Get_Outgoing --
------------------
overriding function Get_Outgoing
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
begin
return
AMF.UML.Activity_Edges.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Outgoing
(Self.Element)));
end Get_Outgoing;
------------------------
-- Get_Redefined_Node --
------------------------
overriding function Get_Redefined_Node
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is
begin
return
AMF.UML.Activity_Nodes.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Node
(Self.Element)));
end Get_Redefined_Node;
-----------------
-- Get_Is_Leaf --
-----------------
overriding function Get_Is_Leaf
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf
(Self.Element);
end Get_Is_Leaf;
-----------------
-- Set_Is_Leaf --
-----------------
overriding procedure Set_Is_Leaf
(Self : not null access UML_Read_Variable_Action_Proxy;
To : Boolean) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf
(Self.Element, To);
end Set_Is_Leaf;
---------------------------
-- Get_Redefined_Element --
---------------------------
overriding function Get_Redefined_Element
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is
begin
return
AMF.UML.Redefinable_Elements.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element
(Self.Element)));
end Get_Redefined_Element;
------------------------------
-- Get_Redefinition_Context --
------------------------------
overriding function Get_Redefinition_Context
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
begin
return
AMF.UML.Classifiers.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context
(Self.Element)));
end Get_Redefinition_Context;
---------------------------
-- Get_Client_Dependency --
---------------------------
overriding function Get_Client_Dependency
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is
begin
return
AMF.UML.Dependencies.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency
(Self.Element)));
end Get_Client_Dependency;
-------------------------
-- Get_Name_Expression --
-------------------------
overriding function Get_Name_Expression
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access is
begin
return
AMF.UML.String_Expressions.UML_String_Expression_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression
(Self.Element)));
end Get_Name_Expression;
-------------------------
-- Set_Name_Expression --
-------------------------
overriding procedure Set_Name_Expression
(Self : not null access UML_Read_Variable_Action_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Name_Expression;
-------------------
-- Get_Namespace --
-------------------
overriding function Get_Namespace
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
return
AMF.UML.Namespaces.UML_Namespace_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace
(Self.Element)));
end Get_Namespace;
------------------------
-- Get_Qualified_Name --
------------------------
overriding function Get_Qualified_Name
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.Optional_String is
begin
declare
use type Matreshka.Internals.Strings.Shared_String_Access;
Aux : constant Matreshka.Internals.Strings.Shared_String_Access
:= AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element);
begin
if Aux = null then
return (Is_Empty => True);
else
return (False, League.Strings.Internals.Create (Aux));
end if;
end;
end Get_Qualified_Name;
-------------
-- Context --
-------------
overriding function Context
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Classifiers.UML_Classifier_Access is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Context unimplemented");
raise Program_Error with "Unimplemented procedure UML_Read_Variable_Action_Proxy.Context";
return Context (Self);
end Context;
------------------------
-- Is_Consistent_With --
------------------------
overriding function Is_Consistent_With
(Self : not null access constant UML_Read_Variable_Action_Proxy;
Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented");
raise Program_Error with "Unimplemented procedure UML_Read_Variable_Action_Proxy.Is_Consistent_With";
return Is_Consistent_With (Self, Redefinee);
end Is_Consistent_With;
-----------------------------------
-- Is_Redefinition_Context_Valid --
-----------------------------------
overriding function Is_Redefinition_Context_Valid
(Self : not null access constant UML_Read_Variable_Action_Proxy;
Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented");
raise Program_Error with "Unimplemented procedure UML_Read_Variable_Action_Proxy.Is_Redefinition_Context_Valid";
return Is_Redefinition_Context_Valid (Self, Redefined);
end Is_Redefinition_Context_Valid;
-------------------------
-- All_Owning_Packages --
-------------------------
overriding function All_Owning_Packages
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented");
raise Program_Error with "Unimplemented procedure UML_Read_Variable_Action_Proxy.All_Owning_Packages";
return All_Owning_Packages (Self);
end All_Owning_Packages;
-----------------------------
-- Is_Distinguishable_From --
-----------------------------
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Read_Variable_Action_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented");
raise Program_Error with "Unimplemented procedure UML_Read_Variable_Action_Proxy.Is_Distinguishable_From";
return Is_Distinguishable_From (Self, N, Ns);
end Is_Distinguishable_From;
---------------
-- Namespace --
---------------
overriding function Namespace
(Self : not null access constant UML_Read_Variable_Action_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented");
raise Program_Error with "Unimplemented procedure UML_Read_Variable_Action_Proxy.Namespace";
return Namespace (Self);
end Namespace;
end AMF.Internals.UML_Read_Variable_Actions;
| 37.260671 | 118 | 0.622796 |
0e80abd851eb59e4c27d5ff262f91956bfdb18ac | 1,375 | adb | Ada | conditions.adb | charlesincharge/Intro_to_Ada | cc8b8c8af112909e3c3e6a929d9c1f4c19dc34e8 | [
"MIT"
] | null | null | null | conditions.adb | charlesincharge/Intro_to_Ada | cc8b8c8af112909e3c3e6a929d9c1f4c19dc34e8 | [
"MIT"
] | null | null | null | conditions.adb | charlesincharge/Intro_to_Ada | cc8b8c8af112909e3c3e6a929d9c1f4c19dc34e8 | [
"MIT"
] | null | null | null | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Conditions is
-- Enable preconditions and postconditinos.
pragma Assertion_Policy(Check);
-- Trivial example of a post-condition
function Increment (x : Integer) return Integer
with Post => Increment'Result = (x + 1);
-- Precondition checking that Integer division without roundoff is possible
procedure Integer_Division (Num : Integer;
Den : Integer;
Res : out Integer)
with Pre => (Num rem Den) = 0;
function Increment (x : Integer) return Integer is
begin
return (x + 1);
end Increment;
procedure Integer_Division (Num : Integer;
Den : Integer;
Res : out Integer) is
begin
Res := Num / Den;
end Integer_Division;
x : Integer := 10;
y : Integer := 3;
Res : Integer;
begin
Put ("The value of x is "); Put (x, 0); Put_Line (".");
Put ("The value of Increment (x) is "); Put (Increment (x), 0); Put_Line (".");
Put ("Trying to divide "); Put (x, 0); Put (" by "); Put (y,0); Put_Line (".");
-- Precondition will fail for `Integer_Division`
Integer_Division (x, y, Res);
Put ("The result is "); Put (Res, 0); Put_Line (".");
end Conditions;
| 32.738095 | 82 | 0.578909 |
cb5374c7ba0f115e8f8e49cfc59838c560505fc8 | 4,398 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-valrea.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-valrea.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-valrea.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V A L _ R E A L --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package System.Val_Real is
pragma Preelaborate;
function Scan_Real
(Str : String;
Ptr : not null access Integer;
Max : Integer) return Long_Long_Float;
-- This function scans the string starting at Str (Ptr.all) for a valid
-- real literal according to the syntax described in (RM 3.5(43)). The
-- substring scanned extends no further than Str (Max). There are three
-- cases for the return:
--
-- If a valid real is found after scanning past any initial spaces, then
-- Ptr.all is updated past the last character of the real (but trailing
-- spaces are not scanned out).
--
-- If no valid real is found, then Ptr.all points either to an initial
-- non-blank character, or to Max + 1 if the field is all spaces and the
-- exception Constraint_Error is raised.
--
-- If a syntactically valid real is scanned, but the value is out of
-- range, or, in the based case, the base value is out of range or there
-- is an out of range digit, then Ptr.all points past the real literal,
-- and Constraint_Error is raised.
--
-- Note: these rules correspond to the requirements for leaving the
-- pointer positioned in Text_Io.Get
--
-- Note: if Str is null, i.e. if Max is less than Ptr, then this is a
-- special case of an all-blank string, and Ptr is unchanged, and hence
-- is greater than Max as required in this case.
--
-- Note: this routine should not be called with Str'Last = Positive'Last.
-- If this occurs Program_Error is raised with a message noting that this
-- case is not supported. Most such cases are eliminated by the caller.
function Value_Real (Str : String) return Long_Long_Float;
-- Used in computing X'Value (Str) where X is a floating-point type or an
-- ordinary fixed-point type. Str is the string argument of the attribute.
-- Constraint_Error is raised if the string is malformed, or if the value
-- out of range of Long_Long_Float.
end System.Val_Real;
| 58.64 | 78 | 0.515916 |
4a8a3aa024896c34289b31976088d683bbd664e9 | 1,461 | ads | Ada | tier-1/xcb/source/thin/xcb-xcb_render_fixed_iterator_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | 2 | 2015-11-12T11:16:20.000Z | 2021-08-24T22:32:04.000Z | tier-1/xcb/source/thin/xcb-xcb_render_fixed_iterator_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | 1 | 2018-06-05T05:19:35.000Z | 2021-11-20T01:13:23.000Z | tier-1/xcb/source/thin/xcb-xcb_render_fixed_iterator_t.ads | charlie5/cBound | 741be08197a61ad9c72553e3302f3b669902216d | [
"0BSD"
] | null | null | null | -- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces.C;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_render_fixed_iterator_t is
-- Item
--
type Item is record
data : access xcb.xcb_render_fixed_t;
the_rem : aliased Interfaces.C.int;
index : aliased Interfaces.C.int;
end record;
-- Item_Array
--
type Item_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_render_fixed_iterator_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_render_fixed_iterator_t.Item,
Element_Array => xcb.xcb_render_fixed_iterator_t.Item_Array,
Default_Terminator => (others => <>));
subtype Pointer is C_Pointers.Pointer;
-- Pointer_Array
--
type Pointer_Array is
array
(Interfaces.C
.size_t range <>) of aliased xcb.xcb_render_fixed_iterator_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_render_fixed_iterator_t.Pointer,
Element_Array => xcb.xcb_render_fixed_iterator_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_render_fixed_iterator_t;
| 26.563636 | 74 | 0.661191 |
c5d3ff2e1134d14c500d836d2831f4f4942520c5 | 7,706 | adb | Ada | source/nodes/program-nodes-package_instantiations.adb | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-package_instantiations.adb | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-package_instantiations.adb | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | 2 | 2019-09-14T23:18:50.000Z | 2019-10-02T10:11:40.000Z | -- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Package_Instantiations is
function Create
(Package_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
Is_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
New_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Generic_Package_Name : not null Program.Elements.Expressions
.Expression_Access;
Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access;
Parameters : Program.Elements.Parameter_Associations
.Parameter_Association_Vector_Access;
Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access;
With_Token : Program.Lexical_Elements.Lexical_Element_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Package_Instantiation is
begin
return Result : Package_Instantiation :=
(Package_Token => Package_Token, Name => Name, Is_Token => Is_Token,
New_Token => New_Token, Generic_Package_Name => Generic_Package_Name,
Left_Bracket_Token => Left_Bracket_Token, Parameters => Parameters,
Right_Bracket_Token => Right_Bracket_Token, With_Token => With_Token,
Aspects => Aspects, Semicolon_Token => Semicolon_Token,
Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Name : not null Program.Elements.Defining_Names
.Defining_Name_Access;
Generic_Package_Name : not null Program.Elements.Expressions
.Expression_Access;
Parameters : Program.Elements.Parameter_Associations
.Parameter_Association_Vector_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Package_Instantiation is
begin
return Result : Implicit_Package_Instantiation :=
(Name => Name, Generic_Package_Name => Generic_Package_Name,
Parameters => Parameters, Aspects => Aspects,
Is_Part_Of_Implicit => Is_Part_Of_Implicit,
Is_Part_Of_Inherited => Is_Part_Of_Inherited,
Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
overriding function Name
(Self : Base_Package_Instantiation)
return not null Program.Elements.Defining_Names.Defining_Name_Access is
begin
return Self.Name;
end Name;
overriding function Generic_Package_Name
(Self : Base_Package_Instantiation)
return not null Program.Elements.Expressions.Expression_Access is
begin
return Self.Generic_Package_Name;
end Generic_Package_Name;
overriding function Parameters
(Self : Base_Package_Instantiation)
return Program.Elements.Parameter_Associations
.Parameter_Association_Vector_Access is
begin
return Self.Parameters;
end Parameters;
overriding function Aspects
(Self : Base_Package_Instantiation)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access is
begin
return Self.Aspects;
end Aspects;
overriding function Package_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Package_Token;
end Package_Token;
overriding function Is_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Is_Token;
end Is_Token;
overriding function New_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.New_Token;
end New_Token;
overriding function Left_Bracket_Token
(Self : Package_Instantiation)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Left_Bracket_Token;
end Left_Bracket_Token;
overriding function Right_Bracket_Token
(Self : Package_Instantiation)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Right_Bracket_Token;
end Right_Bracket_Token;
overriding function With_Token
(Self : Package_Instantiation)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.With_Token;
end With_Token;
overriding function Semicolon_Token
(Self : Package_Instantiation)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Semicolon_Token;
end Semicolon_Token;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Package_Instantiation)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Package_Instantiation)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Package_Instantiation)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize
(Self : aliased in out Base_Package_Instantiation'Class) is
begin
Set_Enclosing_Element (Self.Name, Self'Unchecked_Access);
Set_Enclosing_Element (Self.Generic_Package_Name, Self'Unchecked_Access);
for Item in Self.Parameters.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
for Item in Self.Aspects.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
null;
end Initialize;
overriding function Is_Package_Instantiation_Element
(Self : Base_Package_Instantiation)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Package_Instantiation_Element;
overriding function Is_Declaration_Element
(Self : Base_Package_Instantiation)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Declaration_Element;
overriding procedure Visit
(Self : not null access Base_Package_Instantiation;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Package_Instantiation (Self);
end Visit;
overriding function To_Package_Instantiation_Text
(Self : aliased in out Package_Instantiation)
return Program.Elements.Package_Instantiations
.Package_Instantiation_Text_Access is
begin
return Self'Unchecked_Access;
end To_Package_Instantiation_Text;
overriding function To_Package_Instantiation_Text
(Self : aliased in out Implicit_Package_Instantiation)
return Program.Elements.Package_Instantiations
.Package_Instantiation_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Package_Instantiation_Text;
end Program.Nodes.Package_Instantiations;
| 34.556054 | 79 | 0.723981 |
0ea4cd155ce08fb86bfe60980a9db55150e66941 | 26,234 | adb | Ada | ADL/drivers/stm32f334/stm32-spi.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ADL/drivers/stm32f334/stm32-spi.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ADL/drivers/stm32f334/stm32-spi.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file stm32f4xx_hal_spi.c --
-- @author MCD Application Team --
-- @version V1.1.0 --
-- @date 19-June-2014 --
-- @brief SPI HAL module driver. --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with STM32_SVD.SPI; use STM32_SVD.SPI;
package body STM32.SPI is
use type HAL.SPI.SPI_Data_Size;
Baud_Rate_Value : constant array (SPI_Baud_Rate_Prescaler) of UInt3 :=
(BRP_2 => 2#000#,
BRP_4 => 2#001#,
BRP_8 => 2#010#,
BRP_16 => 2#011#,
BRP_32 => 2#100#,
BRP_64 => 2#101#,
BRP_128 => 2#110#,
BRP_256 => 2#111#);
type Half_Word_Pointer is access all UInt16
with Storage_Size => 0;
function As_Half_Word_Pointer is new Ada.Unchecked_Conversion
(Source => System.Address, Target => Half_Word_Pointer);
-- So that we can treat the address of a UInt8 as a pointer to a two-UInt8
-- sequence representing a Half_Word quantity
---------------
-- Configure --
---------------
procedure Configure (This : in out SPI_Port; Conf : SPI_Configuration) is
begin
case Conf.Mode is
when Master =>
This.Periph.CR1.MSTR := True;
This.Periph.CR1.SSI := True;
when Slave =>
This.Periph.CR1.MSTR := False;
This.Periph.CR1.SSI := False;
end case;
case Conf.Direction is
when D2Lines_FullDuplex =>
This.Periph.CR1.BIDIMODE := False;
This.Periph.CR1.BIDIOE := False;
This.Periph.CR1.RXONLY := False;
when D2Lines_RxOnly =>
This.Periph.CR1.BIDIMODE := False;
This.Periph.CR1.BIDIOE := False;
This.Periph.CR1.RXONLY := True;
when D1Line_Rx =>
This.Periph.CR1.BIDIMODE := True;
This.Periph.CR1.BIDIOE := False;
This.Periph.CR1.RXONLY := False;
when D1Line_Tx =>
This.Periph.CR1.BIDIMODE := True;
This.Periph.CR1.BIDIOE := True;
This.Periph.CR1.RXONLY := False;
end case;
This.Periph.CR2.DS :=
(if Conf.Data_Size = HAL.SPI.Data_Size_16b
then SPI_Data_Size'Enum_Rep (Bits_16)
else SPI_Data_Size'Enum_Rep (Bits_8));
This.Periph.CR1.CPOL := Conf.Clock_Polarity = High;
This.Periph.CR1.CPHA := Conf.Clock_Phase = P2Edge;
This.Periph.CR1.SSM := Conf.Slave_Management = Software_Managed;
This.Periph.CR1.BR := Baud_Rate_Value (Conf.Baud_Rate_Prescaler);
This.Periph.CR1.LSBFIRST := Conf.First_Bit = LSB;
-- Activate the SPI mode (Reset I2SMOD bit in I2SCFGR register)
This.Periph.I2SCFGR.I2SMOD := False;
This.Periph.CRCPR.CRCPOLY := Conf.CRC_Poly;
end Configure;
------------
-- Enable --
------------
procedure Enable (This : in out SPI_Port) is
begin
This.Periph.CR1.SPE := True;
end Enable;
-------------
-- Disable --
-------------
procedure Disable (This : in out SPI_Port) is
begin
This.Periph.CR1.SPE := False;
end Disable;
-------------
-- Enabled --
-------------
function Enabled (This : SPI_Port) return Boolean is
begin
return This.Periph.CR1.SPE;
end Enabled;
----------
-- Send --
----------
procedure Send (This : in out SPI_Port; Data : UInt16) is
begin
This.Periph.DR.DR := Data;
end Send;
----------
-- Data --
----------
function Data (This : SPI_Port) return UInt16 is
begin
return This.Periph.DR.DR;
end Data;
----------
-- Send --
----------
procedure Send (This : in out SPI_Port; Data : UInt8) is
begin
Send (This, UInt16 (Data));
end Send;
----------
-- Data --
----------
function Data (This : SPI_Port) return UInt8 is
begin
return UInt8 (UInt16'(Data (This)));
end Data;
-------------
-- Is_Busy --
-------------
function Is_Busy (This : SPI_Port) return Boolean is
begin
return (Rx_Is_Empty (This)
and then not Tx_Is_Empty (This))
or else Busy (This);
end Is_Busy;
-----------------
-- Tx_Is_Empty --
-----------------
function Tx_Is_Empty (This : SPI_Port) return Boolean is
begin
return This.Periph.SR.TXE;
end Tx_Is_Empty;
-----------------
-- Rx_Is_Empty --
-----------------
function Rx_Is_Empty (This : SPI_Port) return Boolean is
begin
return not This.Periph.SR.RXNE;
end Rx_Is_Empty;
----------
-- Busy --
----------
function Busy (This : SPI_Port) return Boolean is
begin
return This.Periph.SR.BSY;
end Busy;
------------------
-- Current_Mode --
------------------
function Current_Mode (This : SPI_Port) return SPI_Mode is
begin
if This.Periph.CR1.MSTR and This.Periph.CR1.SSI then
return Master;
else
return Slave;
end if;
end Current_Mode;
----------------------------
-- Current_Data_Direction --
----------------------------
function Current_Data_Direction (This : SPI_Port) return SPI_Data_Direction
is
begin
if not This.Periph.CR1.BIDIMODE then
if not This.Periph.CR1.RXONLY then
return D2Lines_FullDuplex;
else
return D2Lines_RxOnly;
end if;
else
if not This.Periph.CR1.BIDIOE then
return D1Line_Rx;
else
return D1Line_Tx;
end if;
end if;
end Current_Data_Direction;
-----------------
-- CRC_Enabled --
-----------------
function CRC_Enabled (This : SPI_Port) return Boolean is
(This.Periph.CR1.CRCEN);
------------------------
-- Underrun_Indicated --
------------------------
function Underrun_Indicated (This : SPI_Port) return Boolean is
(This.Periph.SR.UDR);
-------------------------
-- CRC_Error_Indicated --
-------------------------
function CRC_Error_Indicated (This : SPI_Port) return Boolean is
(This.Periph.SR.CRCERR);
--------------------------
-- Mode_Fault_Indicated --
--------------------------
function Mode_Fault_Indicated (This : SPI_Port) return Boolean is
(This.Periph.SR.MODF);
-----------------------
-- Overrun_Indicated --
-----------------------
function Overrun_Indicated (This : SPI_Port) return Boolean is
(This.Periph.SR.OVR);
-------------------------------
-- Frame_Fmt_Error_Indicated --
-------------------------------
function Frame_Fmt_Error_Indicated (This : SPI_Port) return Boolean is
begin
return This.Periph.SR.TIFRFE;
end Frame_Fmt_Error_Indicated;
-------------------
-- Clear_Overrun --
-------------------
procedure Clear_Overrun (This : SPI_Port) is
Dummy1 : UInt16;
Dummy2 : SR_Register;
begin
Dummy1 := This.Periph.DR.DR;
Dummy2 := This.Periph.SR;
end Clear_Overrun;
---------------
-- Reset_CRC --
---------------
procedure Reset_CRC (This : in out SPI_Port) is
begin
This.Periph.CR1.CRCEN := False;
This.Periph.CR1.CRCEN := True;
end Reset_CRC;
-------------------------
-- Is_Data_Frame_16bit --
-------------------------
function Is_Data_Frame_16bit (This : SPI_Port) return Boolean is
(This.Periph.CR2.DS = SPI_Data_Size'Enum_Rep (Bits_16));
---------------
-- Data_Size --
---------------
overriding
function Data_Size (This : SPI_Port) return HAL.SPI.SPI_Data_Size is
begin
if This.Periph.CR2.DS = SPI_Data_Size'Enum_Rep (Bits_16) then
return HAL.SPI.Data_Size_16b;
else
return HAL.SPI.Data_Size_8b;
end if;
end Data_Size;
--------------
-- Transmit --
--------------
overriding
procedure Transmit
(This : in out SPI_Port;
Data : HAL.SPI.SPI_Data_8b;
Status : out HAL.SPI.SPI_Status;
Timeout : Natural := 1000)
is
pragma Unreferenced (Timeout);
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
-- ??? right value to compare???
if Current_Data_Direction (This) = D1Line_Tx then
This.Periph.CR1.BIDIOE := True;
end if;
Clear_Overrun (This);
if not Enabled (This) then
Enable (This);
end if;
Send_8bit_Mode (This, Data);
-- Wait until TXE flag is set to send data
while not Tx_Is_Empty (This) loop
null;
end loop;
-- Wait until Busy flag is reset before disabling SPI
while Busy (This) loop
null;
end loop;
-- Clear OVERUN flag in 2-Line communication mode because received UInt8
-- is not read.
if Current_Data_Direction (This) in D2Lines_RxOnly | D2Lines_FullDuplex
then -- right comparison ???
Clear_Overrun (This);
end if;
Status := HAL.SPI.Ok;
end Transmit;
--------------
-- Transmit --
--------------
overriding
procedure Transmit
(This : in out SPI_Port;
Data : HAL.SPI.SPI_Data_16b;
Status : out HAL.SPI.SPI_Status;
Timeout : Natural := 1000)
is
pragma Unreferenced (Timeout);
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
-- ??? right value to compare???
if Current_Data_Direction (This) = D1Line_Tx then
This.Periph.CR1.BIDIOE := True;
end if;
Clear_Overrun (This);
if not Enabled (This) then
Enable (This);
end if;
Send_16bit_Mode (This, Data);
-- Wait until TXE flag is set to send data
while not Tx_Is_Empty (This) loop
null;
end loop;
-- Wait until Busy flag is reset before disabling SPI
while Busy (This) loop
null;
end loop;
-- Clear OVERUN flag in 2-Line communication mode because received UInt8
-- is not read.
if Current_Data_Direction (This) in D2Lines_RxOnly | D2Lines_FullDuplex
then -- right comparison ???
Clear_Overrun (This);
Status := HAL.SPI.Err_Error;
end if;
Status := HAL.SPI.Ok;
end Transmit;
--------------
-- Transmit --
--------------
procedure Transmit
(This : in out SPI_Port;
Outgoing : UInt8)
is
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
-- ??? right value to compare???
if Current_Data_Direction (This) = D1Line_Tx then
This.Periph.CR1.BIDIOE := True;
end if;
if not Enabled (This) then
Enable (This);
end if;
This.Periph.DR.DR := UInt16 (Outgoing);
while not Tx_Is_Empty (This) loop
null;
end loop;
while Busy (This) loop
null;
end loop;
-- Clear OVERUN flag in 2-Line communication mode because received UInt8
-- is not read.
if Current_Data_Direction (This) in D2Lines_RxOnly | D2Lines_FullDuplex
then -- right comparison ???
Clear_Overrun (This);
end if;
end Transmit;
-------------
-- Receive --
-------------
overriding
procedure Receive
(This : in out SPI_Port;
Data : out HAL.SPI.SPI_Data_8b;
Status : out HAL.SPI.SPI_Status;
Timeout : Natural := 1000)
is
pragma Unreferenced (Timeout);
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
if not Enabled (This) then
Enable (This);
end if;
Receive_8bit_Mode (This, Data);
while Busy (This) loop
null;
end loop;
if CRC_Enabled (This) and CRC_Error_Indicated (This) then
Reset_CRC (This);
Status := HAL.SPI.Err_Error;
end if;
Status := HAL.SPI.Ok;
end Receive;
-------------
-- Receive --
-------------
overriding
procedure Receive
(This : in out SPI_Port;
Data : out HAL.SPI.SPI_Data_16b;
Status : out HAL.SPI.SPI_Status;
Timeout : Natural := 1000)
is
pragma Unreferenced (Timeout);
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
if not Enabled (This) then
Enable (This);
end if;
Receive_16bit_Mode (This, Data);
while Busy (This) loop
null;
end loop;
if CRC_Enabled (This) and CRC_Error_Indicated (This) then
Reset_CRC (This);
Status := HAL.SPI.Err_Error;
end if;
Status := HAL.SPI.Ok;
end Receive;
-------------
-- Receive --
-------------
procedure Receive
(This : in out SPI_Port;
Incoming : out UInt8)
is
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
if not Enabled (This) then
Enable (This);
end if;
This.Periph.DR.DR := 0; -- generate clock
while Rx_Is_Empty (This) loop
null;
end loop;
Incoming := UInt8 (This.Periph.DR.DR);
if CRC_Enabled (This) then
while Rx_Is_Empty (This) loop
null;
end loop;
Read_CRC : declare
Dummy : UInt16;
begin
Dummy := This.Periph.DR.DR;
end Read_CRC;
end if;
while Busy (This) loop
null;
end loop;
if CRC_Enabled (This) and CRC_Error_Indicated (This) then
Reset_CRC (This);
end if;
end Receive;
----------------------
-- Transmit_Receive --
----------------------
procedure Transmit_Receive
(This : in out SPI_Port;
Outgoing : UInt8_Buffer;
Incoming : out UInt8_Buffer;
Size : Positive)
is
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
if not Enabled (This) then
Enable (This);
end if;
if Is_Data_Frame_16bit (This) then
Send_Receive_16bit_Mode (This, Outgoing, Incoming, Size);
else
Send_Receive_8bit_Mode (This, Outgoing, Incoming, Size);
end if;
-- Read CRC to close CRC calculation process
if CRC_Enabled (This) then
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
Read_CRC : declare
Dummy : UInt16;
begin
Dummy := This.Periph.DR.DR;
end Read_CRC;
end if;
while Busy (This) loop
null;
end loop;
if CRC_Enabled (This) and CRC_Error_Indicated (This) then
Reset_CRC (This);
end if;
end Transmit_Receive;
----------------------
-- Transmit_Receive --
----------------------
procedure Transmit_Receive
(This : in out SPI_Port;
Outgoing : UInt8;
Incoming : out UInt8)
is
begin
if CRC_Enabled (This) then
Reset_CRC (This);
end if;
if not Enabled (This) then
Enable (This);
end if;
if Is_Data_Frame_16bit (This) then
raise Program_Error;
end if;
This.Periph.DR.DR := UInt16 (Outgoing);
-- enable CRC transmission
if CRC_Enabled (This) then
This.Periph.CR1.CRCNEXT := True;
end if;
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
Incoming := UInt8 (This.Periph.DR.DR);
-- Read CRC UInt8 to close CRC calculation
if CRC_Enabled (This) then
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
Read_CRC : declare
Dummy : UInt16;
begin
Dummy := This.Periph.DR.DR;
end Read_CRC;
end if;
while Busy (This) loop
null;
end loop;
if CRC_Enabled (This) and CRC_Error_Indicated (This) then
Reset_CRC (This);
end if;
end Transmit_Receive;
---------------------------
-- Data_Register_Address --
---------------------------
function Data_Register_Address
(This : SPI_Port)
return System.Address
is
begin
return This.Periph.DR'Address;
end Data_Register_Address;
-----------------------------
-- Send_Receive_16bit_Mode --
-----------------------------
procedure Send_Receive_16bit_Mode
(This : in out SPI_Port;
Outgoing : UInt8_Buffer;
Incoming : out UInt8_Buffer;
Size : Positive)
is
Tx_Count : Natural := Size;
Outgoing_Index : Natural := Outgoing'First;
Incoming_Index : Natural := Incoming'First;
begin
if Current_Mode (This) = Slave or else Tx_Count = 1 then
This.Periph.DR.DR :=
As_Half_Word_Pointer (Outgoing (Outgoing_Index)'Address).all;
Outgoing_Index := Outgoing_Index + 2;
Tx_Count := Tx_Count - 1;
end if;
if Tx_Count = 0 then
-- enable CRC transmission
if CRC_Enabled (This) then
This.Periph.CR1.CRCNEXT := True;
end if;
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
As_Half_Word_Pointer (Incoming (Incoming_Index)'Address).all :=
This.Periph.DR.DR;
return;
end if;
while Tx_Count > 0 loop
-- wait until we can send data
while not Tx_Is_Empty (This) loop
null;
end loop;
This.Periph.DR.DR :=
As_Half_Word_Pointer (Outgoing (Outgoing_Index)'Address).all;
Outgoing_Index := Outgoing_Index + 2;
Tx_Count := Tx_Count - 1;
-- enable CRC transmission
if Tx_Count = 0 and CRC_Enabled (This) then
This.Periph.CR1.CRCNEXT := True;
end if;
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
As_Half_Word_Pointer (Incoming (Incoming_Index)'Address).all :=
This.Periph.DR.DR;
Incoming_Index := Incoming_Index + 2;
end loop;
-- receive the last UInt8
if Current_Mode (This) = Slave then
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
As_Half_Word_Pointer (Incoming (Incoming_Index)'Address).all :=
This.Periph.DR.DR;
end if;
end Send_Receive_16bit_Mode;
----------------------------
-- Send_Receive_8bit_Mode --
----------------------------
procedure Send_Receive_8bit_Mode
(This : in out SPI_Port;
Outgoing : UInt8_Buffer;
Incoming : out UInt8_Buffer;
Size : Positive)
is
Tx_Count : Natural := Size;
Outgoing_Index : Natural := Outgoing'First;
Incoming_Index : Natural := Incoming'First;
begin
if Current_Mode (This) = Slave or else Tx_Count = 1 then
This.Periph.DR.DR := UInt16 (Outgoing (Outgoing_Index));
Outgoing_Index := Outgoing_Index + 1;
Tx_Count := Tx_Count - 1;
end if;
if Tx_Count = 0 then
-- enable CRC transmission
if CRC_Enabled (This) then
This.Periph.CR1.CRCNEXT := True;
end if;
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
Incoming (Incoming_Index) := UInt8 (This.Periph.DR.DR);
return;
end if;
while Tx_Count > 0 loop
-- wait until we can send data
while not Tx_Is_Empty (This) loop
null;
end loop;
This.Periph.DR.DR := UInt16 (Outgoing (Outgoing_Index));
Outgoing_Index := Outgoing_Index + 1;
Tx_Count := Tx_Count - 1;
-- enable CRC transmission
if Tx_Count = 0 and CRC_Enabled (This) then
This.Periph.CR1.CRCNEXT := True;
end if;
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
Incoming (Incoming_Index) := UInt8 (This.Periph.DR.DR);
Incoming_Index := Incoming_Index + 1;
end loop;
if Current_Mode (This) = Slave then
-- wait until data is received
while Rx_Is_Empty (This) loop
null;
end loop;
Incoming (Incoming_Index) := Data (This);
end if;
end Send_Receive_8bit_Mode;
---------------------
-- Send_16bit_Mode --
---------------------
procedure Send_16bit_Mode
(This : in out SPI_Port;
Outgoing : HAL.SPI.SPI_Data_16b)
is
Tx_Count : Natural := Outgoing'Length;
Index : Natural := Outgoing'First;
begin
if Current_Mode (This) = Slave or else Tx_Count = 1 then
This.Periph.DR.DR :=
As_Half_Word_Pointer (Outgoing (Index)'Address).all;
Index := Index + 2;
Tx_Count := Tx_Count - 1;
end if;
while Tx_Count > 0 loop
-- wait until we can send data
while not Tx_Is_Empty (This) loop
null;
end loop;
This.Periph.DR.DR :=
As_Half_Word_Pointer (Outgoing (Index)'Address).all;
Index := Index + 2;
Tx_Count := Tx_Count - 1;
end loop;
if CRC_Enabled (This) then
This.Periph.CR1.CRCNEXT := True;
end if;
end Send_16bit_Mode;
--------------------
-- Send_8bit_Mode --
--------------------
procedure Send_8bit_Mode
(This : in out SPI_Port;
Outgoing : HAL.SPI.SPI_Data_8b)
is
Tx_Count : Natural := Outgoing'Length;
Index : Natural := Outgoing'First;
begin
if Current_Mode (This) = Slave or else Tx_Count = 1 then
This.Periph.DR.DR := UInt16 (Outgoing (Index));
Index := Index + 1;
Tx_Count := Tx_Count - 1;
end if;
while Tx_Count > 0 loop
-- wait until we can send data
while not Tx_Is_Empty (This) loop
null;
end loop;
This.Periph.DR.DR := UInt16 (Outgoing (Index));
Index := Index + 1;
Tx_Count := Tx_Count - 1;
end loop;
if CRC_Enabled (This) then
This.Periph.CR1.CRCNEXT := True;
end if;
end Send_8bit_Mode;
------------------------
-- Receive_16bit_Mode --
------------------------
procedure Receive_16bit_Mode
(This : in out SPI_Port;
Incoming : out HAL.SPI.SPI_Data_16b)
is
Generate_Clock : constant Boolean := Current_Mode (This) = Master;
begin
for K of Incoming loop
if Generate_Clock then
This.Periph.DR.DR := 0;
end if;
while Rx_Is_Empty (This) loop
null;
end loop;
K := This.Periph.DR.DR;
end loop;
end Receive_16bit_Mode;
-----------------------
-- Receive_8bit_Mode --
-----------------------
procedure Receive_8bit_Mode
(This : in out SPI_Port;
Incoming : out HAL.SPI.SPI_Data_8b)
is
Generate_Clock : constant Boolean := Current_Mode (This) = Master;
begin
for K of Incoming loop
if Generate_Clock then
This.Periph.DR.DR := 0;
end if;
while Rx_Is_Empty (This) loop
null;
end loop;
K := UInt8 (This.Periph.DR.DR);
end loop;
end Receive_8bit_Mode;
end STM32.SPI;
| 27.045361 | 79 | 0.526797 |
dcc9fba5bea077b943fa84997e938f2dd0525926 | 2,418 | ads | Ada | source/oasis/program-elements-formal_package_associations.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/oasis/program-elements-formal_package_associations.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/oasis/program-elements-formal_package_associations.ads | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | 1 | 2019-10-16T09:05:27.000Z | 2019-10-16T09:05:27.000Z | -- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Associations;
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements.Formal_Package_Associations is
pragma Pure (Program.Elements.Formal_Package_Associations);
type Formal_Package_Association is
limited interface and Program.Elements.Associations.Association;
type Formal_Package_Association_Access is
access all Formal_Package_Association'Class with Storage_Size => 0;
not overriding function Formal_Parameter
(Self : Formal_Package_Association)
return Program.Elements.Expressions.Expression_Access is abstract;
not overriding function Actual_Parameter
(Self : Formal_Package_Association)
return Program.Elements.Expressions.Expression_Access is abstract;
type Formal_Package_Association_Text is limited interface;
type Formal_Package_Association_Text_Access is
access all Formal_Package_Association_Text'Class with Storage_Size => 0;
not overriding function To_Formal_Package_Association_Text
(Self : in out Formal_Package_Association)
return Formal_Package_Association_Text_Access is abstract;
not overriding function Arrow_Token
(Self : Formal_Package_Association_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
not overriding function Box_Token
(Self : Formal_Package_Association_Text)
return Program.Lexical_Elements.Lexical_Element_Access is abstract;
type Formal_Package_Association_Vector is
limited interface and Program.Element_Vectors.Element_Vector;
type Formal_Package_Association_Vector_Access is
access all Formal_Package_Association_Vector'Class with Storage_Size => 0;
overriding function Element
(Self : Formal_Package_Association_Vector;
Index : Positive)
return not null Program.Elements.Element_Access is abstract
with Post'Class => Element'Result.Is_Formal_Package_Association;
function To_Formal_Package_Association
(Self : Formal_Package_Association_Vector'Class;
Index : Positive)
return not null Formal_Package_Association_Access
is (Self.Element (Index).To_Formal_Package_Association);
end Program.Elements.Formal_Package_Associations;
| 37.2 | 79 | 0.786187 |
cb288bd0c0e6a4f29f55ab8f28e63aea44ffe7fe | 64,933 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_util.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_util.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_util.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E X P _ U T I L --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Package containing utility procedures used throughout the expander
with Exp_Tss; use Exp_Tss;
with Namet; use Namet;
with Rtsfind; use Rtsfind;
with Sinfo; use Sinfo;
with Types; use Types;
with Uintp; use Uintp;
package Exp_Util is
-----------------------------------------------
-- Handling of Actions Associated with Nodes --
-----------------------------------------------
-- The evaluation of certain expression nodes involves the elaboration
-- of associated types and other declarations, and the execution of
-- statement sequences. Expansion routines generating such actions must
-- find an appropriate place in the tree to hang the actions so that
-- they will be evaluated at the appropriate point.
-- Some cases are simple:
-- For an expression occurring in a simple statement that is in a list
-- of statements, the actions are simply inserted into the list before
-- the associated statement.
-- For an expression occurring in a declaration (declarations always
-- appear in lists), the actions are similarly inserted into the list
-- just before the associated declaration. ???Declarations do not always
-- appear in lists; in particular, a library unit declaration does not
-- appear in a list, and Insert_Action will crash in that case.
-- The following special cases arise:
-- For actions associated with the right operand of a short circuit
-- form, the actions are first stored in the short circuit form node
-- in the Actions field. The expansion of these forms subsequently
-- expands the short circuit forms into if statements which can then
-- be moved as described above.
-- For actions appearing in the Condition expression of a while loop,
-- or an elsif clause, the actions are similarly temporarily stored in
-- in the node (N_Elsif_Part or N_Iteration_Scheme) associated with
-- the expression using the Condition_Actions field. Subsequently, the
-- expansion of these nodes rewrites the control structures involved to
-- reposition the actions in normal statement sequence.
-- For actions appearing in the then or else expression of a conditional
-- expression, these actions are similarly placed in the node, using the
-- Then_Actions or Else_Actions field as appropriate. Once again the
-- expansion of the N_If_Expression node rewrites the node so that the
-- actions can be positioned normally.
-- For actions coming from expansion of the expression in an expression
-- with actions node, the action is appended to the list of actions.
-- Basically what we do is to climb up to the tree looking for the
-- proper insertion point, as described by one of the above cases,
-- and then insert the appropriate action or actions.
-- Note if more than one insert call is made specifying the same
-- Assoc_Node, then the actions are elaborated in the order of the
-- calls, and this guarantee is preserved for the special cases above.
procedure Insert_Action
(Assoc_Node : Node_Id;
Ins_Action : Node_Id;
Spec_Expr_OK : Boolean := False);
-- Insert the action Ins_Action at the appropriate point as described
-- above. The action is analyzed using the default checks after it is
-- inserted. Assoc_Node is the node with which the action is associated.
-- When flag Spec_Expr_OK is set, insertions triggered in the context of
-- spec expressions are honored, even though they contradict "Handling
-- of Default and Per-Object Expressions".
procedure Insert_Action
(Assoc_Node : Node_Id;
Ins_Action : Node_Id;
Suppress : Check_Id;
Spec_Expr_OK : Boolean := False);
-- Insert the action Ins_Action at the appropriate point as described
-- above. The action is analyzed using the default checks as modified
-- by the given Suppress argument after it is inserted. Assoc_Node is
-- the node with which the action is associated. When flag Spec_Expr_OK
-- is set, insertions triggered in the context of spec expressions are
-- honored, even though they contradict "Handling of Default and Per-
-- Object Expressions".
procedure Insert_Actions
(Assoc_Node : Node_Id;
Ins_Actions : List_Id;
Spec_Expr_OK : Boolean := False);
-- Insert the list of action Ins_Actions at the appropriate point as
-- described above. The actions are analyzed using the default checks
-- after they are inserted. Assoc_Node is the node with which the actions
-- are associated. Ins_Actions may be No_List, in which case the call has
-- no effect. When flag Spec_Expr_OK is set, insertions triggered in the
-- context of spec expressions are honored, even though they contradict
-- "Handling of Default and Per-Object Expressions".
procedure Insert_Actions
(Assoc_Node : Node_Id;
Ins_Actions : List_Id;
Suppress : Check_Id;
Spec_Expr_OK : Boolean := False);
-- Insert the list of action Ins_Actions at the appropriate point as
-- described above. The actions are analyzed using the default checks
-- as modified by the given Suppress argument after they are inserted.
-- Assoc_Node is the node with which the actions are associated. List
-- Ins_Actions may be No_List, in which case the call has no effect.
-- When flag Spec_Expr_OK is set, insertions triggered in the context of
-- spec expressions are honored, even though they contradict "Handling
-- of Default and Per-Object Expressions".
procedure Insert_Action_After
(Assoc_Node : Node_Id;
Ins_Action : Node_Id);
-- Assoc_Node must be a node in a list. Same as Insert_Action but the
-- action will be inserted after N in a manner that is compatible with
-- the transient scope mechanism.
--
-- Note: If several successive calls to Insert_Action_After are made for
-- the same node, they will each in turn be inserted just after the node.
-- This means they will end up being executed in reverse order. Use the
-- call to Insert_Actions_After to insert a list of actions to be executed
-- in the sequence in which they are given in the list.
procedure Insert_Actions_After
(Assoc_Node : Node_Id;
Ins_Actions : List_Id);
-- Assoc_Node must be a node in a list. Same as Insert_Actions but
-- actions will be inserted after N in a manner that is compatible with
-- the transient scope mechanism. This procedure must be used instead
-- of Insert_List_After if Assoc_Node may be in a transient scope.
--
-- Implementation limitation: Assoc_Node must be a statement. We can
-- generalize to expressions if there is a need but this is tricky to
-- implement because of short-circuits (among other things).???
procedure Insert_Declaration (N : Node_Id; Decl : Node_Id);
-- N must be a subexpression (Nkind in N_Subexpr). This is similar to
-- Insert_Action (N, Decl), but inserts Decl outside the expression in
-- which N appears. This is called Insert_Declaration because the intended
-- use is for declarations that have no associated code. We can't go
-- moving other kinds of things out of the current expression, since they
-- could be executed conditionally (e.g. right operand of short circuit,
-- or THEN/ELSE of if expression). This is currently used only in
-- Modify_Tree_For_C mode, where it is needed because in C we have no
-- way of having declarations within an expression (a really annoying
-- limitation).
procedure Insert_Library_Level_Action (N : Node_Id);
-- This procedure inserts and analyzes the node N as an action at the
-- library level for the current unit (i.e. it is attached to the
-- Actions field of the N_Compilation_Aux node for the main unit).
procedure Insert_Library_Level_Actions (L : List_Id);
-- Similar, but inserts a list of actions
-----------------------
-- Other Subprograms --
-----------------------
procedure Activate_Atomic_Synchronization (N : Node_Id);
-- N is a node for which atomic synchronization may be required (it is
-- either an identifier, expanded name, or selected/indexed component or
-- an explicit dereference). The caller has checked the basic conditions
-- (atomic variable appearing and Atomic_Sync not disabled). This function
-- checks if atomic synchronization is required and if so sets the flag
-- and if appropriate generates a warning (in -gnatw.n mode).
procedure Adjust_Condition (N : Node_Id);
-- The node N is an expression whose root-type is Boolean, and which
-- represents a boolean value used as a condition (i.e. a True/False
-- value). This routine handles the case of C and Fortran convention
-- boolean types, which have zero/non-zero semantics rather than the normal
-- 0/1 semantics, and also the case of an enumeration rep clause that
-- specifies a non-standard representation. On return, node N always has
-- the type Standard.Boolean, with a value that is a standard Boolean
-- values of 0/1 for False/True. This procedure is used in two situations.
-- First, the processing for a condition field always calls
-- Adjust_Condition, so that the boolean value presented to the backend is
-- a standard value. Second, for the code for boolean operations such as
-- AND, Adjust_Condition is called on both operands, and then the operation
-- is done in the domain of Standard_Boolean, then Adjust_Result_Type is
-- called on the result to possibly reset the original type. This procedure
-- also takes care of validity checking if Validity_Checks = Tests.
procedure Adjust_Result_Type (N : Node_Id; T : Entity_Id);
-- The processing of boolean operations like AND uses the procedure
-- Adjust_Condition so that it can operate on Standard.Boolean, which is
-- the only boolean type on which the backend needs to be able to implement
-- such operators. This means that the result is also of type
-- Standard.Boolean. In general the type must be reset back to the original
-- type to get proper semantics, and that is the purpose of this procedure.
-- N is the node (of type Standard.Boolean), and T is the desired type. As
-- an optimization, this procedure leaves the type as Standard.Boolean in
-- contexts where this is permissible (in particular for Condition fields,
-- and for operands of other logical operations higher up the tree). The
-- call to this procedure is completely ignored if the argument N is not of
-- type Boolean.
procedure Append_Freeze_Action (T : Entity_Id; N : Node_Id);
-- Add a new freeze action for the given type. The freeze action is
-- attached to the freeze node for the type. Actions will be elaborated in
-- the order in which they are added. Note that the added node is not
-- analyzed. The analyze call is found in Exp_Ch13.Expand_N_Freeze_Entity.
procedure Append_Freeze_Actions (T : Entity_Id; L : List_Id);
-- Adds the given list of freeze actions (declarations or statements) for
-- the given type. The freeze actions are attached to the freeze node for
-- the type. Actions will be elaborated in the order in which they are
-- added, and the actions within the list will be elaborated in list order.
-- Note that the added nodes are not analyzed. The analyze call is found in
-- Exp_Ch13.Expand_N_Freeze_Entity.
function Attribute_Constrained_Static_Value (Pref : Node_Id) return Boolean;
-- Return the static value of a statically known attribute reference
-- Pref'Constrained.
procedure Build_Allocate_Deallocate_Proc
(N : Node_Id;
Is_Allocate : Boolean);
-- Create a custom Allocate/Deallocate to be associated with an allocation
-- or deallocation:
--
-- 1) controlled objects
-- 2) class-wide objects
-- 3) any kind of object on a subpool
--
-- N must be an allocator or the declaration of a temporary variable which
-- represents the expression of the original allocator node, otherwise N
-- must be a free statement. If flag Is_Allocate is set, the generated
-- routine is allocate, deallocate otherwise.
function Build_Abort_Undefer_Block
(Loc : Source_Ptr;
Stmts : List_Id;
Context : Node_Id) return Node_Id;
-- Wrap statements Stmts in a block where the AT END handler contains a
-- call to Abort_Undefer_Direct. Context is the node which prompted the
-- inlining of the abort undefer routine. Note that this routine does
-- not install a call to Abort_Defer.
procedure Build_Class_Wide_Expression
(Prag : Node_Id;
Subp : Entity_Id;
Par_Subp : Entity_Id;
Adjust_Sloc : Boolean;
Needs_Wrapper : out Boolean);
-- Build the expression for an inherited class-wide condition. Prag is
-- the pragma constructed from the corresponding aspect of the parent
-- subprogram, and Subp is the overriding operation, and Par_Subp is
-- the overridden operation that has the condition. Adjust_Sloc is True
-- when the sloc of nodes traversed should be adjusted for the inherited
-- pragma. The routine is also called to check whether an inherited
-- operation that is not overridden but has inherited conditions needs
-- a wrapper, because the inherited condition includes calls to other
-- primitives that have been overridden. In that case the first argument
-- is the expression of the original class-wide aspect. In SPARK_Mode, such
-- operation which are just inherited but have modified pre/postconditions
-- are illegal.
-- If there are calls to overridden operations in the condition, and the
-- pragma applies to an inherited operation, a wrapper must be built for
-- it to capture the new inherited condition. The flag Needs_Wrapper is
-- set in that case so that the wrapper can be built, when the controlling
-- type is frozen.
function Build_DIC_Call
(Loc : Source_Ptr;
Obj_Id : Entity_Id;
Typ : Entity_Id) return Node_Id;
-- Build a call to the DIC procedure of type Typ with Obj_Id as the actual
-- parameter.
procedure Build_DIC_Procedure_Body
(Typ : Entity_Id;
For_Freeze : Boolean := False);
-- Create the body of the procedure which verifies the assertion expression
-- of pragma Default_Initial_Condition at run time. Flag For_Freeze should
-- be set when the body is constructed as part of the freezing actions for
-- Typ.
procedure Build_DIC_Procedure_Declaration (Typ : Entity_Id);
-- Create the declaration of the procedure which verifies the assertion
-- expression of pragma Default_Initial_Condition at run time.
procedure Build_Invariant_Procedure_Body
(Typ : Entity_Id;
Partial_Invariant : Boolean := False);
-- Create the body of the procedure which verifies the invariants of type
-- Typ at runtime. Flag Partial_Invariant should be set when Typ denotes a
-- private type, otherwise it is assumed that Typ denotes the full view of
-- a private type.
procedure Build_Invariant_Procedure_Declaration
(Typ : Entity_Id;
Partial_Invariant : Boolean := False);
-- Create the declaration of the procedure which verifies the invariants of
-- type Typ at runtime. Flag Partial_Invariant should be set when building
-- the invariant procedure for a private type.
procedure Build_Procedure_Form (N : Node_Id);
-- Create a procedure declaration which emulates the behavior of a function
-- that returns an array type, for C-compatible generation.
function Build_Runtime_Call (Loc : Source_Ptr; RE : RE_Id) return Node_Id;
-- Build an N_Procedure_Call_Statement calling the given runtime entity.
-- The call has no parameters. The first argument provides the location
-- information for the tree and for error messages. The call node is not
-- analyzed on return, the caller is responsible for analyzing it.
function Build_SS_Mark_Call
(Loc : Source_Ptr;
Mark : Entity_Id) return Node_Id;
-- Build a call to routine System.Secondary_Stack.Mark. Mark denotes the
-- entity of the secondary stack mark.
function Build_SS_Release_Call
(Loc : Source_Ptr;
Mark : Entity_Id) return Node_Id;
-- Build a call to routine System.Secondary_Stack.Release. Mark denotes the
-- entity of the secondary stack mark.
function Build_Task_Image_Decls
(Loc : Source_Ptr;
Id_Ref : Node_Id;
A_Type : Entity_Id;
In_Init_Proc : Boolean := False) return List_Id;
-- Build declaration for a variable that holds an identifying string to be
-- used as a task name. Id_Ref is an identifier if the task is a variable,
-- and a selected or indexed component if the task is component of an
-- object. If it is an indexed component, A_Type is the corresponding array
-- type. Its index types are used to build the string as an image of the
-- index values. For composite types, the result includes two declarations:
-- one for a generated function that computes the image without using
-- concatenation, and one for the variable that holds the result.
--
-- If In_Init_Proc is true, the call is part of the initialization of
-- a component of a composite type, and the enclosing initialization
-- procedure must be flagged as using the secondary stack. If In_Init_Proc
-- is false, the call is for a stand-alone object, and the generated
-- function itself must do its own cleanups.
procedure Build_Transient_Object_Statements
(Obj_Decl : Node_Id;
Fin_Call : out Node_Id;
Hook_Assign : out Node_Id;
Hook_Clear : out Node_Id;
Hook_Decl : out Node_Id;
Ptr_Decl : out Node_Id;
Finalize_Obj : Boolean := True);
-- Subsidiary to the processing of transient objects in transient scopes,
-- if expressions, case expressions, expression_with_action nodes, array
-- aggregates, and record aggregates. Obj_Decl denotes the declaration of
-- the transient object. Generate the following nodes:
--
-- * Fin_Call - the call to [Deep_]Finalize which cleans up the transient
-- object if flag Finalize_Obj is set to True, or finalizes the hook when
-- the flag is False.
--
-- * Hook_Assign - the assignment statement which captures a reference to
-- the transient object in the hook.
--
-- * Hook_Clear - the assignment statement which resets the hook to null
--
-- * Hook_Decl - the declaration of the hook object
--
-- * Ptr_Decl - the full type declaration of the hook type
--
-- These nodes are inserted in specific places depending on the context by
-- the various Process_Transient_xxx routines.
procedure Check_Float_Op_Overflow (N : Node_Id);
-- Called where we could have a floating-point binary operator where we
-- must check for infinities if we are operating in Check_Float_Overflow
-- mode. Note that we don't need to worry about unary operator cases,
-- since for floating-point, abs, unary "-", and unary "+" can never
-- case overflow.
function Component_May_Be_Bit_Aligned (Comp : Entity_Id) return Boolean;
-- This function is in charge of detecting record components that may cause
-- trouble for the back end if an attempt is made to access the component
-- as a whole. The back end can handle such accesses with no problem if the
-- components involved are small (64 bits or less) records or scalar items
-- (including bit-packed arrays represented with a modular type), or else
-- if they are aligned on byte boundaries (i.e. starting on a byte boundary
-- and occupying an integral number of bytes).
--
-- However, problems arise for records larger than 64 bits, or for arrays
-- (other than bit-packed arrays represented with a modular type) if the
-- component either does not start on a byte boundary or does not occupy an
-- integral number of bytes (i.e. there are some bits possibly shared with
-- other components at the start or the end of the component). The back end
-- cannot handle loading from or storing to such components as a whole.
--
-- This function is used to detect the troublesome situation. It is meant
-- to be conservative in the sense that it produces True unless it knows
-- for sure that the component is safe (as outlined in the first paragraph
-- above). The processing for record and array assignment indirectly checks
-- for trouble using this function and, if so, the assignment is expanded
-- component-wise, which the back end is required to handle correctly.
function Containing_Package_With_Ext_Axioms
(E : Entity_Id) return Entity_Id;
-- Returns the package entity with an external axiomatization containing E,
-- if any, or Empty if none.
procedure Convert_To_Actual_Subtype (Exp : Node_Id);
-- The Etype of an expression is the nominal type of the expression,
-- not the actual subtype. Often these are the same, but not always.
-- For example, a reference to a formal of unconstrained type has the
-- unconstrained type as its Etype, but the actual subtype is obtained by
-- applying the actual bounds. This routine is given an expression, Exp,
-- and (if necessary), replaces it using Rewrite, with a conversion to
-- the actual subtype, building the actual subtype if necessary. If the
-- expression is already of the requested type, then it is unchanged.
function Corresponding_Runtime_Package (Typ : Entity_Id) return RTU_Id;
-- Return the id of the runtime package that will provide support for
-- concurrent type Typ. Currently only protected types are supported,
-- and the returned value is one of the following:
-- System_Tasking_Protected_Objects
-- System_Tasking_Protected_Objects_Entries
-- System_Tasking_Protected_Objects_Single_Entry
function Current_Sem_Unit_Declarations return List_Id;
-- Return the place where it is fine to insert declarations for the
-- current semantic unit. If the unit is a package body, return the
-- visible declarations of the corresponding spec. For RCI stubs, this
-- is necessary because the point at which they are generated may not
-- be the earliest point at which they are used.
function Duplicate_Subexpr
(Exp : Node_Id;
Name_Req : Boolean := False;
Renaming_Req : Boolean := False) return Node_Id;
-- Given the node for a subexpression, this function makes a logical copy
-- of the subexpression, and returns it. This is intended for use when the
-- expansion of an expression needs to repeat part of it. For example,
-- replacing a**2 by a*a requires two references to a which may be a
-- complex subexpression. Duplicate_Subexpr guarantees not to duplicate
-- side effects. If necessary, it generates actions to save the expression
-- value in a temporary, inserting these actions into the tree using
-- Insert_Actions with Exp as the insertion location. The original
-- expression and the returned result then become references to this saved
-- value. Exp must be analyzed on entry. On return, Exp is analyzed, but
-- the caller is responsible for analyzing the returned copy after it is
-- attached to the tree.
--
-- The Name_Req flag is set to ensure that the result is suitable for use
-- in a context requiring a name (for example, the prefix of an attribute
-- reference) (can't this just be a qualification in Ada 2012???).
--
-- The Renaming_Req flag is set to produce an object renaming declaration
-- rather than an object declaration. This is valid only if the expression
-- Exp designates a renamable object. This is used for example in the case
-- of an unchecked deallocation, to make sure the object gets set to null.
--
-- Note that if there are any run time checks in Exp, these same checks
-- will be duplicated in the returned duplicated expression. The two
-- following functions allow this behavior to be modified.
function Duplicate_Subexpr_No_Checks
(Exp : Node_Id;
Name_Req : Boolean := False;
Renaming_Req : Boolean := False;
Related_Id : Entity_Id := Empty;
Is_Low_Bound : Boolean := False;
Is_High_Bound : Boolean := False) return Node_Id;
-- Identical in effect to Duplicate_Subexpr, except that Remove_Checks is
-- called on the result, so that the duplicated expression does not include
-- checks. This is appropriate for use when Exp, the original expression is
-- unconditionally elaborated before the duplicated expression, so that
-- there is no need to repeat any checks.
--
-- Related_Id denotes the entity of the context where Expr appears. Flags
-- Is_Low_Bound and Is_High_Bound specify whether the expression to check
-- is the low or the high bound of a range. These three optional arguments
-- signal Remove_Side_Effects to create an external symbol of the form
-- Chars (Related_Id)_FIRST/_LAST. For suggested use of these parameters
-- see the warning in the body of Sem_Ch3.Process_Range_Expr_In_Decl.
function Duplicate_Subexpr_Move_Checks
(Exp : Node_Id;
Name_Req : Boolean := False;
Renaming_Req : Boolean := False) return Node_Id;
-- Identical in effect to Duplicate_Subexpr, except that Remove_Checks is
-- called on Exp after the duplication is complete, so that the original
-- expression does not include checks. In this case the result returned
-- (the duplicated expression) will retain the original checks. This is
-- appropriate for use when the duplicated expression is sure to be
-- elaborated before the original expression Exp, so that there is no need
-- to repeat the checks.
function Enclosing_Init_Proc return Entity_Id;
-- Obtain the entity of the type initialization procedure which encloses
-- the current scope. Return Empty if no such procedure exists.
procedure Ensure_Defined (Typ : Entity_Id; N : Node_Id);
-- This procedure ensures that type referenced by Typ is defined. For the
-- case of a type other than an Itype, nothing needs to be done, since
-- all such types have declaration nodes. For Itypes, an N_Itype_Reference
-- node is generated and inserted as an action on node N. This is typically
-- used to ensure that an Itype is properly defined outside a conditional
-- construct when it is referenced in more than one branch.
function Entry_Names_OK return Boolean;
-- Determine whether it is appropriate to dynamically allocate strings
-- which represent entry [family member] names. These strings are created
-- by the compiler and used by GDB.
procedure Evaluate_Name (Nam : Node_Id);
-- Remove all side effects from a name which appears as part of an object
-- renaming declaration. Similarly to Force_Evaluation, it removes the
-- side effects and captures the values of the variables, except for the
-- variable being renamed. Hence this differs from Force_Evaluation and
-- Remove_Side_Effects (but it calls Force_Evaluation on subexpressions
-- whose value needs to be fixed).
procedure Evolve_And_Then (Cond : in out Node_Id; Cond1 : Node_Id);
-- Rewrites Cond with the expression: Cond and then Cond1. If Cond is
-- Empty, then simply returns Cond1 (this allows the use of Empty to
-- initialize a series of checks evolved by this routine, with a final
-- result of Empty indicating that no checks were required). The Sloc field
-- of the constructed N_And_Then node is copied from Cond1.
procedure Evolve_Or_Else (Cond : in out Node_Id; Cond1 : Node_Id);
-- Rewrites Cond with the expression: Cond or else Cond1. If Cond is Empty,
-- then simply returns Cond1 (this allows the use of Empty to initialize a
-- series of checks evolved by this routine, with a final result of Empty
-- indicating that no checks were required). The Sloc field of the
-- constructed N_Or_Else node is copied from Cond1.
procedure Expand_Static_Predicates_In_Choices (N : Node_Id);
-- N is either a case alternative or a variant. The Discrete_Choices field
-- of N points to a list of choices. If any of these choices is the name
-- of a (statically) predicated subtype, then it is rewritten as the series
-- of choices that correspond to the values allowed for the subtype.
procedure Expand_Subtype_From_Expr
(N : Node_Id;
Unc_Type : Entity_Id;
Subtype_Indic : Node_Id;
Exp : Node_Id;
Related_Id : Entity_Id := Empty);
-- Build a constrained subtype from the initial value in object
-- declarations and/or allocations when the type is indefinite (including
-- class-wide). Set Related_Id to request an external name for the subtype
-- rather than an internal temporary.
function Expression_Contains_Primitives_Calls_Of
(Expr : Node_Id;
Typ : Entity_Id) return Boolean;
-- Return True if the expression Expr contains a nondispatching call to a
-- function which is a primitive of the tagged type Typ.
function Finalize_Address (Typ : Entity_Id) return Entity_Id;
-- Locate TSS primitive Finalize_Address in type Typ. Return Empty if the
-- subprogram is not available.
function Find_Interface_ADT
(T : Entity_Id;
Iface : Entity_Id) return Elmt_Id;
-- Ada 2005 (AI-251): Given a type T implementing the interface Iface,
-- return the element of Access_Disp_Table containing the tag of the
-- interface.
function Find_Interface_Tag
(T : Entity_Id;
Iface : Entity_Id) return Entity_Id;
-- Ada 2005 (AI-251): Given a type T and an interface Iface, return the
-- record component containing the tag of Iface if T implements Iface or
-- Empty if it does not.
-- WARNING: There is a matching C declaration of this subprogram in fe.h
function Find_Prim_Op (T : Entity_Id; Name : Name_Id) return Entity_Id;
-- Find the first primitive operation of a tagged type T with name Name.
-- This function allows the use of a primitive operation which is not
-- directly visible. If T is a class wide type, then the reference is to an
-- operation of the corresponding root type. It is an error if no primitive
-- operation with the given name is found.
function Find_Prim_Op
(T : Entity_Id;
Name : TSS_Name_Type) return Entity_Id;
-- Same as Find_Prim_Op above, except we're searching for an op that has
-- the form indicated by Name (i.e. is a type support subprogram with the
-- indicated suffix).
function Find_Optional_Prim_Op
(T : Entity_Id; Name : Name_Id) return Entity_Id;
function Find_Optional_Prim_Op
(T : Entity_Id;
Name : TSS_Name_Type) return Entity_Id;
-- Same as Find_Prim_Op, except returns Empty if not found
function Find_Protection_Object (Scop : Entity_Id) return Entity_Id;
-- Traverse the scope stack starting from Scop and look for an entry, entry
-- family, or a subprogram that has a Protection_Object and return it. Must
-- always return a value since the context in which this routine is invoked
-- should always have a protection object.
function Find_Protection_Type (Conc_Typ : Entity_Id) return Entity_Id;
-- Given a protected type or its corresponding record, find the type of
-- field _object.
function Find_Hook_Context (N : Node_Id) return Node_Id;
-- Determine a suitable node on which to attach actions related to N that
-- need to be elaborated unconditionally. In general this is the topmost
-- expression of which N is a subexpression, which in turn may or may not
-- be evaluated, for example if N is the right operand of a short circuit
-- operator.
function Following_Address_Clause (D : Node_Id) return Node_Id;
-- D is the node for an object declaration. This function searches the
-- current declarative part to look for an address clause for the object
-- being declared, and returns the clause if one is found, returns
-- Empty otherwise.
--
-- Note: this function can be costly and must be invoked with special care.
-- Possibly we could introduce a flag at parse time indicating the presence
-- of an address clause to speed this up???
--
-- Note: currently this function does not scan the private part, that seems
-- like a potential bug ???
type Force_Evaluation_Mode is (Relaxed, Strict);
procedure Force_Evaluation
(Exp : Node_Id;
Name_Req : Boolean := False;
Related_Id : Entity_Id := Empty;
Is_Low_Bound : Boolean := False;
Is_High_Bound : Boolean := False;
Mode : Force_Evaluation_Mode := Relaxed);
-- Force the evaluation of the expression right away. Similar behavior
-- to Remove_Side_Effects when Variable_Ref is set to TRUE. That is to
-- say, it removes the side effects and captures the values of the
-- variables. Remove_Side_Effects guarantees that multiple evaluations
-- of the same expression won't generate multiple side effects, whereas
-- Force_Evaluation further guarantees that all evaluations will yield
-- the same result. If Mode is Relaxed then calls to this subprogram have
-- no effect if Exp is side-effect free; if Mode is Strict and Exp is not
-- a static expression then no side-effect check is performed on Exp and
-- temporaries are unconditionally generated.
--
-- Related_Id denotes the entity of the context where Expr appears. Flags
-- Is_Low_Bound and Is_High_Bound specify whether the expression to check
-- is the low or the high bound of a range. These three optional arguments
-- signal Remove_Side_Effects to create an external symbol of the form
-- Chars (Related_Id)_FIRST/_LAST. If Related_Id is set, then exactly one
-- of the Is_xxx_Bound flags must be set. For use of these parameters see
-- the warning in the body of Sem_Ch3.Process_Range_Expr_In_Decl.
function Fully_Qualified_Name_String
(E : Entity_Id;
Append_NUL : Boolean := True) return String_Id;
-- Generates the string literal corresponding to the fully qualified name
-- of entity E, in all upper case, with an ASCII.NUL appended at the end
-- of the name if Append_NUL is True.
procedure Get_Current_Value_Condition
(Var : Node_Id;
Op : out Node_Kind;
Val : out Node_Id);
-- This routine processes the Current_Value field of the variable Var. If
-- the Current_Value field is null or if it represents a known value, then
-- on return Cond is set to N_Empty, and Val is set to Empty.
--
-- The other case is when Current_Value points to an N_If_Statement or an
-- N_Elsif_Part or a N_Iteration_Scheme node (see description in Einfo for
-- exact details). In this case, Get_Current_Condition digs out the
-- condition, and then checks if the condition is known false, known true,
-- or not known at all. In the first two cases, Get_Current_Condition will
-- return with Op set to the appropriate conditional operator (inverted if
-- the condition is known false), and Val set to the constant value. If the
-- condition is not known, then Op and Val are set for the empty case
-- (N_Empty and Empty).
--
-- The check for whether the condition is true/false unknown depends
-- on the case:
--
-- For an IF, the condition is known true in the THEN part, known false
-- in any ELSIF or ELSE part, and not known outside the IF statement in
-- question.
--
-- For an ELSIF, the condition is known true in the ELSIF part, known
-- FALSE in any subsequent ELSIF, or ELSE part, and not known before the
-- ELSIF, or after the end of the IF statement.
--
-- The caller can use this result to determine the value (for the case of
-- N_Op_Eq), or to determine the result of some other test in other cases
-- (e.g. no access check required if N_Op_Ne Null).
function Get_Index_Subtype (N : Node_Id) return Entity_Id;
-- Used for First, Last, and Length, when the prefix is an array type.
-- Obtains the corresponding index subtype.
function Get_Stream_Size (E : Entity_Id) return Uint;
-- Return the stream size value of the subtype E
function Has_Access_Constraint (E : Entity_Id) return Boolean;
-- Given object or type E, determine if a discriminant is of an access type
function Has_Annotate_Pragma_For_External_Axiomatization
(E : Entity_Id) return Boolean;
-- Returns whether E is a package entity, for which the initial list of
-- pragmas at the start of the package declaration contains
-- pragma Annotate (GNATprove, External_Axiomatization);
function Homonym_Number (Subp : Entity_Id) return Pos;
-- Here subp is the entity for a subprogram. This routine returns the
-- homonym number used to disambiguate overloaded subprograms in the same
-- scope (the number is used as part of constructed names to make sure that
-- they are unique). The number is the ordinal position on the Homonym
-- chain, counting only entries in the current scope. If an entity is not
-- overloaded, the returned number will be one.
function Inside_Init_Proc return Boolean;
-- Returns True if current scope is within an init proc
function In_Library_Level_Package_Body (Id : Entity_Id) return Boolean;
-- Given an arbitrary entity, determine whether it appears at the library
-- level of a package body.
function In_Unconditional_Context (Node : Node_Id) return Boolean;
-- Node is the node for a statement or a component of a statement. This
-- function determines if the statement appears in a context that is
-- unconditionally executed, i.e. it is not within a loop or a conditional
-- or a case statement etc.
function Integer_Type_For (S : Uint; Uns : Boolean) return Entity_Id;
-- Return a suitable standard integer type containing at least S bits and
-- of the signedness given by Uns.
function Is_All_Null_Statements (L : List_Id) return Boolean;
-- Return True if all the items of the list are N_Null_Statement nodes.
-- False otherwise. True for an empty list. It is an error to call this
-- routine with No_List as the argument.
function Is_Displacement_Of_Object_Or_Function_Result
(Obj_Id : Entity_Id) return Boolean;
-- Determine whether Obj_Id is a source entity that has been initialized by
-- either a controlled function call or the assignment of another source
-- object. In both cases the initialization expression is rewritten as a
-- class-wide conversion of Ada.Tags.Displace.
function Is_Finalizable_Transient
(Decl : Node_Id;
Rel_Node : Node_Id) return Boolean;
-- Determine whether declaration Decl denotes a controlled transient which
-- should be finalized. Rel_Node is the related context. Even though some
-- transients are controlled, they may act as renamings of other objects or
-- function calls.
function Is_Fully_Repped_Tagged_Type (T : Entity_Id) return Boolean;
-- Tests given type T, and returns True if T is a non-discriminated tagged
-- type which has a record representation clause that specifies the layout
-- of all the components, including recursively components in all parent
-- types. We exclude discriminated types for convenience, it is extremely
-- unlikely that the special processing associated with the use of this
-- routine is useful for the case of a discriminated type, and testing for
-- component overlap would be a pain.
-- WARNING: There is a matching C declaration of this subprogram in fe.h
function Is_Library_Level_Tagged_Type (Typ : Entity_Id) return Boolean;
-- Return True if Typ is a library level tagged type. Currently we use
-- this information to build statically allocated dispatch tables.
function Is_Non_BIP_Func_Call (Expr : Node_Id) return Boolean;
-- Determine whether node Expr denotes a non build-in-place function call
function Is_Possibly_Unaligned_Object (N : Node_Id) return Boolean;
-- Node N is an object reference. This function returns True if it is
-- possible that the object may not be aligned according to the normal
-- default alignment requirement for its type (e.g. if it appears in a
-- packed record, or as part of a component that has a component clause.)
function Is_Possibly_Unaligned_Slice (N : Node_Id) return Boolean;
-- Determine whether the node P is a slice of an array where the slice
-- result may cause alignment problems because it has an alignment that
-- is not compatible with the type. Return True if so.
function Is_Ref_To_Bit_Packed_Array (N : Node_Id) return Boolean;
-- Determine whether the node P is a reference to a bit packed array, i.e.
-- whether the designated object is a component of a bit packed array, or a
-- subcomponent of such a component. If so, then all subscripts in P are
-- evaluated with a call to Force_Evaluation, and True is returned.
-- Otherwise False is returned, and P is not affected.
function Is_Ref_To_Bit_Packed_Slice (N : Node_Id) return Boolean;
-- Determine whether the node P is a reference to a bit packed slice, i.e.
-- whether the designated object is bit packed slice or a component of a
-- bit packed slice. Return True if so.
function Is_Related_To_Func_Return (Id : Entity_Id) return Boolean;
-- Determine whether object Id is related to an expanded return statement.
-- The case concerned is "return Id.all;".
function Is_Renamed_Object (N : Node_Id) return Boolean;
-- Returns True if the node N is a renamed object. An expression is
-- considered to be a renamed object if either it is the Name of an object
-- renaming declaration, or is the prefix of a name which is a renamed
-- object. For example, in:
--
-- x : r renames a (1 .. 2) (1);
--
-- We consider that a (1 .. 2) is a renamed object since it is the prefix
-- of the name in the renaming declaration.
function Is_Secondary_Stack_BIP_Func_Call (Expr : Node_Id) return Boolean;
-- Determine whether Expr denotes a build-in-place function which returns
-- its result on the secondary stack.
function Is_Tag_To_Class_Wide_Conversion
(Obj_Id : Entity_Id) return Boolean;
-- Determine whether object Obj_Id is the result of a tag-to-class-wide
-- type conversion.
function Is_Untagged_Derivation (T : Entity_Id) return Boolean;
-- Returns true if type T is not tagged and is a derived type,
-- or is a private type whose completion is such a type.
function Is_Untagged_Private_Derivation
(Priv_Typ : Entity_Id;
Full_Typ : Entity_Id) return Boolean;
-- Determine whether private type Priv_Typ and its full view Full_Typ
-- represent an untagged derivation from a private parent.
function Is_Volatile_Reference (N : Node_Id) return Boolean;
-- Checks if the node N represents a volatile reference, which can be
-- either a direct reference to a variable treated as volatile, or an
-- indexed/selected component where the prefix is treated as volatile,
-- or has Volatile_Components set. A slice of a volatile variable is
-- also volatile.
procedure Kill_Dead_Code (N : Node_Id; Warn : Boolean := False);
-- N represents a node for a section of code that is known to be dead. Any
-- exception handler references and warning messages relating to this code
-- are removed. If Warn is True, a warning will be output at the start of N
-- indicating the deletion of the code. Note that the tree for the deleted
-- code is left intact so that e.g. cross-reference data is still valid.
procedure Kill_Dead_Code (L : List_Id; Warn : Boolean := False);
-- Like the above procedure, but applies to every element in the given
-- list. If Warn is True, a warning will be output at the start of N
-- indicating the deletion of the code.
function Known_Non_Negative (Opnd : Node_Id) return Boolean;
-- Given a node for a subexpression, determines if it represents a value
-- that cannot possibly be negative, and if so returns True. A value of
-- False means that it is not known if the value is positive or negative.
function Make_Invariant_Call (Expr : Node_Id) return Node_Id;
-- Generate a call to the Invariant_Procedure associated with the type of
-- expression Expr. Expr is passed as an actual parameter in the call.
function Make_Predicate_Call
(Typ : Entity_Id;
Expr : Node_Id;
Mem : Boolean := False) return Node_Id;
-- Typ is a type with Predicate_Function set. This routine builds a call to
-- this function passing Expr as the argument, and returns it unanalyzed.
-- If Mem is set True, this is the special call for the membership case,
-- and the function called is the Predicate_Function_M if present.
function Make_Predicate_Check
(Typ : Entity_Id;
Expr : Node_Id) return Node_Id;
-- Typ is a type with Predicate_Function set. This routine builds a Check
-- pragma whose first argument is Predicate, and the second argument is
-- a call to the predicate function of Typ with Expr as the argument. If
-- Predicate_Check is suppressed then a null statement is returned instead.
function Make_Subtype_From_Expr
(E : Node_Id;
Unc_Typ : Entity_Id;
Related_Id : Entity_Id := Empty) return Node_Id;
-- Returns a subtype indication corresponding to the actual type of an
-- expression E. Unc_Typ is an unconstrained array or record, or a class-
-- wide type. Set Related_Id to request an external name for the subtype
-- rather than an internal temporary.
function Make_Variant_Comparison
(Loc : Source_Ptr;
Mode : Name_Id;
Curr_Val : Node_Id;
Old_Val : Node_Id) return Node_Id;
-- Subsidiary to the expansion of pragmas Loop_Variant and
-- Subprogram_Variant. Generate a comparison between Curr_Val and Old_Val
-- depending on the variant mode (Increases / Decreases).
procedure Map_Types (Parent_Type : Entity_Id; Derived_Type : Entity_Id);
-- Establish the following mapping between the attributes of tagged parent
-- type Parent_Type and tagged derived type Derived_Type.
--
-- * Map each discriminant of Parent_Type to ether the corresponding
-- discriminant of Derived_Type or come constraint.
-- * Map each primitive operation of Parent_Type to the corresponding
-- primitive of Derived_Type.
--
-- The mapping Parent_Type -> Derived_Type is also added to the table in
-- order to prevent subsequent attempts of the same mapping.
function Matching_Standard_Type (Typ : Entity_Id) return Entity_Id;
-- Given a scalar subtype Typ, returns a matching type in standard that
-- has the same object size value. For example, a 16 bit signed type will
-- typically return Standard_Short_Integer. For fixed-point types, this
-- will return integer types of the corresponding size.
function May_Generate_Large_Temp (Typ : Entity_Id) return Boolean;
-- Determines if the given type, Typ, may require a large temporary of the
-- kind that causes back-end trouble if stack checking is enabled. The
-- result is True only the size of the type is known at compile time and
-- large, where large is defined heuristically by the body of this routine.
-- The purpose of this routine is to help avoid generating troublesome
-- temporaries that interfere with stack checking mechanism. Note that the
-- caller has to check whether stack checking is actually enabled in order
-- to guide the expansion (typically of a function call).
function Needs_Conditional_Null_Excluding_Check
(Typ : Entity_Id) return Boolean;
-- Check if a type meets certain properties that require it to have a
-- conditional null-excluding check within its Init_Proc.
function Needs_Constant_Address
(Decl : Node_Id;
Typ : Entity_Id) return Boolean;
-- Check whether the expression in an address clause is restricted to
-- consist of constants, when the object has a nontrivial initialization
-- or is controlled.
function Non_Limited_Designated_Type (T : Entity_Id) return Entity_Id;
-- An anonymous access type may designate a limited view. Check whether
-- non-limited view is available during expansion, to examine components
-- or other characteristics of the full type.
function OK_To_Do_Constant_Replacement (E : Entity_Id) return Boolean;
-- This function is used when testing whether or not to replace a reference
-- to entity E by a known constant value. Such replacement must be done
-- only in a scope known to be safe for such replacements. In particular,
-- if we are within a subprogram and the entity E is declared outside the
-- subprogram then we cannot do the replacement, since we do not attempt to
-- trace subprogram call flow. It is also unsafe to replace statically
-- allocated values (since they can be modified outside the scope), and we
-- also inhibit replacement of Volatile or aliased objects since their
-- address might be captured in a way we do not detect. A value of True is
-- returned only if the replacement is safe.
function Possible_Bit_Aligned_Component (N : Node_Id) return Boolean;
-- This function is used during processing the assignment of a record or an
-- array, or the construction of an aggregate. The argument N is either the
-- left or the right hand side of an assignment and the function determines
-- whether there is a record component reference where the component may be
-- bit aligned in a manner that causes trouble for the back end (see also
-- Component_May_Be_Bit_Aligned for further details).
function Power_Of_Two (N : Node_Id) return Nat;
-- Determines if N is a known at compile time value which is of the form
-- 2**K, where K is in the range 1 .. M, where the Esize of N is 2**(M+1).
-- If so, returns the value K, otherwise returns zero. The caller checks
-- that N is of an integer type.
function Predicate_Check_In_Scope (N : Node_Id) return Boolean;
-- Return True if predicate checks should be generated in the current
-- scope on the given node. Will return False for example when the current
-- scope is a predefined primitive operation.
procedure Process_Statements_For_Controlled_Objects (N : Node_Id);
-- N is a node which contains a non-handled statement list. Inspect the
-- statements looking for declarations of controlled objects. If at least
-- one such object is found, wrap the statement list in a block.
function Remove_Init_Call
(Var : Entity_Id;
Rep_Clause : Node_Id) return Node_Id;
-- Look for init_proc call or aggregate initialization statements for
-- variable Var, either among declarations between that of Var and a
-- subsequent Rep_Clause applying to Var, or in the list of freeze actions
-- associated with Var, and if found, remove and return that call node.
procedure Remove_Side_Effects
(Exp : Node_Id;
Name_Req : Boolean := False;
Renaming_Req : Boolean := False;
Variable_Ref : Boolean := False;
Related_Id : Entity_Id := Empty;
Is_Low_Bound : Boolean := False;
Is_High_Bound : Boolean := False;
Check_Side_Effects : Boolean := True);
-- Given the node for a subexpression, this function replaces the node if
-- necessary by an equivalent subexpression that is guaranteed to be side
-- effect free. This is done by extracting any actions that could cause
-- side effects, and inserting them using Insert_Actions into the tree
-- to which Exp is attached. Exp must be analyzed and resolved before the
-- call and is analyzed and resolved on return. Name_Req may only be set to
-- True if Exp has the form of a name, and the effect is to guarantee that
-- any replacement maintains the form of name. If Renaming_Req is set to
-- True, the routine produces an object renaming reclaration capturing the
-- expression. If Variable_Ref is set to True, a variable is considered as
-- side effect (used in implementing Force_Evaluation). Note: after call to
-- Remove_Side_Effects, it is safe to call New_Copy_Tree to obtain a copy
-- of the resulting expression. If Check_Side_Effects is set to True then
-- no action is performed if Exp is known to be side-effect free.
--
-- Related_Id denotes the entity of the context where Expr appears. Flags
-- Is_Low_Bound and Is_High_Bound specify whether the expression to check
-- is the low or the high bound of a range. These three optional arguments
-- signal Remove_Side_Effects to create an external symbol of the form
-- Chars (Related_Id)_FIRST/_LAST. If Related_Id is set, then exactly one
-- of the Is_xxx_Bound flags must be set. For use of these parameters see
-- the warning in the body of Sem_Ch3.Process_Range_Expr_In_Decl.
--
-- The side effects are captured using one of the following methods:
--
-- 1) a constant initialized with the value of the subexpression
-- 2) a renaming of the subexpression
-- 3) a reference to the subexpression
--
-- For elementary types, methods 1) and 2) are used; for composite types,
-- methods 2) and 3) are used. The renaming (method 2) is used only when
-- the subexpression denotes a name, so that it can be elaborated by gigi
-- without evaluating the subexpression.
--
-- Historical note: the reference (method 3) used to be the common fallback
-- method but it gives rise to aliasing issues if the subexpression denotes
-- a name that is not aliased, since it is equivalent to taking the address
-- in this case. The renaming (method 2) used to be applied to any objects
-- in the RM sense, that is to say to the cases where a renaming is legal
-- in Ada. But for some of these cases, most notably functions calls, the
-- renaming cannot be elaborated without evaluating the subexpression, so
-- gigi would resort to method 1) or 3) under the hood for them.
procedure Replace_References
(Expr : Node_Id;
Par_Typ : Entity_Id;
Deriv_Typ : Entity_Id;
Par_Obj : Entity_Id := Empty;
Deriv_Obj : Entity_Id := Empty);
-- Expr denotes an arbitrary expression. Par_Typ is a tagged parent type
-- in a type hierarchy. Deriv_Typ is a tagged type derived from Par_Typ
-- with optional ancestors in between. Par_Obj is a formal parameter
-- which emulates the current instance of Par_Typ. Deriv_Obj is a formal
-- parameter which emulates the current instance of Deriv_Typ. Perform the
-- following substitutions in Expr:
--
-- * Replace a reference to Par_Obj with a reference to Deriv_Obj
--
-- * Replace a reference to a discriminant of Par_Typ with a suitable
-- value from the point of view of Deriv_Typ.
--
-- * Replace a call to an overridden primitive of Par_Typ with a call to
-- an overriding primitive of Deriv_Typ.
--
-- * Replace a call to an inherited primitive of Par_Type with a call to
-- the internally-generated inherited primitive of Deriv_Typ.
procedure Replace_Type_References
(Expr : Node_Id;
Typ : Entity_Id;
Obj_Id : Entity_Id);
-- Substitute all references of the current instance of type Typ with
-- references to formal parameter Obj_Id within expression Expr.
function Represented_As_Scalar (T : Entity_Id) return Boolean;
-- Returns True iff the implementation of this type in code generation
-- terms is scalar. This is true for scalars in the Ada sense, and for
-- packed arrays which are represented by a scalar (modular) type.
function Requires_Cleanup_Actions
(N : Node_Id;
Lib_Level : Boolean) return Boolean;
-- Given a node N, determine whether its declarative and/or statement list
-- contains one of the following:
--
-- 1) controlled objects
-- 2) library-level tagged types
--
-- These cases require special actions on scope exit. The flag Lib_Level
-- is set True if the construct is at library level, and False otherwise.
function Safe_Unchecked_Type_Conversion (Exp : Node_Id) return Boolean;
-- Given the node for an N_Unchecked_Type_Conversion, return True if this
-- is an unchecked conversion that Gigi can handle directly. Otherwise
-- return False if it is one for which the front end must provide a
-- temporary. Note that the node need not be analyzed, and thus the Etype
-- field may not be set, but in that case it must be the case that the
-- Subtype_Mark field of the node is set/analyzed.
procedure Set_Current_Value_Condition (Cnode : Node_Id);
-- Cnode is N_If_Statement, N_Elsif_Part, or N_Iteration_Scheme (the latter
-- when a WHILE condition is present). This call checks whether Condition
-- (Cnode) has embedded expressions of a form that should result in setting
-- the Current_Value field of one or more entities, and if so sets these
-- fields to point to Cnode.
procedure Set_Elaboration_Flag (N : Node_Id; Spec_Id : Entity_Id);
-- N is the node for a subprogram or generic body, and Spec_Id is the
-- entity for the corresponding spec. If an elaboration entity is defined,
-- then this procedure generates an assignment statement to set it True,
-- immediately after the body is elaborated. However, no assignment is
-- generated in the case of library level procedures, since the setting of
-- the flag in this case is generated in the binder. We do that so that we
-- can detect cases where this is the only elaboration action that is
-- required.
procedure Set_Renamed_Subprogram (N : Node_Id; E : Entity_Id);
-- N is an node which is an entity name that represents the name of a
-- renamed subprogram. The node is rewritten to be an identifier that
-- refers directly to the renamed subprogram, given by entity E.
function Side_Effect_Free
(N : Node_Id;
Name_Req : Boolean := False;
Variable_Ref : Boolean := False) return Boolean;
-- Determines if the tree N represents an expression that is known not
-- to have side effects. If this function returns True, then for example
-- a call to Remove_Side_Effects has no effect.
--
-- Name_Req controls the handling of volatile variable references. If
-- Name_Req is False (the normal case), then volatile references are
-- considered to be side effects. If Name_Req is True, then volatility
-- of variables is ignored.
--
-- If Variable_Ref is True, then all variable references are considered to
-- be side effects (regardless of volatility or the setting of Name_Req).
function Side_Effect_Free
(L : List_Id;
Name_Req : Boolean := False;
Variable_Ref : Boolean := False) return Boolean;
-- Determines if all elements of the list L are side-effect free. Name_Req
-- and Variable_Ref are as described above.
procedure Silly_Boolean_Array_Not_Test (N : Node_Id; T : Entity_Id);
-- N is the node for a boolean array NOT operation, and T is the type of
-- the array. This routine deals with the silly case where the subtype of
-- the boolean array is False..False or True..True, where it is required
-- that a Constraint_Error exception be raised (RM 4.5.6(6)).
procedure Silly_Boolean_Array_Xor_Test
(N : Node_Id;
R : Node_Id;
T : Entity_Id);
-- N is the node for a boolean array XOR operation, T is the type of the
-- array, and R is a copy of the right operand of N, required to prevent
-- scope anomalies when unnesting is in effect. This routine deals with
-- the admitedly silly case where the subtype of the boolean array is
-- True..True, where a raise of a Constraint_Error exception is required
-- (RM 4.5.6(6)) and ACATS-tested.
function Small_Integer_Type_For (S : Uint; Uns : Boolean) return Entity_Id;
-- Return the smallest standard integer type containing at least S bits and
-- of the signedness given by Uns.
function Target_Has_Fixed_Ops
(Left_Typ : Entity_Id;
Right_Typ : Entity_Id;
Result_Typ : Entity_Id) return Boolean;
-- Returns True if and only if the target machine has direct support
-- for fixed-by-fixed multiplications and divisions for the given
-- operand and result types. This is called in package Exp_Fixd to
-- determine whether to expand such operations.
function Type_May_Have_Bit_Aligned_Components
(Typ : Entity_Id) return Boolean;
-- Determines if Typ is a composite type that has within it (looking down
-- recursively at subcomponents) a record which contains a component that
-- may be bit aligned in a manner that causes trouble for the back end
-- (see also Component_May_Be_Bit_Aligned for further details). The result
-- is conservative, in that a result of False is decisive. A result of True
-- means that such a component may or may not be present.
procedure Update_Primitives_Mapping
(Inher_Id : Entity_Id;
Subp_Id : Entity_Id);
-- Map primitive operations of the parent type to the corresponding
-- operations of the descendant. Note that the descendant type may not be
-- frozen yet, so we cannot use the dispatch table directly. This is called
-- when elaborating a contract for a subprogram, and when freezing a type
-- extension to verify legality rules on inherited conditions.
function Within_Case_Or_If_Expression (N : Node_Id) return Boolean;
-- Determine whether arbitrary node N is within a case or an if expression
private
pragma Inline (Duplicate_Subexpr);
pragma Inline (Force_Evaluation);
pragma Inline (Is_Library_Level_Tagged_Type);
end Exp_Util;
| 53.18018 | 79 | 0.705265 |
0e6b01d1c2d317040e91e9bdbe51f92677a25d25 | 891 | ads | Ada | alloy/coursework_two/handler.ads | m-f-1998/university | 12ddd56227c09018c2998960be32330f292adef8 | [
"Apache-2.0"
] | null | null | null | alloy/coursework_two/handler.ads | m-f-1998/university | 12ddd56227c09018c2998960be32330f292adef8 | [
"Apache-2.0"
] | null | null | null | alloy/coursework_two/handler.ads | m-f-1998/university | 12ddd56227c09018c2998960be32330f292adef8 | [
"Apache-2.0"
] | null | null | null |
-- Author: A. Ireland
--
-- Address: School Mathematical & Computer Sciences
-- Heriot-Watt University
-- Edinburgh, EH14 4AS
--
-- E-mail: [email protected]
--
-- Last modified: 13.9.2019
--
-- Filename: handler.ads
--
-- Description: Provides the drivers required for simulating the
-- environment in which the WTP system operates as
-- well as a logging capability.
pragma SPARK_Mode (Off);
package Handler is
subtype Sensor_Range is Integer range 0..2100;
type Water_Level_Cat is (Low, Normal, High, Undef);
procedure Update_Env;
function At_End return Boolean;
procedure Open_Env_File;
procedure Close_Env_File;
procedure Update_Log;
procedure Open_Log_File;
procedure Close_Log_File;
end Handler;
| 20.72093 | 72 | 0.607183 |
18f6583725924b93a0679f1173a70cfc8d0550f1 | 270 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_ai254.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_ai254.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_ai254.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- { dg-do compile }
procedure test_ai254 is
function Func
(Obj : not null access protected function (X : Float) return Float)
return not null access protected function (X : Float) return Float is
begin
return null;
end;
begin
null;
end;
| 20.769231 | 75 | 0.662963 |
4ac5427b3a844d0a70ed61ac03dc102877e976d0 | 109 | ads | Ada | example/src/trendy_terminal-example-input.ads | pyjarrett/archaic_terminal | ce1e5331a66ed9aa7ae0dc6c41ffa4851919a1f8 | [
"Apache-2.0"
] | 3 | 2021-11-03T18:27:41.000Z | 2022-03-01T18:15:34.000Z | example/src/trendy_terminal-example-input.ads | pyjarrett/archaic_terminal | ce1e5331a66ed9aa7ae0dc6c41ffa4851919a1f8 | [
"Apache-2.0"
] | 2 | 2021-09-05T13:35:39.000Z | 2021-09-11T21:27:38.000Z | example/src/trendy_terminal-example-input.ads | pyjarrett/trendy_terminal | ce1e5331a66ed9aa7ae0dc6c41ffa4851919a1f8 | [
"Apache-2.0"
] | null | null | null | package Trendy_Terminal.Example.Input is
procedure Run_Print_Input;
end Trendy_Terminal.Example.Input;
| 18.166667 | 40 | 0.825688 |
d0123b01cc382fb0d1681fcc6148ff80c49af626 | 57 | adb | Ada | examples/stm32f40x/src/main.adb | jonashaggstrom/ada-canopen | 8e0f32323a0f09b41e8b51ef7123738bbf29f194 | [
"Apache-2.0"
] | 6 | 2018-05-12T22:08:04.000Z | 2021-07-25T20:55:12.000Z | examples/stm32f40x/src/main.adb | jonashaggstrom/ada-canopen | 8e0f32323a0f09b41e8b51ef7123738bbf29f194 | [
"Apache-2.0"
] | null | null | null | examples/stm32f40x/src/main.adb | jonashaggstrom/ada-canopen | 8e0f32323a0f09b41e8b51ef7123738bbf29f194 | [
"Apache-2.0"
] | 2 | 2021-06-15T11:56:46.000Z | 2021-06-21T13:56:01.000Z | with App;
procedure Main
is
begin
App.Run;
end Main;
| 7.125 | 14 | 0.701754 |
0ee6c0b8fe3b087e00e9c485008f79d43cf8324d | 47,176 | adb | Ada | Sources/Globe_3d/globe_3d original lists.adb | ForYouEyesOnly/Space-Convoy | be4904f6a02695f7c4c5c3c965f4871cd3250003 | [
"MIT"
] | 1 | 2019-09-21T09:40:34.000Z | 2019-09-21T09:40:34.000Z | Sources/Globe_3d/globe_3d original lists.adb | ForYouEyesOnly/Space-Convoy | be4904f6a02695f7c4c5c3c965f4871cd3250003 | [
"MIT"
] | null | null | null | Sources/Globe_3d/globe_3d original lists.adb | ForYouEyesOnly/Space-Convoy | be4904f6a02695f7c4c5c3c965f4871cd3250003 | [
"MIT"
] | 1 | 2019-09-25T12:29:27.000Z | 2019-09-25T12:29:27.000Z | with GLOBE_3D.Options,
GLOBE_3D.Textures,
GLOBE_3D.Math,
GLOBE_3D.Portals;
with GL.Errors,
GL.Skins;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Strings.Fixed; use Ada.Strings, Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO;
with System.Storage_Elements;
with Ada.Containers.Generic_Array_Sort;
package body GLOBE_3D is
use GLOBE_3D.Options;
package G3DT renames GLOBE_3D.Textures;
package G3DM renames GLOBE_3D.Math;
--
package List_Id_Generator is
function New_List_Id return List_Ids;
private
Available_List_Id : List_Ids := List_Ids'First;
end List_Id_Generator;
package body List_Id_Generator is
function New_List_Id return List_Ids is
begin
Available_List_Id := Available_List_Id + 1;
return Available_List_Id - 1;
end New_List_Id;
end List_Id_Generator;
--
function Image (r : Real) return String is
s : String (1 .. 10);
begin
RIO.Put (s, r, 4, 0);
return s;
exception
when Ada.Text_IO.Layout_Error =>
return Real'Image (r);
end Image;
function Coords (p : Point_3D) return String is
begin
return ' (' & Image (p (0)) &
', ' & Image (p (1)) &
', ' & Image (p (2)) &
')';
end Coords;
-- normal support
--
procedure Add_Normal_of_3p (o : in Object_3d'Class;
Pn0, Pn1, Pn2 : in Integer;
N : in out Vector_3D) is
use GL, G3dm;
function Params return String is
begin
return
" Object : " & Trim (o.id, right) &
" Pn0=" & Integer'Image (Pn0) &
" Pn1=" & Integer'Image (Pn1) &
" Pn2=" & Integer'Image (Pn2);
end Params;
N_contrib : Vector_3D;
begin
if Pn0=0 or Pn1=0 or Pn2=0 then return; end if;
N_contrib := (o.point (Pn1) - o.point (Pn0))* (o.point (Pn2) - o.point (Pn0)) ;
if strict_geometry and then Almost_zero (Norm2 (N_contrib)) then
raise_exception (zero_normal'Identity,
Params &
" P0=" & Coords (o.point (Pn0)) &
" P1=" & Coords (o.point (Pn1)) &
" P2=" & Coords (o.point (Pn2)) &
" Nc=" & Coords (N_contrib)
);
end if;
N := N + N_contrib;
exception
when e : others =>
raise_exception (
Exception_Identity (e),
Exception_Message (e) & Params
);
end Add_Normal_of_3p;
-- blending support
--
function Is_to_blend (m : GL.Double) return Boolean is
use GL, G3DM;
begin
return not Almost_zero (m - 1.0);
end Is_to_blend;
function Is_to_blend (m : GL.Float) return Boolean is
use GL, G3DM;
begin
return not Almost_zero (m - 1.0);
end Is_to_blend;
function Is_to_blend (m : GL.Material_Float_vector) return Boolean is
begin
return Is_to_blend (m (3));
end Is_to_blend;
function Is_to_blend (m : GL.Materials.Material_type) return Boolean is
begin
return
Is_to_blend (m.ambient) or
Is_to_blend (m.diffuse) or
Is_to_blend (m.specular);
-- m.emission, m.shininess not relevant
end Is_to_blend;
-- material support
--
procedure Set_Material (m : GL.Materials.Material_type) is
use GL;
begin
Material (FRONT_AND_BACK, AMBIENT, m.ambient);
Material (FRONT_AND_BACK, DIFFUSE, m.diffuse);
Material (FRONT_AND_BACK, SPECULAR, m.specular);
Material (FRONT_AND_BACK, EMISSION, m.emission);
Material (FRONT_AND_BACK, SHININESS, m.shininess);
end Set_Material;
-- 'Visual'
--
procedure free (o : in out p_Visual)
is
procedure deallocate is new ada.unchecked_deallocation (Visual'Class, p_Visual);
begin
destroy (o.all);
deallocate (o);
end free;
function skinned_Geometrys (o : in Visual) return GL.skinned_geometry.skinned_Geometrys
is
begin
return GL.skinned_geometry.null_skinned_Geometrys;
end skinned_Geometrys;
function Width (o : in Visual'class) return Real
is
begin
return bounds (o).box.X_Extent.Max - bounds (o).box.X_Extent.Min;
end Width;
function Height (o : in Visual'class) return Real
is
begin
return bounds (o).box.Y_Extent.Max - bounds (o).box.Y_Extent.Min;
end Height;
function Depth (o : in Visual'class) return Real
is
begin
return bounds (o).box.Z_Extent.Max - bounds (o).box.Z_Extent.Min;
end Depth;
-- 'Object_3D'
--
-- object validation
--
procedure Check_object (o : Object_3D) is
use G3DM;
procedure Check_faces is
procedure Check (f, v : Integer) is
pragma Inline (Check);
begin
if v < 0 or else v > o.max_points then
raise_exception (bad_vertex_number'Identity,
o.id & " face=" & Integer'Image (f) &
" vertex=" & Integer'Image (v));
end if;
end Check;
procedure Check_duplicate (f, Pn1, Pn2 : Integer) is
pragma Inline (Check_duplicate);
begin
-- Skip "dead" edge (triangle), 30 - Dec - 2001
if Pn1=0 or else Pn2=0 then return; end if;
-- Detect same point number
if Pn1=Pn2 then
raise_exception (duplicated_vertex'Identity,
o.id & " in face " & Integer'Image (f));
end if;
-- Detect same point coordinates (tolerated in an object,
-- although inefficient, but harms as vertex of the same face!)
if Almost_zero (Norm2 (o.point (Pn1) - o.point (Pn2))) then
raise_exception (duplicated_vertex_location'Identity,
o.id & " in face " & Integer'Image (f));
end if;
end Check_duplicate;
begin
for fa in o.face'Range loop
for edge_num in 1 .. 4 loop
Check (fa, o.face (fa).P (edge_num));
for other_edge in edge_num + 1 .. 4 loop
Check_duplicate (fa, o.face (fa).P (edge_num),
o.face (fa).P (other_edge));
end loop;
end loop;
end loop; -- fa
end Check_faces;
begin
Check_faces;
end Check_object;
--------------------------------------------
-- Object initialization (1x in its life) --
--------------------------------------------
procedure Pre_calculate (o : in out Object_3D) is
use GL, G3DM;
N : Vector_3D;
length_N : Real;
procedure Calculate_face_invariants (
fa : in Face_type;
fi : out Face_invariant_type
) is
l : Natural := 0;
quadri_edge : array (fa.P'Range) of Natural;
ex_U, ex_V : Real;
begin
l := 0;
for qe in fa.P'Range loop
if fa.P (qe) /= 0 then
l := l + 1;
quadri_edge (l) := qe; -- if triangle, "map" edge on a quadri
fi.P_compact (l) := fa.P (qe);
end if;
end loop;
if l in Edge_count then
fi.last_edge := l;
else
raise_exception (bad_edge_number'Identity, o.id);
end if;
-- * Face invariant : Textured face : extremities
for e in 1 .. l loop
if fa.whole_texture then
ex_U := Real (fa.repeat_U);
ex_V := Real (fa.repeat_V);
case quadri_edge (e) is
when 1 => fi.UV_extrema (e) := (0.0, 0.0); -- bottom, left 4 --< --3
when 2 => fi.UV_extrema (e) := (ex_U, 0.0); -- bottom, right | |
when 3 => fi.UV_extrema (e) := (ex_U, ex_V); -- top, right 1 --> --2
when 4 => fi.UV_extrema (e) := (0.0, ex_V); -- top, left
when others => null;
end case;
else
-- Just copy the mapping, but in compact form for triangles:
fi.UV_extrema (e) := fa.texture_edge_map (quadri_edge (e));
end if;
end loop;
-- * Face invariant : Normal of unrotated face
N := (0.0, 0.0, 0.0);
case fi.last_edge is
when 3 =>
Add_Normal_of_3p (o,
fi.P_compact (1),
fi.P_compact (2),
fi.P_compact (3),
N
);
when 4 =>
Add_Normal_of_3p (o, fa.P (1), fa.P (2), fa.P (4), N);
-- We sum other normals for not perfectly flat faces,
-- in order to have a convenient average .. .
Add_Normal_of_3p (o, fa.P (2), fa.P (3), fa.P (1), N);
Add_Normal_of_3p (o, fa.P (3), fa.P (4), fa.P (2), N);
Add_Normal_of_3p (o, fa.P (4), fa.P (1), fa.P (3), N);
end case;
length_N := Norm (N);
if Almost_zero (length_N) then
if strict_geometry then
raise zero_summed_normal;
else
fi.normal := N; -- 0 vector !
end if;
else
fi.normal := (1.0 / length_N) * N;
end if;
end Calculate_face_invariants;
adjacent_faces : array (o.point'Range) of Natural := (others => 0);
pf : Natural;
length : Real;
begin --Pre_calculate
if full_check_objects then Check_object (o); end if;
for i in o.face'Range loop
begin
-- Geometry
Calculate_face_invariants (o.face (i), o.face_invariant (i));
-- Disable blending when alphas are = 1
case o.face (i).skin is
when material_only | material_texture =>
o.face_invariant (i).blending := Is_to_blend (o.face (i).material);
when colour_only | coloured_texture | texture_only =>
o.face_invariant (i).blending := Is_to_blend (o.face (i).alpha);
when invisible =>
o.face_invariant (i).blending := False;
end case;
o.transparent := o.transparent or o.face_invariant (i).blending;
exception
when zero_summed_normal =>
raise_exception (zero_summed_normal'Identity,
o.id & " face=" & Integer'Image (i));
end;
end loop;
declare
use globe_3d.REF;
max_Norm2 : Real := 0.0;
begin
o.bounds.box.X_Extent.Min := Real'Last; o.bounds.box.X_Extent.Max := Real'First;
o.bounds.box.Y_Extent.Min := Real'Last; o.bounds.box.Y_Extent.Max := Real'First;
o.bounds.box.Z_Extent.Min := Real'Last; o.bounds.box.Z_Extent.Max := Real'First;
for p in o.point'Range loop
o.edge_vector (p) := (0.0, 0.0, 0.0);
max_Norm2 := Real'Max (Norm2 (o.Point (p)), max_Norm2);
o.bounds.box.X_Extent.Min := Real'Min (o.bounds.box.X_Extent.Min, o.Point (p) (0)); -- tbd : set extents and bounding sphere radius in
o.bounds.box.X_Extent.Max := Real'Max (o.bounds.box.X_Extent.Max, o.Point (p) (0)); -- common procedure for 'object_base' class.
o.bounds.box.Y_Extent.Min := Real'Min (o.bounds.box.Y_Extent.Min, o.Point (p) (1));
o.bounds.box.Y_Extent.Max := Real'Max (o.bounds.box.Y_Extent.Max, o.Point (p) (1));
o.bounds.box.Z_Extent.Min := Real'Min (o.bounds.box.Z_Extent.Min, o.Point (p) (2));
o.bounds.box.Z_Extent.Max := Real'Max (o.bounds.box.Z_Extent.Max, o.Point (p) (2));
end loop;
o.bounds.sphere_Radius := sqRt (max_Norm2);
end;
-- Calculate edge vectors.
-- Naive algorithm : for each point, scan all faces to see
-- if they are adjacent. It took #points * #faces steps.
-- - > better algorithm here : 2 * #points + 4 * #faces. (22 - Jan - 2006)
for f in o.face'Range loop
for p in o.face (f).P'Range loop
pf := o.face (f).P (p);
if pf /= 0 then
adjacent_faces (pf) := adjacent_faces (pf) + 1;
o.edge_vector (pf) := o.edge_vector (pf) + o.face_invariant (f).normal;
end if;
end loop;
if is_textured (o.face (f).skin) and then
not Textures.Valid_texture_ID (o.face (f).texture) then
raise_exception (Textures.Undefined_texture_ID'Identity,
Trim (o.id, right) &
" face=" & Integer'Image (f) &
" skin=" & Skin_Type'Image (o.face (f).skin) &
" texture_id=" & Image_ID'Image (o.face (f).texture));
end if;
end loop;
for p in o.point'Range loop
if adjacent_faces (p) = 0 then
if strict_geometry then
-- Strict approach : detect any unmatched point:
raise_exception (point_unmatched'Identity,
Trim (o.id, right) &
" point " & Integer'Image (p) &
" belongs to none of the object's face");
end if;
else
length := Norm (o.edge_vector (p));
if not Almost_zero (length) then
o.edge_vector (p) := (1.0/length) * o.edge_vector (p);
end if;
end if;
end loop;
-- Ooof. Now we can certify:
o.pre_calculated := True;
end Pre_calculate;
procedure Arrow (P : Point_3D; D : Vector_3D) is
use GL, G3DM;
V, V1, V2 : Vector_3D;
begin
if Almost_zero (Norm2 (D)) then
return;
end if;
V := (D (1), - D (0), 0.0); -- an orthogonal, or zero
if Almost_zero (Norm2 (V)) then -- bad luck, it is zero
V := (0.0, - D (2), D (1)); -- 2nd try
end if;
V := (0.2/Norm (V)) * V;
V1 := 0.7*D + V;
V2 := 0.7*D - V;
GL_Begin (GL.LINES);
Vertex (P + D); Vertex (P);
Vertex (P + D); Vertex (P + V1);
Vertex (P + D); Vertex (P + V2);
GL_End;
end Arrow;
neutral_material_already_set : Boolean := False;
-------------
-- Display --
-------------
procedure Display_one (o : in out Object_3D) is
-- Display only this object and not connected objects
-- out : object will be initialized if not yet
--
--
-- Display face routine which is optimized to produce a shorter list
-- of GL commands. Runs slower then the original Display face routine
-- yet needs to be executed only once.
--
-- Uwe R. Zimmer, July 2011
--
package Display_face_optimized is
procedure Display_face (First_Face : Boolean; fa : Face_type; fi : in out Face_invariant_type);
private
Previous_face : Face_type;
Previous_face_Invariant : Face_invariant_type;
end Display_face_optimized;
package body Display_face_optimized is
use GL.Materials;
procedure Display_face (First_Face : Boolean; fa : Face_type; fi : in out Face_invariant_type) is
use GL;
blending_hint : Boolean;
begin -- Display_face
if fa.skin = invisible then
Previous_face := fa;
Previous_face_Invariant := fi;
return;
end if;
--------------
-- Material --
--------------
if First_Face
or else Previous_face.skin = invisible
or else fa.skin /= Previous_face.skin
or else (fa.skin = Previous_face.skin
and then fa.material /= Previous_face.material) then
case fa.skin is
when material_only | material_texture =>
Disable (COLOR_MATERIAL);
Set_Material (fa.material);
when others =>
Set_Material (GL.Materials.neutral_material);
end case;
end if;
------------
-- Colour --
------------
if First_Face
or else Previous_face.skin = invisible
or else fa.skin /= Previous_face.skin
or else (fa.skin = Previous_face.skin
and then (fa.colour /= Previous_face.colour
or else fa.alpha /= Previous_face.alpha)) then
case fa.skin is
when material_only | material_texture =>
null; -- done above
when colour_only | coloured_texture =>
Enable (COLOR_MATERIAL);
ColorMaterial (FRONT_AND_BACK, AMBIENT_AND_DIFFUSE);
Color (red => fa.colour.red,
green => fa.colour.green,
blue => fa.colour.blue,
alpha => fa.alpha);
when texture_only =>
Disable (COLOR_MATERIAL);
when invisible =>
null;
end case;
end if;
-------------
-- Texture --
-------------
if First_Face
or else Previous_face.skin = invisible
or else fa.skin /= Previous_face.skin
or else (fa.skin = Previous_face.skin
and then fa.texture /= Previous_face.texture) then
case fa.skin is
when texture_only | coloured_texture | material_texture =>
Enable (TEXTURE_2D);
G3DT.Check_2D_texture (fa.texture, blending_hint);
GL.BindTexture (GL.TEXTURE_2D, GL.Uint (Image_id'Pos (fa.texture) + 1));
-- ^ superfluous ?!!
if blending_hint then
fi.blending := True;
-- 13 - Oct - 2006 : override decision made at Pre_calculate
-- if texture data contains an alpha layer
end if;
when colour_only | material_only =>
Disable (TEXTURE_2D);
when invisible =>
null;
end case;
end if;
-----------------------------
-- Blending / transparency --
-----------------------------
if First_Face
or else Previous_face.skin = invisible
or else fi.blending /= Previous_face_Invariant.blending then
if fi.blending then
Enable (BLEND); -- See 4.1.7 Blending
BlendFunc (sfactor => SRC_ALPHA,
dfactor => ONE_MINUS_SRC_ALPHA);
-- Disable (DEPTH_TEST);
-- Disable (CULL_FACE);
else
Disable (BLEND);
-- Enable (DEPTH_TEST);
-- Enable (CULL_FACE);
-- CullFace (BACK);
end if;
end if;
-------------
-- Drawing --
-------------
case fi.last_edge is
when 3 => GL_Begin (TRIANGLES);
when 4 => GL_Begin (QUADS);
end case;
for i in 1 .. fi.last_edge loop
if is_textured (fa.skin) then
TexCoord (fi.UV_extrema (i).U, fi.UV_extrema (i).V);
end if;
Normal (o.edge_vector (fi.P_compact (i)));
Vertex (o.point (fi.P_compact (i)));
end loop;
GL_End;
Previous_face := fa;
Previous_face_Invariant := fi;
end Display_face;
end Display_face_optimized;
--
procedure Display_face (fa : Face_type; fi : in out Face_invariant_type) is
use GL;
blending_hint : Boolean;
begin -- Display_face
if fa.skin = invisible then
return;
end if;
--------------
-- Material --
--------------
case fa.skin is
when material_only | material_texture =>
Disable (COLOR_MATERIAL);
Set_Material (fa.material);
neutral_material_already_set := False;
when others =>
-- Avoid setting again and again the neutral material
if not neutral_material_already_set then
Set_Material (GL.Materials.neutral_material);
neutral_material_already_set := True;
end if;
end case;
------------
-- Colour --
------------
case fa.skin is
when material_only | material_texture =>
null; -- done above
when colour_only | coloured_texture =>
Enable (COLOR_MATERIAL);
ColorMaterial (FRONT_AND_BACK, AMBIENT_AND_DIFFUSE);
Color (
red => fa.colour.red,
green => fa.colour.green,
blue => fa.colour.blue,
alpha => fa.alpha
);
when texture_only =>
Disable (COLOR_MATERIAL);
when invisible =>
null;
end case;
-------------
-- Texture --
-------------
case fa.skin is
when texture_only | coloured_texture | material_texture =>
Enable (TEXTURE_2D);
G3DT.Check_2D_texture (fa.texture, blending_hint);
GL.BindTexture (GL.TEXTURE_2D, GL.Uint (Image_id'Pos (fa.texture) + 1));
-- ^ superfluous ?!!
if blending_hint then
fi.blending := True;
-- 13 - Oct - 2006 : override decision made at Pre_calculate
-- if texture data contains an alpha layer
end if;
when colour_only | material_only =>
Disable (TEXTURE_2D);
when invisible =>
null;
end case;
-----------------------------
-- Blending / transparency --
-----------------------------
if fi.blending then
Enable (BLEND); -- See 4.1.7 Blending
BlendFunc (sfactor => SRC_ALPHA,
dfactor => ONE_MINUS_SRC_ALPHA);
-- Disable (DEPTH_TEST);
-- Disable (CULL_FACE);
else
Disable (BLEND);
-- Enable (DEPTH_TEST);
-- Enable (CULL_FACE);
-- CullFace (BACK);
end if;
-------------
-- Drawing --
-------------
case fi.last_edge is
when 3 => GL_Begin (TRIANGLES);
when 4 => GL_Begin (QUADS);
end case;
for i in 1 .. fi.last_edge loop
if is_textured (fa.skin) then
TexCoord (fi.UV_extrema (i).U, fi.UV_extrema (i).V);
end if;
Normal (o.edge_vector (fi.P_compact (i)));
Vertex (o.point (fi.P_compact (i)));
end loop;
GL_End;
end Display_face;
procedure Display_normals is
use GL, G3DM;
C : Vector_3D;
begin
GL.Color (0.5, 0.5, 1.0, 1.0);
-- show pseudo (average) normals at edges:
for e in o.point'Range loop
Arrow (o.point (e), arrow_inflator * o.edge_vector (e));
end loop;
GL.Color (1.0, 1.0, 0.5, 1.0);
-- show normals of faces:
for f in o.face'Range loop
C := (0.0, 0.0, 0.0);
for i in 1 .. o.face_invariant (f).last_edge loop
C := C + o.point (o.face_invariant (f).P_compact (i));
end loop;
C := (1.0/Real (o.face_invariant (f).last_edge)) * C;
Arrow (C, arrow_inflator * o.face_invariant (f).normal);
end loop;
end Display_normals;
use GL, G3DM;
begin -- Display_one
if not o.pre_calculated then
Pre_calculate (o);
end if;
GL.bindBuffer (gl.ARRAY_BUFFER, 0); -- disable 'vertex buffer objects'
GL.bindBuffer (gl.ELEMENT_ARRAY_BUFFER, 0); -- disable 'vertex buffer objects' indices
-- GL.disableClientState (gl.TEXTURE_COORD_ARRAY);
-- GL.disable (ALPHA_TEST);
GL.enable (Lighting);
GL.PushMatrix; -- 26 - May - 2006 : instead of rotating/translating back
GL.Translate (o.centre);
Multiply_GL_Matrix (o.rotation);
-- List preparation phase
case o.List_Status is
when No_list | Is_List => null;
when Generate_List =>
o.List_Id := List_Id_Generator.New_List_Id;
GL.NewList (GL.uint (o.List_Id), COMPILE_AND_EXECUTE);
end case;
-- Execution phase
case o.List_Status is
when No_list =>
for f in o.face'Range loop
Display_face (o.face (f), o.face_invariant (f));
end loop;
when Generate_List =>
for f in o.face'Range loop
Display_face_optimized.Display_face (f = o.face'First, o.face (f), o.face_invariant (f));
end loop;
when Is_List => GL.CallList (GL.uint (o.List_Id));
end case;
-- Close list
case o.List_Status is
when No_list | Is_List => null;
when Generate_List =>
GL.EndList;
if GL.GetError = OUT_OF_MEMORY then
o.List_Status := No_List;
else
o.List_Status := Is_List;
end if;
end case;
if show_normals then
GL.Disable (GL.LIGHTING);
GL.Disable (GL.TEXTURE_2D);
Display_normals;
GL.Enable (GL.LIGHTING); -- mmmh .. .
end if;
GL.PopMatrix; -- 26 - May - 2006 : instead of rotating/translating back
-- GL.Rotate (o.auto_rotation (2), 0.0, 0.0, - 1.0);
-- GL.Rotate (o.auto_rotation (1), 0.0, - 1.0, 0.0);
-- GL.Rotate (o.auto_rotation (0), - 1.0, 0.0, 0.0);
-- GL.Translate ( - o.centre);
end Display_one;
procedure Display (
o : in out Object_3D;
clip : in Clipping_data
)
is
use GLOBE_3D.Portals;
procedure Display_clipped (
o : in out Object_3D'Class;
clip_area : in Clipping_area;
portal_depth : in Natural
)
is
procedure Try_portal (f : Positive) is
use G3DM, GL;
dp : Real;
plane_to_eye : Vector_3D; -- vector from any point in plane to the eye
bounding_of_face, intersection_clip_and_face : Clipping_area;
success, non_empty_intersection : Boolean;
begin
-- Culling #1 : check if portal is in vield of view's "dead angle"
dp := o.face_invariant (f).normal * clip.view_direction;
if dp < clip.max_dot_product then
-- Culling #2 : check if we are on the right side of the portal
-- NB : ignores o.auto_rotation !
plane_to_eye :=
clip.eye_position -
(o.point (o.face_invariant (f).P_compact (1)) + o.centre)
;
dp := plane_to_eye * o.face_invariant (f).normal;
-- dp = signed distance to the plane
if dp > 0.0 then
-- Culling #3 : clipping rectangle
Find_bounding_box (o, f, bounding_of_face, success);
if success then
Intersect (clip_area, bounding_of_face,
intersection_clip_and_face, non_empty_intersection);
else
-- in doubt, draw with the present clipping
intersection_clip_and_face := clip_area;
non_empty_intersection := True;
end if;
if non_empty_intersection then
-- Recursion here:
Display_clipped (
o => o.face (f).connecting.all,
clip_area => intersection_clip_and_face,
portal_depth => portal_depth + 1
);
end if;
end if;
end if;
end Try_portal;
begin -- Display_clipped
if not o.pre_calculated then
Pre_calculate (o);
end if;
--
-- a/ Display connected objects which are visible through o's faces
-- This is where recursion happens
if (not filter_portal_depth) or else -- filter_portal_depth : test/debug
portal_depth <= 6
then
for f in o.face'Range loop
if o.face (f).connecting /= null and then
not o.face_invariant (f).portal_seen
-- ^ prevents infinite recursion on rare cases where
-- object A or B is not convex, and A and B see each other
-- and the culling by clipping cannot stop the recursion
-- (e.g. origin2.proc, tomb.proc)
--
-- NB : drawing [different parts of] the same object several times
-- is right, since portions can be seen through different portals,
-- but going more than once through the same portal is wrong
then
o.face_invariant (f).portal_seen := True;
Try_portal (f);
-- ^ recursively calls Display_clipped for
-- objects visible through face f.
end if;
end loop;
end if;
-- b/ Display the object itself
if (not filter_portal_depth) or else -- filter_portal_depth : test/debug
(portal_depth = 1 or portal_depth = 5)
then
-- The graphical clipping (Scissor) gives various effects
-- - almost no speedup on the ATI Radeon 9600 Pro (hardware)
-- - factor : ~ Sqrt (clipped surface ratio) with software GL
if portal_depth > 0 then
GL.Enable (GL.SCISSOR_TEST);
GL.Scissor (
x => GL.Int (clip_area.x1),
y => GL.Int (clip_area.y1),
width => GL.SizeI (clip_area.x2 - clip_area.x1 + 1),
height => GL.SizeI (clip_area.y2 - clip_area.y1 + 1)
);
else
GL.Disable (GL.SCISSOR_TEST);
end if;
info_b_ntl2 := info_b_ntl2 + 1;
info_b_ntl3 := Natural'Max (portal_depth, info_b_ntl3);
Display_one (o);
end if;
if show_portals and then portal_depth > 0 then
Draw_boundary (clip.main_clipping, clip_area);
end if;
end Display_clipped;
procedure Reset_portal_seen (o : in out Object_3D'Class) is
begin
for f in o.face'Range loop
if o.face_invariant (f).portal_seen then
o.face_invariant (f).portal_seen := False;
Reset_portal_seen (o.face (f).connecting.all);
end if;
end loop;
end Reset_portal_seen;
begin
info_b_ntl2 := 0; -- count amount of objects displayed, not distinct
info_b_ntl3 := 0; -- records max depth
Display_clipped (o, clip_area => clip.main_clipping, portal_depth => 0);
Reset_portal_seen (o);
end Display;
procedure Destroy (o : in out Object_3D) is
ol : p_Object_3D_list := o.sub_objects;
begin
while ol /= null loop
Free (p_Visual (ol.objc));
ol := ol.next;
end loop;
end Destroy;
procedure set_Alpha (o : in out Object_3D; Alpha : in GL.Double) is
begin
for f in o.face'Range loop
o.face (f).alpha := Alpha;
end loop;
end set_Alpha;
function is_Transparent (o : in Object_3D) return Boolean is
begin
return o.transparent;
end is_Transparent;
function face_Count (o : in Object_3D) return Natural is
begin
return o.Max_faces;
end face_Count;
function Bounds (o : in Object_3D) return GL.geometry.Bounds_record is
begin
return o.Bounds;
end Bounds;
-- Lighting support.
--
-- lights : array (Light_ident) of Light_definition;
light_defined : array (Light_ident) of Boolean := (others => False);
procedure Define (which : Light_ident; as : Light_definition) is
id : constant GL.LightIDEnm := GL.LightIDEnm'Val (which - 1);
use GL;
begin
-- lights (which) := as;
Light (id, POSITION, as.position);
Light (id, AMBIENT, as.ambient);
Light (id, DIFFUSE, as.diffuse);
Light (id, SPECULAR, as.specular);
light_defined (which) := True;
end Define;
procedure Switch_lights (on : Boolean) is
begin
for l in Light_ident loop
Switch_light (l, on);
end loop;
end Switch_lights;
function Server_id (which : Light_ident) return GL.ServerCapabilityEnm is
begin
return GL.ServerCapabilityEnm'Val (GL.ServerCapabilityEnm'Pos (GL.LIGHT0) + which - 1);
end Server_id;
procedure Switch_light (which : Light_ident; on : Boolean) is
begin
if light_defined (which) then
if on then
GL.Enable (Server_id (which));
else
GL.Disable (Server_id (which));
end if;
end if;
end Switch_light;
function Is_light_switched (which : Light_ident) return Boolean is
begin
return Boolean'Val (GL.IsEnabled (Server_id (which)));
end Is_light_switched;
procedure Reverse_light_switch (which : Light_ident) is
begin
Switch_light (which, not Is_light_switched (which));
end Reverse_light_switch;
prec_a360 : constant := 10000;
r_prec_a360 : constant := 10000.0;
i_r_prec_a360 : constant := 1.0 / r_prec_a360;
procedure Angles_modulo_360 (v : in out Vector_3D)is
use GL;
begin
for i in v'Range loop
v (i) :=
GL.Double (Integer (r_prec_a360 * v (i)) mod (360*prec_a360))
* i_r_prec_a360;
end loop;
end Angles_modulo_360;
------------------
-- Resource I/O --
------------------
procedure Load_if_needed (zif : in out Zip.Zip_info; name : String) is
begin
if not Zip.Is_loaded (zif) then
begin
Zip.Load (zif, name);
exception
when Zip.Zip_file_open_error => -- Try with lower case:
Zip.Load (zif, To_Lower (name));
end;
end if;
end Load_if_needed;
procedure Set_level_data_name (s : String) is
begin
if Zip.Is_loaded (zif_level) then
Zip.Delete (zif_level);
end if;
-- ^ Possible resource name change - > need this, will be reloaded on next use
level_data_name := Ada.Strings.Unbounded.To_Unbounded_String (s);
end Set_level_data_name;
procedure Set_global_data_name (s : String) is
begin
if Zip.Is_loaded (zif_global) then
Zip.Delete (zif_global);
end if;
-- ^ Possible resource name change - > need this, will be reloaded on next use
global_data_name := Ada.Strings.Unbounded.To_Unbounded_String (s);
end Set_global_data_name;
procedure Set_name (o : in out Visual'class; new_name : String) is
begin
if new_name'Length > Ident'Length then
raise Constraint_Error;
end if;
o.ID := empty;
o.ID (1 .. new_name'Length) := new_name;
end Set_name;
function Get_name (o : Visual'class) return String is
begin
return Trim (o.id, right);
end Get_name;
procedure Rebuild_links (
o : in out Object_3D'Class; -- object to be relinked
neighbouring : in Map_of_Visuals; -- neighbourhood
tolerant_obj : in Boolean; -- tolerant on missing objects
tolerant_tex : in Boolean -- tolerant on missing textures
)
is
found : Boolean;
begin
for f in o.face'Range loop
-- 1/ Find texture IDs:
if is_textured (o.face (f).skin) and then
o.face_invariant (f).texture_name /= empty
then
begin
o.face (f).texture :=
Textures.Texture_ID (o.face_invariant (f).texture_name);
exception
when Textures.Texture_name_not_found =>
if tolerant_tex then
o.face (f).texture := null_image;
o.face (f).skin := material_only;
else
raise;
end if;
end;
end if;
-- 2/ Connections through portals:
if o.face_invariant (f).connect_name /= empty then
found := False;
-- XX old linear search:
-- for i in neighbouring'Range loop
-- if neighbouring (i).ID = o.face_invariant (f).connect_name then
-- o.face (f).connecting := neighbouring (i);
-- found := True;
-- exit;
-- end if;
-- end loop;
begin
o.face (f).connecting := p_Object_3D (Visuals_Mapping.Element (
Visuals_Mapping.Map (neighbouring),
Ada.Strings.Unbounded.To_Unbounded_String (o.face_invariant (f).connect_name))
);
found := True;
exception
when Constraint_Error =>
-- GNAT gives also the message:
-- no element available because key not in map
null;
end;
if not found then
if tolerant_obj then
o.face (f).connecting := null;
else
raise_exception (
Portal_connection_failed'Identity,
"For object name [" & Trim (o.ID, right) &
"], looking for [" &
Trim (o.face_invariant (f).connect_name, right)
& ']'
);
end if;
end if;
end if;
end loop;
end Rebuild_links;
procedure Texture_name_hint (
o : in out Object_3D;
face : Positive;
name : String
)
is
begin
if name'Length > Ident'Length then raise Constraint_Error; end if;
o.face_invariant (face).texture_name := empty;
o.face_invariant (face).texture_name (1 .. name'Length) := name;
end Texture_name_hint;
procedure Portal_name_hint (
o : in out Object_3D;
face : Positive;
name : String
)
is
begin
if name'Length > Ident'Length then raise Constraint_Error; end if;
o.face_invariant (face).connect_name := empty;
o.face_invariant (face).connect_name (1 .. name'Length) := name;
end Portal_name_hint;
----------------------------------------
-- tbd : has been moved (for the moment) external to 'render' for performance, but this makes package task unsafe !
--
--
type visual_Geometry is
record
Visual : p_Visual;
Geometry : GL.skinned_geometry.skinned_Geometry;
end record;
pragma Convention (C, visual_Geometry); -- using convention pragma to disable default initialization (for performance)
type visual_Geometrys is array (Positive range <>) of visual_Geometry;
pragma Convention (C, visual_Geometrys); -- using convention pragma to disable default initialization (for performance)
all_Geometrys : visual_geometrys (1 .. 80_000); pragma Convention (C, all_Geometrys); -- tbd : this is slow !
--
--------------------------------------
procedure render (the_Visuals : in Visual_array; the_Camera : in Camera)
is
use GL, REF, G3DM;
all_Transparents : globe_3d.Visual_array (1 .. 10_000);
transparent_Count : Natural := 0;
geometry_Count : Natural := 0; -- for 'all_Geometrys' array.
current_Skin : GL.skins.p_Skin;
begin
-- prepare openGL to display visuals.
--
Clear (COLOR_BUFFER_BIT or DEPTH_BUFFER_BIT);
Enable (DEPTH_TEST);
Enable (LIGHTING); -- enable lighting for G3D.Display in 'separate Visuals' (obsolete).
Enable (CULL_FACE);
CullFace (BACK);
MatrixMode (MODELVIEW);
Set_GL_Matrix (the_Camera.world_rotation);
Translate ( - the_Camera.Clipper.eye_Position (0), - the_Camera.Clipper.eye_Position (1), - the_Camera.Clipper.eye_Position (2));
PushMatrix;
-- separate Visuals
--
for Each in the_Visuals'Range loop
declare
the_Visual : Visual'Class renames the_Visuals (Each).all;
visual_Geometrys : GL.skinned_geometry.skinned_Geometrys renames skinned_Geometrys (the_visual);
begin
if is_transparent (the_Visual) then
transparent_Count := transparent_Count + 1;
all_Transparents (transparent_Count) := the_Visual'Access;
else
for Each in visual_Geometrys'Range loop
geometry_Count := geometry_Count + 1;
all_Geometrys (geometry_Count).Visual := the_Visual'Access;
all_Geometrys (geometry_Count).Geometry := visual_Geometrys (Each);
end loop;
Display (the_Visuals (Each).all, the_Camera.Clipper);
end if;
end;
end loop;
GL.Errors.log;
-- display all opaque geometries, sorted by gl geometry primitive kind and skin.
--
declare
function "<" (L, R : in visual_geometry) return Boolean
is
use GL.Geometry, System.Storage_Elements;
begin
if primitive_Id (L.Geometry.Geometry.all) = primitive_Id (R.Geometry.Geometry.all) then -- tbd : find better naming scheme to avoid '.Geometry.Geometry.'
return to_Integer (L.Geometry.Skin.all'Address) < to_Integer (R.Geometry.Skin.all'Address); -- tbd : check this is safe/portable
-- GdM : aaargh! remove that !!
elsif primitive_Id (L.Geometry.Geometry.all) < primitive_Id (R.Geometry.Geometry.all) then
return True;
else -- L.Geometry.primitive_Id > R.Geometry.primitive_Id
return False;
end if;
end "<";
procedure sort is new Ada.Containers.Generic_Array_Sort (Positive,
visual_geometry,
visual_geometrys);
use GL.Skins, GL.Geometry, GL.Skinned_Geometry;
current_Visual : p_Visual;
begin
if geometry_Count > 1 then
sort (all_Geometrys (1 .. geometry_Count));
end if;
GL.PushMatrix;
for Each in 1 .. geometry_Count loop
if all_Geometrys (Each).Geometry.Skin /= current_Skin then
current_Skin := all_Geometrys (Each).Geometry.Skin;
enable (current_Skin.all);
GL.Errors.log;
end if;
if all_Geometrys (Each).Geometry.Veneer /= null then
enable (all_Geometrys (Each).Geometry.Veneer.all);
GL.Errors.log;
end if;
if all_Geometrys (Each).Visual = current_Visual then
draw (all_Geometrys (Each).Geometry.Geometry.all);
GL.Errors.log;
else
GL.PopMatrix;
GL.PushMatrix;
GL.Translate (all_Geometrys (Each).Visual.centre);
Multiply_GL_Matrix (all_Geometrys (Each).Visual.rotation);
draw (all_Geometrys (Each).Geometry.Geometry.all);
GL.Errors.log;
current_Visual := all_Geometrys (Each).Visual;
end if;
end loop;
GL.PopMatrix;
end;
GL.Errors.log;
-- display all transparent visuals, sorted from far to near.
--
declare
function "<" (L, R : in globe_3d.p_Visual) return Boolean -- tbd : ugh move expensive calcs outside
is
begin
return L.Centre_camera_space (2) < R.Centre_camera_space (2); -- nb : in camera space, negative Z is forward, so use '<'.
end "<";
--procedure sort is new Ada.Containers.Generic_Array_Sort (Positive,
procedure sort is new Ada.Containers.Generic_Array_Sort (Positive,
globe_3d.p_Visual,
globe_3d.Visual_array);
begin
for Each in 1 .. transparent_Count loop -- pre - calculate each visuals Centre in camera space.
all_Transparents (Each).Centre_camera_space := the_Camera.world_Rotation
* (all_Transparents (Each).Centre - the_Camera.Clipper.eye_Position);
end loop;
if transparent_Count > 1 then
sort (all_Transparents (1 .. transparent_Count));
end if;
GL.depthMask (gl_False); -- make depth buffer read - only, for correct transparency
Enable (LIGHTING); -- ensure lighting is enabled for G3D.Display of transparents (obsolete).
Enable (BLEND);
BlendFunc (sfactor => ONE,
dfactor => ONE_MINUS_SRC_ALPHA);
for Each in 1 .. transparent_Count loop
declare
the_Visual : Visual'Class renames all_Transparents (Each).all;
visual_Geometrys : constant GL.skinned_geometry.skinned_Geometrys := skinned_Geometrys (the_visual); -- tbd : apply ogl state sorting here ?
begin
display (the_Visual, the_Camera.clipper);
GL.Errors.log;
for Each in visual_Geometrys'Range loop
declare
use GL.Skins, GL.Geometry;
the_Geometry : GL.skinned_geometry.skinned_Geometry renames visual_Geometrys (Each);
begin
if the_Geometry.Skin /= current_Skin then
current_Skin := the_Geometry.Skin;
enable (current_Skin.all);
GL.Errors.log;
end if;
if the_Geometry.Veneer /= null then
enable (the_Geometry.Veneer.all);
GL.Errors.log;
end if;
GL.PushMatrix;
GL.Translate (the_Visual.centre);
Multiply_GL_Matrix (the_Visual.rotation);
draw (the_Geometry.Geometry.all);
GL.Errors.log;
GL.PopMatrix;
end;
end loop;
end;
end loop;
GL.depthMask (gl_True);
end;
PopMatrix;
GL.Errors.log; -- tbd : for debug only
end render;
function empty_map return Map_of_Visuals is
thing : Map_of_Visuals;
begin
Visuals_Mapping.Map (thing) := Visuals_Mapping.Empty_Map;
return thing;
end empty_map;
procedure Add (to_map : in out Map_of_Visuals; what : p_Visual) is
pos : Visuals_Mapping.Cursor;
success : Boolean;
begin
Visuals_Mapping.Insert (
Visuals_Mapping.Map (to_map),
Ada.Strings.Unbounded.To_Unbounded_String (what.ID),
what,
pos,
success
);
if not success then -- A.18.4. 45/2
raise Duplicate_name with what.ID;
end if;
end Add;
function Map_of (va : Visual_array) return Map_of_Visuals is
res : Map_of_Visuals := empty_map;
begin
-- Perhaps Reserve_Capacity would be good here ??
for i in va'Range loop
Add (res, va (i));
end loop;
return res;
end Map_of;
end GLOBE_3D;
| 38.98843 | 170 | 0.542458 |
0e727829b106fb37c2e91ec23773636f6efab0c0 | 3,237 | adb | Ada | llvm-gcc-4.2-2.9/gcc/ada/exp_ch12.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | llvm-gcc-4.2-2.9/gcc/ada/exp_ch12.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/exp_ch12.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E X P _ C H 1 2 --
-- --
-- B o d y --
-- --
-- Copyright (C) 1997-2002 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Atree; use Atree;
with Checks; use Checks;
with Einfo; use Einfo;
with Exp_Util; use Exp_Util;
with Nmake; use Nmake;
with Sinfo; use Sinfo;
with Stand; use Stand;
with Tbuild; use Tbuild;
package body Exp_Ch12 is
------------------------------------
-- Expand_N_Generic_Instantiation --
------------------------------------
-- If elaboration entity is defined and this is not an outer level entity,
-- we need to generate a check for it here.
procedure Expand_N_Generic_Instantiation (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Ent : constant Entity_Id := Entity (Name (N));
begin
if Etype (Name (N)) = Any_Type then
return;
end if;
if Present (Elaboration_Entity (Ent))
and then not Is_Compilation_Unit (Ent)
and then not Elaboration_Checks_Suppressed (Ent)
then
Insert_Action (Instance_Spec (N),
Make_Raise_Program_Error (Loc,
Condition =>
Make_Op_Not (Loc,
Right_Opnd =>
New_Occurrence_Of (Elaboration_Entity (Ent), Loc)),
Reason => PE_Access_Before_Elaboration));
end if;
end Expand_N_Generic_Instantiation;
end Exp_Ch12;
| 46.913043 | 78 | 0.453506 |
dcd28a01f93a077a73f40f98299c187027484f15 | 7,496 | ads | Ada | gcc-gcc-7_3_0-release/gcc/ada/system-linux-sh4.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/ada/system-linux-sh4.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/system-linux-sh4.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M --
-- --
-- S p e c --
-- (GNU-Linux/sh4 Version) --
-- --
-- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package System is
pragma Pure;
-- Note that we take advantage of the implementation permission to make
-- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada
-- 2005, this is Pure in any case (AI-362).
pragma No_Elaboration_Code_All;
-- Allow the use of that restriction in units that WITH this unit
type Name is (SYSTEM_NAME_GNAT);
System_Name : constant Name := SYSTEM_NAME_GNAT;
-- System-Dependent Named Numbers
Min_Int : constant := Long_Long_Integer'First;
Max_Int : constant := Long_Long_Integer'Last;
Max_Binary_Modulus : constant := 2 ** Long_Long_Integer'Size;
Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
Max_Base_Digits : constant := Long_Long_Float'Digits;
Max_Digits : constant := Long_Long_Float'Digits;
Max_Mantissa : constant := 63;
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);
Tick : constant := 0.000_001;
-- Storage-related Declarations
type Address is private;
pragma Preelaborable_Initialization (Address);
Null_Address : constant Address;
Storage_Unit : constant := 8;
Word_Size : constant := 32;
Memory_Size : constant := 2 ** 32;
-- Address comparison
function "<" (Left, Right : Address) return Boolean;
function "<=" (Left, Right : Address) return Boolean;
function ">" (Left, Right : Address) return Boolean;
function ">=" (Left, Right : Address) return Boolean;
function "=" (Left, Right : Address) return Boolean;
pragma Import (Intrinsic, "<");
pragma Import (Intrinsic, "<=");
pragma Import (Intrinsic, ">");
pragma Import (Intrinsic, ">=");
pragma Import (Intrinsic, "=");
-- Other System-Dependent Declarations
type Bit_Order is (High_Order_First, Low_Order_First);
Default_Bit_Order : constant Bit_Order := Low_Order_First;
pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning
-- Priority-related Declarations (RM D.1)
-- 0 .. 98 corresponds to the system priority range 1 .. 99.
--
-- If the scheduling policy is SCHED_FIFO or SCHED_RR the runtime makes use
-- of the entire range provided by the system.
--
-- If the scheduling policy is SCHED_OTHER the only valid system priority
-- is 1 and other values are simply ignored.
Max_Priority : constant Positive := 97;
Max_Interrupt_Priority : constant Positive := 98;
subtype Any_Priority is Integer range 0 .. 98;
subtype Priority is Any_Priority range 0 .. 97;
subtype Interrupt_Priority is Any_Priority range 98 .. 98;
Default_Priority : constant Priority := 48;
private
type Address is mod Memory_Size;
Null_Address : constant Address := 0;
--------------------------------------
-- System Implementation Parameters --
--------------------------------------
-- These parameters provide information about the target that is used
-- by the compiler. They are in the private part of System, where they
-- can be accessed using the special circuitry in the Targparm unit
-- whose source should be consulted for more detailed descriptions
-- of the individual switch values.
Backend_Divide_Checks : constant Boolean := False;
Backend_Overflow_Checks : constant Boolean := True;
Command_Line_Args : constant Boolean := True;
Configurable_Run_Time : constant Boolean := False;
Denorm : constant Boolean := True;
Duration_32_Bits : constant Boolean := False;
Exit_Status_Supported : constant Boolean := True;
Fractional_Fixed_Ops : constant Boolean := False;
Frontend_Layout : constant Boolean := False;
Machine_Overflows : constant Boolean := False;
Machine_Rounds : constant Boolean := True;
Preallocated_Stacks : constant Boolean := False;
Signed_Zeros : constant Boolean := True;
Stack_Check_Default : constant Boolean := False;
Stack_Check_Probes : constant Boolean := False;
Stack_Check_Limits : constant Boolean := False;
Support_Aggregates : constant Boolean := True;
Support_Composite_Assign : constant Boolean := True;
Support_Composite_Compare : constant Boolean := True;
Support_Long_Shifts : constant Boolean := True;
Always_Compatible_Rep : constant Boolean := False;
Suppress_Standard_Library : constant Boolean := False;
Use_Ada_Main_Program_Name : constant Boolean := False;
Frontend_Exceptions : constant Boolean := False;
ZCX_By_Default : constant Boolean := True;
end System;
| 48.051282 | 79 | 0.556163 |
0e924bee0dd31f41be0ee9189be6951894e92525 | 3,027 | adb | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-commun.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-commun.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-commun.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . C O M M U N I C A T I O N --
-- --
-- B o d y --
-- --
-- Copyright (C) 2001-2020, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package body System.Communication is
subtype SEO is Ada.Streams.Stream_Element_Offset;
----------------
-- Last_Index --
----------------
function Last_Index
(First : Ada.Streams.Stream_Element_Offset;
Count : CRTL.size_t) return Ada.Streams.Stream_Element_Offset
is
use type Ada.Streams.Stream_Element_Offset;
use type System.CRTL.size_t;
begin
if First = SEO'First and then Count = 0 then
raise Constraint_Error with
"last index out of range (no element transferred)";
else
return First + SEO (Count) - 1;
end if;
end Last_Index;
end System.Communication;
| 54.053571 | 78 | 0.420218 |
0efebf090ada353559fc4c7fabad3efe08372998 | 8,645 | ads | Ada | bb-runtimes/src/system/system-pikeos5-arm-ravenscar-full.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/src/system/system-pikeos5-arm-ravenscar-full.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/src/system/system-pikeos5-arm-ravenscar-full.ads | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M --
-- --
-- S p e c --
-- (PikeOS 5 ARM Version) --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is a Ravenscar version of this package for ARM PikeOS 5 targets
pragma Restrictions (No_Exception_Registration);
-- Disable exception name registration. This capability is not used because
-- it is only required by exception stream attributes which are not supported
-- in this run time.
pragma Profile (Jorvik);
-- This is a Ravenscar run time
package System is
pragma Pure;
-- Note that we take advantage of the implementation permission to make
-- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada
-- 2005, this is Pure in any case (AI-362).
pragma No_Elaboration_Code_All;
-- Allow the use of that restriction in units that WITH this unit
type Name is (SYSTEM_NAME_GNAT);
System_Name : constant Name := SYSTEM_NAME_GNAT;
-- System-Dependent Named Numbers
Min_Int : constant := -2 ** (Standard'Max_Integer_Size - 1);
Max_Int : constant := 2 ** (Standard'Max_Integer_Size - 1) - 1;
Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size;
Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
Max_Base_Digits : constant := Long_Long_Float'Digits;
Max_Digits : constant := Long_Long_Float'Digits;
Max_Mantissa : constant := Standard'Max_Integer_Size - 1;
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);
Tick : constant := 0.000_000_001; -- 1 ns
-- Storage-related Declarations
type Address is private;
pragma Preelaborable_Initialization (Address);
Null_Address : constant Address;
Storage_Unit : constant := 8;
Word_Size : constant := 32;
Memory_Size : constant := 2 ** 32;
-- Address comparison
function "<" (Left, Right : Address) return Boolean;
function "<=" (Left, Right : Address) return Boolean;
function ">" (Left, Right : Address) return Boolean;
function ">=" (Left, Right : Address) return Boolean;
function "=" (Left, Right : Address) return Boolean;
pragma Import (Intrinsic, "<");
pragma Import (Intrinsic, "<=");
pragma Import (Intrinsic, ">");
pragma Import (Intrinsic, ">=");
pragma Import (Intrinsic, "=");
-- Other System-Dependent Declarations
type Bit_Order is (High_Order_First, Low_Order_First);
Default_Bit_Order : constant Bit_Order := Low_Order_First;
pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning
-- Priority-related Declarations (RM D.1)
-- For simplicity there is a 1-1 correspondence between Ada and PikeOS
-- priorities. PikeOS priority 0 is reserved by the idle thread, so not
-- available to Ada.
-- PikeOS priorities are 0 .. 255
-- Priorities greather than 245 are reserved to the system software (PSSW)
-- This implementation reserves priorities 224-239 to interrupts
-- Priorities 240-245 are reserved to HM and PikeOS exception handlers
Max_Priority : constant Positive := 223;
Max_Interrupt_Priority : constant Positive := 239;
subtype Any_Priority is Integer range 1 .. Max_Interrupt_Priority;
subtype Priority is Any_Priority
range Any_Priority'First .. Max_Priority;
subtype Interrupt_Priority is Any_Priority
range Priority'Last + 1 .. Any_Priority'Last;
Default_Priority : constant Priority :=
(Priority'First + Priority'Last) / 2;
private
type Address is mod Memory_Size;
Null_Address : constant Address := 0;
--------------------------------------
-- System Implementation Parameters --
--------------------------------------
-- These parameters provide information about the target that is used
-- by the compiler. They are in the private part of System, where they
-- can be accessed using the special circuitry in the Targparm unit
-- whose source should be consulted for more detailed descriptions
-- of the individual switch values.
Atomic_Sync_Default : constant Boolean := False;
Backend_Divide_Checks : constant Boolean := False;
Backend_Overflow_Checks : constant Boolean := True;
Command_Line_Args : constant Boolean := False;
Configurable_Run_Time : constant Boolean := True;
Denorm : constant Boolean := True;
Duration_32_Bits : constant Boolean := False;
Exit_Status_Supported : constant Boolean := True;
Fractional_Fixed_Ops : constant Boolean := False;
Frontend_Layout : constant Boolean := False;
Machine_Overflows : constant Boolean := False;
Machine_Rounds : constant Boolean := True;
Preallocated_Stacks : constant Boolean := True;
Signed_Zeros : constant Boolean := True;
Stack_Check_Default : constant Boolean := False;
Stack_Check_Probes : constant Boolean := True;
Stack_Check_Limits : constant Boolean := False;
Support_Aggregates : constant Boolean := True;
Support_Composite_Assign : constant Boolean := True;
Support_Composite_Compare : constant Boolean := True;
Support_Long_Shifts : constant Boolean := True;
Always_Compatible_Rep : constant Boolean := True;
Suppress_Standard_Library : constant Boolean := False;
Use_Ada_Main_Program_Name : constant Boolean := False;
Frontend_Exceptions : constant Boolean := False;
ZCX_By_Default : constant Boolean := True;
-- The linker switches ordering comes from a project
-- generated with Codeo or pikeos-cloneproject.
pragma Linker_Options
("-u_p4_entry" & ASCII.NUL &
"-nostdlib" & ASCII.NUL &
"-T../ld/arm-pikeos5.ld" & ASCII.NUL &
"-lp4ext" & ASCII.NUL &
"-lgnat" & ASCII.NUL &
"-lvm" & ASCII.NUL &
"-lstand" & ASCII.NUL &
"-lp4" & ASCII.NUL &
"-lgcc");
end System;
| 45.984043 | 79 | 0.57085 |
dc2e4362a7e9190a51b61ddb7e6ece0f45aeb1d8 | 126 | ads | Ada | source/textio/a-siteio.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | source/textio/a-siteio.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | source/textio/a-siteio.ads | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | pragma License (Unrestricted);
with Ada.Text_IO;
package Ada.Short_Integer_Text_IO is new Text_IO.Integer_IO (Short_Integer);
| 31.5 | 76 | 0.833333 |
18a1203bd306c568cb325e015227683eda4e8e52 | 613 | adb | Ada | courses/fundamentals_of_ada/labs/solar_system/adv_240_tasking_protected_objects/src/solar_system-graphics.adb | AdaCore/training_material | 6651eb2c53f8c39649b8e0b3c757bc8ff963025a | [
"CC-BY-4.0"
] | 15 | 2020-10-07T08:56:45.000Z | 2022-02-08T23:13:22.000Z | courses/fundamentals_of_ada/labs/solar_system/adv_240_tasking_protected_objects/src/solar_system-graphics.adb | AdaCore/training_material | 6651eb2c53f8c39649b8e0b3c757bc8ff963025a | [
"CC-BY-4.0"
] | 20 | 2020-11-05T14:35:20.000Z | 2022-01-13T15:59:33.000Z | courses/fundamentals_of_ada/labs/solar_system/adv_240_tasking_protected_objects/src/solar_system-graphics.adb | AdaCore/training_material | 6651eb2c53f8c39649b8e0b3c757bc8ff963025a | [
"CC-BY-4.0"
] | 6 | 2020-10-08T15:57:06.000Z | 2021-08-31T12:03:08.000Z | package body Solar_System.Graphics is
procedure Draw_Body (Object : Body_Type; Canvas : Canvas_ID) is
begin
if Object.Visible then
Draw_Sphere
(Canvas => Canvas,
Position => (Object.X, Object.Y, 0.0),
Radius => Object.Radius,
Color => Object.Color);
end if;
end Draw_Body;
procedure Draw_All (Bodies : Bodies_Array_T; Canvas : Canvas_ID) is
begin
for Obj of Bodies loop
if Obj.Visible then
Draw_Body (Obj, Canvas);
end if;
end loop;
end Draw_All;
end Solar_System.Graphics;
| 24.52 | 70 | 0.590538 |
d07572e19f2c2f4c2cada0afed726c82f8d081f3 | 4,606 | adb | Ada | testsuite/utils/src/filesystem.adb | ellamosi/Ada_BMP_Library | c1de8ce0127dd6b264a6e5abcd721a26bf005c3f | [
"BSD-3-Clause"
] | null | null | null | testsuite/utils/src/filesystem.adb | ellamosi/Ada_BMP_Library | c1de8ce0127dd6b264a6e5abcd721a26bf005c3f | [
"BSD-3-Clause"
] | null | null | null | testsuite/utils/src/filesystem.adb | ellamosi/Ada_BMP_Library | c1de8ce0127dd6b264a6e5abcd721a26bf005c3f | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
with Ada.Directories;
package body Filesystem is
function "+" (S : Ada.Strings.Unbounded.Unbounded_String) return String
renames Ada.Strings.Unbounded.To_String;
function "+" (S : String) return Ada.Strings.Unbounded.Unbounded_String
renames Ada.Strings.Unbounded.To_Unbounded_String;
----------
-- Join --
----------
function Join
(Prefix, Suffix : String)
return String
is
use Ada.Strings.Unbounded;
package String_Vectors is new Ada.Containers.Vectors
(Positive, Unbounded_String);
Result : Unbounded_String := +Prefix;
Names : String_Vectors.Vector;
begin
-- First, decompose Suffix into individual names: the following pushes
-- the most local directory names first, then the most global ones. For
-- instance, "a/b/c" will gives: Name => ("c", "b", "a").
declare
Suffix_Acc : Unbounded_String := +Suffix;
begin
while Length (Suffix_Acc) > 0 loop
begin
declare
Suffix : constant String := +Suffix_Acc;
Next_Suffix : constant String :=
Ada.Directories.Containing_Directory (Suffix);
Name : constant String :=
Ada.Directories.Simple_Name (Suffix);
begin
-- The following happens when Suffix is "." (the current
-- directory).
exit when Suffix = Next_Suffix;
Names.Append (+Name);
Suffix_Acc := +Next_Suffix;
end;
exception
when Ada.Directories.Use_Error =>
-- Suffix is actually an absolute path. Forget about it and
-- process it as a relative one.
return Suffix;
end;
end loop;
end;
-- Then, compose them using Ada.Directories.Compose so we have our
-- result.
for Name of reverse Names loop
Result := +Ada.Directories.Compose (+Result, +Name);
end loop;
return +Result;
end Join;
end Filesystem;
| 44.288462 | 78 | 0.530178 |
0ec9fc3a4d89cd638e57b66d9c78255e10440e3d | 603 | ads | Ada | software/hal/boards/common/hil/hil-buzzer.ads | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 12 | 2017-06-08T14:19:57.000Z | 2022-03-09T02:48:59.000Z | software/hal/boards/common/hil/hil-buzzer.ads | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 6 | 2017-06-08T13:13:50.000Z | 2020-05-15T09:32:43.000Z | software/hal/boards/common/hil/hil-buzzer.ads | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 3 | 2017-06-30T14:05:06.000Z | 2022-02-17T12:20:45.000Z | -- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Martin Becker ([email protected]>
with Units;
-- @summary
-- Target-independent specification for simple HIL of Piezo Buzzer
package HIL.Buzzer with SPARK_Mode is
procedure Initialize;
procedure Enable;
procedure Disable;
function Valid_Frequency (f : Units.Frequency_Type) return Boolean is (f in 1.0 .. 1_000_000.0);
procedure Set_Frequency (Frequency : Units.Frequency_Type)
with Pre => Valid_Frequency (Frequency);
end HIL.Buzzer;
| 25.125 | 99 | 0.737977 |
0ea4c63ba6c045d6b726d709b86f02bfb56cbb58 | 8,512 | ads | Ada | src/jason-tickets-beans.ads | stcarrez/jason | eee21b84fb6bab2e05b1f4df408d8f9ed34cbccc | [
"Apache-2.0"
] | 2 | 2019-01-26T22:14:55.000Z | 2019-01-28T10:49:46.000Z | src/jason-tickets-beans.ads | stcarrez/jason | eee21b84fb6bab2e05b1f4df408d8f9ed34cbccc | [
"Apache-2.0"
] | null | null | null | src/jason-tickets-beans.ads | stcarrez/jason | eee21b84fb6bab2e05b1f4df408d8f9ed34cbccc | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- jason-tickets-beans -- Beans for module tickets
-- Copyright (C) 2016, 2017, 2019 Stephane.Carrez
-- Written by Stephane.Carrez ([email protected])
--
-- 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 agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
with Ada.Containers.Ordered_Maps;
with ADO;
with Util.Beans.Basic;
with Util.Beans.Objects;
with AWA.Tags.Beans;
with Jason.Tickets.Modules;
with Jason.Tickets.Models;
with Jason.Projects.Beans;
package Jason.Tickets.Beans is
type Ticket_Bean is new Jason.Tickets.Models.Ticket_Bean with record
Module : Jason.Tickets.Modules.Ticket_Module_Access := null;
Ticket_Id : ADO.Identifier := ADO.NO_IDENTIFIER;
Project : Jason.Projects.Beans.Project_Bean_Access;
-- List of tags associated with the wiki page.
Tags : aliased AWA.Tags.Beans.Tag_List_Bean;
Tags_Bean : Util.Beans.Basic.Readonly_Bean_Access;
end record;
type Ticket_Bean_Access is access all Ticket_Bean'Class;
-- Get the value identified by the name.
overriding
function Get_Value (From : in Ticket_Bean;
Name : in String) return Util.Beans.Objects.Object;
-- Set the value identified by the name.
overriding
procedure Set_Value (From : in out Ticket_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Create ticket action.
overriding
procedure Create (Bean : in out Ticket_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Save ticket action.
overriding
procedure Save (Bean : in out Ticket_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Save ticket action.
overriding
procedure Save_Status (Bean : in out Ticket_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Load ticket action.
overriding
procedure Load (Bean : in out Ticket_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Create the Tickets_Bean bean instance.
function Create_Ticket_Bean (Module : in Jason.Tickets.Modules.Ticket_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access;
-- ------------------------------
-- Bean that collects the list of tickets filtered by tag, priority and project.
-- ------------------------------
type Ticket_List_Bean is new Jason.Tickets.Models.Ticket_List_Bean with record
Module : Jason.Tickets.Modules.Ticket_Module_Access := null;
Project : Jason.Projects.Beans.Project_Bean_Access;
-- List of tickets.
Tickets : aliased Jason.Tickets.Models.List_Info_List_Bean;
Tickets_Bean : Jason.Tickets.Models.List_Info_List_Bean_Access;
-- List of tags associated with the tickets.
Tags : AWA.Tags.Beans.Entity_Tag_Map;
-- Whether the ticket type filter is enabled.
Type_Filter : Boolean := False;
Status_Filter : Ada.Strings.Unbounded.Unbounded_String;
Priority_Filter : Ada.Strings.Unbounded.Unbounded_String;
end record;
type Ticket_List_Bean_Access is access all Ticket_List_Bean'Class;
-- Get the value identified by the name.
overriding
function Get_Value (From : in Ticket_List_Bean;
Name : in String) return Util.Beans.Objects.Object;
-- Set the value identified by the name.
overriding
procedure Set_Value (From : in out Ticket_List_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Load list of tickets.
overriding
procedure Load (Bean : in out Ticket_List_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Create the Tickets_List_Bean bean instance.
function Create_Ticket_List_Bean (Module : in Jason.Tickets.Modules.Ticket_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access;
-- Get a select item list which contains a list of ticket status.
function Create_Status_List (Module : in Jason.Tickets.Modules.Ticket_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access;
-- Get a select item list which contains a list of ticket types.
function Create_Type_List (Module : in Jason.Tickets.Modules.Ticket_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access;
use type Jason.Tickets.Models.Ticket_Type;
type Ticket_Stat_Bean is new Models.Stat_Bean with record
Low : aliased Models.Stat_Bean;
High : aliased Models.Stat_Bean;
Medium : aliased Models.Stat_Bean;
Closed : aliased Models.Stat_Bean;
Progress : Natural := 0;
end record;
package Ticket_Stat_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Ticket_Stat_Bean);
package Ticket_Stat_Map is
new Ada.Containers.Ordered_Maps (Key_Type => Models.Ticket_Type,
Element_Type => Ticket_Stat_Bean,
"<" => Models."<",
"=" => "=");
type Ticket_Raw_Stat_Bean is new Ticket_Stat_Bean with record
Low_Bean : Util.Beans.Objects.Object;
High_Bean : Util.Beans.Objects.Object;
Medium_Bean : Util.Beans.Objects.Object;
Closed_Bean : Util.Beans.Objects.Object;
end record;
procedure Initialize (Object : in out Ticket_Raw_Stat_Bean);
-- Get the value identified by the name.
overriding
function Get_Value (From : in Ticket_Raw_Stat_Bean;
Name : in String) return Util.Beans.Objects.Object;
type Ticket_Report_Bean is new Jason.Tickets.Models.Report_Bean
and Util.Beans.Basic.List_Bean with record
Module : Jason.Tickets.Modules.Ticket_Module_Access := null;
Project : Jason.Projects.Beans.Project_Bean_Access;
Row : Util.Beans.Objects.Object;
Current : Ticket_Stat_Vectors.Cursor;
Current_Pos : Natural := 0;
Element : aliased Ticket_Raw_Stat_Bean;
Total : aliased Ticket_Raw_Stat_Bean;
Total_Bean : Util.Beans.Objects.Object;
List : Ticket_Stat_Map.Map;
Report : Ticket_Stat_Vectors.Vector;
end record;
type Ticket_Report_Bean_Access is access all Ticket_Report_Bean'Class;
-- Get the value identified by the name.
overriding
function Get_Value (From : in Ticket_Report_Bean;
Name : in String) return Util.Beans.Objects.Object;
-- Set the value identified by the name.
overriding
procedure Set_Value (From : in out Ticket_Report_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Get the number of elements in the list.
function Get_Count (From : Ticket_Report_Bean) return Natural;
-- Set the current row index. Valid row indexes start at 1.
overriding
procedure Set_Row_Index (From : in out Ticket_Report_Bean;
Index : in Natural);
-- Get the element at the current row index.
overriding
function Get_Row (From : in Ticket_Report_Bean) return Util.Beans.Objects.Object;
-- Load the information for the tickets.
overriding
procedure Load (Bean : in out Ticket_Report_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String);
-- Create the Tickets_Report_Bean bean instance.
function Create_Ticket_Report_Bean (Module : in Jason.Tickets.Modules.Ticket_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access;
end Jason.Tickets.Beans;
| 40.923077 | 94 | 0.651668 |
4a0d855e1ba5f7ac73a82935ce51f061c8136417 | 7,225 | adb | Ada | src/gnat/casing.adb | Letractively/ada-gen | d06d03821057f9177f2350e32dd09e467df08612 | [
"Apache-2.0"
] | null | null | null | src/gnat/casing.adb | Letractively/ada-gen | d06d03821057f9177f2350e32dd09e467df08612 | [
"Apache-2.0"
] | null | null | null | src/gnat/casing.adb | Letractively/ada-gen | d06d03821057f9177f2350e32dd09e467df08612 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- C A S I N G --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2009 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Csets; use Csets;
with Namet; use Namet;
with Opt; use Opt;
with Widechar; use Widechar;
package body Casing is
----------------------
-- Determine_Casing --
----------------------
function Determine_Casing (Ident : Text_Buffer) return Casing_Type is
All_Lower : Boolean := True;
-- Set False if upper case letter found
All_Upper : Boolean := True;
-- Set False if lower case letter found
Mixed : Boolean := True;
-- Set False if exception to mixed case rule found (lower case letter
-- at start or after underline, or upper case letter elsewhere).
Decisive : Boolean := False;
-- Set True if at least one instance of letter not after underline
After_Und : Boolean := True;
-- True at start of string, and after an underline character
begin
for S in Ident'Range loop
if Ident (S) = '_' or else Ident (S) = '.' then
After_Und := True;
elsif Is_Lower_Case_Letter (Ident (S)) then
All_Upper := False;
if not After_Und then
Decisive := True;
else
After_Und := False;
Mixed := False;
end if;
elsif Is_Upper_Case_Letter (Ident (S)) then
All_Lower := False;
if not After_Und then
Decisive := True;
Mixed := False;
else
After_Und := False;
end if;
end if;
end loop;
-- Now we can figure out the result from the flags we set in that loop
if All_Lower then
return All_Lower_Case;
elsif not Decisive then
return Unknown;
elsif All_Upper then
return All_Upper_Case;
elsif Mixed then
return Mixed_Case;
else
return Unknown;
end if;
end Determine_Casing;
------------------------
-- Set_All_Upper_Case --
------------------------
procedure Set_All_Upper_Case is
begin
Set_Casing (All_Upper_Case);
end Set_All_Upper_Case;
----------------
-- Set_Casing --
----------------
procedure Set_Casing (C : Casing_Type; D : Casing_Type := Mixed_Case) is
Ptr : Natural;
Actual_Casing : Casing_Type;
-- Set from C or D as appropriate
After_Und : Boolean := True;
-- True at start of string, and after an underline character or after
-- any other special character that is not a normal identifier char).
begin
if C /= Unknown then
Actual_Casing := C;
else
Actual_Casing := D;
end if;
Ptr := 1;
while Ptr <= Name_Len loop
-- Wide character. Note that we do nothing with casing in this case.
-- In Ada 2005 mode, required folding of lower case letters happened
-- as the identifier was scanned, and we do not attempt any further
-- messing with case (note that in any case we do not know how to
-- fold upper case to lower case in wide character mode). We also
-- do not bother with recognizing punctuation as equivalent to an
-- underscore. There is nothing functional at this stage in doing
-- the requested casing operation, beyond folding to upper case
-- when it is mandatory, which does not involve underscores.
if Name_Buffer (Ptr) = ASCII.ESC
or else Name_Buffer (Ptr) = '['
or else (Upper_Half_Encoding
and then Name_Buffer (Ptr) in Upper_Half_Character)
then
Skip_Wide (Name_Buffer, Ptr);
After_Und := False;
-- Underscore, or non-identifer character (error case)
elsif Name_Buffer (Ptr) = '_'
or else not Identifier_Char (Name_Buffer (Ptr))
then
After_Und := True;
Ptr := Ptr + 1;
-- Lower case letter
elsif Is_Lower_Case_Letter (Name_Buffer (Ptr)) then
if Actual_Casing = All_Upper_Case
or else (After_Und and then Actual_Casing = Mixed_Case)
then
Name_Buffer (Ptr) := Fold_Upper (Name_Buffer (Ptr));
end if;
After_Und := False;
Ptr := Ptr + 1;
-- Upper case letter
elsif Is_Upper_Case_Letter (Name_Buffer (Ptr)) then
if Actual_Casing = All_Lower_Case
or else (not After_Und and then Actual_Casing = Mixed_Case)
then
Name_Buffer (Ptr) := Fold_Lower (Name_Buffer (Ptr));
end if;
After_Und := False;
Ptr := Ptr + 1;
-- Other identifier character (must be digit)
else
After_Und := False;
Ptr := Ptr + 1;
end if;
end loop;
end Set_Casing;
end Casing;
| 35.945274 | 78 | 0.493979 |
201a4383584480a5e12d86a3b71667ada98ee808 | 1,903 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2009f2.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2009f2.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2009f2.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- CA2009F2.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.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- SEPARATE GENERIC FUNCTION BODY.
-- SPECIFICATION, BODY STUB, AND AN INSTANTIATION ARE
-- IN CA2009F0M.DEP.
-- APPLICABILITY CRITERIA:
-- THIS UNIT MUST BE ACCEPTED BY ALL ADA 95 IMPLEMENTATIONS.
-- HISTORY:
-- BHS 08/01/84 CREATED ORIGINAL TEST.
-- PWB 02/19/86 MODIFIED COMMENTS TO DESCRIBE RELATION TO OTHER
-- FILES AND POSSIBLE NON-APPLICABILITY.
-- BCB 01/05/88 MODIFIED HEADER.
-- EDS 08/04/98 REMOVE CONTROL Z AT END OF FILE.
-- RLB 09/13/99 UPDATED APPLICABILITY CRITERIA FOR ADA 95.
SEPARATE (CA2009F0M)
FUNCTION FUNC1 RETURN OBJ IS
BEGIN
FVAR1 := FCON1;
RETURN FVAR1;
END FUNC1;
| 41.369565 | 78 | 0.682606 |
c5b55e21a81c54e930f2b5a50ad16444e6d46168 | 3,149 | ads | Ada | tools/scitools/conf/understand/ada/ada05/s-pack60.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | tools/scitools/conf/understand/ada/ada05/s-pack60.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/s-pack60.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 6 0 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Handling of packed arrays with Component_Size = 60
package System.Pack_60 is
pragma Preelaborate;
Bits : constant := 60;
type Bits_60 is mod 2 ** Bits;
for Bits_60'Size use Bits;
function Get_60 (Arr : System.Address; N : Natural) return Bits_60;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned.
procedure Set_60 (Arr : System.Address; N : Natural; E : Bits_60);
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value.
function GetU_60 (Arr : System.Address; N : Natural) return Bits_60;
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is extracted and returned. This version
-- is used when Arr may represent an unaligned address.
procedure SetU_60 (Arr : System.Address; N : Natural; E : Bits_60);
-- Arr is the address of the packed array, N is the zero-based
-- subscript. This element is set to the given value. This version
-- is used when Arr may represent an unaligned address
end System.Pack_60;
| 49.984127 | 78 | 0.485551 |
180bc349bcbdba8f3e14e8c03cf16224a4840e93 | 3,815 | ads | Ada | examples/STM32F4_DISCO/simple_audio/src/audio_stream.ads | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 192 | 2016-06-01T18:32:04.000Z | 2022-03-26T22:52:31.000Z | examples/STM32F4_DISCO/simple_audio/src/audio_stream.ads | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 239 | 2016-05-26T20:02:01.000Z | 2022-03-31T09:46:56.000Z | examples/STM32F4_DISCO/simple_audio/src/audio_stream.ads | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 142 | 2016-06-05T08:12:20.000Z | 2022-03-24T17:37:17.000Z | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with System; use System;
with HAL; use HAL;
with STM32.DMA; use STM32.DMA;
with STM32.Device; use STM32.Device;
with Ada.Interrupts;
with Ada.Interrupts.Names;
package Audio_Stream is
protected type Double_Buffer_Controller
(Controller : not null access DMA_Controller;
Stream : DMA_Stream_Selector;
ID : Ada.Interrupts.Interrupt_ID)
is
procedure Start
(Destination : Address;
Source_0 : Address;
Source_1 : Address;
Data_Count : UInt16);
entry Wait_For_Transfer_Complete;
function Not_In_Transfer return Address;
private
procedure Interrupt_Handler;
pragma Attach_Handler (Interrupt_Handler, ID);
Interrupt_Triggered : Boolean := False;
Buffer_0 : Address := Null_Address;
Buffer_1 : Address := Null_Address;
end Double_Buffer_Controller;
Audio_TX_DMA : STM32.DMA.DMA_Controller renames DMA_1;
Audio_TX_DMA_Chan : STM32.DMA.DMA_Channel_Selector renames STM32.DMA.Channel_0;
Audio_TX_DMA_Stream : STM32.DMA.DMA_Stream_Selector renames STM32.DMA.Stream_5;
Audio_TX_DMA_Int : Double_Buffer_Controller (Audio_TX_DMA'Access,
Audio_TX_DMA_Stream,
Ada.Interrupts.Names.DMA1_Stream5_Interrupt);
end Audio_Stream;
| 51.554054 | 96 | 0.552556 |
203644b67e3c9fefaf5e9ee54b4731fac4331edf | 7,151 | ads | Ada | source/nodes/program-nodes-record_representation_clauses.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-record_representation_clauses.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-record_representation_clauses.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | 2 | 2019-09-14T23:18:50.000Z | 2019-10-02T10:11:40.000Z | -- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Component_Clauses;
with Program.Elements.Record_Representation_Clauses;
with Program.Element_Visitors;
package Program.Nodes.Record_Representation_Clauses is
pragma Preelaborate;
type Record_Representation_Clause is
new Program.Nodes.Node
and Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause
and Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause_Text
with private;
function Create
(For_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Name : not null Program.Elements.Expressions
.Expression_Access;
Use_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Record_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
At_Token : Program.Lexical_Elements.Lexical_Element_Access;
Mod_Token : Program.Lexical_Elements.Lexical_Element_Access;
Mod_Clause_Expression : Program.Elements.Expressions.Expression_Access;
Mod_Semicolon_Token : Program.Lexical_Elements.Lexical_Element_Access;
Component_Clauses : not null Program.Elements.Component_Clauses
.Component_Clause_Vector_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Record_Representation_Clause;
type Implicit_Record_Representation_Clause is
new Program.Nodes.Node
and Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause
with private;
function Create
(Name : not null Program.Elements.Expressions
.Expression_Access;
Mod_Clause_Expression : Program.Elements.Expressions.Expression_Access;
Component_Clauses : not null Program.Elements.Component_Clauses
.Component_Clause_Vector_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Record_Representation_Clause
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Record_Representation_Clause is
abstract new Program.Nodes.Node
and Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause
with record
Name : not null Program.Elements.Expressions
.Expression_Access;
Mod_Clause_Expression : Program.Elements.Expressions.Expression_Access;
Component_Clauses : not null Program.Elements.Component_Clauses
.Component_Clause_Vector_Access;
end record;
procedure Initialize
(Self : aliased in out Base_Record_Representation_Clause'Class);
overriding procedure Visit
(Self : not null access Base_Record_Representation_Clause;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Name
(Self : Base_Record_Representation_Clause)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Mod_Clause_Expression
(Self : Base_Record_Representation_Clause)
return Program.Elements.Expressions.Expression_Access;
overriding function Component_Clauses
(Self : Base_Record_Representation_Clause)
return not null Program.Elements.Component_Clauses
.Component_Clause_Vector_Access;
overriding function Is_Record_Representation_Clause_Element
(Self : Base_Record_Representation_Clause)
return Boolean;
overriding function Is_Representation_Clause_Element
(Self : Base_Record_Representation_Clause)
return Boolean;
overriding function Is_Clause_Element
(Self : Base_Record_Representation_Clause)
return Boolean;
type Record_Representation_Clause is
new Base_Record_Representation_Clause
and Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause_Text
with record
For_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Use_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Record_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
At_Token : Program.Lexical_Elements.Lexical_Element_Access;
Mod_Token : Program.Lexical_Elements.Lexical_Element_Access;
Mod_Semicolon_Token : Program.Lexical_Elements.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Record_Representation_Clause_Text
(Self : aliased in out Record_Representation_Clause)
return Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause_Text_Access;
overriding function For_Token
(Self : Record_Representation_Clause)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Use_Token
(Self : Record_Representation_Clause)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Record_Token
(Self : Record_Representation_Clause)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function At_Token
(Self : Record_Representation_Clause)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Mod_Token
(Self : Record_Representation_Clause)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Mod_Semicolon_Token
(Self : Record_Representation_Clause)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Record_Representation_Clause)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Record_Representation_Clause is
new Base_Record_Representation_Clause
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Record_Representation_Clause_Text
(Self : aliased in out Implicit_Record_Representation_Clause)
return Program.Elements.Record_Representation_Clauses
.Record_Representation_Clause_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Record_Representation_Clause)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Record_Representation_Clause)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Record_Representation_Clause)
return Boolean;
end Program.Nodes.Record_Representation_Clauses;
| 38.654054 | 79 | 0.74549 |
18bfff07308d6ed42cc617ce48a5c1f601ef7c36 | 76,850 | adb | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-cimutr.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-cimutr.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-cimutr.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.INDEFINITE_MULTIWAY_TREES --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-2019, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
with System; use type System.Address;
package body Ada.Containers.Indefinite_Multiway_Trees is
pragma Warnings (Off, "variable ""Busy*"" is not referenced");
pragma Warnings (Off, "variable ""Lock*"" is not referenced");
-- See comment in Ada.Containers.Helpers
--------------------
-- Root_Iterator --
--------------------
type Root_Iterator is abstract new Limited_Controlled and
Tree_Iterator_Interfaces.Forward_Iterator with
record
Container : Tree_Access;
Subtree : Tree_Node_Access;
end record;
overriding procedure Finalize (Object : in out Root_Iterator);
-----------------------
-- Subtree_Iterator --
-----------------------
type Subtree_Iterator is new Root_Iterator with null record;
overriding function First (Object : Subtree_Iterator) return Cursor;
overriding function Next
(Object : Subtree_Iterator;
Position : Cursor) return Cursor;
---------------------
-- Child_Iterator --
---------------------
type Child_Iterator is new Root_Iterator and
Tree_Iterator_Interfaces.Reversible_Iterator with null record;
overriding function First (Object : Child_Iterator) return Cursor;
overriding function Next
(Object : Child_Iterator;
Position : Cursor) return Cursor;
overriding function Last (Object : Child_Iterator) return Cursor;
overriding function Previous
(Object : Child_Iterator;
Position : Cursor) return Cursor;
-----------------------
-- Local Subprograms --
-----------------------
function Root_Node (Container : Tree) return Tree_Node_Access;
procedure Free_Element is
new Ada.Unchecked_Deallocation (Element_Type, Element_Access);
procedure Deallocate_Node (X : in out Tree_Node_Access);
procedure Deallocate_Children
(Subtree : Tree_Node_Access;
Count : in out Count_Type);
procedure Deallocate_Subtree
(Subtree : in out Tree_Node_Access;
Count : in out Count_Type);
function Equal_Children
(Left_Subtree, Right_Subtree : Tree_Node_Access) return Boolean;
function Equal_Subtree
(Left_Subtree, Right_Subtree : Tree_Node_Access) return Boolean;
procedure Iterate_Children
(Container : Tree_Access;
Subtree : Tree_Node_Access;
Process : not null access procedure (Position : Cursor));
procedure Iterate_Subtree
(Container : Tree_Access;
Subtree : Tree_Node_Access;
Process : not null access procedure (Position : Cursor));
procedure Copy_Children
(Source : Children_Type;
Parent : Tree_Node_Access;
Count : in out Count_Type);
procedure Copy_Subtree
(Source : Tree_Node_Access;
Parent : Tree_Node_Access;
Target : out Tree_Node_Access;
Count : in out Count_Type);
function Find_In_Children
(Subtree : Tree_Node_Access;
Item : Element_Type) return Tree_Node_Access;
function Find_In_Subtree
(Subtree : Tree_Node_Access;
Item : Element_Type) return Tree_Node_Access;
function Child_Count (Children : Children_Type) return Count_Type;
function Subtree_Node_Count
(Subtree : Tree_Node_Access) return Count_Type;
function Is_Reachable (From, To : Tree_Node_Access) return Boolean;
procedure Remove_Subtree (Subtree : Tree_Node_Access);
procedure Insert_Subtree_Node
(Subtree : Tree_Node_Access;
Parent : Tree_Node_Access;
Before : Tree_Node_Access);
procedure Insert_Subtree_List
(First : Tree_Node_Access;
Last : Tree_Node_Access;
Parent : Tree_Node_Access;
Before : Tree_Node_Access);
procedure Splice_Children
(Target_Parent : Tree_Node_Access;
Before : Tree_Node_Access;
Source_Parent : Tree_Node_Access);
---------
-- "=" --
---------
function "=" (Left, Right : Tree) return Boolean is
begin
return Equal_Children (Root_Node (Left), Root_Node (Right));
end "=";
------------
-- Adjust --
------------
procedure Adjust (Container : in out Tree) is
Source : constant Children_Type := Container.Root.Children;
Source_Count : constant Count_Type := Container.Count;
Target_Count : Count_Type;
begin
-- We first restore the target container to its default-initialized
-- state, before we attempt any allocation, to ensure that invariants
-- are preserved in the event that the allocation fails.
Container.Root.Children := Children_Type'(others => null);
Zero_Counts (Container.TC);
Container.Count := 0;
-- Copy_Children returns a count of the number of nodes that it
-- allocates, but it works by incrementing the value that is passed in.
-- We must therefore initialize the count value before calling
-- Copy_Children.
Target_Count := 0;
-- Now we attempt the allocation of subtrees. The invariants are
-- satisfied even if the allocation fails.
Copy_Children (Source, Root_Node (Container), Target_Count);
pragma Assert (Target_Count = Source_Count);
Container.Count := Source_Count;
end Adjust;
-------------------
-- Ancestor_Find --
-------------------
function Ancestor_Find
(Position : Cursor;
Item : Element_Type) return Cursor
is
R, N : Tree_Node_Access;
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
-- Commented-out pending ARG ruling. ???
-- if Checks and then
-- Position.Container /= Container'Unrestricted_Access
-- then
-- raise Program_Error with "Position cursor not in container";
-- end if;
-- AI-0136 says to raise PE if Position equals the root node. This does
-- not seem correct, as this value is just the limiting condition of the
-- search. For now we omit this check pending a ruling from the ARG.???
-- if Checks and then Is_Root (Position) then
-- raise Program_Error with "Position cursor designates root";
-- end if;
R := Root_Node (Position.Container.all);
N := Position.Node;
while N /= R loop
if N.Element.all = Item then
return Cursor'(Position.Container, N);
end if;
N := N.Parent;
end loop;
return No_Element;
end Ancestor_Find;
------------------
-- Append_Child --
------------------
procedure Append_Child
(Container : in out Tree;
Parent : Cursor;
New_Item : Element_Type;
Count : Count_Type := 1)
is
First, Last : Tree_Node_Access;
Element : Element_Access;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= Container'Unrestricted_Access then
raise Program_Error with "Parent cursor not in container";
end if;
if Count = 0 then
return;
end if;
TC_Check (Container.TC);
declare
-- The element allocator may need an accessibility check in the case
-- the actual type is class-wide or has access discriminants (see
-- RM 4.8(10.1) and AI12-0035). We don't unsuppress the check on the
-- allocator in the loop below, because the one in this block would
-- have failed already.
pragma Unsuppress (Accessibility_Check);
begin
Element := new Element_Type'(New_Item);
end;
First := new Tree_Node_Type'(Parent => Parent.Node,
Element => Element,
others => <>);
Last := First;
for J in Count_Type'(2) .. Count loop
-- Reclaim other nodes if Storage_Error. ???
Element := new Element_Type'(New_Item);
Last.Next := new Tree_Node_Type'(Parent => Parent.Node,
Prev => Last,
Element => Element,
others => <>);
Last := Last.Next;
end loop;
Insert_Subtree_List
(First => First,
Last => Last,
Parent => Parent.Node,
Before => null); -- null means "insert at end of list"
-- In order for operation Node_Count to complete in O(1) time, we cache
-- the count value. Here we increment the total count by the number of
-- nodes we just inserted.
Container.Count := Container.Count + Count;
end Append_Child;
------------
-- Assign --
------------
procedure Assign (Target : in out Tree; Source : Tree) is
Source_Count : constant Count_Type := Source.Count;
Target_Count : Count_Type;
begin
if Target'Address = Source'Address then
return;
end if;
Target.Clear; -- checks busy bit
-- Copy_Children returns the number of nodes that it allocates, but it
-- does this by incrementing the count value passed in, so we must
-- initialize the count before calling Copy_Children.
Target_Count := 0;
-- Note that Copy_Children inserts the newly-allocated children into
-- their parent list only after the allocation of all the children has
-- succeeded. This preserves invariants even if the allocation fails.
Copy_Children (Source.Root.Children, Root_Node (Target), Target_Count);
pragma Assert (Target_Count = Source_Count);
Target.Count := Source_Count;
end Assign;
-----------------
-- Child_Count --
-----------------
function Child_Count (Parent : Cursor) return Count_Type is
begin
if Parent = No_Element then
return 0;
else
return Child_Count (Parent.Node.Children);
end if;
end Child_Count;
function Child_Count (Children : Children_Type) return Count_Type is
Result : Count_Type;
Node : Tree_Node_Access;
begin
Result := 0;
Node := Children.First;
while Node /= null loop
Result := Result + 1;
Node := Node.Next;
end loop;
return Result;
end Child_Count;
-----------------
-- Child_Depth --
-----------------
function Child_Depth (Parent, Child : Cursor) return Count_Type is
Result : Count_Type;
N : Tree_Node_Access;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Child = No_Element then
raise Constraint_Error with "Child cursor has no element";
end if;
if Checks and then Parent.Container /= Child.Container then
raise Program_Error with "Parent and Child in different containers";
end if;
Result := 0;
N := Child.Node;
while N /= Parent.Node loop
Result := Result + 1;
N := N.Parent;
if Checks and then N = null then
raise Program_Error with "Parent is not ancestor of Child";
end if;
end loop;
return Result;
end Child_Depth;
-----------
-- Clear --
-----------
procedure Clear (Container : in out Tree) is
Container_Count : Count_Type;
Children_Count : Count_Type;
begin
TC_Check (Container.TC);
-- We first set the container count to 0, in order to preserve
-- invariants in case the deallocation fails. (This works because
-- Deallocate_Children immediately removes the children from their
-- parent, and then does the actual deallocation.)
Container_Count := Container.Count;
Container.Count := 0;
-- Deallocate_Children returns the number of nodes that it deallocates,
-- but it does this by incrementing the count value that is passed in,
-- so we must first initialize the count return value before calling it.
Children_Count := 0;
-- See comment above. Deallocate_Children immediately removes the
-- children list from their parent node (here, the root of the tree),
-- and only after that does it attempt the actual deallocation. So even
-- if the deallocation fails, the representation invariants
Deallocate_Children (Root_Node (Container), Children_Count);
pragma Assert (Children_Count = Container_Count);
end Clear;
------------------------
-- Constant_Reference --
------------------------
function Constant_Reference
(Container : aliased Tree;
Position : Cursor) return Constant_Reference_Type
is
begin
if Checks and then Position.Container = null then
raise Constraint_Error with
"Position cursor has no element";
end if;
if Checks and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with
"Position cursor designates wrong container";
end if;
if Checks and then Position.Node = Root_Node (Container) then
raise Program_Error with "Position cursor designates root";
end if;
if Checks and then Position.Node.Element = null then
raise Program_Error with "Node has no element";
end if;
-- Implement Vet for multiway tree???
-- pragma Assert (Vet (Position),
-- "Position cursor in Constant_Reference is bad");
declare
TC : constant Tamper_Counts_Access :=
Container.TC'Unrestricted_Access;
begin
return R : constant Constant_Reference_Type :=
(Element => Position.Node.Element.all'Access,
Control => (Controlled with TC))
do
Lock (TC.all);
end return;
end;
end Constant_Reference;
--------------
-- Contains --
--------------
function Contains
(Container : Tree;
Item : Element_Type) return Boolean
is
begin
return Find (Container, Item) /= No_Element;
end Contains;
----------
-- Copy --
----------
function Copy (Source : Tree) return Tree is
begin
return Target : Tree do
Copy_Children
(Source => Source.Root.Children,
Parent => Root_Node (Target),
Count => Target.Count);
pragma Assert (Target.Count = Source.Count);
end return;
end Copy;
-------------------
-- Copy_Children --
-------------------
procedure Copy_Children
(Source : Children_Type;
Parent : Tree_Node_Access;
Count : in out Count_Type)
is
pragma Assert (Parent /= null);
pragma Assert (Parent.Children.First = null);
pragma Assert (Parent.Children.Last = null);
CC : Children_Type;
C : Tree_Node_Access;
begin
-- We special-case the first allocation, in order to establish the
-- representation invariants for type Children_Type.
C := Source.First;
if C = null then
return;
end if;
Copy_Subtree
(Source => C,
Parent => Parent,
Target => CC.First,
Count => Count);
CC.Last := CC.First;
-- The representation invariants for the Children_Type list have been
-- established, so we can now copy the remaining children of Source.
C := C.Next;
while C /= null loop
Copy_Subtree
(Source => C,
Parent => Parent,
Target => CC.Last.Next,
Count => Count);
CC.Last.Next.Prev := CC.Last;
CC.Last := CC.Last.Next;
C := C.Next;
end loop;
-- We add the newly-allocated children to their parent list only after
-- the allocation has succeeded, in order to preserve invariants of the
-- parent.
Parent.Children := CC;
end Copy_Children;
------------------
-- Copy_Subtree --
------------------
procedure Copy_Subtree
(Target : in out Tree;
Parent : Cursor;
Before : Cursor;
Source : Cursor)
is
Target_Subtree : Tree_Node_Access;
Target_Count : Count_Type;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= Target'Unrestricted_Access then
raise Program_Error with "Parent cursor not in container";
end if;
if Before /= No_Element then
if Checks and then Before.Container /= Target'Unrestricted_Access then
raise Program_Error with "Before cursor not in container";
end if;
if Checks and then Before.Node.Parent /= Parent.Node then
raise Constraint_Error with "Before cursor not child of Parent";
end if;
end if;
if Source = No_Element then
return;
end if;
if Checks and then Is_Root (Source) then
raise Constraint_Error with "Source cursor designates root";
end if;
-- Copy_Subtree returns a count of the number of nodes that it
-- allocates, but it works by incrementing the value that is passed in.
-- We must therefore initialize the count value before calling
-- Copy_Subtree.
Target_Count := 0;
Copy_Subtree
(Source => Source.Node,
Parent => Parent.Node,
Target => Target_Subtree,
Count => Target_Count);
pragma Assert (Target_Subtree /= null);
pragma Assert (Target_Subtree.Parent = Parent.Node);
pragma Assert (Target_Count >= 1);
Insert_Subtree_Node
(Subtree => Target_Subtree,
Parent => Parent.Node,
Before => Before.Node);
-- In order for operation Node_Count to complete in O(1) time, we cache
-- the count value. Here we increment the total count by the number of
-- nodes we just inserted.
Target.Count := Target.Count + Target_Count;
end Copy_Subtree;
procedure Copy_Subtree
(Source : Tree_Node_Access;
Parent : Tree_Node_Access;
Target : out Tree_Node_Access;
Count : in out Count_Type)
is
E : constant Element_Access := new Element_Type'(Source.Element.all);
begin
Target := new Tree_Node_Type'(Element => E,
Parent => Parent,
others => <>);
Count := Count + 1;
Copy_Children
(Source => Source.Children,
Parent => Target,
Count => Count);
end Copy_Subtree;
-------------------------
-- Deallocate_Children --
-------------------------
procedure Deallocate_Children
(Subtree : Tree_Node_Access;
Count : in out Count_Type)
is
pragma Assert (Subtree /= null);
CC : Children_Type := Subtree.Children;
C : Tree_Node_Access;
begin
-- We immediately remove the children from their parent, in order to
-- preserve invariants in case the deallocation fails.
Subtree.Children := Children_Type'(others => null);
while CC.First /= null loop
C := CC.First;
CC.First := C.Next;
Deallocate_Subtree (C, Count);
end loop;
end Deallocate_Children;
---------------------
-- Deallocate_Node --
---------------------
procedure Deallocate_Node (X : in out Tree_Node_Access) is
procedure Free_Node is
new Ada.Unchecked_Deallocation (Tree_Node_Type, Tree_Node_Access);
-- Start of processing for Deallocate_Node
begin
if X /= null then
Free_Element (X.Element);
Free_Node (X);
end if;
end Deallocate_Node;
------------------------
-- Deallocate_Subtree --
------------------------
procedure Deallocate_Subtree
(Subtree : in out Tree_Node_Access;
Count : in out Count_Type)
is
begin
Deallocate_Children (Subtree, Count);
Deallocate_Node (Subtree);
Count := Count + 1;
end Deallocate_Subtree;
---------------------
-- Delete_Children --
---------------------
procedure Delete_Children
(Container : in out Tree;
Parent : Cursor)
is
Count : Count_Type;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= Container'Unrestricted_Access then
raise Program_Error with "Parent cursor not in container";
end if;
TC_Check (Container.TC);
-- Deallocate_Children returns a count of the number of nodes
-- that it deallocates, but it works by incrementing the
-- value that is passed in. We must therefore initialize
-- the count value before calling Deallocate_Children.
Count := 0;
Deallocate_Children (Parent.Node, Count);
pragma Assert (Count <= Container.Count);
Container.Count := Container.Count - Count;
end Delete_Children;
-----------------
-- Delete_Leaf --
-----------------
procedure Delete_Leaf
(Container : in out Tree;
Position : in out Cursor)
is
X : Tree_Node_Access;
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Position cursor not in container";
end if;
if Checks and then Is_Root (Position) then
raise Program_Error with "Position cursor designates root";
end if;
if Checks and then not Is_Leaf (Position) then
raise Constraint_Error with "Position cursor does not designate leaf";
end if;
TC_Check (Container.TC);
X := Position.Node;
Position := No_Element;
-- Restore represention invariants before attempting the actual
-- deallocation.
Remove_Subtree (X);
Container.Count := Container.Count - 1;
-- It is now safe to attempt the deallocation. This leaf node has been
-- disassociated from the tree, so even if the deallocation fails,
-- representation invariants will remain satisfied.
Deallocate_Node (X);
end Delete_Leaf;
--------------------
-- Delete_Subtree --
--------------------
procedure Delete_Subtree
(Container : in out Tree;
Position : in out Cursor)
is
X : Tree_Node_Access;
Count : Count_Type;
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Position cursor not in container";
end if;
if Checks and then Is_Root (Position) then
raise Program_Error with "Position cursor designates root";
end if;
TC_Check (Container.TC);
X := Position.Node;
Position := No_Element;
-- Here is one case where a deallocation failure can result in the
-- violation of a representation invariant. We disassociate the subtree
-- from the tree now, but we only decrement the total node count after
-- we attempt the deallocation. However, if the deallocation fails, the
-- total node count will not get decremented.
-- One way around this dilemma is to count the nodes in the subtree
-- before attempt to delete the subtree, but that is an O(n) operation,
-- so it does not seem worth it.
-- Perhaps this is much ado about nothing, since the only way
-- deallocation can fail is if Controlled Finalization fails: this
-- propagates Program_Error so all bets are off anyway. ???
Remove_Subtree (X);
-- Deallocate_Subtree returns a count of the number of nodes that it
-- deallocates, but it works by incrementing the value that is passed
-- in. We must therefore initialize the count value before calling
-- Deallocate_Subtree.
Count := 0;
Deallocate_Subtree (X, Count);
pragma Assert (Count <= Container.Count);
-- See comments above. We would prefer to do this sooner, but there's no
-- way to satisfy that goal without an potentially severe execution
-- penalty.
Container.Count := Container.Count - Count;
end Delete_Subtree;
-----------
-- Depth --
-----------
function Depth (Position : Cursor) return Count_Type is
Result : Count_Type;
N : Tree_Node_Access;
begin
Result := 0;
N := Position.Node;
while N /= null loop
N := N.Parent;
Result := Result + 1;
end loop;
return Result;
end Depth;
-------------
-- Element --
-------------
function Element (Position : Cursor) return Element_Type is
begin
if Checks and then Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Position.Node = Root_Node (Position.Container.all)
then
raise Program_Error with "Position cursor designates root";
end if;
return Position.Node.Element.all;
end Element;
--------------------
-- Equal_Children --
--------------------
function Equal_Children
(Left_Subtree : Tree_Node_Access;
Right_Subtree : Tree_Node_Access) return Boolean
is
Left_Children : Children_Type renames Left_Subtree.Children;
Right_Children : Children_Type renames Right_Subtree.Children;
L, R : Tree_Node_Access;
begin
if Child_Count (Left_Children) /= Child_Count (Right_Children) then
return False;
end if;
L := Left_Children.First;
R := Right_Children.First;
while L /= null loop
if not Equal_Subtree (L, R) then
return False;
end if;
L := L.Next;
R := R.Next;
end loop;
return True;
end Equal_Children;
-------------------
-- Equal_Subtree --
-------------------
function Equal_Subtree
(Left_Position : Cursor;
Right_Position : Cursor) return Boolean
is
begin
if Checks and then Left_Position = No_Element then
raise Constraint_Error with "Left cursor has no element";
end if;
if Checks and then Right_Position = No_Element then
raise Constraint_Error with "Right cursor has no element";
end if;
if Left_Position = Right_Position then
return True;
end if;
if Is_Root (Left_Position) then
if not Is_Root (Right_Position) then
return False;
end if;
return Equal_Children (Left_Position.Node, Right_Position.Node);
end if;
if Is_Root (Right_Position) then
return False;
end if;
return Equal_Subtree (Left_Position.Node, Right_Position.Node);
end Equal_Subtree;
function Equal_Subtree
(Left_Subtree : Tree_Node_Access;
Right_Subtree : Tree_Node_Access) return Boolean
is
begin
if Left_Subtree.Element.all /= Right_Subtree.Element.all then
return False;
end if;
return Equal_Children (Left_Subtree, Right_Subtree);
end Equal_Subtree;
--------------
-- Finalize --
--------------
procedure Finalize (Object : in out Root_Iterator) is
begin
Unbusy (Object.Container.TC);
end Finalize;
----------
-- Find --
----------
function Find
(Container : Tree;
Item : Element_Type) return Cursor
is
N : constant Tree_Node_Access :=
Find_In_Children (Root_Node (Container), Item);
begin
if N = null then
return No_Element;
end if;
return Cursor'(Container'Unrestricted_Access, N);
end Find;
-----------
-- First --
-----------
overriding function First (Object : Subtree_Iterator) return Cursor is
begin
if Object.Subtree = Root_Node (Object.Container.all) then
return First_Child (Root (Object.Container.all));
else
return Cursor'(Object.Container, Object.Subtree);
end if;
end First;
overriding function First (Object : Child_Iterator) return Cursor is
begin
return First_Child (Cursor'(Object.Container, Object.Subtree));
end First;
-----------------
-- First_Child --
-----------------
function First_Child (Parent : Cursor) return Cursor is
Node : Tree_Node_Access;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
Node := Parent.Node.Children.First;
if Node = null then
return No_Element;
end if;
return Cursor'(Parent.Container, Node);
end First_Child;
-------------------------
-- First_Child_Element --
-------------------------
function First_Child_Element (Parent : Cursor) return Element_Type is
begin
return Element (First_Child (Parent));
end First_Child_Element;
----------------------
-- Find_In_Children --
----------------------
function Find_In_Children
(Subtree : Tree_Node_Access;
Item : Element_Type) return Tree_Node_Access
is
N, Result : Tree_Node_Access;
begin
N := Subtree.Children.First;
while N /= null loop
Result := Find_In_Subtree (N, Item);
if Result /= null then
return Result;
end if;
N := N.Next;
end loop;
return null;
end Find_In_Children;
---------------------
-- Find_In_Subtree --
---------------------
function Find_In_Subtree
(Position : Cursor;
Item : Element_Type) return Cursor
is
Result : Tree_Node_Access;
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
-- Commented-out pending ruling from ARG. ???
-- if Checks and then
-- Position.Container /= Container'Unrestricted_Access
-- then
-- raise Program_Error with "Position cursor not in container";
-- end if;
if Is_Root (Position) then
Result := Find_In_Children (Position.Node, Item);
else
Result := Find_In_Subtree (Position.Node, Item);
end if;
if Result = null then
return No_Element;
end if;
return Cursor'(Position.Container, Result);
end Find_In_Subtree;
function Find_In_Subtree
(Subtree : Tree_Node_Access;
Item : Element_Type) return Tree_Node_Access
is
begin
if Subtree.Element.all = Item then
return Subtree;
end if;
return Find_In_Children (Subtree, Item);
end Find_In_Subtree;
------------------------
-- Get_Element_Access --
------------------------
function Get_Element_Access
(Position : Cursor) return not null Element_Access is
begin
return Position.Node.Element;
end Get_Element_Access;
-----------------
-- Has_Element --
-----------------
function Has_Element (Position : Cursor) return Boolean is
begin
if Position = No_Element then
return False;
end if;
return Position.Node.Parent /= null;
end Has_Element;
------------------
-- Insert_Child --
------------------
procedure Insert_Child
(Container : in out Tree;
Parent : Cursor;
Before : Cursor;
New_Item : Element_Type;
Count : Count_Type := 1)
is
Position : Cursor;
pragma Unreferenced (Position);
begin
Insert_Child (Container, Parent, Before, New_Item, Position, Count);
end Insert_Child;
procedure Insert_Child
(Container : in out Tree;
Parent : Cursor;
Before : Cursor;
New_Item : Element_Type;
Position : out Cursor;
Count : Count_Type := 1)
is
First : Tree_Node_Access;
Last : Tree_Node_Access;
Element : Element_Access;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= Container'Unrestricted_Access then
raise Program_Error with "Parent cursor not in container";
end if;
if Before /= No_Element then
if Checks and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Before cursor not in container";
end if;
if Checks and then Before.Node.Parent /= Parent.Node then
raise Constraint_Error with "Parent cursor not parent of Before";
end if;
end if;
if Count = 0 then
Position := No_Element; -- Need ruling from ARG ???
return;
end if;
TC_Check (Container.TC);
declare
-- The element allocator may need an accessibility check in the case
-- the actual type is class-wide or has access discriminants (see
-- RM 4.8(10.1) and AI12-0035). We don't unsuppress the check on the
-- allocator in the loop below, because the one in this block would
-- have failed already.
pragma Unsuppress (Accessibility_Check);
begin
Element := new Element_Type'(New_Item);
end;
First := new Tree_Node_Type'(Parent => Parent.Node,
Element => Element,
others => <>);
Last := First;
for J in Count_Type'(2) .. Count loop
-- Reclaim other nodes if Storage_Error. ???
Element := new Element_Type'(New_Item);
Last.Next := new Tree_Node_Type'(Parent => Parent.Node,
Prev => Last,
Element => Element,
others => <>);
Last := Last.Next;
end loop;
Insert_Subtree_List
(First => First,
Last => Last,
Parent => Parent.Node,
Before => Before.Node);
-- In order for operation Node_Count to complete in O(1) time, we cache
-- the count value. Here we increment the total count by the number of
-- nodes we just inserted.
Container.Count := Container.Count + Count;
Position := Cursor'(Parent.Container, First);
end Insert_Child;
-------------------------
-- Insert_Subtree_List --
-------------------------
procedure Insert_Subtree_List
(First : Tree_Node_Access;
Last : Tree_Node_Access;
Parent : Tree_Node_Access;
Before : Tree_Node_Access)
is
pragma Assert (Parent /= null);
C : Children_Type renames Parent.Children;
begin
-- This is a simple utility operation to insert a list of nodes (from
-- First..Last) as children of Parent. The Before node specifies where
-- the new children should be inserted relative to the existing
-- children.
if First = null then
pragma Assert (Last = null);
return;
end if;
pragma Assert (Last /= null);
pragma Assert (Before = null or else Before.Parent = Parent);
if C.First = null then
C.First := First;
C.First.Prev := null;
C.Last := Last;
C.Last.Next := null;
elsif Before = null then -- means "insert after existing nodes"
C.Last.Next := First;
First.Prev := C.Last;
C.Last := Last;
C.Last.Next := null;
elsif Before = C.First then
Last.Next := C.First;
C.First.Prev := Last;
C.First := First;
C.First.Prev := null;
else
Before.Prev.Next := First;
First.Prev := Before.Prev;
Last.Next := Before;
Before.Prev := Last;
end if;
end Insert_Subtree_List;
-------------------------
-- Insert_Subtree_Node --
-------------------------
procedure Insert_Subtree_Node
(Subtree : Tree_Node_Access;
Parent : Tree_Node_Access;
Before : Tree_Node_Access)
is
begin
-- This is a simple wrapper operation to insert a single child into the
-- Parent's children list.
Insert_Subtree_List
(First => Subtree,
Last => Subtree,
Parent => Parent,
Before => Before);
end Insert_Subtree_Node;
--------------
-- Is_Empty --
--------------
function Is_Empty (Container : Tree) return Boolean is
begin
return Container.Root.Children.First = null;
end Is_Empty;
-------------
-- Is_Leaf --
-------------
function Is_Leaf (Position : Cursor) return Boolean is
begin
if Position = No_Element then
return False;
end if;
return Position.Node.Children.First = null;
end Is_Leaf;
------------------
-- Is_Reachable --
------------------
function Is_Reachable (From, To : Tree_Node_Access) return Boolean is
pragma Assert (From /= null);
pragma Assert (To /= null);
N : Tree_Node_Access;
begin
N := From;
while N /= null loop
if N = To then
return True;
end if;
N := N.Parent;
end loop;
return False;
end Is_Reachable;
-------------
-- Is_Root --
-------------
function Is_Root (Position : Cursor) return Boolean is
begin
if Position.Container = null then
return False;
end if;
return Position = Root (Position.Container.all);
end Is_Root;
-------------
-- Iterate --
-------------
procedure Iterate
(Container : Tree;
Process : not null access procedure (Position : Cursor))
is
Busy : With_Busy (Container.TC'Unrestricted_Access);
begin
Iterate_Children
(Container => Container'Unrestricted_Access,
Subtree => Root_Node (Container),
Process => Process);
end Iterate;
function Iterate (Container : Tree)
return Tree_Iterator_Interfaces.Forward_Iterator'Class
is
begin
return Iterate_Subtree (Root (Container));
end Iterate;
----------------------
-- Iterate_Children --
----------------------
procedure Iterate_Children
(Parent : Cursor;
Process : not null access procedure (Position : Cursor))
is
C : Tree_Node_Access;
Busy : With_Busy (Parent.Container.TC'Unrestricted_Access);
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
C := Parent.Node.Children.First;
while C /= null loop
Process (Position => Cursor'(Parent.Container, Node => C));
C := C.Next;
end loop;
end Iterate_Children;
procedure Iterate_Children
(Container : Tree_Access;
Subtree : Tree_Node_Access;
Process : not null access procedure (Position : Cursor))
is
Node : Tree_Node_Access;
begin
-- This is a helper function to recursively iterate over all the nodes
-- in a subtree, in depth-first fashion. This particular helper just
-- visits the children of this subtree, not the root of the subtree node
-- itself. This is useful when starting from the ultimate root of the
-- entire tree (see Iterate), as that root does not have an element.
Node := Subtree.Children.First;
while Node /= null loop
Iterate_Subtree (Container, Node, Process);
Node := Node.Next;
end loop;
end Iterate_Children;
function Iterate_Children
(Container : Tree;
Parent : Cursor)
return Tree_Iterator_Interfaces.Reversible_Iterator'Class
is
C : constant Tree_Access := Container'Unrestricted_Access;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= C then
raise Program_Error with "Parent cursor not in container";
end if;
return It : constant Child_Iterator :=
Child_Iterator'(Limited_Controlled with
Container => C,
Subtree => Parent.Node)
do
Busy (C.TC);
end return;
end Iterate_Children;
---------------------
-- Iterate_Subtree --
---------------------
function Iterate_Subtree
(Position : Cursor)
return Tree_Iterator_Interfaces.Forward_Iterator'Class
is
C : constant Tree_Access := Position.Container;
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
-- Implement Vet for multiway trees???
-- pragma Assert (Vet (Position), "bad subtree cursor");
return It : constant Subtree_Iterator :=
(Limited_Controlled with
Container => Position.Container,
Subtree => Position.Node)
do
Busy (C.TC);
end return;
end Iterate_Subtree;
procedure Iterate_Subtree
(Position : Cursor;
Process : not null access procedure (Position : Cursor))
is
Busy : With_Busy (Position.Container.TC'Unrestricted_Access);
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Is_Root (Position) then
Iterate_Children (Position.Container, Position.Node, Process);
else
Iterate_Subtree (Position.Container, Position.Node, Process);
end if;
end Iterate_Subtree;
procedure Iterate_Subtree
(Container : Tree_Access;
Subtree : Tree_Node_Access;
Process : not null access procedure (Position : Cursor))
is
begin
-- This is a helper function to recursively iterate over all the nodes
-- in a subtree, in depth-first fashion. It first visits the root of the
-- subtree, then visits its children.
Process (Cursor'(Container, Subtree));
Iterate_Children (Container, Subtree, Process);
end Iterate_Subtree;
----------
-- Last --
----------
overriding function Last (Object : Child_Iterator) return Cursor is
begin
return Last_Child (Cursor'(Object.Container, Object.Subtree));
end Last;
----------------
-- Last_Child --
----------------
function Last_Child (Parent : Cursor) return Cursor is
Node : Tree_Node_Access;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
Node := Parent.Node.Children.Last;
if Node = null then
return No_Element;
end if;
return (Parent.Container, Node);
end Last_Child;
------------------------
-- Last_Child_Element --
------------------------
function Last_Child_Element (Parent : Cursor) return Element_Type is
begin
return Element (Last_Child (Parent));
end Last_Child_Element;
----------
-- Move --
----------
procedure Move (Target : in out Tree; Source : in out Tree) is
Node : Tree_Node_Access;
begin
if Target'Address = Source'Address then
return;
end if;
TC_Check (Source.TC);
Target.Clear; -- checks busy bit
Target.Root.Children := Source.Root.Children;
Source.Root.Children := Children_Type'(others => null);
Node := Target.Root.Children.First;
while Node /= null loop
Node.Parent := Root_Node (Target);
Node := Node.Next;
end loop;
Target.Count := Source.Count;
Source.Count := 0;
end Move;
----------
-- Next --
----------
function Next
(Object : Subtree_Iterator;
Position : Cursor) return Cursor
is
Node : Tree_Node_Access;
begin
if Position.Container = null then
return No_Element;
end if;
if Checks and then Position.Container /= Object.Container then
raise Program_Error with
"Position cursor of Next designates wrong tree";
end if;
Node := Position.Node;
if Node.Children.First /= null then
return Cursor'(Object.Container, Node.Children.First);
end if;
while Node /= Object.Subtree loop
if Node.Next /= null then
return Cursor'(Object.Container, Node.Next);
end if;
Node := Node.Parent;
end loop;
return No_Element;
end Next;
function Next
(Object : Child_Iterator;
Position : Cursor) return Cursor
is
begin
if Position.Container = null then
return No_Element;
end if;
if Checks and then Position.Container /= Object.Container then
raise Program_Error with
"Position cursor of Next designates wrong tree";
end if;
return Next_Sibling (Position);
end Next;
------------------
-- Next_Sibling --
------------------
function Next_Sibling (Position : Cursor) return Cursor is
begin
if Position = No_Element then
return No_Element;
end if;
if Position.Node.Next = null then
return No_Element;
end if;
return Cursor'(Position.Container, Position.Node.Next);
end Next_Sibling;
procedure Next_Sibling (Position : in out Cursor) is
begin
Position := Next_Sibling (Position);
end Next_Sibling;
----------------
-- Node_Count --
----------------
function Node_Count (Container : Tree) return Count_Type is
begin
-- Container.Count is the number of nodes we have actually allocated. We
-- cache the value specifically so this Node_Count operation can execute
-- in O(1) time, which makes it behave similarly to how the Length
-- selector function behaves for other containers.
--
-- The cached node count value only describes the nodes we have
-- allocated; the root node itself is not included in that count. The
-- Node_Count operation returns a value that includes the root node
-- (because the RM says so), so we must add 1 to our cached value.
return 1 + Container.Count;
end Node_Count;
------------
-- Parent --
------------
function Parent (Position : Cursor) return Cursor is
begin
if Position = No_Element then
return No_Element;
end if;
if Position.Node.Parent = null then
return No_Element;
end if;
return Cursor'(Position.Container, Position.Node.Parent);
end Parent;
-------------------
-- Prepend_Child --
-------------------
procedure Prepend_Child
(Container : in out Tree;
Parent : Cursor;
New_Item : Element_Type;
Count : Count_Type := 1)
is
First, Last : Tree_Node_Access;
Element : Element_Access;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= Container'Unrestricted_Access then
raise Program_Error with "Parent cursor not in container";
end if;
if Count = 0 then
return;
end if;
TC_Check (Container.TC);
declare
-- The element allocator may need an accessibility check in the case
-- the actual type is class-wide or has access discriminants (see
-- RM 4.8(10.1) and AI12-0035). We don't unsuppress the check on the
-- allocator in the loop below, because the one in this block would
-- have failed already.
pragma Unsuppress (Accessibility_Check);
begin
Element := new Element_Type'(New_Item);
end;
First := new Tree_Node_Type'(Parent => Parent.Node,
Element => Element,
others => <>);
Last := First;
for J in Count_Type'(2) .. Count loop
-- Reclaim other nodes if Storage_Error. ???
Element := new Element_Type'(New_Item);
Last.Next := new Tree_Node_Type'(Parent => Parent.Node,
Prev => Last,
Element => Element,
others => <>);
Last := Last.Next;
end loop;
Insert_Subtree_List
(First => First,
Last => Last,
Parent => Parent.Node,
Before => Parent.Node.Children.First);
-- In order for operation Node_Count to complete in O(1) time, we cache
-- the count value. Here we increment the total count by the number of
-- nodes we just inserted.
Container.Count := Container.Count + Count;
end Prepend_Child;
--------------
-- Previous --
--------------
overriding function Previous
(Object : Child_Iterator;
Position : Cursor) return Cursor
is
begin
if Position.Container = null then
return No_Element;
end if;
if Checks and then Position.Container /= Object.Container then
raise Program_Error with
"Position cursor of Previous designates wrong tree";
end if;
return Previous_Sibling (Position);
end Previous;
----------------------
-- Previous_Sibling --
----------------------
function Previous_Sibling (Position : Cursor) return Cursor is
begin
if Position = No_Element then
return No_Element;
end if;
if Position.Node.Prev = null then
return No_Element;
end if;
return Cursor'(Position.Container, Position.Node.Prev);
end Previous_Sibling;
procedure Previous_Sibling (Position : in out Cursor) is
begin
Position := Previous_Sibling (Position);
end Previous_Sibling;
----------------------
-- Pseudo_Reference --
----------------------
function Pseudo_Reference
(Container : aliased Tree'Class) return Reference_Control_Type
is
TC : constant Tamper_Counts_Access := Container.TC'Unrestricted_Access;
begin
return R : constant Reference_Control_Type := (Controlled with TC) do
Lock (TC.all);
end return;
end Pseudo_Reference;
-------------------
-- Query_Element --
-------------------
procedure Query_Element
(Position : Cursor;
Process : not null access procedure (Element : Element_Type))
is
T : Tree renames Position.Container.all'Unrestricted_Access.all;
Lock : With_Lock (T.TC'Unrestricted_Access);
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Is_Root (Position) then
raise Program_Error with "Position cursor designates root";
end if;
Process (Position.Node.Element.all);
end Query_Element;
----------
-- Read --
----------
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Container : out Tree)
is
procedure Read_Children (Subtree : Tree_Node_Access);
function Read_Subtree
(Parent : Tree_Node_Access) return Tree_Node_Access;
Total_Count : Count_Type'Base;
-- Value read from the stream that says how many elements follow
Read_Count : Count_Type'Base;
-- Actual number of elements read from the stream
-------------------
-- Read_Children --
-------------------
procedure Read_Children (Subtree : Tree_Node_Access) is
pragma Assert (Subtree /= null);
pragma Assert (Subtree.Children.First = null);
pragma Assert (Subtree.Children.Last = null);
Count : Count_Type'Base;
-- Number of child subtrees
C : Children_Type;
begin
Count_Type'Read (Stream, Count);
if Checks and then Count < 0 then
raise Program_Error with "attempt to read from corrupt stream";
end if;
if Count = 0 then
return;
end if;
C.First := Read_Subtree (Parent => Subtree);
C.Last := C.First;
for J in Count_Type'(2) .. Count loop
C.Last.Next := Read_Subtree (Parent => Subtree);
C.Last.Next.Prev := C.Last;
C.Last := C.Last.Next;
end loop;
-- Now that the allocation and reads have completed successfully, it
-- is safe to link the children to their parent.
Subtree.Children := C;
end Read_Children;
------------------
-- Read_Subtree --
------------------
function Read_Subtree
(Parent : Tree_Node_Access) return Tree_Node_Access
is
Element : constant Element_Access :=
new Element_Type'(Element_Type'Input (Stream));
Subtree : constant Tree_Node_Access :=
new Tree_Node_Type'
(Parent => Parent, Element => Element, others => <>);
begin
Read_Count := Read_Count + 1;
Read_Children (Subtree);
return Subtree;
end Read_Subtree;
-- Start of processing for Read
begin
Container.Clear; -- checks busy bit
Count_Type'Read (Stream, Total_Count);
if Checks and then Total_Count < 0 then
raise Program_Error with "attempt to read from corrupt stream";
end if;
if Total_Count = 0 then
return;
end if;
Read_Count := 0;
Read_Children (Root_Node (Container));
if Checks and then Read_Count /= Total_Count then
raise Program_Error with "attempt to read from corrupt stream";
end if;
Container.Count := Total_Count;
end Read;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Position : out Cursor)
is
begin
raise Program_Error with "attempt to read tree cursor from stream";
end Read;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Item : out Reference_Type)
is
begin
raise Program_Error with "attempt to stream reference";
end Read;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Item : out Constant_Reference_Type)
is
begin
raise Program_Error with "attempt to stream reference";
end Read;
---------------
-- Reference --
---------------
function Reference
(Container : aliased in out Tree;
Position : Cursor) return Reference_Type
is
begin
if Checks and then Position.Container = null then
raise Constraint_Error with
"Position cursor has no element";
end if;
if Checks and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with
"Position cursor designates wrong container";
end if;
if Checks and then Position.Node = Root_Node (Container) then
raise Program_Error with "Position cursor designates root";
end if;
if Checks and then Position.Node.Element = null then
raise Program_Error with "Node has no element";
end if;
-- Implement Vet for multiway tree???
-- pragma Assert (Vet (Position),
-- "Position cursor in Constant_Reference is bad");
declare
TC : constant Tamper_Counts_Access :=
Container.TC'Unrestricted_Access;
begin
return R : constant Reference_Type :=
(Element => Position.Node.Element.all'Access,
Control => (Controlled with TC))
do
Lock (TC.all);
end return;
end;
end Reference;
--------------------
-- Remove_Subtree --
--------------------
procedure Remove_Subtree (Subtree : Tree_Node_Access) is
C : Children_Type renames Subtree.Parent.Children;
begin
-- This is a utility operation to remove a subtree node from its
-- parent's list of children.
if C.First = Subtree then
pragma Assert (Subtree.Prev = null);
if C.Last = Subtree then
pragma Assert (Subtree.Next = null);
C.First := null;
C.Last := null;
else
C.First := Subtree.Next;
C.First.Prev := null;
end if;
elsif C.Last = Subtree then
pragma Assert (Subtree.Next = null);
C.Last := Subtree.Prev;
C.Last.Next := null;
else
Subtree.Prev.Next := Subtree.Next;
Subtree.Next.Prev := Subtree.Prev;
end if;
end Remove_Subtree;
----------------------
-- Replace_Element --
----------------------
procedure Replace_Element
(Container : in out Tree;
Position : Cursor;
New_Item : Element_Type)
is
E, X : Element_Access;
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Position cursor not in container";
end if;
if Checks and then Is_Root (Position) then
raise Program_Error with "Position cursor designates root";
end if;
TE_Check (Container.TC);
declare
-- The element allocator may need an accessibility check in the case
-- the actual type is class-wide or has access discriminants (see
-- RM 4.8(10.1) and AI12-0035).
pragma Unsuppress (Accessibility_Check);
begin
E := new Element_Type'(New_Item);
end;
X := Position.Node.Element;
Position.Node.Element := E;
Free_Element (X);
end Replace_Element;
------------------------------
-- Reverse_Iterate_Children --
------------------------------
procedure Reverse_Iterate_Children
(Parent : Cursor;
Process : not null access procedure (Position : Cursor))
is
C : Tree_Node_Access;
Busy : With_Busy (Parent.Container.TC'Unrestricted_Access);
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
C := Parent.Node.Children.Last;
while C /= null loop
Process (Position => Cursor'(Parent.Container, Node => C));
C := C.Prev;
end loop;
end Reverse_Iterate_Children;
----------
-- Root --
----------
function Root (Container : Tree) return Cursor is
begin
return (Container'Unrestricted_Access, Root_Node (Container));
end Root;
---------------
-- Root_Node --
---------------
function Root_Node (Container : Tree) return Tree_Node_Access is
begin
return Container.Root'Unrestricted_Access;
end Root_Node;
---------------------
-- Splice_Children --
---------------------
procedure Splice_Children
(Target : in out Tree;
Target_Parent : Cursor;
Before : Cursor;
Source : in out Tree;
Source_Parent : Cursor)
is
Count : Count_Type;
begin
if Checks and then Target_Parent = No_Element then
raise Constraint_Error with "Target_Parent cursor has no element";
end if;
if Checks and then Target_Parent.Container /= Target'Unrestricted_Access
then
raise Program_Error
with "Target_Parent cursor not in Target container";
end if;
if Before /= No_Element then
if Checks and then Before.Container /= Target'Unrestricted_Access then
raise Program_Error
with "Before cursor not in Target container";
end if;
if Checks and then Before.Node.Parent /= Target_Parent.Node then
raise Constraint_Error
with "Before cursor not child of Target_Parent";
end if;
end if;
if Checks and then Source_Parent = No_Element then
raise Constraint_Error with "Source_Parent cursor has no element";
end if;
if Checks and then Source_Parent.Container /= Source'Unrestricted_Access
then
raise Program_Error
with "Source_Parent cursor not in Source container";
end if;
if Target'Address = Source'Address then
if Target_Parent = Source_Parent then
return;
end if;
TC_Check (Target.TC);
if Checks and then Is_Reachable (From => Target_Parent.Node,
To => Source_Parent.Node)
then
raise Constraint_Error
with "Source_Parent is ancestor of Target_Parent";
end if;
Splice_Children
(Target_Parent => Target_Parent.Node,
Before => Before.Node,
Source_Parent => Source_Parent.Node);
return;
end if;
TC_Check (Target.TC);
TC_Check (Source.TC);
-- We cache the count of the nodes we have allocated, so that operation
-- Node_Count can execute in O(1) time. But that means we must count the
-- nodes in the subtree we remove from Source and insert into Target, in
-- order to keep the count accurate.
Count := Subtree_Node_Count (Source_Parent.Node);
pragma Assert (Count >= 1);
Count := Count - 1; -- because Source_Parent node does not move
Splice_Children
(Target_Parent => Target_Parent.Node,
Before => Before.Node,
Source_Parent => Source_Parent.Node);
Source.Count := Source.Count - Count;
Target.Count := Target.Count + Count;
end Splice_Children;
procedure Splice_Children
(Container : in out Tree;
Target_Parent : Cursor;
Before : Cursor;
Source_Parent : Cursor)
is
begin
if Checks and then Target_Parent = No_Element then
raise Constraint_Error with "Target_Parent cursor has no element";
end if;
if Checks and then
Target_Parent.Container /= Container'Unrestricted_Access
then
raise Program_Error
with "Target_Parent cursor not in container";
end if;
if Before /= No_Element then
if Checks and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error
with "Before cursor not in container";
end if;
if Checks and then Before.Node.Parent /= Target_Parent.Node then
raise Constraint_Error
with "Before cursor not child of Target_Parent";
end if;
end if;
if Checks and then Source_Parent = No_Element then
raise Constraint_Error with "Source_Parent cursor has no element";
end if;
if Checks and then
Source_Parent.Container /= Container'Unrestricted_Access
then
raise Program_Error
with "Source_Parent cursor not in container";
end if;
if Target_Parent = Source_Parent then
return;
end if;
TC_Check (Container.TC);
if Checks and then Is_Reachable (From => Target_Parent.Node,
To => Source_Parent.Node)
then
raise Constraint_Error
with "Source_Parent is ancestor of Target_Parent";
end if;
Splice_Children
(Target_Parent => Target_Parent.Node,
Before => Before.Node,
Source_Parent => Source_Parent.Node);
end Splice_Children;
procedure Splice_Children
(Target_Parent : Tree_Node_Access;
Before : Tree_Node_Access;
Source_Parent : Tree_Node_Access)
is
CC : constant Children_Type := Source_Parent.Children;
C : Tree_Node_Access;
begin
-- This is a utility operation to remove the children from Source parent
-- and insert them into Target parent.
Source_Parent.Children := Children_Type'(others => null);
-- Fix up the Parent pointers of each child to designate its new Target
-- parent.
C := CC.First;
while C /= null loop
C.Parent := Target_Parent;
C := C.Next;
end loop;
Insert_Subtree_List
(First => CC.First,
Last => CC.Last,
Parent => Target_Parent,
Before => Before);
end Splice_Children;
--------------------
-- Splice_Subtree --
--------------------
procedure Splice_Subtree
(Target : in out Tree;
Parent : Cursor;
Before : Cursor;
Source : in out Tree;
Position : in out Cursor)
is
Subtree_Count : Count_Type;
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= Target'Unrestricted_Access then
raise Program_Error with "Parent cursor not in Target container";
end if;
if Before /= No_Element then
if Checks and then Before.Container /= Target'Unrestricted_Access then
raise Program_Error with "Before cursor not in Target container";
end if;
if Checks and then Before.Node.Parent /= Parent.Node then
raise Constraint_Error with "Before cursor not child of Parent";
end if;
end if;
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Position.Container /= Source'Unrestricted_Access then
raise Program_Error with "Position cursor not in Source container";
end if;
if Checks and then Is_Root (Position) then
raise Program_Error with "Position cursor designates root";
end if;
if Target'Address = Source'Address then
if Position.Node.Parent = Parent.Node then
if Position.Node = Before.Node then
return;
end if;
if Position.Node.Next = Before.Node then
return;
end if;
end if;
TC_Check (Target.TC);
if Checks and then
Is_Reachable (From => Parent.Node, To => Position.Node)
then
raise Constraint_Error with "Position is ancestor of Parent";
end if;
Remove_Subtree (Position.Node);
Position.Node.Parent := Parent.Node;
Insert_Subtree_Node (Position.Node, Parent.Node, Before.Node);
return;
end if;
TC_Check (Target.TC);
TC_Check (Source.TC);
-- This is an unfortunate feature of this API: we must count the nodes
-- in the subtree that we remove from the source tree, which is an O(n)
-- operation. It would have been better if the Tree container did not
-- have a Node_Count selector; a user that wants the number of nodes in
-- the tree could simply call Subtree_Node_Count, with the understanding
-- that such an operation is O(n).
--
-- Of course, we could choose to implement the Node_Count selector as an
-- O(n) operation, which would turn this splice operation into an O(1)
-- operation. ???
Subtree_Count := Subtree_Node_Count (Position.Node);
pragma Assert (Subtree_Count <= Source.Count);
Remove_Subtree (Position.Node);
Source.Count := Source.Count - Subtree_Count;
Position.Node.Parent := Parent.Node;
Insert_Subtree_Node (Position.Node, Parent.Node, Before.Node);
Target.Count := Target.Count + Subtree_Count;
Position.Container := Target'Unrestricted_Access;
end Splice_Subtree;
procedure Splice_Subtree
(Container : in out Tree;
Parent : Cursor;
Before : Cursor;
Position : Cursor)
is
begin
if Checks and then Parent = No_Element then
raise Constraint_Error with "Parent cursor has no element";
end if;
if Checks and then Parent.Container /= Container'Unrestricted_Access then
raise Program_Error with "Parent cursor not in container";
end if;
if Before /= No_Element then
if Checks and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Before cursor not in container";
end if;
if Checks and then Before.Node.Parent /= Parent.Node then
raise Constraint_Error with "Before cursor not child of Parent";
end if;
end if;
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Position cursor not in container";
end if;
if Checks and then Is_Root (Position) then
-- Should this be PE instead? Need ARG confirmation. ???
raise Constraint_Error with "Position cursor designates root";
end if;
if Position.Node.Parent = Parent.Node then
if Position.Node = Before.Node then
return;
end if;
if Position.Node.Next = Before.Node then
return;
end if;
end if;
TC_Check (Container.TC);
if Checks and then
Is_Reachable (From => Parent.Node, To => Position.Node)
then
raise Constraint_Error with "Position is ancestor of Parent";
end if;
Remove_Subtree (Position.Node);
Position.Node.Parent := Parent.Node;
Insert_Subtree_Node (Position.Node, Parent.Node, Before.Node);
end Splice_Subtree;
------------------------
-- Subtree_Node_Count --
------------------------
function Subtree_Node_Count (Position : Cursor) return Count_Type is
begin
if Position = No_Element then
return 0;
end if;
return Subtree_Node_Count (Position.Node);
end Subtree_Node_Count;
function Subtree_Node_Count
(Subtree : Tree_Node_Access) return Count_Type
is
Result : Count_Type;
Node : Tree_Node_Access;
begin
Result := 1;
Node := Subtree.Children.First;
while Node /= null loop
Result := Result + Subtree_Node_Count (Node);
Node := Node.Next;
end loop;
return Result;
end Subtree_Node_Count;
----------
-- Swap --
----------
procedure Swap
(Container : in out Tree;
I, J : Cursor)
is
begin
if Checks and then I = No_Element then
raise Constraint_Error with "I cursor has no element";
end if;
if Checks and then I.Container /= Container'Unrestricted_Access then
raise Program_Error with "I cursor not in container";
end if;
if Checks and then Is_Root (I) then
raise Program_Error with "I cursor designates root";
end if;
if I = J then -- make this test sooner???
return;
end if;
if Checks and then J = No_Element then
raise Constraint_Error with "J cursor has no element";
end if;
if Checks and then J.Container /= Container'Unrestricted_Access then
raise Program_Error with "J cursor not in container";
end if;
if Checks and then Is_Root (J) then
raise Program_Error with "J cursor designates root";
end if;
TE_Check (Container.TC);
declare
EI : constant Element_Access := I.Node.Element;
begin
I.Node.Element := J.Node.Element;
J.Node.Element := EI;
end;
end Swap;
--------------------
-- Update_Element --
--------------------
procedure Update_Element
(Container : in out Tree;
Position : Cursor;
Process : not null access procedure (Element : in out Element_Type))
is
T : Tree renames Position.Container.all'Unrestricted_Access.all;
Lock : With_Lock (T.TC'Unrestricted_Access);
begin
if Checks and then Position = No_Element then
raise Constraint_Error with "Position cursor has no element";
end if;
if Checks and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Position cursor not in container";
end if;
if Checks and then Is_Root (Position) then
raise Program_Error with "Position cursor designates root";
end if;
Process (Position.Node.Element.all);
end Update_Element;
-----------
-- Write --
-----------
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Container : Tree)
is
procedure Write_Children (Subtree : Tree_Node_Access);
procedure Write_Subtree (Subtree : Tree_Node_Access);
--------------------
-- Write_Children --
--------------------
procedure Write_Children (Subtree : Tree_Node_Access) is
CC : Children_Type renames Subtree.Children;
C : Tree_Node_Access;
begin
Count_Type'Write (Stream, Child_Count (CC));
C := CC.First;
while C /= null loop
Write_Subtree (C);
C := C.Next;
end loop;
end Write_Children;
-------------------
-- Write_Subtree --
-------------------
procedure Write_Subtree (Subtree : Tree_Node_Access) is
begin
Element_Type'Output (Stream, Subtree.Element.all);
Write_Children (Subtree);
end Write_Subtree;
-- Start of processing for Write
begin
Count_Type'Write (Stream, Container.Count);
if Container.Count = 0 then
return;
end if;
Write_Children (Root_Node (Container));
end Write;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Position : Cursor)
is
begin
raise Program_Error with "attempt to write tree cursor to stream";
end Write;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Item : Reference_Type)
is
begin
raise Program_Error with "attempt to stream reference";
end Write;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Item : Constant_Reference_Type)
is
begin
raise Program_Error with "attempt to stream reference";
end Write;
end Ada.Containers.Indefinite_Multiway_Trees;
| 28.473509 | 79 | 0.592388 |
0e8c7c46b28da936ce17cc08e59ac7fb886a0fc7 | 2,805 | adb | Ada | gcc-gcc-7_3_0-release/gcc/ada/g-speche.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/ada/g-speche.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/g-speche.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- G N A T . S P E L L I N G _ C H E C K E R --
-- --
-- B o d y --
-- --
-- Copyright (C) 1998-2013, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
pragma Compiler_Unit_Warning;
with GNAT.Spelling_Checker_Generic;
package body GNAT.Spelling_Checker is
function IBS is new
GNAT.Spelling_Checker_Generic.Is_Bad_Spelling_Of
(Character, String);
------------------------
-- Is_Bad_Spelling_Of --
------------------------
function Is_Bad_Spelling_Of
(Found : String;
Expect : String) return Boolean
renames IBS;
end GNAT.Spelling_Checker;
| 53.942308 | 78 | 0.404635 |
200033b3c34f070b72b993fe6679c6c8d1282f24 | 148,934 | adb | Ada | source/amf/dd/amf-internals-tables-dc_metamodel-links.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/dd/amf-internals-tables-dc_metamodel-links.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/dd/amf-internals-tables-dc_metamodel-links.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Internals.Links;
with AMF.Internals.Tables.CMOF_Metamodel;
package body AMF.Internals.Tables.DC_Metamodel.Links is
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Initialize_1;
Initialize_2;
Initialize_3;
Initialize_4;
Initialize_5;
Initialize_6;
Initialize_7;
Initialize_8;
Initialize_9;
Initialize_10;
Initialize_11;
Initialize_12;
Initialize_13;
Initialize_14;
Initialize_15;
Initialize_16;
Initialize_17;
Initialize_18;
Initialize_19;
Initialize_20;
Initialize_21;
Initialize_22;
Initialize_23;
Initialize_24;
Initialize_25;
Initialize_26;
Initialize_27;
Initialize_28;
Initialize_29;
Initialize_30;
Initialize_31;
Initialize_32;
Initialize_33;
Initialize_34;
Initialize_35;
Initialize_36;
Initialize_37;
Initialize_38;
Initialize_39;
Initialize_40;
Initialize_41;
Initialize_42;
Initialize_43;
Initialize_44;
Initialize_45;
Initialize_46;
Initialize_47;
Initialize_48;
Initialize_49;
Initialize_50;
Initialize_51;
Initialize_52;
Initialize_53;
Initialize_54;
Initialize_55;
Initialize_56;
Initialize_57;
Initialize_58;
Initialize_59;
Initialize_60;
Initialize_61;
Initialize_62;
Initialize_63;
Initialize_64;
Initialize_65;
Initialize_66;
Initialize_67;
Initialize_68;
Initialize_69;
Initialize_70;
Initialize_71;
Initialize_72;
Initialize_73;
Initialize_74;
Initialize_75;
Initialize_76;
Initialize_77;
Initialize_78;
Initialize_79;
Initialize_80;
Initialize_81;
Initialize_82;
Initialize_83;
Initialize_84;
Initialize_85;
Initialize_86;
Initialize_87;
Initialize_88;
Initialize_89;
Initialize_90;
Initialize_91;
Initialize_92;
Initialize_93;
Initialize_94;
Initialize_95;
Initialize_96;
Initialize_97;
Initialize_98;
end Initialize;
------------------
-- Initialize_1 --
------------------
procedure Initialize_1 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 2,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 2,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Owned_Type_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Owned_Type_Type_Package,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Type_Package_Package_Owned_Type);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Package_Packaged_Element_Owning_Package,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Package_Packaged_Element_A_Owning_Package,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Package_Package_Packaged_Element);
end Initialize_1;
------------------
-- Initialize_2 --
------------------
procedure Initialize_2 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 2,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_2;
------------------
-- Initialize_3 --
------------------
procedure Initialize_3 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 4,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 4,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_3;
------------------
-- Initialize_4 --
------------------
procedure Initialize_4 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 4,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_4;
------------------
-- Initialize_5 --
------------------
procedure Initialize_5 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 6,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 6,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_5;
------------------
-- Initialize_6 --
------------------
procedure Initialize_6 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 6,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_6;
------------------
-- Initialize_7 --
------------------
procedure Initialize_7 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 8,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 8,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_7;
------------------
-- Initialize_8 --
------------------
procedure Initialize_8 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 8,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_8;
------------------
-- Initialize_9 --
------------------
procedure Initialize_9 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 10,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 10,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_9;
-------------------
-- Initialize_10 --
-------------------
procedure Initialize_10 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 10,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 9,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_10;
-------------------
-- Initialize_11 --
-------------------
procedure Initialize_11 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 12,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 12,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Rule_Context,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Context_Namespace_Owned_Rule);
end Initialize_11;
-------------------
-- Initialize_12 --
-------------------
procedure Initialize_12 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 12,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_12;
-------------------
-- Initialize_13 --
-------------------
procedure Initialize_13 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Constraint_Constrained_Element_Constraint,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Constrained_Element_A_Constraint,
Base + 11,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Constraint_Constraint_Constrained_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 14,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 14,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 15,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Constraint_Specification_Owning_Constraint,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Specification_A_Owning_Constraint,
Base + 15,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Constraint_Constraint_Specification);
end Initialize_13;
-------------------
-- Initialize_14 --
-------------------
procedure Initialize_14 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 14,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 13,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_14;
-------------------
-- Initialize_15 --
-------------------
procedure Initialize_15 is
begin
null;
end Initialize_15;
-------------------
-- Initialize_16 --
-------------------
procedure Initialize_16 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 17,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 17,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_16;
-------------------
-- Initialize_17 --
-------------------
procedure Initialize_17 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 17,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 16,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_17;
-------------------
-- Initialize_18 --
-------------------
procedure Initialize_18 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 19,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 19,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_18;
-------------------
-- Initialize_19 --
-------------------
procedure Initialize_19 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 19,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 18,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_19;
-------------------
-- Initialize_20 --
-------------------
procedure Initialize_20 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 21,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 21,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_20;
-------------------
-- Initialize_21 --
-------------------
procedure Initialize_21 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 21,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 20,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_21;
-------------------
-- Initialize_22 --
-------------------
procedure Initialize_22 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 23,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 23,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
end Initialize_22;
-------------------
-- Initialize_23 --
-------------------
procedure Initialize_23 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 23,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 22,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_23;
-------------------
-- Initialize_24 --
-------------------
procedure Initialize_24 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 25,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 25,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_24;
-------------------
-- Initialize_25 --
-------------------
procedure Initialize_25 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 25,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 24,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_25;
-------------------
-- Initialize_26 --
-------------------
procedure Initialize_26 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 27,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 27,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_26;
-------------------
-- Initialize_27 --
-------------------
procedure Initialize_27 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 27,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 26,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_27;
-------------------
-- Initialize_28 --
-------------------
procedure Initialize_28 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 29,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 29,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Rule_Context,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Context_Namespace_Owned_Rule);
end Initialize_28;
-------------------
-- Initialize_29 --
-------------------
procedure Initialize_29 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 29,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 28,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_29;
-------------------
-- Initialize_30 --
-------------------
procedure Initialize_30 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Constraint_Constrained_Element_Constraint,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Constrained_Element_A_Constraint,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Constraint_Constraint_Constrained_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 31,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 31,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 32,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Constraint_Specification_Owning_Constraint,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Specification_A_Owning_Constraint,
Base + 32,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Constraint_Constraint_Specification);
end Initialize_30;
-------------------
-- Initialize_31 --
-------------------
procedure Initialize_31 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 31,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 30,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_31;
-------------------
-- Initialize_32 --
-------------------
procedure Initialize_32 is
begin
null;
end Initialize_32;
-------------------
-- Initialize_33 --
-------------------
procedure Initialize_33 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 34,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 34,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_33;
-------------------
-- Initialize_34 --
-------------------
procedure Initialize_34 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 34,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 33,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_34;
-------------------
-- Initialize_35 --
-------------------
procedure Initialize_35 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 36,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 36,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_35;
-------------------
-- Initialize_36 --
-------------------
procedure Initialize_36 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 36,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 35,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_36;
-------------------
-- Initialize_37 --
-------------------
procedure Initialize_37 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Attribute_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Attribute_A_Classifier,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Classifier_Classifier_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Classifier_Feature_Featuring_Classifier,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Classifier_Feature_Feature_Featuring_Classifier,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Feature_Featuring_Classifier_Classifier_Feature);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Data_Type_Owned_Attribute_Datatype,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Data_Type_Owned_Attribute_Property_Datatype,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Property_Datatype_Data_Type_Owned_Attribute);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 38,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 38,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Rule_Context,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Rule_Constraint_Context,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Context_Namespace_Owned_Rule);
end Initialize_37;
-------------------
-- Initialize_38 --
-------------------
procedure Initialize_38 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 38,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_38;
-------------------
-- Initialize_39 --
-------------------
procedure Initialize_39 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Constraint_Constrained_Element_Constraint,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Constrained_Element_A_Constraint,
Base + 37,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Constraint_Constraint_Constrained_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 40,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 40,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 41,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Constraint_Specification_Owning_Constraint,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Constraint_Specification_A_Owning_Constraint,
Base + 41,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Constraint_Constraint_Specification);
end Initialize_39;
-------------------
-- Initialize_40 --
-------------------
procedure Initialize_40 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 40,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 39,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_40;
-------------------
-- Initialize_41 --
-------------------
procedure Initialize_41 is
begin
null;
end Initialize_41;
-------------------
-- Initialize_42 --
-------------------
procedure Initialize_42 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 43,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 43,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_42;
-------------------
-- Initialize_43 --
-------------------
procedure Initialize_43 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 43,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 42,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_43;
-------------------
-- Initialize_44 --
-------------------
procedure Initialize_44 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 45,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 45,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_44;
-------------------
-- Initialize_45 --
-------------------
procedure Initialize_45 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 45,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 44,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_45;
-------------------
-- Initialize_46 --
-------------------
procedure Initialize_46 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 47,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 47,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_46;
-------------------
-- Initialize_47 --
-------------------
procedure Initialize_47 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 47,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 46,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_47;
-------------------
-- Initialize_48 --
-------------------
procedure Initialize_48 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 49,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 49,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Typed_Element_Type_Typed_Element,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Typed_Element_Type_A_Typed_Element,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Typed_Element_Typed_Element_Type);
end Initialize_48;
-------------------
-- Initialize_49 --
-------------------
procedure Initialize_49 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 49,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 48,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_49;
-------------------
-- Initialize_50 --
-------------------
procedure Initialize_50 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 52,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 54,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 56,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 51,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 51,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 52,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 54,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 56,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 52,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 54,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 56,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 52,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 54,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 56,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
end Initialize_50;
-------------------
-- Initialize_51 --
-------------------
procedure Initialize_51 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 51,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 50,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_51;
-------------------
-- Initialize_52 --
-------------------
procedure Initialize_52 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 52,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 53,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 52,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 53,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_52;
-------------------
-- Initialize_53 --
-------------------
procedure Initialize_53 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 53,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 52,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_53;
-------------------
-- Initialize_54 --
-------------------
procedure Initialize_54 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 54,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 55,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 54,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 55,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_54;
-------------------
-- Initialize_55 --
-------------------
procedure Initialize_55 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 55,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 54,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_55;
-------------------
-- Initialize_56 --
-------------------
procedure Initialize_56 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 56,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 57,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 56,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 57,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_56;
-------------------
-- Initialize_57 --
-------------------
procedure Initialize_57 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 57,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 56,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_57;
-------------------
-- Initialize_58 --
-------------------
procedure Initialize_58 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 60,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 62,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 64,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 66,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 68,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 70,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 72,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 74,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 76,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 78,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 80,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 82,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 84,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 86,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 88,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 90,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Member_A_Namespace,
Base + 92,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Namespace_Namespace_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 59,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 59,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 60,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 62,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 64,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 66,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 68,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 70,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 72,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 74,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 76,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 78,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 80,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 82,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 84,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 86,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 88,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 90,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 92,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 60,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 62,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 64,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 66,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 68,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 70,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 72,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 74,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 76,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 78,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 80,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 82,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 84,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 86,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 88,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 90,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Enumeration_Owned_Literal_Enumeration,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Owned_Literal_Enumeration_Literal_Enumeration,
Base + 92,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Enumeration_Literal_Enumeration_Enumeration_Owned_Literal);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 60,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 62,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 64,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 66,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 68,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 70,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 72,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 74,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 76,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 78,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 80,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 82,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 84,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 86,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 88,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 90,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Namespace_Owned_Member_Namespace,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Namespace_Owned_Member_Named_Element_Namespace,
Base + 92,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Named_Element_Namespace_Namespace_Owned_Member);
end Initialize_58;
-------------------
-- Initialize_59 --
-------------------
procedure Initialize_59 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 59,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 58,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_59;
-------------------
-- Initialize_60 --
-------------------
procedure Initialize_60 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 60,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 61,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 60,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 61,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_60;
-------------------
-- Initialize_61 --
-------------------
procedure Initialize_61 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 61,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 60,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_61;
-------------------
-- Initialize_62 --
-------------------
procedure Initialize_62 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 62,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 63,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 62,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 63,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_62;
-------------------
-- Initialize_63 --
-------------------
procedure Initialize_63 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 63,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 62,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_63;
-------------------
-- Initialize_64 --
-------------------
procedure Initialize_64 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 64,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 65,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 64,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 65,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_64;
-------------------
-- Initialize_65 --
-------------------
procedure Initialize_65 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 65,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 64,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_65;
-------------------
-- Initialize_66 --
-------------------
procedure Initialize_66 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 66,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 67,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 66,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 67,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_66;
-------------------
-- Initialize_67 --
-------------------
procedure Initialize_67 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 67,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 66,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_67;
-------------------
-- Initialize_68 --
-------------------
procedure Initialize_68 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 68,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 69,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 68,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 69,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_68;
-------------------
-- Initialize_69 --
-------------------
procedure Initialize_69 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 69,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 68,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_69;
-------------------
-- Initialize_70 --
-------------------
procedure Initialize_70 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 70,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 71,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 70,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 71,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_70;
-------------------
-- Initialize_71 --
-------------------
procedure Initialize_71 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 71,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 70,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_71;
-------------------
-- Initialize_72 --
-------------------
procedure Initialize_72 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 72,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 73,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 72,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 73,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_72;
-------------------
-- Initialize_73 --
-------------------
procedure Initialize_73 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 73,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 72,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_73;
-------------------
-- Initialize_74 --
-------------------
procedure Initialize_74 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 74,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 75,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 74,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 75,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_74;
-------------------
-- Initialize_75 --
-------------------
procedure Initialize_75 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 75,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 74,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_75;
-------------------
-- Initialize_76 --
-------------------
procedure Initialize_76 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 76,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 77,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 76,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 77,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_76;
-------------------
-- Initialize_77 --
-------------------
procedure Initialize_77 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 77,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 76,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_77;
-------------------
-- Initialize_78 --
-------------------
procedure Initialize_78 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 78,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 79,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 78,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 79,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_78;
-------------------
-- Initialize_79 --
-------------------
procedure Initialize_79 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 79,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 78,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_79;
-------------------
-- Initialize_80 --
-------------------
procedure Initialize_80 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 80,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 81,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 80,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 81,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_80;
-------------------
-- Initialize_81 --
-------------------
procedure Initialize_81 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 81,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 80,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_81;
-------------------
-- Initialize_82 --
-------------------
procedure Initialize_82 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 82,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 83,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 82,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 83,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_82;
-------------------
-- Initialize_83 --
-------------------
procedure Initialize_83 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 83,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 82,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_83;
-------------------
-- Initialize_84 --
-------------------
procedure Initialize_84 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 84,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 85,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 84,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 85,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_84;
-------------------
-- Initialize_85 --
-------------------
procedure Initialize_85 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 85,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 84,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_85;
-------------------
-- Initialize_86 --
-------------------
procedure Initialize_86 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 86,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 87,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 86,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 87,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_86;
-------------------
-- Initialize_87 --
-------------------
procedure Initialize_87 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 87,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 86,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_87;
-------------------
-- Initialize_88 --
-------------------
procedure Initialize_88 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 88,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 89,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 88,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 89,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_88;
-------------------
-- Initialize_89 --
-------------------
procedure Initialize_89 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 89,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 88,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_89;
-------------------
-- Initialize_90 --
-------------------
procedure Initialize_90 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 90,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 91,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 90,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 91,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_90;
-------------------
-- Initialize_91 --
-------------------
procedure Initialize_91 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 91,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 90,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_91;
-------------------
-- Initialize_92 --
-------------------
procedure Initialize_92 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Comment_Owning_Element,
Base + 92,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Comment_A_Owning_Element,
Base + 93,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Owning_Element_Element_Owned_Comment);
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Element_Owned_Element_Owner,
Base + 92,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owned_Element_Element_Owner,
Base + 93,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Element_Owner_Element_Owned_Element);
end Initialize_92;
-------------------
-- Initialize_93 --
-------------------
procedure Initialize_93 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Comment_Annotated_Element_Comment,
Base + 93,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Comment_Annotated_Element_A_Comment,
Base + 92,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Comment_Comment_Annotated_Element);
end Initialize_93;
-------------------
-- Initialize_94 --
-------------------
procedure Initialize_94 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Tag_Element_Tag,
Base + 94,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Element_A_Tag,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Tag_Tag_Element);
end Initialize_94;
-------------------
-- Initialize_95 --
-------------------
procedure Initialize_95 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Tag_Element_Tag,
Base + 95,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Element_A_Tag,
Base + 1,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Tag_Tag_Element);
end Initialize_95;
-------------------
-- Initialize_96 --
-------------------
procedure Initialize_96 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Tag_Element_Tag,
Base + 96,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Element_A_Tag,
Base + 3,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Tag_Tag_Element);
end Initialize_96;
-------------------
-- Initialize_97 --
-------------------
procedure Initialize_97 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Tag_Element_Tag,
Base + 97,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Element_A_Tag,
Base + 5,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Tag_Tag_Element);
end Initialize_97;
-------------------
-- Initialize_98 --
-------------------
procedure Initialize_98 is
begin
AMF.Internals.Links.Internal_Create_Link
(AMF.Internals.Tables.CMOF_Metamodel.MA_CMOF_Tag_Element_Tag,
Base + 98,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_Tag_Element_A_Tag,
Base + 7,
AMF.Internals.Tables.CMOF_Metamodel.MP_CMOF_A_Tag_Tag_Element);
end Initialize_98;
end AMF.Internals.Tables.DC_Metamodel.Links;
| 47.235649 | 111 | 0.735802 |
d084e9b7d8d6724e68a640ca2eea987dd1033579 | 7,354 | ads | Ada | arch/ARM/STM32/driversF1/sd/sdmmc/stm32-sdmmc.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 2 | 2018-05-16T03:56:39.000Z | 2019-07-31T13:53:56.000Z | arch/ARM/STM32/driversF1/sd/sdmmc/stm32-sdmmc.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | arch/ARM/STM32/driversF1/sd/sdmmc/stm32-sdmmc.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- Initially based on stm32f7xx_hal_sd.h
-- V1.0.4
-- 09-December-2015
--
-- SDCard driver. Controls the SDMMC peripheral.
with System;
with STM32_SVD.SDMMC; use STM32_SVD.SDMMC;
with HAL.SDMMC; use HAL.SDMMC;
with STM32.DMA;
package STM32.SDMMC is
type SDMMC_Controller (Periph : access STM32_SVD.SDMMC.SDMMC_Peripheral)
is limited private;
function Initialize
(This : in out SDMMC_Controller;
SDMMC_CLK : UInt32;
Info : out Card_Information) return SD_Error;
type SD_Data is array (UInt16 range <>) of UInt8
with Pack;
function Read_Blocks
(This : in out SDMMC_Controller;
Addr : UInt64;
Data : out SD_Data) return SD_Error
with Pre => Data'Length mod 512 = 0;
function Read_Blocks_DMA
(This : in out SDMMC_Controller;
Addr : UInt64;
DMA : STM32.DMA.DMA_Controller;
Stream : STM32.DMA.DMA_Stream_Selector;
Data : out SD_Data) return SD_Error;
function Write_Blocks_DMA
(This : in out SDMMC_Controller;
Addr : UInt64;
DMA : STM32.DMA.DMA_Controller;
Stream : STM32.DMA.DMA_Stream_Selector;
Data : SD_Data) return SD_Error;
function Stop_Transfer
(This : in out SDMMC_Controller) return SD_Error;
function Get_FIFO_Address
(This : SDMMC_Controller) return System.Address;
function Get_Transfer_Status
(This : in out SDMMC_Controller) return SD_Error;
type SDMMC_Flags is
(Data_End,
Data_CRC_Fail,
Data_Timeout,
RX_Overrun,
TX_Underrun,
RX_Active,
TX_Active);
subtype SDMMC_Clearable_Flags is SDMMC_Flags range Data_End .. TX_Underrun;
function Get_Flag
(This : SDMMC_Controller;
Flag : SDMMC_Flags) return Boolean;
procedure Clear_Flag
(This : in out SDMMC_Controller;
Flag : SDMMC_Clearable_Flags);
procedure Clear_Static_Flags (This : in out SDMMC_Controller);
type SDMMC_Interrupts is
(Data_End_Interrupt,
Data_CRC_Fail_Interrupt,
Data_Timeout_Interrupt,
TX_FIFO_Empty_Interrupt,
RX_FIFO_Full_Interrupt,
TX_Underrun_Interrupt,
RX_Overrun_Interrupt);
procedure Enable_Interrupt
(This : in out SDMMC_Controller;
Interrupt : SDMMC_Interrupts);
procedure Disable_Interrupt
(This : in out SDMMC_Controller;
Interrupt : SDMMC_Interrupts);
procedure Disable_Data
(This : in out SDMMC_Controller);
type SDMMC_Operation is
(No_Operation,
Read_Single_Block_Operation,
Read_Multiple_Blocks_Operation,
Write_Single_Block_Operation,
Write_Multiple_Blocks_Operation);
function Last_Operation
(This : SDMMC_Controller) return SDMMC_Operation;
private
type Card_Data_Table is array (0 .. 3) of UInt32;
type SDMMC_Controller (Periph : access STM32_SVD.SDMMC.SDMMC_Peripheral) is
limited new SDMMC_Driver with record
CLK_In : UInt32;
RCA : UInt16;
Card_Type : Supported_SD_Memory_Cards := STD_Capacity_SD_Card_V1_1;
Operation : SDMMC_Operation := No_Operation;
end record;
overriding procedure Delay_Milliseconds
(This : SDMMC_Controller;
Amount : Natural);
overriding procedure Reset
(This : in out SDMMC_Controller;
Status : out SD_Error);
overriding procedure Set_Clock
(This : in out SDMMC_Controller;
Freq : Natural);
overriding procedure Set_Bus_Size
(This : in out SDMMC_Controller;
Mode : Wide_Bus_Mode);
overriding procedure Send_Cmd
(This : in out SDMMC_Controller;
Cmd : Cmd_Desc_Type;
Arg : UInt32;
Status : out SD_Error);
overriding procedure Read_Cmd
(This : in out SDMMC_Controller;
Cmd : Cmd_Desc_Type;
Arg : UInt32;
Buf : out UInt32_Array;
Status : out SD_Error);
function Command_Error
(Controller : in out SDMMC_Controller) return SD_Error;
overriding procedure Read_Rsp48
(This : in out SDMMC_Controller;
Rsp : out UInt32);
overriding procedure Read_Rsp136
(This : in out SDMMC_Controller;
W0, W1, W2, W3 : out UInt32);
type Data_Direction is (Read, Write);
function Get_FIFO_Address
(This : SDMMC_Controller) return System.Address
is (This.Periph.FIFO'Address);
function Get_Flag
(This : SDMMC_Controller;
Flag : SDMMC_Flags) return Boolean
is (case Flag is
when Data_End => This.Periph.STA.DATAEND,
when Data_CRC_Fail => This.Periph.STA.DCRCFAIL,
when Data_Timeout => This.Periph.STA.DTIMEOUT,
when RX_Overrun => This.Periph.STA.RXOVERR,
when TX_Underrun => This.Periph.STA.TXUNDERR,
when RX_Active => This.Periph.STA.RXACT,
when TX_Active => This.Periph.STA.TXACT);
function Last_Operation
(This : SDMMC_Controller) return SDMMC_Operation
is (This.Operation);
end STM32.SDMMC;
| 34.688679 | 78 | 0.621159 |
18fdd43c7cef040aa2ea9a02a9afbf7aec83f474 | 43,003 | adb | Ada | source/amf/uml/amf-internals-uml_actors.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-internals-uml_actors.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-internals-uml_actors.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Elements;
with AMF.Internals.Element_Collections;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.UML_Attributes;
with AMF.Visitors.UML_Iterators;
with AMF.Visitors.UML_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.UML_Actors is
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant UML_Actor_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Enter_Actor
(AMF.UML.Actors.UML_Actor_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant UML_Actor_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Leave_Actor
(AMF.UML.Actors.UML_Actor_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant UML_Actor_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then
AMF.Visitors.UML_Iterators.UML_Iterator'Class
(Iterator).Visit_Actor
(Visitor,
AMF.UML.Actors.UML_Actor_Access (Self),
Control);
end if;
end Visit_Element;
-----------------------------
-- Get_Classifier_Behavior --
-----------------------------
overriding function Get_Classifier_Behavior
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Behaviors.UML_Behavior_Access is
begin
return
AMF.UML.Behaviors.UML_Behavior_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Classifier_Behavior
(Self.Element)));
end Get_Classifier_Behavior;
-----------------------------
-- Set_Classifier_Behavior --
-----------------------------
overriding procedure Set_Classifier_Behavior
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Behaviors.UML_Behavior_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Classifier_Behavior
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Classifier_Behavior;
-------------------------------
-- Get_Interface_Realization --
-------------------------------
overriding function Get_Interface_Realization
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Interface_Realizations.Collections.Set_Of_UML_Interface_Realization is
begin
return
AMF.UML.Interface_Realizations.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Interface_Realization
(Self.Element)));
end Get_Interface_Realization;
------------------------
-- Get_Owned_Behavior --
------------------------
overriding function Get_Owned_Behavior
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Behaviors.Collections.Set_Of_UML_Behavior is
begin
return
AMF.UML.Behaviors.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Behavior
(Self.Element)));
end Get_Owned_Behavior;
-------------------
-- Get_Attribute --
-------------------
overriding function Get_Attribute
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Properties.Collections.Set_Of_UML_Property is
begin
return
AMF.UML.Properties.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Attribute
(Self.Element)));
end Get_Attribute;
---------------------------
-- Get_Collaboration_Use --
---------------------------
overriding function Get_Collaboration_Use
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Collaboration_Uses.Collections.Set_Of_UML_Collaboration_Use is
begin
return
AMF.UML.Collaboration_Uses.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Collaboration_Use
(Self.Element)));
end Get_Collaboration_Use;
-----------------
-- Get_Feature --
-----------------
overriding function Get_Feature
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Features.Collections.Set_Of_UML_Feature is
begin
return
AMF.UML.Features.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Feature
(Self.Element)));
end Get_Feature;
-----------------
-- Get_General --
-----------------
overriding function Get_General
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
begin
return
AMF.UML.Classifiers.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_General
(Self.Element)));
end Get_General;
------------------------
-- Get_Generalization --
------------------------
overriding function Get_Generalization
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Generalizations.Collections.Set_Of_UML_Generalization is
begin
return
AMF.UML.Generalizations.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Generalization
(Self.Element)));
end Get_Generalization;
--------------------------
-- Get_Inherited_Member --
--------------------------
overriding function Get_Inherited_Member
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
begin
return
AMF.UML.Named_Elements.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Inherited_Member
(Self.Element)));
end Get_Inherited_Member;
---------------------
-- Get_Is_Abstract --
---------------------
overriding function Get_Is_Abstract
(Self : not null access constant UML_Actor_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Abstract
(Self.Element);
end Get_Is_Abstract;
---------------------------------
-- Get_Is_Final_Specialization --
---------------------------------
overriding function Get_Is_Final_Specialization
(Self : not null access constant UML_Actor_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Final_Specialization
(Self.Element);
end Get_Is_Final_Specialization;
---------------------------------
-- Set_Is_Final_Specialization --
---------------------------------
overriding procedure Set_Is_Final_Specialization
(Self : not null access UML_Actor_Proxy;
To : Boolean) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Final_Specialization
(Self.Element, To);
end Set_Is_Final_Specialization;
----------------------------------
-- Get_Owned_Template_Signature --
----------------------------------
overriding function Get_Owned_Template_Signature
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access is
begin
return
AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Template_Signature
(Self.Element)));
end Get_Owned_Template_Signature;
----------------------------------
-- Set_Owned_Template_Signature --
----------------------------------
overriding procedure Set_Owned_Template_Signature
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Owned_Template_Signature
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Owned_Template_Signature;
------------------------
-- Get_Owned_Use_Case --
------------------------
overriding function Get_Owned_Use_Case
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case is
begin
return
AMF.UML.Use_Cases.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Use_Case
(Self.Element)));
end Get_Owned_Use_Case;
--------------------------
-- Get_Powertype_Extent --
--------------------------
overriding function Get_Powertype_Extent
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Generalization_Sets.Collections.Set_Of_UML_Generalization_Set is
begin
return
AMF.UML.Generalization_Sets.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Powertype_Extent
(Self.Element)));
end Get_Powertype_Extent;
------------------------------
-- Get_Redefined_Classifier --
------------------------------
overriding function Get_Redefined_Classifier
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
begin
return
AMF.UML.Classifiers.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Classifier
(Self.Element)));
end Get_Redefined_Classifier;
------------------------
-- Get_Representation --
------------------------
overriding function Get_Representation
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access is
begin
return
AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Representation
(Self.Element)));
end Get_Representation;
------------------------
-- Set_Representation --
------------------------
overriding procedure Set_Representation
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Representation
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Representation;
----------------------
-- Get_Substitution --
----------------------
overriding function Get_Substitution
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Substitutions.Collections.Set_Of_UML_Substitution is
begin
return
AMF.UML.Substitutions.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Substitution
(Self.Element)));
end Get_Substitution;
----------------------------
-- Get_Template_Parameter --
----------------------------
overriding function Get_Template_Parameter
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access is
begin
return
AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Parameter
(Self.Element)));
end Get_Template_Parameter;
----------------------------
-- Set_Template_Parameter --
----------------------------
overriding procedure Set_Template_Parameter
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Template_Parameter
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Template_Parameter;
------------------
-- Get_Use_Case --
------------------
overriding function Get_Use_Case
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Use_Cases.Collections.Set_Of_UML_Use_Case is
begin
return
AMF.UML.Use_Cases.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Use_Case
(Self.Element)));
end Get_Use_Case;
------------------------
-- Get_Element_Import --
------------------------
overriding function Get_Element_Import
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import is
begin
return
AMF.UML.Element_Imports.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Element_Import
(Self.Element)));
end Get_Element_Import;
-------------------------
-- Get_Imported_Member --
-------------------------
overriding function Get_Imported_Member
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
begin
return
AMF.UML.Packageable_Elements.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Imported_Member
(Self.Element)));
end Get_Imported_Member;
----------------
-- Get_Member --
----------------
overriding function Get_Member
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
begin
return
AMF.UML.Named_Elements.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Member
(Self.Element)));
end Get_Member;
----------------------
-- Get_Owned_Member --
----------------------
overriding function Get_Owned_Member
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
begin
return
AMF.UML.Named_Elements.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Member
(Self.Element)));
end Get_Owned_Member;
--------------------
-- Get_Owned_Rule --
--------------------
overriding function Get_Owned_Rule
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
begin
return
AMF.UML.Constraints.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Rule
(Self.Element)));
end Get_Owned_Rule;
------------------------
-- Get_Package_Import --
------------------------
overriding function Get_Package_Import
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import is
begin
return
AMF.UML.Package_Imports.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Package_Import
(Self.Element)));
end Get_Package_Import;
---------------------------
-- Get_Client_Dependency --
---------------------------
overriding function Get_Client_Dependency
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is
begin
return
AMF.UML.Dependencies.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency
(Self.Element)));
end Get_Client_Dependency;
-------------------------
-- Get_Name_Expression --
-------------------------
overriding function Get_Name_Expression
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access is
begin
return
AMF.UML.String_Expressions.UML_String_Expression_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression
(Self.Element)));
end Get_Name_Expression;
-------------------------
-- Set_Name_Expression --
-------------------------
overriding procedure Set_Name_Expression
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Name_Expression;
-------------------
-- Get_Namespace --
-------------------
overriding function Get_Namespace
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
return
AMF.UML.Namespaces.UML_Namespace_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace
(Self.Element)));
end Get_Namespace;
------------------------
-- Get_Qualified_Name --
------------------------
overriding function Get_Qualified_Name
(Self : not null access constant UML_Actor_Proxy)
return AMF.Optional_String is
begin
declare
use type Matreshka.Internals.Strings.Shared_String_Access;
Aux : constant Matreshka.Internals.Strings.Shared_String_Access
:= AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element);
begin
if Aux = null then
return (Is_Empty => True);
else
return (False, League.Strings.Internals.Create (Aux));
end if;
end;
end Get_Qualified_Name;
-----------------
-- Get_Package --
-----------------
overriding function Get_Package
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Packages.UML_Package_Access is
begin
return
AMF.UML.Packages.UML_Package_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Package
(Self.Element)));
end Get_Package;
-----------------
-- Set_Package --
-----------------
overriding procedure Set_Package
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Packages.UML_Package_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Package
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Package;
-----------------------------------
-- Get_Owning_Template_Parameter --
-----------------------------------
overriding function Get_Owning_Template_Parameter
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is
begin
return
AMF.UML.Template_Parameters.UML_Template_Parameter_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owning_Template_Parameter
(Self.Element)));
end Get_Owning_Template_Parameter;
-----------------------------------
-- Set_Owning_Template_Parameter --
-----------------------------------
overriding procedure Set_Owning_Template_Parameter
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Owning_Template_Parameter
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Owning_Template_Parameter;
----------------------------
-- Get_Template_Parameter --
----------------------------
overriding function Get_Template_Parameter
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is
begin
return
AMF.UML.Template_Parameters.UML_Template_Parameter_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Parameter
(Self.Element)));
end Get_Template_Parameter;
----------------------------
-- Set_Template_Parameter --
----------------------------
overriding procedure Set_Template_Parameter
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Template_Parameter
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Template_Parameter;
----------------------------------
-- Get_Owned_Template_Signature --
----------------------------------
overriding function Get_Owned_Template_Signature
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Template_Signatures.UML_Template_Signature_Access is
begin
return
AMF.UML.Template_Signatures.UML_Template_Signature_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Template_Signature
(Self.Element)));
end Get_Owned_Template_Signature;
----------------------------------
-- Set_Owned_Template_Signature --
----------------------------------
overriding procedure Set_Owned_Template_Signature
(Self : not null access UML_Actor_Proxy;
To : AMF.UML.Template_Signatures.UML_Template_Signature_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Owned_Template_Signature
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Owned_Template_Signature;
--------------------------
-- Get_Template_Binding --
--------------------------
overriding function Get_Template_Binding
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding is
begin
return
AMF.UML.Template_Bindings.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Binding
(Self.Element)));
end Get_Template_Binding;
-----------------
-- Get_Is_Leaf --
-----------------
overriding function Get_Is_Leaf
(Self : not null access constant UML_Actor_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf
(Self.Element);
end Get_Is_Leaf;
-----------------
-- Set_Is_Leaf --
-----------------
overriding procedure Set_Is_Leaf
(Self : not null access UML_Actor_Proxy;
To : Boolean) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf
(Self.Element, To);
end Set_Is_Leaf;
---------------------------
-- Get_Redefined_Element --
---------------------------
overriding function Get_Redefined_Element
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is
begin
return
AMF.UML.Redefinable_Elements.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element
(Self.Element)));
end Get_Redefined_Element;
------------------------------
-- Get_Redefinition_Context --
------------------------------
overriding function Get_Redefinition_Context
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
begin
return
AMF.UML.Classifiers.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context
(Self.Element)));
end Get_Redefinition_Context;
------------------
-- All_Features --
------------------
overriding function All_Features
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Features.Collections.Set_Of_UML_Feature is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Features unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.All_Features";
return All_Features (Self);
end All_Features;
-----------------
-- Conforms_To --
-----------------
overriding function Conforms_To
(Self : not null access constant UML_Actor_Proxy;
Other : AMF.UML.Classifiers.UML_Classifier_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Conforms_To unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Conforms_To";
return Conforms_To (Self, Other);
end Conforms_To;
-------------
-- General --
-------------
overriding function General
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "General unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.General";
return General (Self);
end General;
-----------------------
-- Has_Visibility_Of --
-----------------------
overriding function Has_Visibility_Of
(Self : not null access constant UML_Actor_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Has_Visibility_Of unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Has_Visibility_Of";
return Has_Visibility_Of (Self, N);
end Has_Visibility_Of;
-------------
-- Inherit --
-------------
overriding function Inherit
(Self : not null access constant UML_Actor_Proxy;
Inhs : AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Inherit unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Inherit";
return Inherit (Self, Inhs);
end Inherit;
-------------------------
-- Inheritable_Members --
-------------------------
overriding function Inheritable_Members
(Self : not null access constant UML_Actor_Proxy;
C : AMF.UML.Classifiers.UML_Classifier_Access)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Inheritable_Members unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Inheritable_Members";
return Inheritable_Members (Self, C);
end Inheritable_Members;
----------------------
-- Inherited_Member --
----------------------
overriding function Inherited_Member
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Inherited_Member unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Inherited_Member";
return Inherited_Member (Self);
end Inherited_Member;
-----------------
-- Is_Template --
-----------------
overriding function Is_Template
(Self : not null access constant UML_Actor_Proxy)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Template unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Is_Template";
return Is_Template (Self);
end Is_Template;
-------------------------
-- May_Specialize_Type --
-------------------------
overriding function May_Specialize_Type
(Self : not null access constant UML_Actor_Proxy;
C : AMF.UML.Classifiers.UML_Classifier_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "May_Specialize_Type unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.May_Specialize_Type";
return May_Specialize_Type (Self, C);
end May_Specialize_Type;
------------------------
-- Exclude_Collisions --
------------------------
overriding function Exclude_Collisions
(Self : not null access constant UML_Actor_Proxy;
Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Exclude_Collisions unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Exclude_Collisions";
return Exclude_Collisions (Self, Imps);
end Exclude_Collisions;
-------------------------
-- Get_Names_Of_Member --
-------------------------
overriding function Get_Names_Of_Member
(Self : not null access constant UML_Actor_Proxy;
Element : AMF.UML.Named_Elements.UML_Named_Element_Access)
return AMF.String_Collections.Set_Of_String is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Get_Names_Of_Member unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Get_Names_Of_Member";
return Get_Names_Of_Member (Self, Element);
end Get_Names_Of_Member;
--------------------
-- Import_Members --
--------------------
overriding function Import_Members
(Self : not null access constant UML_Actor_Proxy;
Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Import_Members unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Import_Members";
return Import_Members (Self, Imps);
end Import_Members;
---------------------
-- Imported_Member --
---------------------
overriding function Imported_Member
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Imported_Member unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Imported_Member";
return Imported_Member (Self);
end Imported_Member;
---------------------------------
-- Members_Are_Distinguishable --
---------------------------------
overriding function Members_Are_Distinguishable
(Self : not null access constant UML_Actor_Proxy)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Members_Are_Distinguishable unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Members_Are_Distinguishable";
return Members_Are_Distinguishable (Self);
end Members_Are_Distinguishable;
------------------
-- Owned_Member --
------------------
overriding function Owned_Member
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Owned_Member unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Owned_Member";
return Owned_Member (Self);
end Owned_Member;
-------------------------
-- All_Owning_Packages --
-------------------------
overriding function All_Owning_Packages
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.All_Owning_Packages";
return All_Owning_Packages (Self);
end All_Owning_Packages;
-----------------------------
-- Is_Distinguishable_From --
-----------------------------
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Actor_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Is_Distinguishable_From";
return Is_Distinguishable_From (Self, N, Ns);
end Is_Distinguishable_From;
---------------
-- Namespace --
---------------
overriding function Namespace
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Namespace";
return Namespace (Self);
end Namespace;
-----------------
-- Conforms_To --
-----------------
overriding function Conforms_To
(Self : not null access constant UML_Actor_Proxy;
Other : AMF.UML.Types.UML_Type_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Conforms_To unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Conforms_To";
return Conforms_To (Self, Other);
end Conforms_To;
------------------------
-- Is_Compatible_With --
------------------------
overriding function Is_Compatible_With
(Self : not null access constant UML_Actor_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Compatible_With unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Is_Compatible_With";
return Is_Compatible_With (Self, P);
end Is_Compatible_With;
---------------------------
-- Is_Template_Parameter --
---------------------------
overriding function Is_Template_Parameter
(Self : not null access constant UML_Actor_Proxy)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Template_Parameter unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Is_Template_Parameter";
return Is_Template_Parameter (Self);
end Is_Template_Parameter;
----------------------------
-- Parameterable_Elements --
----------------------------
overriding function Parameterable_Elements
(Self : not null access constant UML_Actor_Proxy)
return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Parameterable_Elements unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Parameterable_Elements";
return Parameterable_Elements (Self);
end Parameterable_Elements;
------------------------
-- Is_Consistent_With --
------------------------
overriding function Is_Consistent_With
(Self : not null access constant UML_Actor_Proxy;
Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Is_Consistent_With";
return Is_Consistent_With (Self, Redefinee);
end Is_Consistent_With;
-----------------------------------
-- Is_Redefinition_Context_Valid --
-----------------------------------
overriding function Is_Redefinition_Context_Valid
(Self : not null access constant UML_Actor_Proxy;
Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented");
raise Program_Error with "Unimplemented procedure UML_Actor_Proxy.Is_Redefinition_Context_Valid";
return Is_Redefinition_Context_Valid (Self, Redefined);
end Is_Redefinition_Context_Valid;
end AMF.Internals.UML_Actors;
| 36.849186 | 103 | 0.635328 |
cb591169a1c6d45905effdd4c89c41b19d60739e | 2,397 | ads | Ada | resources/scripts/cert/censys.ads | marcostolosa/Amass | 7a48ddae82eeac76fd6447de908f6b27002eace7 | [
"Apache-2.0"
] | 7,053 | 2018-07-13T09:40:12.000Z | 2022-03-31T15:26:10.000Z | resources/scripts/cert/censys.ads | marcostolosa/Amass | 7a48ddae82eeac76fd6447de908f6b27002eace7 | [
"Apache-2.0"
] | 624 | 2018-07-17T12:01:23.000Z | 2022-03-28T13:59:17.000Z | resources/scripts/cert/censys.ads | marcostolosa/Amass | 7a48ddae82eeac76fd6447de908f6b27002eace7 | [
"Apache-2.0"
] | 1,470 | 2018-07-17T06:01:21.000Z | 2022-03-31T18:02:17.000Z | -- Copyright 2020-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 json = require("json")
name = "Censys"
type = "cert"
function start()
set_rate_limit(3)
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or
c.key == "" or c.secret == nil or c.secret == "") then
local certpath_re = "/certificates/[a-z0-9]{64}"
for i=1,10 do
local page, err = request(ctx, {['url']=build_url(domain, i)})
if (err ~= nil and err ~= "") then
log(ctx, "vertical request to service failed: " .. err)
return
end
local paths = find(page, certpath_re)
for _, path in pairs(paths) do
scrape(ctx, {['url']="https://censys.io" .. path})
end
end
return
end
api_query(ctx, cfg, domain)
end
function build_url(domain, pagenum)
return "https://censys.io/certificates/_search?q=" .. domain .. "&page=" .. pagenum
end
function api_query(ctx, cfg, domain)
local p = 1
while(true) do
local err, body, resp
body, err = json.encode({
['query']="parsed.names: " .. domain,
['page']=p,
['fields']={"parsed.names"},
})
if (err ~= nil and err ~= "") then
return
end
resp, err = request(ctx, {
method="POST",
data=body,
['url']="https://www.censys.io/api/v1/search/certificates",
headers={['Content-Type']="application/json"},
id=cfg["credentials"].key,
pass=cfg["credentials"].secret,
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical request to service failed: " .. err)
return
end
local d = json.decode(resp)
if (d == nil or d.status ~= "ok" or #(d.results) == 0) then
return
end
for _, r in pairs(d.results) do
for _, v in pairs(r["parsed.names"]) do
new_name(ctx, v)
end
end
if d["metadata"].page >= d["metadata"].pages then
return
end
p = p + 1
end
end
| 26.633333 | 97 | 0.509804 |
1864e2d117d58ca5f209576a8464fc859916c293 | 5,720 | ads | Ada | source/web/tools/wsdl2ada/wsdl-ast-bindings.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/web/tools/wsdl2ada/wsdl-ast-bindings.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/web/tools/wsdl2ada/wsdl-ast-bindings.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2013, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Containers.Vectors;
with WSDL.AST.Components;
package WSDL.AST.Bindings is
pragma Preelaborate;
package Binding_Fault_Vectors is
new Ada.Containers.Vectors
(Positive,
WSDL.AST.Binding_Fault_Access,
WSDL.AST."=");
package Binding_Operation_Vectors is
new Ada.Containers.Vectors
(Positive,
WSDL.AST.Binding_Operation_Access,
WSDL.AST."=");
type SOAP_Binding_Extension is record
Version : League.Strings.Universal_String;
-- Value of {soap version} property.
Underlying_Protocol : League.Strings.Universal_String;
-- Value of {soap underlying protocol} property.
MEP_Default : League.Strings.Universal_String;
-- Value of {soap mep default} property.
end record;
type Binding_Node is new WSDL.AST.Components.Component_Node with record
Interface_Name : Qualified_Name;
-- Name of interface.
Interface_Node : WSDL.AST.Interface_Access;
-- Value of {interface} property.
Binding_Type : League.Strings.Universal_String;
-- Value of {type} property.
Binding_Operations : Binding_Operation_Vectors.Vector;
-- Value of {binding operations} property.
Binding_Faults : Binding_Fault_Vectors.Vector;
-- Value of {binding faults} property.
SOAP : SOAP_Binding_Extension;
-- SOAP Binding specific components.
end record;
overriding procedure Enter
(Self : not null access Binding_Node;
Visitor : in out WSDL.Visitors.WSDL_Visitor'Class;
Control : in out WSDL.Iterators.Traverse_Control);
overriding procedure Leave
(Self : not null access Binding_Node;
Visitor : in out WSDL.Visitors.WSDL_Visitor'Class;
Control : in out WSDL.Iterators.Traverse_Control);
overriding procedure Visit
(Self : not null access Binding_Node;
Iterator : in out WSDL.Iterators.WSDL_Iterator'Class;
Visitor : in out WSDL.Visitors.WSDL_Visitor'Class;
Control : in out WSDL.Iterators.Traverse_Control);
package Constructors is
function Create_Binding
(Parent : not null WSDL.AST.Description_Access;
Name : League.Strings.Universal_String)
return not null WSDL.AST.Binding_Access;
end Constructors;
end WSDL.AST.Bindings;
| 47.272727 | 78 | 0.506294 |
20352b165de62889b96a68219811848b6df903cf | 3,617 | ads | Ada | source/amf/uml/amf-uml-generalizations-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-uml-generalizations-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-uml-generalizations-hash.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Elements.Generic_Hash;
function AMF.UML.Generalizations.Hash is
new AMF.Elements.Generic_Hash (UML_Generalization, UML_Generalization_Access);
| 72.34 | 80 | 0.403373 |
cb8b093e3fba0ecd655ae2f6ce392818d99ec757 | 379 | ads | Ada | benchmark/benchmark_date.ads | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | 1 | 2019-02-09T22:04:10.000Z | 2019-02-09T22:04:10.000Z | benchmark/benchmark_date.ads | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | null | null | null | benchmark/benchmark_date.ads | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | null | null | null | package Benchmark_Date is
procedure Create (N : Integer; File_Name : String);
procedure Write (N : Integer; File_Name : String);
procedure Read (N : Integer; File_Name : String);
procedure Create_More (N : Integer; File_Name : String);
procedure Append (N : Integer; File_Name : String);
procedure Reset (N : Integer; File_Name : String);
end Benchmark_Date;
| 34.454545 | 59 | 0.709763 |
4ad834fd12453cf26c95bf5027eff4e2ad7b93cb | 146 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr10.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr10.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr10.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | package body Discr10 is
function Get (X : R) return R is
begin
return R'(D1 => False, D2 => False, D3 => X.D3);
end;
end Discr10;
| 16.222222 | 53 | 0.589041 |
4a40626052b117f81627c9eafa17cac174bbe034 | 1,843 | ads | Ada | src/asf-components-widgets-gravatars.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 12 | 2015-01-18T23:02:20.000Z | 2022-03-25T15:30:30.000Z | src/asf-components-widgets-gravatars.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 3 | 2021-01-06T09:44:02.000Z | 2022-02-04T20:20:53.000Z | src/asf-components-widgets-gravatars.ads | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 4 | 2016-04-12T05:29:00.000Z | 2022-01-24T23:53:59.000Z | -----------------------------------------------------------------------
-- components-widgets-gravatars -- Gravatar Components
-- Copyright (C) 2013 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- 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 agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with ASF.Components.Html;
with ASF.Contexts.Faces;
package ASF.Components.Widgets.Gravatars is
-- Given an Email address, return the Gravatar link to the user image.
-- (See http://en.gravatar.com/site/implement/hash/ and
-- http://en.gravatar.com/site/implement/images/)
function Get_Link (Email : in String;
Secure : in Boolean := False) return String;
-- ------------------------------
-- UIGravatar
-- ------------------------------
-- The <b>UIGravatar</b> component displays a small image whose link is created
-- from a user email address.
type UIGravatar is new ASF.Components.Html.UIHtmlComponent with null record;
-- Render an image with the source link created from an email address to the Gravatars service.
overriding
procedure Encode_Begin (UI : in UIGravatar;
Context : in out ASF.Contexts.Faces.Faces_Context'Class);
end ASF.Components.Widgets.Gravatars;
| 44.95122 | 99 | 0.628866 |
0e3babb61c3023d8899967935b1754c9898975da | 2,692 | adb | Ada | test/annotation/test_annotation-append.adb | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | 1 | 2019-02-09T22:04:10.000Z | 2019-02-09T22:04:10.000Z | test/annotation/test_annotation-append.adb | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | null | null | null | test/annotation/test_annotation-append.adb | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | null | null | null | with Ada.Text_IO;
package body Test_Annotation.Append is
File_Name : constant String := "tmp/test-append-annotation.sf";
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Annotation.Append");
Ahven.Framework.Add_Test_Routine (T, Append_Test_1'Access, "append test 1");
Ahven.Framework.Add_Test_Routine (T, Append_Test_2'Access, "append test 2");
Ahven.Framework.Add_Test_Routine (T, Append_Test_3'Access, "append test 3");
end Initialize;
procedure Set_Up (T : in out Test) is
State : access Skill_State := new Skill_State;
begin
Skill.Read (State, "resources/annotationTest.sf");
Skill.Write (State, File_Name);
declare
A : Date_Type_Access := New_Date (State, 3);
B : Date_Type_Access := New_Date (State, 4);
begin
New_Test (State, Skill_Type_Access (A));
New_Test (State, Skill_Type_Access (B));
end;
Skill.Append (State);
end Set_Up;
procedure Tear_Down (T : in out Test) is
begin
Ada.Directories.Delete_File (File_Name);
end Tear_Down;
procedure Append_Test_1 (T : in out Ahven.Framework.Test_Case'Class) is
State : access Skill_State := new Skill_State;
begin
Skill.Read (State, File_Name);
declare
Test : Test_Type_Access := Skill.Get_Test (State, 1);
Date : Date_Type_Access := Skill.Get_Date (State, 1);
X : Date_Type_Access := Date_Type_Access (Test.Get_F);
Y : Date_Type_Access := Date;
begin
Ahven.Assert (X = Y, "objects are not equal");
end;
end Append_Test_1;
procedure Append_Test_2 (T : in out Ahven.Framework.Test_Case'Class) is
State : access Skill_State := new Skill_State;
begin
Skill.Read (State, File_Name);
declare
Test : Test_Type_Access := Skill.Get_Test (State, 2);
Date : Date_Type_Access := Skill.Get_Date (State, 3);
X : Date_Type_Access := Date_Type_Access (Test.Get_F);
Y : Date_Type_Access := Date;
begin
Ahven.Assert (X = Y, "objects are not equal");
end;
end Append_Test_2;
procedure Append_Test_3 (T : in out Ahven.Framework.Test_Case'Class) is
State : access Skill_State := new Skill_State;
begin
Skill.Read (State, File_Name);
declare
Test : Test_Type_Access := Skill.Get_Test (State, 3);
Date : Date_Type_Access := Skill.Get_Date (State, 4);
X : Date_Type_Access := Date_Type_Access (Test.Get_F);
Y : Date_Type_Access := Date;
begin
Ahven.Assert (X = Y, "objects are not equal");
end;
end Append_Test_3;
end Test_Annotation.Append;
| 32.433735 | 82 | 0.643759 |
180f2d7e0720f5627de8e614f4173a5936bb62b8 | 2,477 | adb | Ada | firmware/coreboot/3rdparty/libhwbase/common/hw-pci-mmconf.adb | fabiojna02/OpenCellular | 45b6a202d6b2e2485c89955b9a6da920c4d56ddb | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1 | 2019-11-04T07:11:25.000Z | 2019-11-04T07:11:25.000Z | firmware/coreboot/3rdparty/libhwbase/common/hw-pci-mmconf.adb | aimin-wang/OpenCellular | 5308146bf7edf43cc81c0e4d15305b711117070a | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 13 | 2018-10-12T21:29:09.000Z | 2018-10-25T20:06:51.000Z | firmware/coreboot/3rdparty/libhwbase/common/hw-pci-mmconf.adb | aimin-wang/OpenCellular | 5308146bf7edf43cc81c0e4d15305b711117070a | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | --
-- Copyright (C) 2017 Nico Huber <[email protected]>
--
-- 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 program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
with HW.Config;
package body HW.PCI.MMConf
with
Refined_State =>
(Address_State =>
(MM8.Base_Address, MM16.Base_Address, MM32.Base_Address),
PCI_State =>
(MM8.State, MM16.State, MM32.State))
is
Default_Base_Address : constant Word64 :=
Calc_Base_Address (Config.Default_MMConf_Base, Dev);
type Index16 is new Index range 0 .. Index'Last / 2;
type Index32 is new Index range 0 .. Index'Last / 4;
type Array8 is array (Index) of Byte with Atomic_Components;
type Array16 is array (Index16) of Word16 with Atomic_Components;
type Array32 is array (Index32) of Word32 with Atomic_Components;
package MM8 is new HW.MMIO_Range
(Default_Base_Address, Word8, Index, Array8);
package MM16 is new HW.MMIO_Range
(Default_Base_Address, Word16, Index16, Array16);
package MM32 is new HW.MMIO_Range
(Default_Base_Address, Word32, Index32, Array32);
procedure Read8 (Value : out Word8; Offset : Index) renames MM8.Read;
procedure Read16 (Value : out Word16; Offset : Index)
is
begin
MM16.Read (Value, Index16 (Offset / 2));
end Read16;
procedure Read32 (Value : out Word32; Offset : Index)
is
begin
MM32.Read (Value, Index32 (Offset / 4));
end Read32;
procedure Write8 (Offset : Index; Value : Word8) renames MM8.Write;
procedure Write16 (Offset : Index; Value : Word16)
is
begin
MM16.Write (Index16 (Offset / 2), Value);
end Write16;
procedure Write32 (Offset : Index; Value : Word32)
is
begin
MM32.Write (Index32 (Offset / 4), Value);
end Write32;
procedure Set_Base_Address (Base : Word64)
is
Base_Address : constant Word64 := Calc_Base_Address (Base, Dev);
begin
MM8.Set_Base_Address (Base_Address);
MM16.Set_Base_Address (Base_Address);
MM32.Set_Base_Address (Base_Address);
end Set_Base_Address;
end HW.PCI.MMConf;
| 30.580247 | 72 | 0.697618 |
c5d9b3ee251f9df95669bc4715d5279d25f3fd96 | 14,849 | ads | Ada | gcc-gcc-7_3_0-release/gcc/ada/sem_ch6.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/ada/sem_ch6.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/sem_ch6.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S E M _ C H 6 --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Types; use Types;
package Sem_Ch6 is
type Conformance_Type is
(Type_Conformant, Mode_Conformant, Subtype_Conformant, Fully_Conformant);
pragma Ordered (Conformance_Type);
-- Conformance type used in conformance checks between specs and bodies,
-- and for overriding. The literals match the RM definitions of the
-- corresponding terms. This is an ordered type, since each conformance
-- type is stronger than the ones preceding it.
procedure Analyze_Abstract_Subprogram_Declaration (N : Node_Id);
procedure Analyze_Expression_Function (N : Node_Id);
procedure Analyze_Extended_Return_Statement (N : Node_Id);
procedure Analyze_Function_Call (N : Node_Id);
procedure Analyze_Operator_Symbol (N : Node_Id);
procedure Analyze_Parameter_Association (N : Node_Id);
procedure Analyze_Procedure_Call (N : Node_Id);
procedure Analyze_Simple_Return_Statement (N : Node_Id);
procedure Analyze_Subprogram_Declaration (N : Node_Id);
procedure Analyze_Subprogram_Body (N : Node_Id);
function Analyze_Subprogram_Specification (N : Node_Id) return Entity_Id;
-- Analyze subprogram specification in both subprogram declarations
-- and body declarations. Returns the defining entity for the
-- specification N.
procedure Check_Conventions (Typ : Entity_Id);
-- Ada 2005 (AI-430): Check that the conventions of all inherited and
-- overridden dispatching operations of type Typ are consistent with their
-- respective counterparts.
procedure Check_Delayed_Subprogram (Designator : Entity_Id);
-- Designator can be a E_Subprogram_Type, E_Procedure or E_Function. If a
-- type in its profile depends on a private type without a full
-- declaration, indicate that the subprogram or type is delayed.
procedure Check_Discriminant_Conformance
(N : Node_Id;
Prev : Entity_Id;
Prev_Loc : Node_Id);
-- Check that the discriminants of a full type N fully conform to the
-- discriminants of the corresponding partial view Prev. Prev_Loc indicates
-- the source location of the partial view, which may be different than
-- Prev in the case of private types.
procedure Check_Fully_Conformant
(New_Id : Entity_Id;
Old_Id : Entity_Id;
Err_Loc : Node_Id := Empty);
-- Check that two callable entities (subprograms, entries, literals)
-- are fully conformant, post error message if not (RM 6.3.1(17)) with
-- the flag being placed on the Err_Loc node if it is specified, and
-- on the appropriate component of the New_Id construct if not. Note:
-- when checking spec/body conformance, New_Id must be the body entity
-- and Old_Id is the spec entity (the code in the implementation relies
-- on this ordering, and in any case, this makes sense, since if flags
-- are to be placed on the construct, they clearly belong on the body.
procedure Check_Mode_Conformant
(New_Id : Entity_Id;
Old_Id : Entity_Id;
Err_Loc : Node_Id := Empty;
Get_Inst : Boolean := False);
-- Check that two callable entities (subprograms, entries, literals)
-- are mode conformant, post error message if not (RM 6.3.1(15)) with
-- the flag being placed on the Err_Loc node if it is specified, and
-- on the appropriate component of the New_Id construct if not. The
-- argument Get_Inst is set to True when this is a check against a
-- formal access-to-subprogram type, indicating that mapping of types
-- is needed.
procedure Check_Overriding_Indicator
(Subp : Entity_Id;
Overridden_Subp : Entity_Id;
Is_Primitive : Boolean);
-- Verify the consistency of an overriding_indicator given for subprogram
-- declaration, body, renaming, or instantiation. Overridden_Subp is set
-- if the scope where we are introducing the subprogram contains a
-- type-conformant subprogram that becomes hidden by the new subprogram.
-- Is_Primitive indicates whether the subprogram is primitive.
procedure Check_Subtype_Conformant
(New_Id : Entity_Id;
Old_Id : Entity_Id;
Err_Loc : Node_Id := Empty;
Skip_Controlling_Formals : Boolean := False;
Get_Inst : Boolean := False);
-- Check that two callable entities (subprograms, entries, literals)
-- are subtype conformant, post error message if not (RM 6.3.1(16)),
-- the flag being placed on the Err_Loc node if it is specified, and
-- on the appropriate component of the New_Id construct if not.
-- Skip_Controlling_Formals is True when checking the conformance of
-- a subprogram that implements an interface operation. In that case,
-- only the non-controlling formals can (and must) be examined. The
-- argument Get_Inst is set to True when this is a check against a
-- formal access-to-subprogram type, indicating that mapping of types
-- is needed.
procedure Check_Synchronized_Overriding
(Def_Id : Entity_Id;
Overridden_Subp : out Entity_Id);
-- First determine if Def_Id is an entry or a subprogram either defined in
-- the scope of a task or protected type, or that is a primitive of such
-- a type. Check whether Def_Id overrides a subprogram of an interface
-- implemented by the synchronized type, returning the overridden entity
-- or Empty.
procedure Check_Type_Conformant
(New_Id : Entity_Id;
Old_Id : Entity_Id;
Err_Loc : Node_Id := Empty);
-- Check that two callable entities (subprograms, entries, literals)
-- are type conformant, post error message if not (RM 6.3.1(14)) with
-- the flag being placed on the Err_Loc node if it is specified, and
-- on the appropriate component of the New_Id construct if not.
function Conforming_Types
(T1 : Entity_Id;
T2 : Entity_Id;
Ctype : Conformance_Type;
Get_Inst : Boolean := False) return Boolean;
-- Check that the types of two formal parameters are conforming. In most
-- cases this is just a name comparison, but within an instance it involves
-- generic actual types, and in the presence of anonymous access types
-- it must examine the designated types. The argument Get_Inst is set to
-- True when this is a check against a formal access-to-subprogram type,
-- indicating that mapping of types is needed.
procedure Create_Extra_Formals (E : Entity_Id);
-- For each parameter of a subprogram or entry that requires an additional
-- formal (such as for access parameters and indefinite discriminated
-- parameters), creates the appropriate formal and attach it to its
-- associated parameter. Each extra formal will also be appended to
-- the end of Subp's parameter list (with each subsequent extra formal
-- being attached to the preceding extra formal).
function Find_Corresponding_Spec
(N : Node_Id;
Post_Error : Boolean := True) return Entity_Id;
-- Use the subprogram specification in the body to retrieve the previous
-- subprogram declaration, if any.
function Fully_Conformant (New_Id, Old_Id : Entity_Id) return Boolean;
-- Determine whether two callable entities (subprograms, entries,
-- literals) are fully conformant (RM 6.3.1(17))
function Fully_Conformant_Expressions
(Given_E1 : Node_Id;
Given_E2 : Node_Id) return Boolean;
-- Determines if two (non-empty) expressions are fully conformant
-- as defined by (RM 6.3.1(18-21))
function Fully_Conformant_Discrete_Subtypes
(Given_S1 : Node_Id;
Given_S2 : Node_Id) return Boolean;
-- Determines if two subtype definitions are fully conformant. Used
-- for entry family conformance checks (RM 6.3.1 (24)).
procedure Install_Entity (E : Entity_Id);
-- Place a single entity on the visibility chain
procedure Install_Formals (Id : Entity_Id);
-- On entry to a subprogram body, make the formals visible. Note that
-- simply placing the subprogram on the scope stack is not sufficient:
-- the formals must become the current entities for their names. This
-- procedure is also used to get visibility to the formals when analyzing
-- preconditions and postconditions appearing in the spec.
function Is_Interface_Conformant
(Tagged_Type : Entity_Id;
Iface_Prim : Entity_Id;
Prim : Entity_Id) return Boolean;
-- Returns true if both primitives have a matching name (including support
-- for names of inherited private primitives --which have suffix 'P'), they
-- are type conformant, and Prim is defined in the scope of Tagged_Type.
-- Special management is done for functions returning interfaces.
procedure List_Inherited_Pre_Post_Aspects (E : Entity_Id);
-- E is the entity for a subprogram or generic subprogram spec. This call
-- lists all inherited Pre/Post aspects if List_Inherited_Pre_Post is True.
procedure May_Need_Actuals (Fun : Entity_Id);
-- Flag functions that can be called without parameters, i.e. those that
-- have no parameters, or those for which defaults exist for all parameters
-- Used for subprogram declarations and for access subprogram declarations,
-- where they apply to the anonymous designated type. On return the flag
-- Set_Needs_No_Actuals is set appropriately in Fun.
function Mode_Conformant (New_Id, Old_Id : Entity_Id) return Boolean;
-- Determine whether two callable entities (subprograms, entries,
-- literals) are mode conformant (RM 6.3.1(15))
procedure New_Overloaded_Entity
(S : Entity_Id;
Derived_Type : Entity_Id := Empty);
-- Process new overloaded entity. Overloaded entities are created by
-- enumeration type declarations, subprogram specifications, entry
-- declarations, and (implicitly) by type derivations. If Derived_Type
-- is non-empty then this is a subprogram derived for that type.
procedure Process_Formals (T : List_Id; Related_Nod : Node_Id);
-- Enter the formals in the scope of the subprogram or entry, and
-- analyze default expressions if any. The implicit types created for
-- access parameter are attached to the Related_Nod which comes from the
-- context.
procedure Reference_Body_Formals (Spec : Entity_Id; Bod : Entity_Id);
-- If there is a separate spec for a subprogram or generic subprogram, the
-- formals of the body are treated as references to the corresponding
-- formals of the spec. This reference does not count as an actual use of
-- the formal, in order to diagnose formals that are unused in the body.
-- This procedure is also used in renaming_as_body declarations, where
-- the formals of the specification must be treated as body formals that
-- correspond to the previous subprogram declaration, and not as new
-- entities with their defining entry in the cross-reference information.
procedure Set_Actual_Subtypes (N : Node_Id; Subp : Entity_Id);
-- If the formals of a subprogram are unconstrained, build a subtype
-- declaration that uses the bounds or discriminants of the actual to
-- construct an actual subtype for them. This is an optimization that
-- is done only in some cases where the actual subtype cannot change
-- during execution of the subprogram. By setting the actual subtype
-- once, we avoid recomputing it unnecessarily.
procedure Set_Formal_Mode (Formal_Id : Entity_Id);
-- Set proper Ekind to reflect formal mode (in, out, in out)
function Subtype_Conformant
(New_Id : Entity_Id;
Old_Id : Entity_Id;
Skip_Controlling_Formals : Boolean := False) return Boolean;
-- Determine whether two callable entities (subprograms, entries, literals)
-- are subtype conformant (RM 6.3.1(16)). Skip_Controlling_Formals is True
-- when checking the conformance of a subprogram that implements an
-- interface operation. In that case, only the non-controlling formals
-- can (and must) be examined.
function Type_Conformant
(New_Id : Entity_Id;
Old_Id : Entity_Id;
Skip_Controlling_Formals : Boolean := False) return Boolean;
-- Determine whether two callable entities (subprograms, entries, literals)
-- are type conformant (RM 6.3.1(14)). Skip_Controlling_Formals is True
-- when checking the conformance of a subprogram that implements an
-- interface operation. In that case, only the non-controlling formals
-- can (and must) be examined.
procedure Valid_Operator_Definition (Designator : Entity_Id);
-- Verify that an operator definition has the proper number of formals
end Sem_Ch6;
| 53.413669 | 79 | 0.665499 |
0eb6d503e588a377bd2d709523aa2c843dbb70f3 | 949 | adb | Ada | gdb/testsuite/gdb.ada/display_nested/foo.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | 1 | 2020-10-14T03:24:35.000Z | 2020-10-14T03:24:35.000Z | gdb/testsuite/gdb.ada/display_nested/foo.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | gdb/testsuite/gdb.ada/display_nested/foo.adb | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2019-2021 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.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Pack; use Pack;
procedure Foo is
S : String := "test string";
I : Natural := S'First;
begin
declare
procedure Nested is
begin
Do_Nothing (S); -- BREAK
end Nested;
begin
Nested;
end;
end Foo;
| 30.612903 | 73 | 0.702845 |
0e4d5685623cbb905ddbd7034f8fc5e37d977bc5 | 5,164 | ads | Ada | extern/gnat_sdl/gnat_sdl2/src/sdl_rect_h.ads | AdaCore/training_material | 6651eb2c53f8c39649b8e0b3c757bc8ff963025a | [
"CC-BY-4.0"
] | 15 | 2020-10-07T08:56:45.000Z | 2022-02-08T23:13:22.000Z | extern/gnat_sdl/gnat_sdl2/src/sdl_rect_h.ads | AdaCore/training_material | 6651eb2c53f8c39649b8e0b3c757bc8ff963025a | [
"CC-BY-4.0"
] | 20 | 2020-11-05T14:35:20.000Z | 2022-01-13T15:59:33.000Z | extern/gnat_sdl/gnat_sdl2/src/sdl_rect_h.ads | AdaCore/training_material | 6651eb2c53f8c39649b8e0b3c757bc8ff963025a | [
"CC-BY-4.0"
] | 6 | 2020-10-08T15:57:06.000Z | 2021-08-31T12:03:08.000Z | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
package SDL_rect_h is
-- Simple DirectMedia Layer
-- Copyright (C) 1997-2018 Sam Lantinga <[email protected]>
-- 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 from the use of this software.
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely, subject to the following restrictions:
-- 1. The origin of this software must not be misrepresented; you must not
-- claim that you wrote the original software. If you use this software
-- in a product, an acknowledgment in the product documentation would be
-- appreciated but is not required.
-- 2. Altered source versions must be plainly marked as such, and must not be
-- misrepresented as being the original software.
-- 3. This notice may not be removed or altered from any source distribution.
--
--*
-- * \file SDL_rect.h
-- *
-- * Header file for SDL_rect definition and management functions.
--
-- Set up for C function definitions, even when using C++
--*
-- * \brief The structure that defines a point
-- *
-- * \sa SDL_EnclosePoints
-- * \sa SDL_PointInRect
--
type SDL_Point is record
x : aliased int; -- ..\SDL2_tmp\SDL_rect.h:50
y : aliased int; -- ..\SDL2_tmp\SDL_rect.h:51
end record;
pragma Convention (C_Pass_By_Copy, SDL_Point); -- ..\SDL2_tmp\SDL_rect.h:48
--*
-- * \brief A rectangle, with the origin at the upper left.
-- *
-- * \sa SDL_RectEmpty
-- * \sa SDL_RectEquals
-- * \sa SDL_HasIntersection
-- * \sa SDL_IntersectRect
-- * \sa SDL_UnionRect
-- * \sa SDL_EnclosePoints
--
type SDL_Rect is record
x : aliased int; -- ..\SDL2_tmp\SDL_rect.h:66
y : aliased int; -- ..\SDL2_tmp\SDL_rect.h:66
w : aliased int; -- ..\SDL2_tmp\SDL_rect.h:67
h : aliased int; -- ..\SDL2_tmp\SDL_rect.h:67
end record;
pragma Convention (C_Pass_By_Copy, SDL_Rect); -- ..\SDL2_tmp\SDL_rect.h:64
--*
-- * \brief Returns true if point resides inside a rectangle.
--
function SDL_PointInRect (p : access constant SDL_Point; r : access constant SDL_Rect) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_rect.h:73
pragma Import (C, SDL_PointInRect, "SDL_PointInRect");
--*
-- * \brief Returns true if the rectangle has no area.
--
function SDL_RectEmpty (r : access constant SDL_Rect) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_rect.h:82
pragma Import (C, SDL_RectEmpty, "SDL_RectEmpty");
--*
-- * \brief Returns true if the two rectangles are equal.
--
function SDL_RectEquals (a : access constant SDL_Rect; b : access constant SDL_Rect) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_rect.h:90
pragma Import (C, SDL_RectEquals, "SDL_RectEquals");
--*
-- * \brief Determine whether two rectangles intersect.
-- *
-- * \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
--
function SDL_HasIntersection (A : access constant SDL_Rect; B : access constant SDL_Rect) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_rect.h:101
pragma Import (C, SDL_HasIntersection, "SDL_HasIntersection");
--*
-- * \brief Calculate the intersection of two rectangles.
-- *
-- * \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
--
function SDL_IntersectRect
(A : access constant SDL_Rect;
B : access constant SDL_Rect;
result : access SDL_Rect) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_rect.h:109
pragma Import (C, SDL_IntersectRect, "SDL_IntersectRect");
--*
-- * \brief Calculate the union of two rectangles.
--
procedure SDL_UnionRect
(A : access constant SDL_Rect;
B : access constant SDL_Rect;
result : access SDL_Rect); -- ..\SDL2_tmp\SDL_rect.h:116
pragma Import (C, SDL_UnionRect, "SDL_UnionRect");
--*
-- * \brief Calculate a minimal rectangle enclosing a set of points
-- *
-- * \return SDL_TRUE if any points were within the clipping rect
--
function SDL_EnclosePoints
(points : access constant SDL_Point;
count : int;
clip : access constant SDL_Rect;
result : access SDL_Rect) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_rect.h:125
pragma Import (C, SDL_EnclosePoints, "SDL_EnclosePoints");
--*
-- * \brief Calculate the intersection of a rectangle and line segment.
-- *
-- * \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
--
function SDL_IntersectRectAndLine
(rect : access constant SDL_Rect;
X1 : access int;
Y1 : access int;
X2 : access int;
Y2 : access int) return SDL_stdinc_h.SDL_bool; -- ..\SDL2_tmp\SDL_rect.h:135
pragma Import (C, SDL_IntersectRectAndLine, "SDL_IntersectRectAndLine");
-- Ends C function definitions when using C++
-- vi: set ts=4 sw=4 expandtab:
end SDL_rect_h;
| 35.129252 | 153 | 0.675445 |
18d98c0d65caff65d41a661b45c88cf3c96a1579 | 4,266 | adb | Ada | source/nodes/program-nodes-index_constraints.adb | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-index_constraints.adb | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | null | null | null | source/nodes/program-nodes-index_constraints.adb | reznikmm/gela | 20134f1d154fb763812e73860c6f4b04f353df79 | [
"MIT"
] | 1 | 2019-10-16T09:05:27.000Z | 2019-10-16T09:05:27.000Z | -- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Index_Constraints is
function Create
(Left_Bracket_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Ranges : not null Program.Elements.Discrete_Ranges
.Discrete_Range_Vector_Access;
Right_Bracket_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Index_Constraint is
begin
return Result : Index_Constraint :=
(Left_Bracket_Token => Left_Bracket_Token, Ranges => Ranges,
Right_Bracket_Token => Right_Bracket_Token, Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Ranges : not null Program.Elements.Discrete_Ranges
.Discrete_Range_Vector_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Index_Constraint is
begin
return Result : Implicit_Index_Constraint :=
(Ranges => Ranges, Is_Part_Of_Implicit => Is_Part_Of_Implicit,
Is_Part_Of_Inherited => Is_Part_Of_Inherited,
Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
overriding function Ranges
(Self : Base_Index_Constraint)
return not null Program.Elements.Discrete_Ranges
.Discrete_Range_Vector_Access is
begin
return Self.Ranges;
end Ranges;
overriding function Left_Bracket_Token
(Self : Index_Constraint)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Left_Bracket_Token;
end Left_Bracket_Token;
overriding function Right_Bracket_Token
(Self : Index_Constraint)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Right_Bracket_Token;
end Right_Bracket_Token;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Index_Constraint)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Index_Constraint)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Index_Constraint)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize (Self : in out Base_Index_Constraint'Class) is
begin
for Item in Self.Ranges.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
null;
end Initialize;
overriding function Is_Index_Constraint
(Self : Base_Index_Constraint)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Index_Constraint;
overriding function Is_Constraint
(Self : Base_Index_Constraint)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Constraint;
overriding function Is_Definition
(Self : Base_Index_Constraint)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Definition;
overriding procedure Visit
(Self : not null access Base_Index_Constraint;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Index_Constraint (Self);
end Visit;
overriding function To_Index_Constraint_Text
(Self : in out Index_Constraint)
return Program.Elements.Index_Constraints.Index_Constraint_Text_Access is
begin
return Self'Unchecked_Access;
end To_Index_Constraint_Text;
overriding function To_Index_Constraint_Text
(Self : in out Implicit_Index_Constraint)
return Program.Elements.Index_Constraints.Index_Constraint_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Index_Constraint_Text;
end Program.Nodes.Index_Constraints;
| 30.471429 | 79 | 0.712143 |
cba54d860a1c22ec8029536ac9c1ce358dfccafa | 4,904 | adb | Ada | src/asf-components-root.adb | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 12 | 2015-01-18T23:02:20.000Z | 2022-03-25T15:30:30.000Z | src/asf-components-root.adb | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 3 | 2021-01-06T09:44:02.000Z | 2022-02-04T20:20:53.000Z | src/asf-components-root.adb | jquorning/ada-asf | ddc697c5dfa4e22c57c6958f4cff27e14d02ce98 | [
"Apache-2.0"
] | 4 | 2016-04-12T05:29:00.000Z | 2022-01-24T23:53:59.000Z | -----------------------------------------------------------------------
-- components-root -- ASF Root View Component
-- Copyright (C) 2010, 2011, 2012, 2018 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- 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 agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
with ASF.Components.Base;
with ASF.Components.Core.Views;
package body ASF.Components.Root is
-- ------------------------------
-- Get the root node of the view.
-- ------------------------------
function Get_Root (UI : in UIViewRoot) return access Base.UIComponent'Class is
begin
if UI.Root = null then
return null;
elsif UI.Root.Meta = null then
return UI.Root.View;
else
return UI.Root.Meta;
end if;
end Get_Root;
-- ------------------------------
-- Set the root node of the view.
-- ------------------------------
procedure Set_Root (UI : in out UIViewRoot;
Root : access Base.UIComponent'Class;
Name : in String) is
begin
if UI.Root /= null then
Finalize (UI);
end if;
UI.Root := new Root_Holder '(Ref_Counter => 1,
Len => Name'Length,
View => Root,
Meta => null,
Name => Name);
end Set_Root;
-- ------------------------------
-- Set the metadata component of the view.
-- ------------------------------
procedure Set_Meta (UI : in out UIViewRoot) is
Node : access Base.UIComponent'Class;
begin
if UI.Root /= null then
Node := UI.Root.View;
UI.Root.Meta := Node.Get_Facet (Core.Views.METADATA_FACET_NAME);
if UI.Root.Meta = null then
declare
Iter : Base.Cursor := Base.First (Node.all);
begin
while Base.Has_Element (Iter) loop
UI.Root.Meta := Base.Element (Iter).Get_Facet (Core.Views.METADATA_FACET_NAME);
exit when UI.Root.Meta /= null;
Base.Next (Iter);
end loop;
end;
end if;
end if;
end Set_Meta;
-- ------------------------------
-- Returns True if the view has a metadata component.
-- ------------------------------
function Has_Meta (UI : in UIViewRoot) return Boolean is
begin
return UI.Root /= null and then UI.Root.Meta /= null;
end Has_Meta;
-- ------------------------------
-- Get the view identifier.
-- ------------------------------
function Get_View_Id (UI : in UIViewRoot) return String is
begin
return UI.Root.Name;
end Get_View_Id;
-- ------------------------------
-- Create an identifier for a component.
-- ------------------------------
procedure Create_Unique_Id (UI : in out UIViewRoot;
Id : out Natural) is
begin
UI.Last_Id := UI.Last_Id + 1;
Id := UI.Last_Id;
end Create_Unique_Id;
-- ------------------------------
-- Increment the reference counter.
-- ------------------------------
overriding
procedure Adjust (Object : in out UIViewRoot) is
begin
if Object.Root /= null then
Object.Root.Ref_Counter := Object.Root.Ref_Counter + 1;
end if;
end Adjust;
Empty : ASF.Components.Base.UIComponent;
-- ------------------------------
-- Free the memory held by the component tree.
-- ------------------------------
overriding
procedure Finalize (Object : in out UIViewRoot) is
procedure Free is
new Ada.Unchecked_Deallocation (Object => Root_Holder,
Name => Root_Holder_Access);
begin
if Object.Root /= null then
Object.Root.Ref_Counter := Object.Root.Ref_Counter - 1;
if Object.Root.Ref_Counter = 0 then
declare
C : ASF.Components.Base.UIComponent_Access := Object.Root.View.all'Unchecked_Access;
begin
ASF.Components.Base.Steal_Root_Component (Empty, C);
end;
Free (Object.Root);
end if;
end if;
end Finalize;
end ASF.Components.Root;
| 34.293706 | 99 | 0.50367 |
dcd6f9ee342a806b3fbb030b784b4d9a92c34469 | 52,816 | adb | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-ztexio.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-ztexio.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-ztexio.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . W I D E _ W I D E _ T E X T _ I O --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Streams; use Ada.Streams;
with Interfaces.C_Streams; use Interfaces.C_Streams;
with System.CRTL;
with System.File_IO;
with System.WCh_Cnv; use System.WCh_Cnv;
with System.WCh_Con; use System.WCh_Con;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
pragma Elaborate_All (System.File_IO);
-- Needed because of calls to Chain_File in package body elaboration
package body Ada.Wide_Wide_Text_IO is
package FIO renames System.File_IO;
subtype AP is FCB.AFCB_Ptr;
function To_FCB is new Ada.Unchecked_Conversion (File_Mode, FCB.File_Mode);
function To_TIO is new Ada.Unchecked_Conversion (FCB.File_Mode, File_Mode);
use type FCB.File_Mode;
use type System.CRTL.size_t;
WC_Encoding : Character;
pragma Import (C, WC_Encoding, "__gl_wc_encoding");
-- Default wide character encoding
Err_Name : aliased String := "*stderr" & ASCII.NUL;
In_Name : aliased String := "*stdin" & ASCII.NUL;
Out_Name : aliased String := "*stdout" & ASCII.NUL;
-- Names of standard files
--
-- Use "preallocated" strings to avoid calling "new" during the elaboration
-- of the run time. This is needed in the tasking case to avoid calling
-- Task_Lock too early. A filename is expected to end with a null character
-- in the runtime, here the null characters are added just to have a
-- correct filename length.
--
-- Note: the names for these files are bogus, and probably it would be
-- better for these files to have no names, but the ACVC tests insist.
-- We use names that are bound to fail in open etc.
Null_Str : aliased constant String := "";
-- Used as form string for standard files
-----------------------
-- Local Subprograms --
-----------------------
function Get_Wide_Wide_Char_Immed
(C : Character;
File : File_Type) return Wide_Wide_Character;
-- This routine is identical to Get_Wide_Wide_Char, except that the reads
-- are done in Get_Immediate mode (i.e. without waiting for a line return).
function Getc_Immed (File : File_Type) return int;
-- This routine is identical to Getc, except that the read is done in
-- Get_Immediate mode (i.e. without waiting for a line return).
procedure Putc (ch : int; File : File_Type);
-- Outputs the given character to the file, which has already been checked
-- for being in output status. Device_Error is raised if the character
-- cannot be written.
procedure Set_WCEM (File : in out File_Type);
-- Called by Open and Create to set the wide character encoding method for
-- the file, processing a WCEM form parameter if one is present. File is
-- IN OUT because it may be closed in case of an error.
procedure Terminate_Line (File : File_Type);
-- If the file is in Write_File or Append_File mode, and the current line
-- is not terminated, then a line terminator is written using New_Line.
-- Note that there is no Terminate_Page routine, because the page mark at
-- the end of the file is implied if necessary.
procedure Ungetc (ch : int; File : File_Type);
-- Pushes back character into stream, using ungetc. The caller has checked
-- that the file is in read status. Device_Error is raised if the character
-- cannot be pushed back. An attempt to push back and end of file character
-- (EOF) is ignored.
-------------------
-- AFCB_Allocate --
-------------------
function AFCB_Allocate
(Control_Block : Wide_Wide_Text_AFCB) return FCB.AFCB_Ptr
is
pragma Unreferenced (Control_Block);
begin
return new Wide_Wide_Text_AFCB;
end AFCB_Allocate;
----------------
-- AFCB_Close --
----------------
procedure AFCB_Close (File : not null access Wide_Wide_Text_AFCB) is
begin
-- If the file being closed is one of the current files, then close
-- the corresponding current file. It is not clear that this action
-- is required (RM A.10.3(23)) but it seems reasonable, and besides
-- ACVC test CE3208A expects this behavior.
if File_Type (File) = Current_In then
Current_In := null;
elsif File_Type (File) = Current_Out then
Current_Out := null;
elsif File_Type (File) = Current_Err then
Current_Err := null;
end if;
Terminate_Line (File_Type (File));
end AFCB_Close;
---------------
-- AFCB_Free --
---------------
procedure AFCB_Free (File : not null access Wide_Wide_Text_AFCB) is
type FCB_Ptr is access all Wide_Wide_Text_AFCB;
FT : FCB_Ptr := FCB_Ptr (File);
procedure Free is new
Ada.Unchecked_Deallocation (Wide_Wide_Text_AFCB, FCB_Ptr);
begin
Free (FT);
end AFCB_Free;
-----------
-- Close --
-----------
procedure Close (File : in out File_Type) is
begin
FIO.Close (AP (File)'Unrestricted_Access);
end Close;
---------
-- Col --
---------
-- Note: we assume that it is impossible in practice for the column
-- to exceed the value of Count'Last, i.e. no check is required for
-- overflow raising layout error.
function Col (File : File_Type) return Positive_Count is
begin
FIO.Check_File_Open (AP (File));
return File.Col;
end Col;
function Col return Positive_Count is
begin
return Col (Current_Out);
end Col;
------------
-- Create --
------------
procedure Create
(File : in out File_Type;
Mode : File_Mode := Out_File;
Name : String := "";
Form : String := "")
is
Dummy_File_Control_Block : Wide_Wide_Text_AFCB;
pragma Warnings (Off, Dummy_File_Control_Block);
-- Yes, we know this is never assigned a value, only the tag
-- is used for dispatching purposes, so that's expected.
begin
FIO.Open (File_Ptr => AP (File),
Dummy_FCB => Dummy_File_Control_Block,
Mode => To_FCB (Mode),
Name => Name,
Form => Form,
Amethod => 'W',
Creat => True,
Text => True);
File.Self := File;
Set_WCEM (File);
end Create;
-------------------
-- Current_Error --
-------------------
function Current_Error return File_Type is
begin
return Current_Err;
end Current_Error;
function Current_Error return File_Access is
begin
return Current_Err.Self'Access;
end Current_Error;
-------------------
-- Current_Input --
-------------------
function Current_Input return File_Type is
begin
return Current_In;
end Current_Input;
function Current_Input return File_Access is
begin
return Current_In.Self'Access;
end Current_Input;
--------------------
-- Current_Output --
--------------------
function Current_Output return File_Type is
begin
return Current_Out;
end Current_Output;
function Current_Output return File_Access is
begin
return Current_Out.Self'Access;
end Current_Output;
------------
-- Delete --
------------
procedure Delete (File : in out File_Type) is
begin
FIO.Delete (AP (File)'Unrestricted_Access);
end Delete;
-----------------
-- End_Of_File --
-----------------
function End_Of_File (File : File_Type) return Boolean is
ch : int;
begin
FIO.Check_Read_Status (AP (File));
if File.Before_Wide_Wide_Character then
return False;
elsif File.Before_LM then
if File.Before_LM_PM then
return Nextc (File) = EOF;
end if;
else
ch := Getc (File);
if ch = EOF then
return True;
elsif ch /= LM then
Ungetc (ch, File);
return False;
else -- ch = LM
File.Before_LM := True;
end if;
end if;
-- Here we are just past the line mark with Before_LM set so that we
-- do not have to try to back up past the LM, thus avoiding the need
-- to back up more than one character.
ch := Getc (File);
if ch = EOF then
return True;
elsif ch = PM and then File.Is_Regular_File then
File.Before_LM_PM := True;
return Nextc (File) = EOF;
-- Here if neither EOF nor PM followed end of line
else
Ungetc (ch, File);
return False;
end if;
end End_Of_File;
function End_Of_File return Boolean is
begin
return End_Of_File (Current_In);
end End_Of_File;
-----------------
-- End_Of_Line --
-----------------
function End_Of_Line (File : File_Type) return Boolean is
ch : int;
begin
FIO.Check_Read_Status (AP (File));
if File.Before_Wide_Wide_Character then
return False;
elsif File.Before_LM then
return True;
else
ch := Getc (File);
if ch = EOF then
return True;
else
Ungetc (ch, File);
return (ch = LM);
end if;
end if;
end End_Of_Line;
function End_Of_Line return Boolean is
begin
return End_Of_Line (Current_In);
end End_Of_Line;
-----------------
-- End_Of_Page --
-----------------
function End_Of_Page (File : File_Type) return Boolean is
ch : int;
begin
FIO.Check_Read_Status (AP (File));
if not File.Is_Regular_File then
return False;
elsif File.Before_Wide_Wide_Character then
return False;
elsif File.Before_LM then
if File.Before_LM_PM then
return True;
end if;
else
ch := Getc (File);
if ch = EOF then
return True;
elsif ch /= LM then
Ungetc (ch, File);
return False;
else -- ch = LM
File.Before_LM := True;
end if;
end if;
-- Here we are just past the line mark with Before_LM set so that we
-- do not have to try to back up past the LM, thus avoiding the need
-- to back up more than one character.
ch := Nextc (File);
return ch = PM or else ch = EOF;
end End_Of_Page;
function End_Of_Page return Boolean is
begin
return End_Of_Page (Current_In);
end End_Of_Page;
-----------
-- Flush --
-----------
procedure Flush (File : File_Type) is
begin
FIO.Flush (AP (File));
end Flush;
procedure Flush is
begin
Flush (Current_Out);
end Flush;
----------
-- Form --
----------
function Form (File : File_Type) return String is
begin
return FIO.Form (AP (File));
end Form;
---------
-- Get --
---------
procedure Get
(File : File_Type;
Item : out Wide_Wide_Character)
is
C : Character;
begin
FIO.Check_Read_Status (AP (File));
if File.Before_Wide_Wide_Character then
File.Before_Wide_Wide_Character := False;
Item := File.Saved_Wide_Wide_Character;
-- Ada.Text_IO checks Before_LM_PM here, shouldn't we do the same???
else
Get_Character (File, C);
Item := Get_Wide_Wide_Char (C, File);
end if;
end Get;
procedure Get (Item : out Wide_Wide_Character) is
begin
Get (Current_In, Item);
end Get;
procedure Get
(File : File_Type;
Item : out Wide_Wide_String)
is
begin
for J in Item'Range loop
Get (File, Item (J));
end loop;
end Get;
procedure Get (Item : out Wide_Wide_String) is
begin
Get (Current_In, Item);
end Get;
-------------------
-- Get_Character --
-------------------
procedure Get_Character
(File : File_Type;
Item : out Character)
is
ch : int;
begin
if File.Before_LM then
File.Before_LM := False;
File.Before_LM_PM := False;
File.Col := 1;
if File.Before_LM_PM then
File.Line := 1;
File.Page := File.Page + 1;
File.Before_LM_PM := False;
else
File.Line := File.Line + 1;
end if;
end if;
loop
ch := Getc (File);
if ch = EOF then
raise End_Error;
elsif ch = LM then
File.Line := File.Line + 1;
File.Col := 1;
elsif ch = PM and then File.Is_Regular_File then
File.Page := File.Page + 1;
File.Line := 1;
else
Item := Character'Val (ch);
File.Col := File.Col + 1;
return;
end if;
end loop;
end Get_Character;
-------------------
-- Get_Immediate --
-------------------
procedure Get_Immediate
(File : File_Type;
Item : out Wide_Wide_Character)
is
ch : int;
begin
FIO.Check_Read_Status (AP (File));
if File.Before_Wide_Wide_Character then
File.Before_Wide_Wide_Character := False;
Item := File.Saved_Wide_Wide_Character;
elsif File.Before_LM then
File.Before_LM := False;
File.Before_LM_PM := False;
Item := Wide_Wide_Character'Val (LM);
else
ch := Getc_Immed (File);
if ch = EOF then
raise End_Error;
else
Item := Get_Wide_Wide_Char_Immed (Character'Val (ch), File);
end if;
end if;
end Get_Immediate;
procedure Get_Immediate
(Item : out Wide_Wide_Character)
is
begin
Get_Immediate (Current_In, Item);
end Get_Immediate;
procedure Get_Immediate
(File : File_Type;
Item : out Wide_Wide_Character;
Available : out Boolean)
is
ch : int;
begin
FIO.Check_Read_Status (AP (File));
Available := True;
if File.Before_Wide_Wide_Character then
File.Before_Wide_Wide_Character := False;
Item := File.Saved_Wide_Wide_Character;
elsif File.Before_LM then
File.Before_LM := False;
File.Before_LM_PM := False;
Item := Wide_Wide_Character'Val (LM);
else
-- Shouldn't we use getc_immediate_nowait here, like Text_IO???
ch := Getc_Immed (File);
if ch = EOF then
raise End_Error;
else
Item := Get_Wide_Wide_Char_Immed (Character'Val (ch), File);
end if;
end if;
end Get_Immediate;
procedure Get_Immediate
(Item : out Wide_Wide_Character;
Available : out Boolean)
is
begin
Get_Immediate (Current_In, Item, Available);
end Get_Immediate;
--------------
-- Get_Line --
--------------
procedure Get_Line
(File : File_Type;
Item : out Wide_Wide_String;
Last : out Natural)
is
begin
FIO.Check_Read_Status (AP (File));
Last := Item'First - 1;
-- Immediate exit for null string, this is a case in which we do not
-- need to test for end of file and we do not skip a line mark under
-- any circumstances.
if Last >= Item'Last then
return;
end if;
-- Here we have at least one character, if we are immediately before
-- a line mark, then we will just skip past it storing no characters.
if File.Before_LM then
File.Before_LM := False;
File.Before_LM_PM := False;
-- Otherwise we need to read some characters
else
-- If we are at the end of file now, it means we are trying to
-- skip a file terminator and we raise End_Error (RM A.10.7(20))
if Nextc (File) = EOF then
raise End_Error;
end if;
-- Loop through characters in string
loop
-- Exit the loop if read is terminated by encountering line mark
-- Note that the use of Skip_Line here ensures we properly deal
-- with setting the page and line numbers.
if End_Of_Line (File) then
Skip_Line (File);
return;
end if;
-- Otherwise store the character, note that we know that ch is
-- something other than LM or EOF. It could possibly be a page
-- mark if there is a stray page mark in the middle of a line,
-- but this is not an official page mark in any case, since
-- official page marks can only follow a line mark. The whole
-- page business is pretty much nonsense anyway, so we do not
-- want to waste time trying to make sense out of non-standard
-- page marks in the file. This means that the behavior of
-- Get_Line is different from repeated Get of a character, but
-- that's too bad. We only promise that page numbers etc make
-- sense if the file is formatted in a standard manner.
-- Note: we do not adjust the column number because it is quicker
-- to adjust it once at the end of the operation than incrementing
-- it each time around the loop.
Last := Last + 1;
Get (File, Item (Last));
-- All done if the string is full, this is the case in which
-- we do not skip the following line mark. We need to adjust
-- the column number in this case.
if Last = Item'Last then
File.Col := File.Col + Count (Item'Length);
return;
end if;
-- Exit from the loop if we are at the end of file. This happens
-- if we have a last line that is not terminated with a line mark.
-- In this case we consider that there is an implied line mark;
-- this is a non-standard file, but we will treat it nicely.
exit when Nextc (File) = EOF;
end loop;
end if;
end Get_Line;
procedure Get_Line
(Item : out Wide_Wide_String;
Last : out Natural)
is
begin
Get_Line (Current_In, Item, Last);
end Get_Line;
function Get_Line (File : File_Type) return Wide_Wide_String is
Buffer : Wide_Wide_String (1 .. 500);
Last : Natural;
function Get_Rest (S : Wide_Wide_String) return Wide_Wide_String;
-- This is a recursive function that reads the rest of the line and
-- returns it. S is the part read so far.
--------------
-- Get_Rest --
--------------
function Get_Rest (S : Wide_Wide_String) return Wide_Wide_String is
-- Each time we allocate a buffer the same size as what we have
-- read so far. This limits us to a logarithmic number of calls
-- to Get_Rest and also ensures only a linear use of stack space.
Buffer : Wide_Wide_String (1 .. S'Length);
Last : Natural;
begin
Get_Line (File, Buffer, Last);
declare
R : constant Wide_Wide_String := S & Buffer (1 .. Last);
begin
if Last < Buffer'Last then
return R;
else
return Get_Rest (R);
end if;
end;
end Get_Rest;
-- Start of processing for Get_Line
begin
Get_Line (File, Buffer, Last);
if Last < Buffer'Last then
return Buffer (1 .. Last);
else
return Get_Rest (Buffer (1 .. Last));
end if;
end Get_Line;
function Get_Line return Wide_Wide_String is
begin
return Get_Line (Current_In);
end Get_Line;
------------------------
-- Get_Wide_Wide_Char --
------------------------
function Get_Wide_Wide_Char
(C : Character;
File : File_Type) return Wide_Wide_Character
is
function In_Char return Character;
-- Function used to obtain additional characters it the wide character
-- sequence is more than one character long.
function WC_In is new Char_Sequence_To_UTF_32 (In_Char);
-------------
-- In_Char --
-------------
function In_Char return Character is
ch : constant Integer := Getc (File);
begin
if ch = EOF then
raise End_Error;
else
return Character'Val (ch);
end if;
end In_Char;
-- Start of processing for Get_Wide_Wide_Char
begin
FIO.Check_Read_Status (AP (File));
return Wide_Wide_Character'Val (WC_In (C, File.WC_Method));
end Get_Wide_Wide_Char;
------------------------------
-- Get_Wide_Wide_Char_Immed --
------------------------------
function Get_Wide_Wide_Char_Immed
(C : Character;
File : File_Type) return Wide_Wide_Character
is
function In_Char return Character;
-- Function used to obtain additional characters it the wide character
-- sequence is more than one character long.
function WC_In is new Char_Sequence_To_UTF_32 (In_Char);
-------------
-- In_Char --
-------------
function In_Char return Character is
ch : constant Integer := Getc_Immed (File);
begin
if ch = EOF then
raise End_Error;
else
return Character'Val (ch);
end if;
end In_Char;
-- Start of processing for Get_Wide_Wide_Char_Immed
begin
FIO.Check_Read_Status (AP (File));
return Wide_Wide_Character'Val (WC_In (C, File.WC_Method));
end Get_Wide_Wide_Char_Immed;
----------
-- Getc --
----------
function Getc (File : File_Type) return int is
ch : int;
begin
ch := fgetc (File.Stream);
if ch = EOF and then ferror (File.Stream) /= 0 then
raise Device_Error;
else
return ch;
end if;
end Getc;
----------------
-- Getc_Immed --
----------------
function Getc_Immed (File : File_Type) return int is
ch : int;
end_of_file : int;
procedure getc_immediate
(stream : FILEs; ch : out int; end_of_file : out int);
pragma Import (C, getc_immediate, "getc_immediate");
begin
FIO.Check_Read_Status (AP (File));
if File.Before_LM then
File.Before_LM := False;
File.Before_LM_PM := False;
ch := LM;
else
getc_immediate (File.Stream, ch, end_of_file);
if ferror (File.Stream) /= 0 then
raise Device_Error;
elsif end_of_file /= 0 then
return EOF;
end if;
end if;
return ch;
end Getc_Immed;
-------------------------------
-- Initialize_Standard_Files --
-------------------------------
procedure Initialize_Standard_Files is
begin
Standard_Err.Stream := stderr;
Standard_Err.Name := Err_Name'Access;
Standard_Err.Form := Null_Str'Unrestricted_Access;
Standard_Err.Mode := FCB.Out_File;
Standard_Err.Is_Regular_File := is_regular_file (fileno (stderr)) /= 0;
Standard_Err.Is_Temporary_File := False;
Standard_Err.Is_System_File := True;
Standard_Err.Text_Encoding := Default_Text;
Standard_Err.Access_Method := 'T';
Standard_Err.Self := Standard_Err;
Standard_Err.WC_Method := Default_WCEM;
Standard_In.Stream := stdin;
Standard_In.Name := In_Name'Access;
Standard_In.Form := Null_Str'Unrestricted_Access;
Standard_In.Mode := FCB.In_File;
Standard_In.Is_Regular_File := is_regular_file (fileno (stdin)) /= 0;
Standard_In.Is_Temporary_File := False;
Standard_In.Is_System_File := True;
Standard_In.Text_Encoding := Default_Text;
Standard_In.Access_Method := 'T';
Standard_In.Self := Standard_In;
Standard_In.WC_Method := Default_WCEM;
Standard_Out.Stream := stdout;
Standard_Out.Name := Out_Name'Access;
Standard_Out.Form := Null_Str'Unrestricted_Access;
Standard_Out.Mode := FCB.Out_File;
Standard_Out.Is_Regular_File := is_regular_file (fileno (stdout)) /= 0;
Standard_Out.Is_Temporary_File := False;
Standard_Out.Is_System_File := True;
Standard_Out.Text_Encoding := Default_Text;
Standard_Out.Access_Method := 'T';
Standard_Out.Self := Standard_Out;
Standard_Out.WC_Method := Default_WCEM;
FIO.Make_Unbuffered (AP (Standard_Out));
FIO.Make_Unbuffered (AP (Standard_Err));
end Initialize_Standard_Files;
-------------
-- Is_Open --
-------------
function Is_Open (File : File_Type) return Boolean is
begin
return FIO.Is_Open (AP (File));
end Is_Open;
----------
-- Line --
----------
-- Note: we assume that it is impossible in practice for the line
-- to exceed the value of Count'Last, i.e. no check is required for
-- overflow raising layout error.
function Line (File : File_Type) return Positive_Count is
begin
FIO.Check_File_Open (AP (File));
return File.Line;
end Line;
function Line return Positive_Count is
begin
return Line (Current_Out);
end Line;
-----------------
-- Line_Length --
-----------------
function Line_Length (File : File_Type) return Count is
begin
FIO.Check_Write_Status (AP (File));
return File.Line_Length;
end Line_Length;
function Line_Length return Count is
begin
return Line_Length (Current_Out);
end Line_Length;
----------------
-- Look_Ahead --
----------------
procedure Look_Ahead
(File : File_Type;
Item : out Wide_Wide_Character;
End_Of_Line : out Boolean)
is
ch : int;
-- Start of processing for Look_Ahead
begin
FIO.Check_Read_Status (AP (File));
-- If we are logically before a line mark, we can return immediately
if File.Before_LM then
End_Of_Line := True;
Item := Wide_Wide_Character'Val (0);
-- If we are before a wide character, just return it (this can happen
-- if there are two calls to Look_Ahead in a row).
elsif File.Before_Wide_Wide_Character then
End_Of_Line := False;
Item := File.Saved_Wide_Wide_Character;
-- otherwise we must read a character from the input stream
else
ch := Getc (File);
if ch = LM
or else ch = EOF
or else (ch = EOF and then File.Is_Regular_File)
then
End_Of_Line := True;
Ungetc (ch, File);
Item := Wide_Wide_Character'Val (0);
-- Case where character obtained does not represent the start of an
-- encoded sequence so it stands for itself and we can unget it with
-- no difficulty.
elsif not Is_Start_Of_Encoding
(Character'Val (ch), File.WC_Method)
then
End_Of_Line := False;
Ungetc (ch, File);
Item := Wide_Wide_Character'Val (ch);
-- For the start of an encoding, we read the character using the
-- Get_Wide_Wide_Char routine. It will occupy more than one byte so
-- we can't put it back with ungetc. Instead we save it in the
-- control block, setting a flag that everyone interested in reading
-- characters must test before reading the stream.
else
Item := Get_Wide_Wide_Char (Character'Val (ch), File);
End_Of_Line := False;
File.Saved_Wide_Wide_Character := Item;
File.Before_Wide_Wide_Character := True;
end if;
end if;
end Look_Ahead;
procedure Look_Ahead
(Item : out Wide_Wide_Character;
End_Of_Line : out Boolean)
is
begin
Look_Ahead (Current_In, Item, End_Of_Line);
end Look_Ahead;
----------
-- Mode --
----------
function Mode (File : File_Type) return File_Mode is
begin
return To_TIO (FIO.Mode (AP (File)));
end Mode;
----------
-- Name --
----------
function Name (File : File_Type) return String is
begin
return FIO.Name (AP (File));
end Name;
--------------
-- New_Line --
--------------
procedure New_Line
(File : File_Type;
Spacing : Positive_Count := 1)
is
begin
-- Raise Constraint_Error if out of range value. The reason for this
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
if not Spacing'Valid then
raise Constraint_Error;
end if;
FIO.Check_Write_Status (AP (File));
for K in 1 .. Spacing loop
Putc (LM, File);
File.Line := File.Line + 1;
if File.Page_Length /= 0
and then File.Line > File.Page_Length
then
Putc (PM, File);
File.Line := 1;
File.Page := File.Page + 1;
end if;
end loop;
File.Col := 1;
end New_Line;
procedure New_Line (Spacing : Positive_Count := 1) is
begin
New_Line (Current_Out, Spacing);
end New_Line;
--------------
-- New_Page --
--------------
procedure New_Page (File : File_Type) is
begin
FIO.Check_Write_Status (AP (File));
if File.Col /= 1 or else File.Line = 1 then
Putc (LM, File);
end if;
Putc (PM, File);
File.Page := File.Page + 1;
File.Line := 1;
File.Col := 1;
end New_Page;
procedure New_Page is
begin
New_Page (Current_Out);
end New_Page;
-----------
-- Nextc --
-----------
function Nextc (File : File_Type) return int is
ch : int;
begin
ch := fgetc (File.Stream);
if ch = EOF then
if ferror (File.Stream) /= 0 then
raise Device_Error;
end if;
else
if ungetc (ch, File.Stream) = EOF then
raise Device_Error;
end if;
end if;
return ch;
end Nextc;
----------
-- Open --
----------
procedure Open
(File : in out File_Type;
Mode : File_Mode;
Name : String;
Form : String := "")
is
Dummy_File_Control_Block : Wide_Wide_Text_AFCB;
pragma Warnings (Off, Dummy_File_Control_Block);
-- Yes, we know this is never assigned a value, only the tag
-- is used for dispatching purposes, so that's expected.
begin
FIO.Open (File_Ptr => AP (File),
Dummy_FCB => Dummy_File_Control_Block,
Mode => To_FCB (Mode),
Name => Name,
Form => Form,
Amethod => 'W',
Creat => False,
Text => True);
File.Self := File;
Set_WCEM (File);
end Open;
----------
-- Page --
----------
-- Note: we assume that it is impossible in practice for the page
-- to exceed the value of Count'Last, i.e. no check is required for
-- overflow raising layout error.
function Page (File : File_Type) return Positive_Count is
begin
FIO.Check_File_Open (AP (File));
return File.Page;
end Page;
function Page return Positive_Count is
begin
return Page (Current_Out);
end Page;
-----------------
-- Page_Length --
-----------------
function Page_Length (File : File_Type) return Count is
begin
FIO.Check_Write_Status (AP (File));
return File.Page_Length;
end Page_Length;
function Page_Length return Count is
begin
return Page_Length (Current_Out);
end Page_Length;
---------
-- Put --
---------
procedure Put
(File : File_Type;
Item : Wide_Wide_Character)
is
procedure Out_Char (C : Character);
-- Procedure to output one character of a wide character sequence
procedure WC_Out is new UTF_32_To_Char_Sequence (Out_Char);
--------------
-- Out_Char --
--------------
procedure Out_Char (C : Character) is
begin
Putc (Character'Pos (C), File);
end Out_Char;
-- Start of processing for Put
begin
FIO.Check_Write_Status (AP (File));
WC_Out (Wide_Wide_Character'Pos (Item), File.WC_Method);
File.Col := File.Col + 1;
end Put;
procedure Put (Item : Wide_Wide_Character) is
begin
Put (Current_Out, Item);
end Put;
---------
-- Put --
---------
procedure Put
(File : File_Type;
Item : Wide_Wide_String)
is
begin
for J in Item'Range loop
Put (File, Item (J));
end loop;
end Put;
procedure Put (Item : Wide_Wide_String) is
begin
Put (Current_Out, Item);
end Put;
--------------
-- Put_Line --
--------------
procedure Put_Line
(File : File_Type;
Item : Wide_Wide_String)
is
begin
Put (File, Item);
New_Line (File);
end Put_Line;
procedure Put_Line (Item : Wide_Wide_String) is
begin
Put (Current_Out, Item);
New_Line (Current_Out);
end Put_Line;
----------
-- Putc --
----------
procedure Putc (ch : int; File : File_Type) is
begin
if fputc (ch, File.Stream) = EOF then
raise Device_Error;
end if;
end Putc;
----------
-- Read --
----------
-- This is the primitive Stream Read routine, used when a Text_IO file
-- is treated directly as a stream using Text_IO.Streams.Stream.
procedure Read
(File : in out Wide_Wide_Text_AFCB;
Item : out Stream_Element_Array;
Last : out Stream_Element_Offset)
is
Discard_ch : int;
pragma Unreferenced (Discard_ch);
begin
-- Need to deal with Before_Wide_Wide_Character ???
if File.Mode /= FCB.In_File then
raise Mode_Error;
end if;
-- Deal with case where our logical and physical position do not match
-- because of being after an LM or LM-PM sequence when in fact we are
-- logically positioned before it.
if File.Before_LM then
-- If we are before a PM, then it is possible for a stream read
-- to leave us after the LM and before the PM, which is a bit
-- odd. The easiest way to deal with this is to unget the PM,
-- so we are indeed positioned between the characters. This way
-- further stream read operations will work correctly, and the
-- effect on text processing is a little weird, but what can
-- be expected if stream and text input are mixed this way?
if File.Before_LM_PM then
Discard_ch := ungetc (PM, File.Stream);
File.Before_LM_PM := False;
end if;
File.Before_LM := False;
Item (Item'First) := Stream_Element (Character'Pos (ASCII.LF));
if Item'Length = 1 then
Last := Item'Last;
else
Last :=
Item'First +
Stream_Element_Offset
(fread (buffer => Item'Address,
index => size_t (Item'First + 1),
size => 1,
count => Item'Length - 1,
stream => File.Stream));
end if;
return;
end if;
-- Now we do the read. Since this is a text file, it is normally in
-- text mode, but stream data must be read in binary mode, so we
-- temporarily set binary mode for the read, resetting it after.
-- These calls have no effect in a system (like Unix) where there is
-- no distinction between text and binary files.
set_binary_mode (fileno (File.Stream));
Last :=
Item'First +
Stream_Element_Offset
(fread (Item'Address, 1, Item'Length, File.Stream)) - 1;
if Last < Item'Last then
if ferror (File.Stream) /= 0 then
raise Device_Error;
end if;
end if;
set_text_mode (fileno (File.Stream));
end Read;
-----------
-- Reset --
-----------
procedure Reset
(File : in out File_Type;
Mode : File_Mode)
is
begin
-- Don't allow change of mode for current file (RM A.10.2(5))
if (File = Current_In or else
File = Current_Out or else
File = Current_Error)
and then To_FCB (Mode) /= File.Mode
then
raise Mode_Error;
end if;
Terminate_Line (File);
FIO.Reset (AP (File)'Unrestricted_Access, To_FCB (Mode));
File.Page := 1;
File.Line := 1;
File.Col := 1;
File.Line_Length := 0;
File.Page_Length := 0;
File.Before_LM := False;
File.Before_LM_PM := False;
end Reset;
procedure Reset (File : in out File_Type) is
begin
Terminate_Line (File);
FIO.Reset (AP (File)'Unrestricted_Access);
File.Page := 1;
File.Line := 1;
File.Col := 1;
File.Line_Length := 0;
File.Page_Length := 0;
File.Before_LM := False;
File.Before_LM_PM := False;
end Reset;
-------------
-- Set_Col --
-------------
procedure Set_Col
(File : File_Type;
To : Positive_Count)
is
ch : int;
begin
-- Raise Constraint_Error if out of range value. The reason for this
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
if not To'Valid then
raise Constraint_Error;
end if;
FIO.Check_File_Open (AP (File));
if To = File.Col then
return;
end if;
if Mode (File) >= Out_File then
if File.Line_Length /= 0 and then To > File.Line_Length then
raise Layout_Error;
end if;
if To < File.Col then
New_Line (File);
end if;
while File.Col < To loop
Put (File, ' ');
end loop;
else
loop
ch := Getc (File);
if ch = EOF then
raise End_Error;
elsif ch = LM then
File.Line := File.Line + 1;
File.Col := 1;
elsif ch = PM and then File.Is_Regular_File then
File.Page := File.Page + 1;
File.Line := 1;
File.Col := 1;
elsif To = File.Col then
Ungetc (ch, File);
return;
else
File.Col := File.Col + 1;
end if;
end loop;
end if;
end Set_Col;
procedure Set_Col (To : Positive_Count) is
begin
Set_Col (Current_Out, To);
end Set_Col;
---------------
-- Set_Error --
---------------
procedure Set_Error (File : File_Type) is
begin
FIO.Check_Write_Status (AP (File));
Current_Err := File;
end Set_Error;
---------------
-- Set_Input --
---------------
procedure Set_Input (File : File_Type) is
begin
FIO.Check_Read_Status (AP (File));
Current_In := File;
end Set_Input;
--------------
-- Set_Line --
--------------
procedure Set_Line
(File : File_Type;
To : Positive_Count)
is
begin
-- Raise Constraint_Error if out of range value. The reason for this
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
if not To'Valid then
raise Constraint_Error;
end if;
FIO.Check_File_Open (AP (File));
if To = File.Line then
return;
end if;
if Mode (File) >= Out_File then
if File.Page_Length /= 0 and then To > File.Page_Length then
raise Layout_Error;
end if;
if To < File.Line then
New_Page (File);
end if;
while File.Line < To loop
New_Line (File);
end loop;
else
while To /= File.Line loop
Skip_Line (File);
end loop;
end if;
end Set_Line;
procedure Set_Line (To : Positive_Count) is
begin
Set_Line (Current_Out, To);
end Set_Line;
---------------------
-- Set_Line_Length --
---------------------
procedure Set_Line_Length (File : File_Type; To : Count) is
begin
-- Raise Constraint_Error if out of range value. The reason for this
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
if not To'Valid then
raise Constraint_Error;
end if;
FIO.Check_Write_Status (AP (File));
File.Line_Length := To;
end Set_Line_Length;
procedure Set_Line_Length (To : Count) is
begin
Set_Line_Length (Current_Out, To);
end Set_Line_Length;
----------------
-- Set_Output --
----------------
procedure Set_Output (File : File_Type) is
begin
FIO.Check_Write_Status (AP (File));
Current_Out := File;
end Set_Output;
---------------------
-- Set_Page_Length --
---------------------
procedure Set_Page_Length (File : File_Type; To : Count) is
begin
-- Raise Constraint_Error if out of range value. The reason for this
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
if not To'Valid then
raise Constraint_Error;
end if;
FIO.Check_Write_Status (AP (File));
File.Page_Length := To;
end Set_Page_Length;
procedure Set_Page_Length (To : Count) is
begin
Set_Page_Length (Current_Out, To);
end Set_Page_Length;
--------------
-- Set_WCEM --
--------------
procedure Set_WCEM (File : in out File_Type) is
Start : Natural;
Stop : Natural;
begin
FIO.Form_Parameter (File.Form.all, "wcem", Start, Stop);
if Start = 0 then
File.WC_Method := Default_WCEM;
else
if Stop = Start then
for J in WC_Encoding_Letters'Range loop
if File.Form (Start) = WC_Encoding_Letters (J) then
File.WC_Method := J;
return;
end if;
end loop;
end if;
Close (File);
raise Use_Error with "invalid WCEM form parameter";
end if;
end Set_WCEM;
---------------
-- Skip_Line --
---------------
procedure Skip_Line
(File : File_Type;
Spacing : Positive_Count := 1)
is
ch : int;
begin
-- Raise Constraint_Error if out of range value. The reason for this
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
if not Spacing'Valid then
raise Constraint_Error;
end if;
FIO.Check_Read_Status (AP (File));
for L in 1 .. Spacing loop
if File.Before_LM then
File.Before_LM := False;
File.Before_LM_PM := False;
else
ch := Getc (File);
-- If at end of file now, then immediately raise End_Error. Note
-- that we can never be positioned between a line mark and a page
-- mark, so if we are at the end of file, we cannot logically be
-- before the implicit page mark that is at the end of the file.
-- For the same reason, we do not need an explicit check for a
-- page mark. If there is a FF in the middle of a line, the file
-- is not in canonical format and we do not care about the page
-- numbers for files other than ones in canonical format.
if ch = EOF then
raise End_Error;
end if;
-- If not at end of file, then loop till we get to an LM or EOF.
-- The latter case happens only in non-canonical files where the
-- last line is not terminated by LM, but we don't want to blow
-- up for such files, so we assume an implicit LM in this case.
loop
exit when ch = LM or else ch = EOF;
ch := Getc (File);
end loop;
end if;
-- We have got past a line mark, now, for a regular file only,
-- see if a page mark immediately follows this line mark and
-- if so, skip past the page mark as well. We do not do this
-- for non-regular files, since it would cause an undesirable
-- wait for an additional character.
File.Col := 1;
File.Line := File.Line + 1;
if File.Before_LM_PM then
File.Page := File.Page + 1;
File.Line := 1;
File.Before_LM_PM := False;
elsif File.Is_Regular_File then
ch := Getc (File);
-- Page mark can be explicit, or implied at the end of the file
if (ch = PM or else ch = EOF)
and then File.Is_Regular_File
then
File.Page := File.Page + 1;
File.Line := 1;
else
Ungetc (ch, File);
end if;
end if;
end loop;
File.Before_Wide_Wide_Character := False;
end Skip_Line;
procedure Skip_Line (Spacing : Positive_Count := 1) is
begin
Skip_Line (Current_In, Spacing);
end Skip_Line;
---------------
-- Skip_Page --
---------------
procedure Skip_Page (File : File_Type) is
ch : int;
begin
FIO.Check_Read_Status (AP (File));
-- If at page mark already, just skip it
if File.Before_LM_PM then
File.Before_LM := False;
File.Before_LM_PM := False;
File.Page := File.Page + 1;
File.Line := 1;
File.Col := 1;
return;
end if;
-- This is a bit tricky, if we are logically before an LM then
-- it is not an error if we are at an end of file now, since we
-- are not really at it.
if File.Before_LM then
File.Before_LM := False;
File.Before_LM_PM := False;
ch := Getc (File);
-- Otherwise we do raise End_Error if we are at the end of file now
else
ch := Getc (File);
if ch = EOF then
raise End_Error;
end if;
end if;
-- Now we can just rumble along to the next page mark, or to the
-- end of file, if that comes first. The latter case happens when
-- the page mark is implied at the end of file.
loop
exit when ch = EOF
or else (ch = PM and then File.Is_Regular_File);
ch := Getc (File);
end loop;
File.Page := File.Page + 1;
File.Line := 1;
File.Col := 1;
File.Before_Wide_Wide_Character := False;
end Skip_Page;
procedure Skip_Page is
begin
Skip_Page (Current_In);
end Skip_Page;
--------------------
-- Standard_Error --
--------------------
function Standard_Error return File_Type is
begin
return Standard_Err;
end Standard_Error;
function Standard_Error return File_Access is
begin
return Standard_Err'Access;
end Standard_Error;
--------------------
-- Standard_Input --
--------------------
function Standard_Input return File_Type is
begin
return Standard_In;
end Standard_Input;
function Standard_Input return File_Access is
begin
return Standard_In'Access;
end Standard_Input;
---------------------
-- Standard_Output --
---------------------
function Standard_Output return File_Type is
begin
return Standard_Out;
end Standard_Output;
function Standard_Output return File_Access is
begin
return Standard_Out'Access;
end Standard_Output;
--------------------
-- Terminate_Line --
--------------------
procedure Terminate_Line (File : File_Type) is
begin
FIO.Check_File_Open (AP (File));
-- For file other than In_File, test for needing to terminate last line
if Mode (File) /= In_File then
-- If not at start of line definition need new line
if File.Col /= 1 then
New_Line (File);
-- For files other than standard error and standard output, we
-- make sure that an empty file has a single line feed, so that
-- it is properly formatted. We avoid this for the standard files
-- because it is too much of a nuisance to have these odd line
-- feeds when nothing has been written to the file.
elsif (File /= Standard_Err and then File /= Standard_Out)
and then (File.Line = 1 and then File.Page = 1)
then
New_Line (File);
end if;
end if;
end Terminate_Line;
------------
-- Ungetc --
------------
procedure Ungetc (ch : int; File : File_Type) is
begin
if ch /= EOF then
if ungetc (ch, File.Stream) = EOF then
raise Device_Error;
end if;
end if;
end Ungetc;
-----------
-- Write --
-----------
-- This is the primitive Stream Write routine, used when a Text_IO file
-- is treated directly as a stream using Text_IO.Streams.Stream.
procedure Write
(File : in out Wide_Wide_Text_AFCB;
Item : Stream_Element_Array)
is
pragma Warnings (Off, File);
-- Because in this implementation we don't need IN OUT, we only read
Siz : constant size_t := Item'Length;
begin
if File.Mode = FCB.In_File then
raise Mode_Error;
end if;
-- Now we do the write. Since this is a text file, it is normally in
-- text mode, but stream data must be written in binary mode, so we
-- temporarily set binary mode for the write, resetting it after.
-- These calls have no effect in a system (like Unix) where there is
-- no distinction between text and binary files.
set_binary_mode (fileno (File.Stream));
if fwrite (Item'Address, 1, Siz, File.Stream) /= Siz then
raise Device_Error;
end if;
set_text_mode (fileno (File.Stream));
end Write;
begin
-- Initialize Standard Files
for J in WC_Encoding_Method loop
if WC_Encoding = WC_Encoding_Letters (J) then
Default_WCEM := J;
end if;
end loop;
Initialize_Standard_Files;
FIO.Chain_File (AP (Standard_In));
FIO.Chain_File (AP (Standard_Out));
FIO.Chain_File (AP (Standard_Err));
end Ada.Wide_Wide_Text_IO;
| 27.224742 | 79 | 0.558051 |
0e041aa79e3671b80e9aa40c86838818f7d0ad8b | 7,368 | adb | Ada | common/cbor_codec.adb | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | common/cbor_codec.adb | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | common/cbor_codec.adb | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | with System;
package body CBOR_Codec is
subtype Additional_Value_Type is Integer range 0 .. 31;
Additional_8Bit : constant Additional_Value_Type := 24;
Additional_16Bit : constant Additional_Value_Type := 25;
Additional_32Bit : constant Additional_Value_Type := 26;
Additional_64Bit : constant Additional_Value_Type := 27;
type Encoding_Type (As_Value : Boolean := False) is
record
case As_Value is
when True =>
Val : Unsigned_8;
when False =>
Major : Major_Type;
Value : Additional_Value_Type;
end case;
end record
with Unchecked_Union, Size => 8, Bit_Order => System.Low_Order_First;
for Encoding_Type use
record
Major at 0 range 5 .. 7;
Value at 0 range 0 .. 4;
end record;
procedure Encode_Additional_Data (Value : Integer; Major : Major_Type) is
Encoding_Byte : Encoding_Type;
begin
Encoding_Byte.Major := Major;
if Value <= Additional_8Bit - 1 then
Encoding_Byte.Value := Value;
Write (Encoding_Byte.Val);
elsif Value <= Integer (Unsigned_8'Last) then
Encoding_Byte.Value := Additional_8Bit;
Write (Encoding_Byte.Val);
Write (Unsigned_8 (Value));
elsif Value <= Integer (Unsigned_16'Last) then
Encoding_Byte.Value := Additional_16Bit;
Write (Encoding_Byte.Val);
Write (Unsigned_8 (Value / 2**8));
Write (Unsigned_8 (Value mod 2**8));
elsif Value <= Integer'Last then
Encoding_Byte.Value := Additional_32Bit;
Write (Encoding_Byte.Val);
Write (Unsigned_8 ((Value / 2**24) mod 2**8));
Write (Unsigned_8 ((Value / 2**16) mod 2**8));
Write (Unsigned_8 ((Value / 2**8) mod 2**8));
Write (Unsigned_8 (Value mod 2**8));
end if;
end Encode_Additional_Data;
procedure Encode_Integer (Value : Integer) is
Major : Major_Type;
Positive_Value : Integer;
begin
if Value >= 0 then
Major := Unsigned_Integer;
Positive_Value := Value;
else
Major := Negative_Integer;
Positive_Value := -1 - Value;
end if;
Encode_Additional_Data (Positive_Value, Major);
end Encode_Integer;
procedure Encode_Byte_String (Value : String) is
begin
Encode_Additional_Data (Value'Length, Byte_String);
for C of Value loop
Write (Character'Pos (C));
end loop;
end Encode_Byte_String;
procedure Encode_UTF8_String (Value : String) is
begin
null;
end Encode_UTF8_String;
procedure Encode_Array (Count : Natural) is
begin
Encode_Additional_Data (Count, Item_Array);
end Encode_Array;
procedure Encode_Map (Count : Natural) is
begin
Encode_Additional_Data (Count, Item_Map);
end Encode_Map;
procedure Encode_Tag (Value : Natural) is
begin
Encode_Additional_Data (Value, Tag);
end Encode_Tag;
procedure Encode_Null is
begin
null;
end Encode_Null;
procedure Encode_False is
begin
null;
end Encode_False;
procedure Encode_True is
begin
null;
end Encode_True;
procedure Encode_Undefined is
begin
null;
end Encode_Undefined;
procedure Encode_Simple_Value (Value : Integer) is
begin
null;
end Encode_Simple_Value;
procedure Encode_Float (Value : Short_Float) is
begin
null;
end Encode_Float;
procedure Encode_Float (Value : Float) is
begin
null;
end Encode_Float;
procedure Encode_Decimal_Fraction (Value : Integer; Mantissa : Integer) is
begin
Encode_Tag (Decimal_Fraction_Tag);
Encode_Array (2);
Encode_Integer (Mantissa);
Encode_Integer (Value);
end Encode_Decimal_Fraction;
function Decode_Additional_Data (Value : out Integer;
Encoding_Byte : Encoding_Type) return Boolean is
Success : Boolean := False;
begin
case Encoding_Byte.Value is
when Additional_8Bit =>
Value := Integer (Read);
return True;
when Additional_16Bit =>
Value := Integer (Read) * 2**8 +
Integer (Read);
return True;
when Additional_32Bit =>
Value := Integer (Read) * 2**24 +
Integer (Read) * 2**16 +
Integer (Read) * 2**8 +
Integer (Read);
return True;
when Additional_64Bit =>
return False;
when others =>
Value := Encoding_Byte.Value;
return True;
end case;
end Decode_Additional_Data;
function Decode_Integer (Value : out Integer) return Boolean is
Encoding_Byte : Encoding_Type;
begin
Encoding_Byte.Val := Read;
if Decode_Additional_Data (Value, Encoding_Byte) then
if Encoding_Byte.Major = Unsigned_Integer then
return True;
elsif Encoding_Byte.Major = Negative_Integer then
Value := -1 - Value;
return True;
end if;
end if;
return False;
end Decode_Integer;
function Decode_Byte_String (Size : out Natural) return Boolean is
Encoding_Byte : Encoding_Type;
begin
Encoding_Byte.Val := Read;
if Encoding_Byte.Major = Byte_String and then
Decode_Additional_Data (Size, Encoding_Byte) then
return True;
else
return False;
end if;
end Decode_Byte_String;
function Decode_UTF8_String return Boolean is
begin
return False;
end Decode_UTF8_String;
function Decode_Array (Count : out Natural) return Boolean is
Encoding_Byte : Encoding_Type;
begin
Encoding_Byte.Val := Read;
if Encoding_Byte.Major = Item_Array and then
Decode_Additional_Data (Count, Encoding_Byte) then
return True;
else
return False;
end if;
end Decode_Array;
function Decode_Map return Boolean is
begin
return False;
end Decode_Map;
function Decode_Tag (Value : out Integer) return Boolean is
Encoding_Byte : Encoding_Type;
begin
Encoding_Byte.Val := Read;
if Encoding_Byte.Major = Tag and then
Decode_Additional_Data (Value, Encoding_Byte) then
return True;
else
return False;
end if;
end Decode_Tag;
function Decode_Null return Boolean is
begin
return False;
end Decode_Null;
function Decode_Boolean return Boolean is
begin
return False;
end Decode_Boolean;
function Decode_Undefined return Boolean is
begin
return False;
end Decode_Undefined;
function Decode_Simple_Value return Boolean is
begin
return False;
end Decode_Simple_Value ;
function Decode_Float return Boolean is
begin
return False;
end Decode_Float ;
function Decode_Decimal_Fraction (Value : out Integer;
Mantissa : out Integer) return Boolean is
Tag : Integer;
Count : Integer;
begin
if Decode_Tag (Tag) and then
Tag = Decimal_Fraction_Tag and then
Decode_Array (Count) and then
Count = 2 and then
Decode_Integer (Value) and then
Decode_Integer (Mantissa) then
return True;
else
return False;
end if;
end Decode_Decimal_Fraction;
end CBOR_Codec;
| 27.288889 | 77 | 0.635179 |
d0bd00fcc539bf27a4fe7b75ff3413611c455092 | 156 | adb | Ada | flycheck/test/resources/language/ada/syntaxerror.adb | beyondmetis/.emacs.d | ad6efafc7f9683ae8b5af258b3f07fb622341414 | [
"MIT"
] | null | null | null | flycheck/test/resources/language/ada/syntaxerror.adb | beyondmetis/.emacs.d | ad6efafc7f9683ae8b5af258b3f07fb622341414 | [
"MIT"
] | null | null | null | flycheck/test/resources/language/ada/syntaxerror.adb | beyondmetis/.emacs.d | ad6efafc7f9683ae8b5af258b3f07fb622341414 | [
"MIT"
] | null | null | null | with Ada.Text_IO;
with Ada.Command_Line;
procedure SyntaxError is
package IO renames Ada.Text_IO;
begin
IO.Put_Line("Hello, world!")
end SyntaxErro;
| 17.333333 | 34 | 0.762821 |
cbc33fc105b49a56ae0de0d1e604cb85b8d54eea | 6,264 | ads | Ada | source/xml/sax/xml-sax-entity_resolvers.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/xml/sax/xml-sax-entity_resolvers.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/xml/sax/xml-sax-entity_resolvers.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- XML Processor --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010-2011, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with League.Strings;
with XML.SAX.Input_Sources;
package XML.SAX.Entity_Resolvers is
pragma Preelaborate;
type SAX_Entity_Resolver is limited interface;
not overriding function Error_String
(Self : SAX_Entity_Resolver)
return League.Strings.Universal_String is abstract;
not overriding procedure Get_External_Subset
(Self : in out SAX_Entity_Resolver;
Name : League.Strings.Universal_String;
Base_URI : League.Strings.Universal_String;
Source : out XML.SAX.Input_Sources.SAX_Input_Source_Access;
Success : in out Boolean) is null;
-- The reader calls this function to allow applications to provide an
-- external subset for documents that don't explicitly define one.
--
-- The parameter Name is a name of the document root element. This name
-- comes from a DOCTYPE declaration (where available) or from the actual
-- root element. The parameter Base_URI is the document's base URI, serving
-- as an additional hint for selecting the external subset. Source is
-- the return value.
--
-- If this subprogram sets Success to False the reader stops parsing and
-- reports an error. The reader uses the function Error_String to get the
-- error message.
not overriding procedure Resolve_Entity
(Self : in out SAX_Entity_Resolver;
Name : League.Strings.Universal_String;
Public_Id : League.Strings.Universal_String;
Base_URI : League.Strings.Universal_String;
System_Id : League.Strings.Universal_String;
Source : out XML.SAX.Input_Sources.SAX_Input_Source_Access;
Success : in out Boolean) is null;
-- The reader calls this function before it opens any external entity,
-- except the top-level document entity. The application may request the
-- reader to resolve the entity itself (by setting Source to null) or to
-- use an entirely different input source (by setting Source to the input
-- source).
--
-- The reader deletes the input source Source when it no longer needs it,
-- so you should allocate it on the heap with new.
--
-- The argument Name is a name of the entity. "[dtd]" is used as for name
-- of the external subset; names of parameter entities start with '%'.
-- The argument Public_Id is the public identifier of the external entity.
-- Base_URI is the URI with respect to which relative System_IDs are
-- interpreted. System_Id is the system identifier of the external entity.
-- Source is the return value. If Source is null the reader should resolve
-- the entity itself, if it is non-zero it must point to an input source
-- which the reader uses instead.
--
-- If this subprogram sets Success to False the reader stops parsing and
-- reports an error. The reader uses the function Error_String to get the
-- error message.
end XML.SAX.Entity_Resolvers;
| 58.542056 | 79 | 0.541986 |
c5c6bdefe58fca5ecfe2f46b15b1c9a2a521481e | 5,066 | adb | Ada | source/s-fordec.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | source/s-fordec.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | source/s-fordec.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | package body System.Formatting.Decimal is
pragma Suppress (All_Checks);
use type Long_Long_Integer_Types.Long_Long_Unsigned;
subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned;
subtype Long_Long_Unsigned is Long_Long_Integer_Types.Long_Long_Unsigned;
-- implementation
procedure Image (
Value : Long_Long_Integer;
Item : out String;
Fore_Last, Last : out Natural;
Scale : Integer;
Signs : Sign_Marks := ('-', ' ', ' ');
Fore_Digits_Width : Positive := 1;
Fore_Digits_Fill : Character := '0';
Aft_Width : Natural)
is
Abs_Value : Long_Long_Unsigned;
Error : Boolean;
begin
Last := Item'First - 1;
declare
Sign : Character;
begin
if Value < 0 then
Abs_Value := -Long_Long_Unsigned'Mod (Value);
Sign := Signs.Minus;
else
Abs_Value := Long_Long_Unsigned (Value);
if Value > 0 then
Sign := Signs.Plus;
else
Sign := Signs.Zero;
end if;
end if;
if Sign /= No_Sign then
Last := Last + 1;
pragma Assert (Last <= Item'Last);
Item (Last) := Sign;
end if;
end;
if Scale > 0 then
declare
Rounded_Item : Long_Long_Unsigned := Abs_Value;
Sp : constant Long_Long_Unsigned := 10 ** Scale;
Q : Long_Long_Unsigned;
Aft : Long_Long_Unsigned;
Error : Boolean;
begin
if Aft_Width < Scale then
Rounded_Item := Rounded_Item + (10 ** (Scale - Aft_Width)) / 2;
end if;
Long_Long_Integer_Types.Divide (Rounded_Item, Sp, Q, Aft);
if Long_Long_Integer'Size <= Word_Unsigned'Size then
Formatting.Image (
Word_Unsigned (Q),
Item (Last + 1 .. Item'Last),
Last,
Width => Fore_Digits_Width,
Fill => Fore_Digits_Fill,
Error => Error);
else
Formatting.Image (
Q,
Item (Last + 1 .. Item'Last),
Last,
Width => Fore_Digits_Width,
Fill => Fore_Digits_Fill,
Error => Error);
end if;
pragma Assert (not Error);
Fore_Last := Last;
if Aft_Width > 0 then
Last := Last + 1;
pragma Assert (Last <= Item'Last);
Item (Last) := '.';
if Aft_Width > Scale then
Aft := Aft * 10 ** (Aft_Width - Scale);
elsif Aft_Width < Scale then
Aft := Aft / 10 ** (Scale - Aft_Width);
end if;
if Long_Long_Integer'Size <= Word_Unsigned'Size then
Formatting.Image (
Word_Unsigned (Aft),
Item (Last + 1 .. Item'Last),
Last,
Width => Aft_Width,
Error => Error);
else
Formatting.Image (
Aft,
Item (Last + 1 .. Item'Last),
Last,
Width => Aft_Width,
Error => Error);
end if;
pragma Assert (not Error);
end if;
end;
else
if Abs_Value /= 0 then
if Long_Long_Integer'Size <= Standard'Word_Size then
Formatting.Image (
Word_Unsigned (Abs_Value),
Item (Last + 1 .. Item'Last),
Last,
Width => Fore_Digits_Width,
Fill => Fore_Digits_Fill,
Error => Error);
else
Formatting.Image (
Abs_Value,
Item (Last + 1 .. Item'Last),
Last,
Width => Fore_Digits_Width,
Fill => Fore_Digits_Fill,
Error => Error);
end if;
pragma Assert (not Error);
pragma Assert (Last - Scale <= Item'Last);
Fill_Padding (Item (Last + 1 .. Last - Scale), '0');
Last := Last - Scale;
else
pragma Assert (Last + Fore_Digits_Width <= Item'Last);
Fill_Padding (
Item (Last + 1 .. Last + Fore_Digits_Width - 1),
Fore_Digits_Fill);
Last := Last + Fore_Digits_Width; -- including '0'
Item (Last) := '0';
end if;
Fore_Last := Last;
if Aft_Width > 0 then
Last := Last + 1;
pragma Assert (Last <= Item'Last);
Item (Last) := '.';
pragma Assert (Last + Aft_Width <= Item'Last);
Fill_Padding (Item (Last + 1 .. Last + Aft_Width), '0');
Last := Last + Aft_Width;
end if;
end if;
end Image;
end System.Formatting.Decimal;
| 34.69863 | 78 | 0.464469 |
189cd53d95812c126d0dcf4dc3d13bca1bd6cc43 | 15,033 | adb | Ada | source/amf/uml/amf-internals-uml_occurrence_specifications.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-internals-uml_occurrence_specifications.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-internals-uml_occurrence_specifications.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Elements;
with AMF.Internals.Element_Collections;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.UML_Attributes;
with AMF.Visitors.UML_Iterators;
with AMF.Visitors.UML_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.UML_Occurrence_Specifications is
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant UML_Occurrence_Specification_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Enter_Occurrence_Specification
(AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant UML_Occurrence_Specification_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Leave_Occurrence_Specification
(AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant UML_Occurrence_Specification_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then
AMF.Visitors.UML_Iterators.UML_Iterator'Class
(Iterator).Visit_Occurrence_Specification
(Visitor,
AMF.UML.Occurrence_Specifications.UML_Occurrence_Specification_Access (Self),
Control);
end if;
end Visit_Element;
-----------------
-- Get_Covered --
-----------------
overriding function Get_Covered
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Lifelines.UML_Lifeline_Access is
begin
raise Program_Error;
return Get_Covered (Self);
end Get_Covered;
-----------------
-- Set_Covered --
-----------------
overriding procedure Set_Covered
(Self : not null access UML_Occurrence_Specification_Proxy;
To : AMF.UML.Lifelines.UML_Lifeline_Access) is
begin
raise Program_Error;
end Set_Covered;
------------------
-- Get_To_After --
------------------
overriding function Get_To_After
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering is
begin
return
AMF.UML.General_Orderings.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_To_After
(Self.Element)));
end Get_To_After;
-------------------
-- Get_To_Before --
-------------------
overriding function Get_To_Before
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering is
begin
return
AMF.UML.General_Orderings.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_To_Before
(Self.Element)));
end Get_To_Before;
-----------------
-- Get_Covered --
-----------------
overriding function Get_Covered
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Lifelines.Collections.Set_Of_UML_Lifeline is
begin
return
AMF.UML.Lifelines.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Covered
(Self.Element)));
end Get_Covered;
-------------------------------
-- Get_Enclosing_Interaction --
-------------------------------
overriding function Get_Enclosing_Interaction
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Interactions.UML_Interaction_Access is
begin
return
AMF.UML.Interactions.UML_Interaction_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Enclosing_Interaction
(Self.Element)));
end Get_Enclosing_Interaction;
-------------------------------
-- Set_Enclosing_Interaction --
-------------------------------
overriding procedure Set_Enclosing_Interaction
(Self : not null access UML_Occurrence_Specification_Proxy;
To : AMF.UML.Interactions.UML_Interaction_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Enclosing_Interaction
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Enclosing_Interaction;
---------------------------
-- Get_Enclosing_Operand --
---------------------------
overriding function Get_Enclosing_Operand
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access is
begin
return
AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Enclosing_Operand
(Self.Element)));
end Get_Enclosing_Operand;
---------------------------
-- Set_Enclosing_Operand --
---------------------------
overriding procedure Set_Enclosing_Operand
(Self : not null access UML_Occurrence_Specification_Proxy;
To : AMF.UML.Interaction_Operands.UML_Interaction_Operand_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Enclosing_Operand
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Enclosing_Operand;
--------------------------
-- Get_General_Ordering --
--------------------------
overriding function Get_General_Ordering
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.General_Orderings.Collections.Set_Of_UML_General_Ordering is
begin
return
AMF.UML.General_Orderings.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_General_Ordering
(Self.Element)));
end Get_General_Ordering;
---------------------------
-- Get_Client_Dependency --
---------------------------
overriding function Get_Client_Dependency
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is
begin
return
AMF.UML.Dependencies.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency
(Self.Element)));
end Get_Client_Dependency;
-------------------------
-- Get_Name_Expression --
-------------------------
overriding function Get_Name_Expression
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access is
begin
return
AMF.UML.String_Expressions.UML_String_Expression_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression
(Self.Element)));
end Get_Name_Expression;
-------------------------
-- Set_Name_Expression --
-------------------------
overriding procedure Set_Name_Expression
(Self : not null access UML_Occurrence_Specification_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Name_Expression;
-------------------
-- Get_Namespace --
-------------------
overriding function Get_Namespace
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
return
AMF.UML.Namespaces.UML_Namespace_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace
(Self.Element)));
end Get_Namespace;
------------------------
-- Get_Qualified_Name --
------------------------
overriding function Get_Qualified_Name
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.Optional_String is
begin
declare
use type Matreshka.Internals.Strings.Shared_String_Access;
Aux : constant Matreshka.Internals.Strings.Shared_String_Access
:= AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element);
begin
if Aux = null then
return (Is_Empty => True);
else
return (False, League.Strings.Internals.Create (Aux));
end if;
end;
end Get_Qualified_Name;
-------------------------
-- All_Owning_Packages --
-------------------------
overriding function All_Owning_Packages
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented");
raise Program_Error with "Unimplemented procedure UML_Occurrence_Specification_Proxy.All_Owning_Packages";
return All_Owning_Packages (Self);
end All_Owning_Packages;
-----------------------------
-- Is_Distinguishable_From --
-----------------------------
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Occurrence_Specification_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented");
raise Program_Error with "Unimplemented procedure UML_Occurrence_Specification_Proxy.Is_Distinguishable_From";
return Is_Distinguishable_From (Self, N, Ns);
end Is_Distinguishable_From;
---------------
-- Namespace --
---------------
overriding function Namespace
(Self : not null access constant UML_Occurrence_Specification_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented");
raise Program_Error with "Unimplemented procedure UML_Occurrence_Specification_Proxy.Namespace";
return Namespace (Self);
end Namespace;
end AMF.Internals.UML_Occurrence_Specifications;
| 39.875332 | 116 | 0.604537 |
1874e514694d526323ea56f71915164e8039336c | 98 | ada | Ada | ada.ada | devtomio/hello-world | d01f97ef79539422f5df50e470c8a4b4eab7ac6e | [
"MIT"
] | 2 | 2020-12-03T14:33:13.000Z | 2021-01-02T15:53:37.000Z | ada.ada | 1chiSensei/hello-world | d01f97ef79539422f5df50e470c8a4b4eab7ac6e | [
"MIT"
] | 1 | 2022-03-10T02:51:42.000Z | 2022-03-10T02:51:42.000Z | ada.ada | 1chiSensei/hello-world | d01f97ef79539422f5df50e470c8a4b4eab7ac6e | [
"MIT"
] | null | null | null | with Ada.Text_IO;
use Ada.Text_IO;
procedure Main is
begin
Put_Line ("Hello, World!");
end Main; | 14 | 28 | 0.734694 |
c572fb73d61b0cc372da70ffe3b22b0b25829873 | 21,493 | ads | Ada | tools/scitools/conf/understand/ada/ada05/s-auxdec.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | tools/scitools/conf/understand/ada/ada05/s-auxdec.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/s-auxdec.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . A U X _ D E C --
-- --
-- S p e c --
-- --
-- Copyright (C) 1996-2006, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS For A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains definitions that are designed to be compatible
-- with the extra definitions in package System for DEC Ada implementations.
-- These definitions can be used directly by withing this package, or merged
-- with System using pragma Extend_System (Aux_DEC)
with Unchecked_Conversion;
package System.Aux_DEC is
pragma Preelaborate;
subtype Short_Address is Address;
-- In some versions of System.Aux_DEC, notably that for VMS on the
-- ia64, there are two address types (64-bit and 32-bit), and the
-- name Short_Address is used for the short address form. To avoid
-- difficulties (in regression tests and elsewhere) with units that
-- reference Short_Address, it is provided for other targets as a
-- synonum for the normal Address type, and, as in the case where
-- the lengths are different, Address and Short_Address can be
-- freely inter-converted.
type Integer_8 is range -2 ** (8 - 1) .. +2 ** (8 - 1) - 1;
for Integer_8'Size use 8;
type Integer_16 is range -2 ** (16 - 1) .. +2 ** (16 - 1) - 1;
for Integer_16'Size use 16;
type Integer_32 is range -2 ** (32 - 1) .. +2 ** (32 - 1) - 1;
for Integer_32'Size use 32;
type Integer_64 is range -2 ** (64 - 1) .. +2 ** (64 - 1) - 1;
for Integer_64'Size use 64;
type Largest_Integer is range Min_Int .. Max_Int;
type AST_Handler is private;
No_AST_Handler : constant AST_Handler;
type Type_Class is
(Type_Class_Enumeration,
Type_Class_Integer,
Type_Class_Fixed_Point,
Type_Class_Floating_Point,
Type_Class_Array,
Type_Class_Record,
Type_Class_Access,
Type_Class_Task, -- also in Ada 95 protected
Type_Class_Address);
function "not" (Left : Largest_Integer) return Largest_Integer;
function "and" (Left, Right : Largest_Integer) return Largest_Integer;
function "or" (Left, Right : Largest_Integer) return Largest_Integer;
function "xor" (Left, Right : Largest_Integer) return Largest_Integer;
Address_Zero : constant Address;
No_Addr : constant Address;
Address_Size : constant := Standard'Address_Size;
function "+" (Left : Address; Right : Integer) return Address;
function "+" (Left : Integer; Right : Address) return Address;
function "-" (Left : Address; Right : Address) return Integer;
function "-" (Left : Address; Right : Integer) return Address;
generic
type Target is private;
function Fetch_From_Address (A : Address) return Target;
generic
type Target is private;
procedure Assign_To_Address (A : Address; T : Target);
-- Floating point type declarations for VAX floating point data types
pragma Warnings (Off);
type F_Float is digits 6;
pragma Float_Representation (VAX_Float, F_Float);
type D_Float is digits 9;
pragma Float_Representation (Vax_Float, D_Float);
type G_Float is digits 15;
pragma Float_Representation (Vax_Float, G_Float);
-- Floating point type declarations for IEEE floating point data types
type IEEE_Single_Float is digits 6;
pragma Float_Representation (IEEE_Float, IEEE_Single_Float);
type IEEE_Double_Float is digits 15;
pragma Float_Representation (IEEE_Float, IEEE_Double_Float);
pragma Warnings (On);
Non_Ada_Error : exception;
-- Hardware-oriented types and functions
type Bit_Array is array (Integer range <>) of Boolean;
pragma Pack (Bit_Array);
subtype Bit_Array_8 is Bit_Array (0 .. 7);
subtype Bit_Array_16 is Bit_Array (0 .. 15);
subtype Bit_Array_32 is Bit_Array (0 .. 31);
subtype Bit_Array_64 is Bit_Array (0 .. 63);
type Unsigned_Byte is range 0 .. 255;
for Unsigned_Byte'Size use 8;
function "not" (Left : Unsigned_Byte) return Unsigned_Byte;
function "and" (Left, Right : Unsigned_Byte) return Unsigned_Byte;
function "or" (Left, Right : Unsigned_Byte) return Unsigned_Byte;
function "xor" (Left, Right : Unsigned_Byte) return Unsigned_Byte;
function To_Unsigned_Byte (X : Bit_Array_8) return Unsigned_Byte;
function To_Bit_Array_8 (X : Unsigned_Byte) return Bit_Array_8;
type Unsigned_Byte_Array is array (Integer range <>) of Unsigned_Byte;
type Unsigned_Word is range 0 .. 65535;
for Unsigned_Word'Size use 16;
function "not" (Left : Unsigned_Word) return Unsigned_Word;
function "and" (Left, Right : Unsigned_Word) return Unsigned_Word;
function "or" (Left, Right : Unsigned_Word) return Unsigned_Word;
function "xor" (Left, Right : Unsigned_Word) return Unsigned_Word;
function To_Unsigned_Word (X : Bit_Array_16) return Unsigned_Word;
function To_Bit_Array_16 (X : Unsigned_Word) return Bit_Array_16;
type Unsigned_Word_Array is array (Integer range <>) of Unsigned_Word;
type Unsigned_Longword is range -2_147_483_648 .. 2_147_483_647;
for Unsigned_Longword'Size use 32;
function "not" (Left : Unsigned_Longword) return Unsigned_Longword;
function "and" (Left, Right : Unsigned_Longword) return Unsigned_Longword;
function "or" (Left, Right : Unsigned_Longword) return Unsigned_Longword;
function "xor" (Left, Right : Unsigned_Longword) return Unsigned_Longword;
function To_Unsigned_Longword (X : Bit_Array_32) return Unsigned_Longword;
function To_Bit_Array_32 (X : Unsigned_Longword) return Bit_Array_32;
type Unsigned_Longword_Array is
array (Integer range <>) of Unsigned_Longword;
type Unsigned_32 is range 0 .. 4_294_967_295;
for Unsigned_32'Size use 32;
function "not" (Left : Unsigned_32) return Unsigned_32;
function "and" (Left, Right : Unsigned_32) return Unsigned_32;
function "or" (Left, Right : Unsigned_32) return Unsigned_32;
function "xor" (Left, Right : Unsigned_32) return Unsigned_32;
function To_Unsigned_32 (X : Bit_Array_32) return Unsigned_32;
function To_Bit_Array_32 (X : Unsigned_32) return Bit_Array_32;
type Unsigned_Quadword is record
L0 : Unsigned_Longword;
L1 : Unsigned_Longword;
end record;
for Unsigned_Quadword'Size use 64;
for Unsigned_Quadword'Alignment use
Integer'Min (8, Standard'Maximum_Alignment);
function "not" (Left : Unsigned_Quadword) return Unsigned_Quadword;
function "and" (Left, Right : Unsigned_Quadword) return Unsigned_Quadword;
function "or" (Left, Right : Unsigned_Quadword) return Unsigned_Quadword;
function "xor" (Left, Right : Unsigned_Quadword) return Unsigned_Quadword;
function To_Unsigned_Quadword (X : Bit_Array_64) return Unsigned_Quadword;
function To_Bit_Array_64 (X : Unsigned_Quadword) return Bit_Array_64;
type Unsigned_Quadword_Array is
array (Integer range <>) of Unsigned_Quadword;
function To_Address (X : Integer) return Address;
pragma Pure_Function (To_Address);
function To_Address_Long (X : Unsigned_Longword) return Address;
pragma Pure_Function (To_Address_Long);
function To_Integer (X : Address) return Integer;
function To_Unsigned_Longword (X : Address) return Unsigned_Longword;
function To_Unsigned_Longword (X : AST_Handler) return Unsigned_Longword;
-- Conventional names for static subtypes of type UNSIGNED_LONGWORD
subtype Unsigned_1 is Unsigned_Longword range 0 .. 2** 1-1;
subtype Unsigned_2 is Unsigned_Longword range 0 .. 2** 2-1;
subtype Unsigned_3 is Unsigned_Longword range 0 .. 2** 3-1;
subtype Unsigned_4 is Unsigned_Longword range 0 .. 2** 4-1;
subtype Unsigned_5 is Unsigned_Longword range 0 .. 2** 5-1;
subtype Unsigned_6 is Unsigned_Longword range 0 .. 2** 6-1;
subtype Unsigned_7 is Unsigned_Longword range 0 .. 2** 7-1;
subtype Unsigned_8 is Unsigned_Longword range 0 .. 2** 8-1;
subtype Unsigned_9 is Unsigned_Longword range 0 .. 2** 9-1;
subtype Unsigned_10 is Unsigned_Longword range 0 .. 2**10-1;
subtype Unsigned_11 is Unsigned_Longword range 0 .. 2**11-1;
subtype Unsigned_12 is Unsigned_Longword range 0 .. 2**12-1;
subtype Unsigned_13 is Unsigned_Longword range 0 .. 2**13-1;
subtype Unsigned_14 is Unsigned_Longword range 0 .. 2**14-1;
subtype Unsigned_15 is Unsigned_Longword range 0 .. 2**15-1;
subtype Unsigned_16 is Unsigned_Longword range 0 .. 2**16-1;
subtype Unsigned_17 is Unsigned_Longword range 0 .. 2**17-1;
subtype Unsigned_18 is Unsigned_Longword range 0 .. 2**18-1;
subtype Unsigned_19 is Unsigned_Longword range 0 .. 2**19-1;
subtype Unsigned_20 is Unsigned_Longword range 0 .. 2**20-1;
subtype Unsigned_21 is Unsigned_Longword range 0 .. 2**21-1;
subtype Unsigned_22 is Unsigned_Longword range 0 .. 2**22-1;
subtype Unsigned_23 is Unsigned_Longword range 0 .. 2**23-1;
subtype Unsigned_24 is Unsigned_Longword range 0 .. 2**24-1;
subtype Unsigned_25 is Unsigned_Longword range 0 .. 2**25-1;
subtype Unsigned_26 is Unsigned_Longword range 0 .. 2**26-1;
subtype Unsigned_27 is Unsigned_Longword range 0 .. 2**27-1;
subtype Unsigned_28 is Unsigned_Longword range 0 .. 2**28-1;
subtype Unsigned_29 is Unsigned_Longword range 0 .. 2**29-1;
subtype Unsigned_30 is Unsigned_Longword range 0 .. 2**30-1;
subtype Unsigned_31 is Unsigned_Longword range 0 .. 2**31-1;
-- Function for obtaining global symbol values
function Import_Value (Symbol : String) return Unsigned_Longword;
function Import_Address (Symbol : String) return Address;
function Import_Largest_Value (Symbol : String) return Largest_Integer;
pragma Import (Intrinsic, Import_Value);
pragma Import (Intrinsic, Import_Address);
pragma Import (Intrinsic, Import_Largest_Value);
-- For the following declarations, note that the declaration without
-- a Retry_Count parameter means to retry infinitely. A value of zero
-- for the Retry_Count parameter means do not retry.
-- Interlocked-instruction procedures
procedure Clear_Interlocked
(Bit : in out Boolean;
Old_Value : out Boolean);
procedure Set_Interlocked
(Bit : in out Boolean;
Old_Value : out Boolean);
type Aligned_Word is record
Value : Short_Integer;
end record;
for Aligned_Word'Alignment use
Integer'Min (2, Standard'Maximum_Alignment);
procedure Clear_Interlocked
(Bit : in out Boolean;
Old_Value : out Boolean;
Retry_Count : Natural;
Success_Flag : out Boolean);
procedure Set_Interlocked
(Bit : in out Boolean;
Old_Value : out Boolean;
Retry_Count : Natural;
Success_Flag : out Boolean);
procedure Add_Interlocked
(Addend : Short_Integer;
Augend : in out Aligned_Word;
Sign : out Integer);
type Aligned_Integer is record
Value : Integer;
end record;
for Aligned_Integer'Alignment use
Integer'Min (4, Standard'Maximum_Alignment);
type Aligned_Long_Integer is record
Value : Long_Integer;
end record;
for Aligned_Long_Integer'Alignment use
Integer'Min (8, Standard'Maximum_Alignment);
-- For the following declarations, note that the declaration without
-- a Retry_Count parameter mean to retry infinitely. A value of zero
-- for the Retry_Count means do not retry.
procedure Add_Atomic
(To : in out Aligned_Integer;
Amount : Integer);
procedure Add_Atomic
(To : in out Aligned_Integer;
Amount : Integer;
Retry_Count : Natural;
Old_Value : out Integer;
Success_Flag : out Boolean);
procedure Add_Atomic
(To : in out Aligned_Long_Integer;
Amount : Long_Integer);
procedure Add_Atomic
(To : in out Aligned_Long_Integer;
Amount : Long_Integer;
Retry_Count : Natural;
Old_Value : out Long_Integer;
Success_Flag : out Boolean);
procedure And_Atomic
(To : in out Aligned_Integer;
From : Integer);
procedure And_Atomic
(To : in out Aligned_Integer;
From : Integer;
Retry_Count : Natural;
Old_Value : out Integer;
Success_Flag : out Boolean);
procedure And_Atomic
(To : in out Aligned_Long_Integer;
From : Long_Integer);
procedure And_Atomic
(To : in out Aligned_Long_Integer;
From : Long_Integer;
Retry_Count : Natural;
Old_Value : out Long_Integer;
Success_Flag : out Boolean);
procedure Or_Atomic
(To : in out Aligned_Integer;
From : Integer);
procedure Or_Atomic
(To : in out Aligned_Integer;
From : Integer;
Retry_Count : Natural;
Old_Value : out Integer;
Success_Flag : out Boolean);
procedure Or_Atomic
(To : in out Aligned_Long_Integer;
From : Long_Integer);
procedure Or_Atomic
(To : in out Aligned_Long_Integer;
From : Long_Integer;
Retry_Count : Natural;
Old_Value : out Long_Integer;
Success_Flag : out Boolean);
type Insq_Status is
(Fail_No_Lock, OK_Not_First, OK_First);
for Insq_Status use
(Fail_No_Lock => -1,
OK_Not_First => 0,
OK_First => +1);
type Remq_Status is (
Fail_No_Lock,
Fail_Was_Empty,
OK_Not_Empty,
OK_Empty);
for Remq_Status use
(Fail_No_Lock => -1,
Fail_Was_Empty => 0,
OK_Not_Empty => +1,
OK_Empty => +2);
procedure Insqhi
(Item : Address;
Header : Address;
Status : out Insq_Status);
procedure Remqhi
(Header : Address;
Item : out Address;
Status : out Remq_Status);
procedure Insqti
(Item : Address;
Header : Address;
Status : out Insq_Status);
procedure Remqti
(Header : Address;
Item : out Address;
Status : out Remq_Status);
private
Address_Zero : constant Address := Null_Address;
No_Addr : constant Address := Null_Address;
-- An AST_Handler value is from a typing point of view simply a pointer
-- to a procedure taking a single 64bit parameter. However, this
-- is a bit misleading, because the data that this pointer references is
-- highly stylized. See body of System.AST_Handling for full details.
type AST_Handler is access procedure (Param : Long_Integer);
No_AST_Handler : constant AST_Handler := null;
-- Other operators have incorrect profiles. It would be nice to make
-- them intrinsic, since the backend can handle them, but the front
-- end is not prepared to deal with them, so at least inline them.
pragma Inline_Always ("+");
pragma Inline_Always ("-");
pragma Inline_Always ("not");
pragma Inline_Always ("and");
pragma Inline_Always ("or");
pragma Inline_Always ("xor");
-- Other inlined subprograms
pragma Inline_Always (Fetch_From_Address);
pragma Inline_Always (Assign_To_Address);
-- Synchronization related subprograms. These are declared to have
-- convention C so that the critical parameters are passed by reference.
-- Without this, the parameters are passed by copy, creating load/store
-- race conditions. We also inline them, since this seems more in the
-- spirit of the original (hardware intrinsic) routines.
pragma Convention (C, Clear_Interlocked);
pragma Inline_Always (Clear_Interlocked);
pragma Convention (C, Set_Interlocked);
pragma Inline_Always (Set_Interlocked);
pragma Convention (C, Add_Interlocked);
pragma Inline_Always (Add_Interlocked);
pragma Convention (C, Add_Atomic);
pragma Inline_Always (Add_Atomic);
pragma Convention (C, And_Atomic);
pragma Inline_Always (And_Atomic);
pragma Convention (C, Or_Atomic);
pragma Inline_Always (Or_Atomic);
-- Provide proper unchecked conversion definitions for transfer
-- functions. Note that we need this level of indirection because
-- the formal parameter name is X and not Source (and this is indeed
-- detectable by a program)
function To_Unsigned_Byte_A is new
Unchecked_Conversion (Bit_Array_8, Unsigned_Byte);
function To_Unsigned_Byte (X : Bit_Array_8) return Unsigned_Byte
renames To_Unsigned_Byte_A;
function To_Bit_Array_8_A is new
Unchecked_Conversion (Unsigned_Byte, Bit_Array_8);
function To_Bit_Array_8 (X : Unsigned_Byte) return Bit_Array_8
renames To_Bit_Array_8_A;
function To_Unsigned_Word_A is new
Unchecked_Conversion (Bit_Array_16, Unsigned_Word);
function To_Unsigned_Word (X : Bit_Array_16) return Unsigned_Word
renames To_Unsigned_Word_A;
function To_Bit_Array_16_A is new
Unchecked_Conversion (Unsigned_Word, Bit_Array_16);
function To_Bit_Array_16 (X : Unsigned_Word) return Bit_Array_16
renames To_Bit_Array_16_A;
function To_Unsigned_Longword_A is new
Unchecked_Conversion (Bit_Array_32, Unsigned_Longword);
function To_Unsigned_Longword (X : Bit_Array_32) return Unsigned_Longword
renames To_Unsigned_Longword_A;
function To_Bit_Array_32_A is new
Unchecked_Conversion (Unsigned_Longword, Bit_Array_32);
function To_Bit_Array_32 (X : Unsigned_Longword) return Bit_Array_32
renames To_Bit_Array_32_A;
function To_Unsigned_32_A is new
Unchecked_Conversion (Bit_Array_32, Unsigned_32);
function To_Unsigned_32 (X : Bit_Array_32) return Unsigned_32
renames To_Unsigned_32_A;
function To_Bit_Array_32_A is new
Unchecked_Conversion (Unsigned_32, Bit_Array_32);
function To_Bit_Array_32 (X : Unsigned_32) return Bit_Array_32
renames To_Bit_Array_32_A;
function To_Unsigned_Quadword_A is new
Unchecked_Conversion (Bit_Array_64, Unsigned_Quadword);
function To_Unsigned_Quadword (X : Bit_Array_64) return Unsigned_Quadword
renames To_Unsigned_Quadword_A;
function To_Bit_Array_64_A is new
Unchecked_Conversion (Unsigned_Quadword, Bit_Array_64);
function To_Bit_Array_64 (X : Unsigned_Quadword) return Bit_Array_64
renames To_Bit_Array_64_A;
pragma Warnings (Off);
-- Turn warnings off. This is needed for systems with 64-bit integers,
-- where some of these operations are of dubious meaning, but we do not
-- want warnings when we compile on such systems.
function To_Address_A is new
Unchecked_Conversion (Integer, Address);
pragma Pure_Function (To_Address_A);
function To_Address (X : Integer) return Address
renames To_Address_A;
pragma Pure_Function (To_Address);
function To_Address_Long_A is new
Unchecked_Conversion (Unsigned_Longword, Address);
pragma Pure_Function (To_Address_Long_A);
function To_Address_Long (X : Unsigned_Longword) return Address
renames To_Address_Long_A;
pragma Pure_Function (To_Address_Long);
function To_Integer_A is new
Unchecked_Conversion (Address, Integer);
function To_Integer (X : Address) return Integer
renames To_Integer_A;
function To_Unsigned_Longword_A is new
Unchecked_Conversion (Address, Unsigned_Longword);
function To_Unsigned_Longword (X : Address) return Unsigned_Longword
renames To_Unsigned_Longword_A;
function To_Unsigned_Longword_A is new
Unchecked_Conversion (AST_Handler, Unsigned_Longword);
function To_Unsigned_Longword (X : AST_Handler) return Unsigned_Longword
renames To_Unsigned_Longword_A;
pragma Warnings (On);
end System.Aux_DEC;
| 36.490662 | 78 | 0.675988 |
0ec60b353e446b11b38f31fd9c894a750107cfd1 | 2,994 | adb | Ada | src/zmq-proxys.adb | persan/zeromq-Ada | 651ca44cce831c2d717338eab65a60fbfca7ec44 | [
"MIT"
] | 33 | 2015-01-16T13:42:55.000Z | 2021-11-30T21:28:50.000Z | src/zmq-proxys.adb | persan/zeromq-Ada | 651ca44cce831c2d717338eab65a60fbfca7ec44 | [
"MIT"
] | 6 | 2016-03-23T01:26:36.000Z | 2021-05-13T04:24:53.000Z | src/zmq-proxys.adb | persan/zeromq-Ada | 651ca44cce831c2d717338eab65a60fbfca7ec44 | [
"MIT"
] | 5 | 2016-03-09T20:20:09.000Z | 2020-06-17T06:59:39.000Z | -------------------------------------------------------------------------------
-- --
-- 0MQ Ada-binding --
-- --
-- Z M Q . P R O X Y S --
-- --
-- B o d y --
-- --
-- Copyright (C) 2020-2030, [email protected] --
-- --
-- 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, publish, --
-- distribute, sublicense, and / or sell copies of the Software, and to --
-- permit persons to whom the Software is furnished to do so, subject to --
-- the following conditions : --
-- --
-- The above copyright notice and this permission notice shall be included --
-- in all copies or substantial portions of the Software. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
-- MERCHANTABILITY, --
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL --
-- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR --
-- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --
-- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --
-- OTHER DEALINGS IN THE SOFTWARE. --
-------------------------------------------------------------------------------
with ZMQ.Low_Level;
with Interfaces.C; use Interfaces.C;
with System; use System;
package body ZMQ.Proxys is
--
-----------
-- Proxy --
-----------
procedure Proxy
(Frontend : not null access Sockets.Socket;
Backend : not null access Sockets.Socket;
Capture : access Sockets.Socket := null)
is
Dummy : int;
pragma Unreferenced (Dummy);
begin
Dummy := ZMQ.Low_Level.zmq_proxy
(Frontend.Get_Impl, Backend.Get_Impl,
(if Capture /= null then Capture.Get_Impl else System.Null_Address));
end Proxy;
end ZMQ.Proxys;
| 54.436364 | 79 | 0.42151 |
d02dec25ec9529966f952d7f93eb509dd348d184 | 3,924 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3236a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3236a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3236a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- CC3236A.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.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT A FORMAL PRIVATE AND LIMITED PRIVATE TYPE DENOTES ITS
-- ACTUAL PARAMETER, AND OPERATIONS OF THE FORMAL TYPE ARE
-- IDENTIFIED WITH CORRESPONDING OPERATIONS OF THE ACTUAL TYPE
-- WHEN THE ACTUAL PARAMETER IS A TYPE WITH DISCRIMINANTS.
-- HISTORY:
-- DHH 10/24/88 CREATED ORIGINAL TEST.
-- PWN 02/02/95 REMOVED INCONSISTENCIES WITH ADA 9X.
WITH REPORT; USE REPORT;
PROCEDURE CC3236A IS
GENERIC
TYPE T IS PRIVATE;
PACKAGE P IS
SUBTYPE SUB_T IS T;
PAC_VAR : T;
END P;
GENERIC
TYPE T IS LIMITED PRIVATE;
PACKAGE LP IS
SUBTYPE SUB_T IS T;
PAC_VAR : T;
END LP;
BEGIN
TEST ("CC3236A", "CHECK THAT A FORMAL PRIVATE OR LIMITED " &
"PRIVATE TYPE DENOTES ITS ACTUAL PARAMETER AND " &
"OPERATIONS OF THE FORMAL TYPE ARE IDENTIFIED " &
"WITH CORRESPONDING OPERATIONS OF THE ACTUAL " &
"TYPE, WHEN THE ACTUAL PARAMETER IS A TYPE " &
"WITH DISCRIMINANTS");
DECLARE
TYPE REC(X : INTEGER := 5) IS
RECORD
NULL;
END RECORD;
OBJ_REC : REC(4);
PACKAGE P2 IS NEW P (REC);
USE P2;
TYPE NEW_T IS NEW SUB_T;
OBJ_NEWT : NEW_T(4);
BEGIN
PAC_VAR := SUB_T'((X => 4));
IF PAC_VAR /= OBJ_REC THEN
FAILED ("INCORRECT RESULTS - 1");
END IF;
IF PAC_VAR NOT IN REC THEN
FAILED ("INCORRECT RESULTS - 2");
END IF;
IF OBJ_REC NOT IN SUB_T THEN
FAILED ("INCORRECT RESULTS - 3");
END IF;
IF PAC_VAR.X /= OBJ_NEWT.X THEN
FAILED ("INCORRECT RESULTS - 4");
END IF;
END;
DECLARE
TYPE REC(X : INTEGER := 5) IS
RECORD
NULL;
END RECORD;
OBJ_REC : REC(4);
PACKAGE P2 IS NEW LP (REC);
USE P2;
TYPE NEW_T IS NEW SUB_T;
OBJ_NEWT : NEW_T(4);
BEGIN
PAC_VAR := SUB_T'(X => 4);
IF PAC_VAR /= OBJ_REC THEN
FAILED ("INCORRECT RESULTS - 7");
END IF;
IF PAC_VAR NOT IN REC THEN
FAILED ("INCORRECT RESULTS - 8");
END IF;
IF OBJ_REC NOT IN SUB_T THEN
FAILED ("INCORRECT RESULTS - 9");
END IF;
IF PAC_VAR.X /= OBJ_NEWT.X THEN
FAILED ("INCORRECT RESULTS - 10");
END IF;
END;
RESULT;
END CC3236A;
| 33.254237 | 79 | 0.558614 |
4a0d887c41fdbf804bf1f667acc78462089c87bd | 1,718 | ads | Ada | src/xoshiro128.ads | onox/xoshiro | ef82c330510c4e21abf10f88a6df7e14455d3eba | [
"Apache-2.0"
] | 4 | 2022-01-14T09:08:43.000Z | 2022-01-31T15:30:57.000Z | src/xoshiro128.ads | onox/xoshiro | ef82c330510c4e21abf10f88a6df7e14455d3eba | [
"Apache-2.0"
] | 1 | 2022-01-12T16:07:11.000Z | 2022-01-14T18:20:42.000Z | src/xoshiro128.ads | onox/xoshiro | ef82c330510c4e21abf10f88a6df7e14455d3eba | [
"Apache-2.0"
] | null | null | null | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2022 onox <[email protected]>
--
-- 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 agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
generic
type Unsigned_32 is mod <>;
package Xoshiro128 with SPARK_Mode => On is
pragma Pure;
pragma Compile_Time_Error (Unsigned_32'Size /= 32,
"Invalid mod type for Xoshiro128");
pragma Compile_Time_Error (Unsigned_32'Modulus /= 2**32,
"Invalid mod type for Xoshiro128");
type Unsigned_64 is mod 2 ** 64
with Size => 64;
subtype Unit_Interval is Float range 0.0 .. 1.0;
function To_Float (Value : Unsigned_32) return Unit_Interval
with Inline_Always,
Global => null,
Depends => (To_Float'Result => Value);
type Generator is limited private;
procedure Next (S : in out Generator; Value : out Unsigned_32)
with Inline_Always,
Global => null,
Depends => (S => S, Value => S);
procedure Reset (S : out Generator; Seed : Unsigned_64)
with Global => null,
Depends => (S => Seed),
Pre => Seed /= 0;
private
type Generator is array (0 .. 3) of Unsigned_32;
end Xoshiro128;
| 31.236364 | 76 | 0.648428 |
0e94b74b1a1807bc50859986d837bbd731a302c1 | 18,581 | adb | Ada | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d/conv2d/hls_target/.autopilot/db/call.sched.adb | dillonhuff/Halide-HLS | e9f4c3ac7915e5a52f211ce65004ae17890515a0 | [
"MIT"
] | 1 | 2020-06-18T16:51:39.000Z | 2020-06-18T16:51:39.000Z | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d/conv2d/hls_target/.autopilot/db/call.sched.adb | dillonhuff/Halide-HLS | e9f4c3ac7915e5a52f211ce65004ae17890515a0 | [
"MIT"
] | null | null | null | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d/conv2d/hls_target/.autopilot/db/call.sched.adb | dillonhuff/Halide-HLS | e9f4c3ac7915e5a52f211ce65004ae17890515a0 | [
"MIT"
] | 1 | 2020-03-18T00:43:22.000Z | 2020-03-18T00:43:22.000Z | <?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="0" object_id="_0">
<name>call</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="3" tracking_level="1" version="0" object_id="_1">
<Value class_id="4" tracking_level="0" version="0">
<Obj class_id="5" tracking_level="0" version="0">
<type>1</type>
<id>1</id>
<name>in_stream_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>in_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>0</direction>
<if_type>3</if_type>
<array_size>0</array_size>
<bit_vecs class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_2">
<Value>
<Obj>
<type>1</type>
<id>2</id>
<name>out_stream_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>out_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>288</bitwidth>
</Value>
<direction>1</direction>
<if_type>3</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>slice_stream_V_value</name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d</fileDirectory>
<lineNumber>172</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d</first>
<second class_id="11" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="12" tracking_level="0" version="0">
<first class_id="13" tracking_level="0" version="0">
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>172</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>slice_stream.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>96</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>17</item>
</oprand_edges>
<opcode>alloca</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>19</item>
<item>20</item>
<item>21</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name></name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>23</item>
<item>24</item>
<item>25</item>
<item>135</item>
<item>136</item>
</oprand_edges>
<opcode>call</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name></name>
<fileName>../../../lib_files/Linebuffer.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d</fileDirectory>
<lineNumber>219</lineNumber>
<contextFuncName>call</contextFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_shifts/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Linebuffer.h</first>
<second>call</second>
</first>
<second>219</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>0</count>
<item_version>0</item_version>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>3</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_7">
<Value>
<Obj>
<type>2</type>
<id>16</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_8">
<Value>
<Obj>
<type>2</type>
<id>18</id>
<name>call_Loop_LB2D_buf_p</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:call_Loop_LB2D_buf_p></content>
</item>
<item class_id_reference="16" object_id="_9">
<Value>
<Obj>
<type>2</type>
<id>22</id>
<name>call_Loop_LB2D_shift</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<const_type>6</const_type>
<content><constant:call_Loop_LB2D_shift></content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_10">
<Obj>
<type>3</type>
<id>15</id>
<name>call</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<node_objs>
<count>4</count>
<item_version>0</item_version>
<item>8</item>
<item>12</item>
<item>13</item>
<item>14</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>9</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_11">
<id>17</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_12">
<id>19</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_13">
<id>20</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_14">
<id>21</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_15">
<id>23</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_16">
<id>24</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_17">
<id>25</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_18">
<id>135</id>
<edge_type>4</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_19">
<id>136</id>
<edge_type>4</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_20">
<mId>1</mId>
<mTag>call</mTag>
<mType>0</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2077921</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>1</mIsDfPipe>
<mDfPipe class_id="23" tracking_level="1" version="0" object_id="_21">
<port_list class_id="24" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port_list>
<process_list class_id="25" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="26" tracking_level="1" version="0" object_id="_22">
<type>0</type>
<name>call_Loop_LB2D_buf_p_U0</name>
<ssdmobj_id>12</ssdmobj_id>
<pins class_id="27" tracking_level="0" version="0">
<count>2</count>
<item_version>0</item_version>
<item class_id="28" tracking_level="1" version="0" object_id="_23">
<port class_id="29" tracking_level="1" version="0" object_id="_24">
<name>in_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id="30" tracking_level="1" version="0" object_id="_25">
<type>0</type>
<name>call_Loop_LB2D_buf_p_U0</name>
<ssdmobj_id>12</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_26">
<port class_id_reference="29" object_id="_27">
<name>slice_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_25"></inst>
</item>
</pins>
</item>
<item class_id_reference="26" object_id="_28">
<type>0</type>
<name>call_Loop_LB2D_shift_U0</name>
<ssdmobj_id>13</ssdmobj_id>
<pins>
<count>2</count>
<item_version>0</item_version>
<item class_id_reference="28" object_id="_29">
<port class_id_reference="29" object_id="_30">
<name>slice_stream_V_value_V</name>
<dir>0</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id="_31">
<type>0</type>
<name>call_Loop_LB2D_shift_U0</name>
<ssdmobj_id>13</ssdmobj_id>
</inst>
</item>
<item class_id_reference="28" object_id="_32">
<port class_id_reference="29" object_id="_33">
<name>out_stream_V_value_V</name>
<dir>0</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_31"></inst>
</item>
</pins>
</item>
</process_list>
<channel_list class_id="31" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="32" tracking_level="1" version="0" object_id="_34">
<type>1</type>
<name>slice_stream_V_value</name>
<ssdmobj_id>8</ssdmobj_id>
<ctype>0</ctype>
<depth>1</depth>
<bitwidth>96</bitwidth>
<source class_id_reference="28" object_id="_35">
<port class_id_reference="29" object_id="_36">
<name>in</name>
<dir>3</dir>
<type>0</type>
</port>
<inst class_id_reference="30" object_id_reference="_25"></inst>
</source>
<sink class_id_reference="28" object_id="_37">
<port class_id_reference="29" object_id="_38">
<name>out</name>
<dir>3</dir>
<type>1</type>
</port>
<inst class_id_reference="30" object_id_reference="_31"></inst>
</sink>
</item>
</channel_list>
<net_list class_id="33" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</net_list>
</mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="36" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="37" tracking_level="0" version="0">
<first>8</first>
<second class_id="38" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>0</first>
<second>1</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>2</first>
<second>1</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="39" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="40" tracking_level="0" version="0">
<first>15</first>
<second class_id="41" tracking_level="0" version="0">
<first>0</first>
<second>3</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="42" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="43" tracking_level="1" version="0" object_id="_39">
<region_name>call</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>15</item>
</basic_blocks>
<nodes>
<count>12</count>
<item_version>0</item_version>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>16</region_type>
<interval>0</interval>
<pipe_depth>0</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="44" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="45" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_expression>
<dp_fu_nodes_module>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_module>
<dp_fu_nodes_io>
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes_io>
<return_ports>
<count>0</count>
<item_version>0</item_version>
</return_ports>
<dp_mem_port_nodes class_id="46" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_mem_port_nodes>
<dp_reg_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_reg_nodes>
<dp_regname_nodes>
<count>0</count>
<item_version>0</item_version>
</dp_regname_nodes>
<dp_reg_phi>
<count>0</count>
<item_version>0</item_version>
</dp_reg_phi>
<dp_regname_phi>
<count>0</count>
<item_version>0</item_version>
</dp_regname_phi>
<dp_port_io_nodes class_id="47" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="48" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
| 29.123824 | 136 | 0.616921 |
c5a42701abd43006bc8251b0ff16e9ddbd7af891 | 2,897 | ads | Ada | tools/scitools/conf/understand/ada/ada05/s-vmexta.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | 1 | 2020-01-20T21:26:46.000Z | 2020-01-20T21:26:46.000Z | tools/scitools/conf/understand/ada/ada05/s-vmexta.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/s-vmexta.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V M S _ E X C E P T I O N _ T A B L E --
-- --
-- S p e c --
-- --
-- Copyright (C) 1997-2004 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package is usually used only on Alpha/VMS systems in the case
-- where there is at least one Import/Export exception present.
with System.Standard_Library;
package System.VMS_Exception_Table is
package SSL renames System.Standard_Library;
procedure Register_VMS_Exception
(Code : SSL.Exception_Code;
E : SSL.Exception_Data_Ptr);
-- Register an exception in the hash table mapping with a VMS
-- condition code.
-- LOTS more comments needed here regarding the enire scheme ???
private
function Base_Code_In (Code : SSL.Exception_Code) return SSL.Exception_Code;
-- Value of Code with the severity bits masked off.
function Coded_Exception (X : SSL.Exception_Code)
return SSL.Exception_Data_Ptr;
-- Given a VMS condition, find and return it's allocated Ada exception
-- (called only from init.c).
end System.VMS_Exception_Table;
| 46.725806 | 79 | 0.483604 |
d0b5d1f6da330897ffd1b69365e4b9dcc7721c2a | 27,185 | ads | Ada | arch/ARM/STM32/svd/stm32l5x2/stm32_svd-flash.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 2 | 2018-05-16T03:56:39.000Z | 2019-07-31T13:53:56.000Z | arch/ARM/STM32/svd/stm32l5x2/stm32_svd-flash.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | arch/ARM/STM32/svd/stm32l5x2/stm32_svd-flash.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | -- 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.Flash is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ACR_LATENCY_Field is HAL.UInt4;
-- Access control register
type ACR_Register is record
-- Latency
LATENCY : ACR_LATENCY_Field := 16#0#;
-- unspecified
Reserved_4_12 : HAL.UInt9 := 16#0#;
-- Flash Power-down mode during Low-power run mode
RUN_PD : Boolean := False;
-- Flash Power-down mode during Low-power sleep mode
SLEEP_PD : Boolean := False;
-- LVEN
LVEN : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ACR_Register use record
LATENCY at 0 range 0 .. 3;
Reserved_4_12 at 0 range 4 .. 12;
RUN_PD at 0 range 13 .. 13;
SLEEP_PD at 0 range 14 .. 14;
LVEN at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- Flash status register
type NSSR_Register is record
-- NSEOP
NSEOP : Boolean := False;
-- NSOPERR
NSOPERR : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- NSPROGERR
NSPROGERR : Boolean := False;
-- NSWRPERR
NSWRPERR : Boolean := False;
-- NSPGAERR
NSPGAERR : Boolean := False;
-- NSSIZERR
NSSIZERR : Boolean := False;
-- NSPGSERR
NSPGSERR : Boolean := False;
-- unspecified
Reserved_8_12 : HAL.UInt5 := 16#0#;
-- OPTWERR
OPTWERR : Boolean := False;
-- unspecified
Reserved_14_14 : HAL.Bit := 16#0#;
-- OPTVERR
OPTVERR : Boolean := False;
-- Read-only. NSBusy
NSBSY : Boolean := False;
-- unspecified
Reserved_17_31 : HAL.UInt15 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for NSSR_Register use record
NSEOP at 0 range 0 .. 0;
NSOPERR at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
NSPROGERR at 0 range 3 .. 3;
NSWRPERR at 0 range 4 .. 4;
NSPGAERR at 0 range 5 .. 5;
NSSIZERR at 0 range 6 .. 6;
NSPGSERR at 0 range 7 .. 7;
Reserved_8_12 at 0 range 8 .. 12;
OPTWERR at 0 range 13 .. 13;
Reserved_14_14 at 0 range 14 .. 14;
OPTVERR at 0 range 15 .. 15;
NSBSY at 0 range 16 .. 16;
Reserved_17_31 at 0 range 17 .. 31;
end record;
-- Flash status register
type SECSR_Register is record
-- SECEOP
SECEOP : Boolean := False;
-- SECOPERR
SECOPERR : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- SECPROGERR
SECPROGERR : Boolean := False;
-- SECWRPERR
SECWRPERR : Boolean := False;
-- SECPGAERR
SECPGAERR : Boolean := False;
-- SECSIZERR
SECSIZERR : Boolean := False;
-- SECPGSERR
SECPGSERR : Boolean := False;
-- unspecified
Reserved_8_13 : HAL.UInt6 := 16#0#;
-- Secure read protection error
SECRDERR : Boolean := False;
-- unspecified
Reserved_15_15 : HAL.Bit := 16#0#;
-- Read-only. SECBusy
SECBSY : Boolean := False;
-- unspecified
Reserved_17_31 : HAL.UInt15 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECSR_Register use record
SECEOP at 0 range 0 .. 0;
SECOPERR at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
SECPROGERR at 0 range 3 .. 3;
SECWRPERR at 0 range 4 .. 4;
SECPGAERR at 0 range 5 .. 5;
SECSIZERR at 0 range 6 .. 6;
SECPGSERR at 0 range 7 .. 7;
Reserved_8_13 at 0 range 8 .. 13;
SECRDERR at 0 range 14 .. 14;
Reserved_15_15 at 0 range 15 .. 15;
SECBSY at 0 range 16 .. 16;
Reserved_17_31 at 0 range 17 .. 31;
end record;
subtype NSCR_NSPNB_Field is HAL.UInt7;
-- Flash non-secure control register
type NSCR_Register is record
-- NSPG
NSPG : Boolean := False;
-- NSPER
NSPER : Boolean := False;
-- NSMER1
NSMER1 : Boolean := False;
-- NSPNB
NSPNB : NSCR_NSPNB_Field := 16#0#;
-- unspecified
Reserved_10_10 : HAL.Bit := 16#0#;
-- NSBKER
NSBKER : Boolean := False;
-- unspecified
Reserved_12_14 : HAL.UInt3 := 16#0#;
-- NSMER2
NSMER2 : Boolean := False;
-- Options modification start
NSSTRT : Boolean := False;
-- Options modification start
OPTSTRT : Boolean := False;
-- unspecified
Reserved_18_23 : HAL.UInt6 := 16#0#;
-- NSEOPIE
NSEOPIE : Boolean := False;
-- NSERRIE
NSERRIE : Boolean := False;
-- unspecified
Reserved_26_26 : HAL.Bit := 16#0#;
-- Force the option byte loading
OBL_LAUNCH : Boolean := False;
-- unspecified
Reserved_28_29 : HAL.UInt2 := 16#0#;
-- Options Lock
OPTLOCK : Boolean := True;
-- NSLOCK
NSLOCK : Boolean := True;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for NSCR_Register use record
NSPG at 0 range 0 .. 0;
NSPER at 0 range 1 .. 1;
NSMER1 at 0 range 2 .. 2;
NSPNB at 0 range 3 .. 9;
Reserved_10_10 at 0 range 10 .. 10;
NSBKER at 0 range 11 .. 11;
Reserved_12_14 at 0 range 12 .. 14;
NSMER2 at 0 range 15 .. 15;
NSSTRT at 0 range 16 .. 16;
OPTSTRT at 0 range 17 .. 17;
Reserved_18_23 at 0 range 18 .. 23;
NSEOPIE at 0 range 24 .. 24;
NSERRIE at 0 range 25 .. 25;
Reserved_26_26 at 0 range 26 .. 26;
OBL_LAUNCH at 0 range 27 .. 27;
Reserved_28_29 at 0 range 28 .. 29;
OPTLOCK at 0 range 30 .. 30;
NSLOCK at 0 range 31 .. 31;
end record;
subtype SECCR_SECPNB_Field is HAL.UInt7;
-- Flash secure control register
type SECCR_Register is record
-- SECPG
SECPG : Boolean := False;
-- SECPER
SECPER : Boolean := False;
-- SECMER1
SECMER1 : Boolean := False;
-- SECPNB
SECPNB : SECCR_SECPNB_Field := 16#0#;
-- unspecified
Reserved_10_10 : HAL.Bit := 16#0#;
-- SECBKER
SECBKER : Boolean := False;
-- unspecified
Reserved_12_14 : HAL.UInt3 := 16#0#;
-- SECMER2
SECMER2 : Boolean := False;
-- SECSTRT
SECSTRT : Boolean := False;
-- unspecified
Reserved_17_23 : HAL.UInt7 := 16#0#;
-- SECEOPIE
SECEOPIE : Boolean := False;
-- SECERRIE
SECERRIE : Boolean := False;
-- SECRDERRIE
SECRDERRIE : Boolean := False;
-- unspecified
Reserved_27_28 : HAL.UInt2 := 16#0#;
-- SECINV
SECINV : Boolean := False;
-- unspecified
Reserved_30_30 : HAL.Bit := 16#0#;
-- SECLOCK
SECLOCK : Boolean := True;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECCR_Register use record
SECPG at 0 range 0 .. 0;
SECPER at 0 range 1 .. 1;
SECMER1 at 0 range 2 .. 2;
SECPNB at 0 range 3 .. 9;
Reserved_10_10 at 0 range 10 .. 10;
SECBKER at 0 range 11 .. 11;
Reserved_12_14 at 0 range 12 .. 14;
SECMER2 at 0 range 15 .. 15;
SECSTRT at 0 range 16 .. 16;
Reserved_17_23 at 0 range 17 .. 23;
SECEOPIE at 0 range 24 .. 24;
SECERRIE at 0 range 25 .. 25;
SECRDERRIE at 0 range 26 .. 26;
Reserved_27_28 at 0 range 27 .. 28;
SECINV at 0 range 29 .. 29;
Reserved_30_30 at 0 range 30 .. 30;
SECLOCK at 0 range 31 .. 31;
end record;
subtype ECCR_ADDR_ECC_Field is HAL.UInt19;
-- Flash ECC register
type ECCR_Register is record
-- Read-only. ECC fail address
ADDR_ECC : ECCR_ADDR_ECC_Field := 16#0#;
-- unspecified
Reserved_19_20 : HAL.UInt2 := 16#0#;
-- Read-only. BK_ECC
BK_ECC : Boolean := False;
-- Read-only. SYSF_ECC
SYSF_ECC : Boolean := False;
-- unspecified
Reserved_23_23 : HAL.Bit := 16#0#;
-- ECC correction interrupt enable
ECCIE : Boolean := False;
-- unspecified
Reserved_25_27 : HAL.UInt3 := 16#0#;
-- ECCC2
ECCC2 : Boolean := False;
-- ECCD2
ECCD2 : Boolean := False;
-- ECC correction
ECCC : Boolean := False;
-- ECC detection
ECCD : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ECCR_Register use record
ADDR_ECC at 0 range 0 .. 18;
Reserved_19_20 at 0 range 19 .. 20;
BK_ECC at 0 range 21 .. 21;
SYSF_ECC at 0 range 22 .. 22;
Reserved_23_23 at 0 range 23 .. 23;
ECCIE at 0 range 24 .. 24;
Reserved_25_27 at 0 range 25 .. 27;
ECCC2 at 0 range 28 .. 28;
ECCD2 at 0 range 29 .. 29;
ECCC at 0 range 30 .. 30;
ECCD at 0 range 31 .. 31;
end record;
subtype OPTR_RDP_Field is HAL.UInt8;
subtype OPTR_BOR_LEV_Field is HAL.UInt3;
-- Flash option register
type OPTR_Register is record
-- Read protection level
RDP : OPTR_RDP_Field := 16#0#;
-- BOR reset Level
BOR_LEV : OPTR_BOR_LEV_Field := 16#0#;
-- unspecified
Reserved_11_11 : HAL.Bit := 16#0#;
-- nRST_STOP
nRST_STOP : Boolean := False;
-- nRST_STDBY
nRST_STDBY : Boolean := False;
-- nRST_SHDW
nRST_SHDW : Boolean := False;
-- unspecified
Reserved_15_15 : HAL.Bit := 16#0#;
-- Independent watchdog selection
IWDG_SW : Boolean := False;
-- Independent watchdog counter freeze in Stop mode
IWDG_STOP : Boolean := False;
-- Independent watchdog counter freeze in Standby mode
IWDG_STDBY : Boolean := False;
-- Window watchdog selection
WWDG_SW : Boolean := False;
-- SWAP_BANK
SWAP_BANK : Boolean := False;
-- DB256K
DB256K : Boolean := False;
-- DBANK
DBANK : Boolean := False;
-- unspecified
Reserved_23_23 : HAL.Bit := 16#0#;
-- SRAM2 parity check enable
SRAM2_PE : Boolean := False;
-- SRAM2 Erase when system reset
SRAM2_RST : Boolean := False;
-- nSWBOOT0
nSWBOOT0 : Boolean := False;
-- nBOOT0
nBOOT0 : Boolean := False;
-- PA15_PUPEN
PA15_PUPEN : Boolean := False;
-- unspecified
Reserved_29_30 : HAL.UInt2 := 16#0#;
-- TZEN
TZEN : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for OPTR_Register use record
RDP at 0 range 0 .. 7;
BOR_LEV at 0 range 8 .. 10;
Reserved_11_11 at 0 range 11 .. 11;
nRST_STOP at 0 range 12 .. 12;
nRST_STDBY at 0 range 13 .. 13;
nRST_SHDW at 0 range 14 .. 14;
Reserved_15_15 at 0 range 15 .. 15;
IWDG_SW at 0 range 16 .. 16;
IWDG_STOP at 0 range 17 .. 17;
IWDG_STDBY at 0 range 18 .. 18;
WWDG_SW at 0 range 19 .. 19;
SWAP_BANK at 0 range 20 .. 20;
DB256K at 0 range 21 .. 21;
DBANK at 0 range 22 .. 22;
Reserved_23_23 at 0 range 23 .. 23;
SRAM2_PE at 0 range 24 .. 24;
SRAM2_RST at 0 range 25 .. 25;
nSWBOOT0 at 0 range 26 .. 26;
nBOOT0 at 0 range 27 .. 27;
PA15_PUPEN at 0 range 28 .. 28;
Reserved_29_30 at 0 range 29 .. 30;
TZEN at 0 range 31 .. 31;
end record;
subtype NSBOOTADD0R_NSBOOTADD0_Field is HAL.UInt25;
-- Flash non-secure boot address 0 register
type NSBOOTADD0R_Register is record
-- unspecified
Reserved_0_6 : HAL.UInt7 := 16#F#;
-- Write-only. NSBOOTADD0
NSBOOTADD0 : NSBOOTADD0R_NSBOOTADD0_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for NSBOOTADD0R_Register use record
Reserved_0_6 at 0 range 0 .. 6;
NSBOOTADD0 at 0 range 7 .. 31;
end record;
subtype NSBOOTADD1R_NSBOOTADD1_Field is HAL.UInt25;
-- Flash non-secure boot address 1 register
type NSBOOTADD1R_Register is record
-- unspecified
Reserved_0_6 : HAL.UInt7 := 16#F#;
-- Write-only. NSBOOTADD1
NSBOOTADD1 : NSBOOTADD1R_NSBOOTADD1_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for NSBOOTADD1R_Register use record
Reserved_0_6 at 0 range 0 .. 6;
NSBOOTADD1 at 0 range 7 .. 31;
end record;
subtype SECBOOTADD0R_SECBOOTADD0_Field is HAL.UInt25;
-- FFlash secure boot address 0 register
type SECBOOTADD0R_Register is record
-- BOOT_LOCK
BOOT_LOCK : Boolean := False;
-- unspecified
Reserved_1_6 : HAL.UInt6 := 16#0#;
-- Write-only. SECBOOTADD0
SECBOOTADD0 : SECBOOTADD0R_SECBOOTADD0_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECBOOTADD0R_Register use record
BOOT_LOCK at 0 range 0 .. 0;
Reserved_1_6 at 0 range 1 .. 6;
SECBOOTADD0 at 0 range 7 .. 31;
end record;
subtype SECWM1R1_SECWM1_PSTRT_Field is HAL.UInt7;
subtype SECWM1R1_SECWM1_PEND_Field is HAL.UInt7;
-- Flash bank 1 secure watermak1 register
type SECWM1R1_Register is record
-- SECWM1_PSTRT
SECWM1_PSTRT : SECWM1R1_SECWM1_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#1FE#;
-- SECWM1_PEND
SECWM1_PEND : SECWM1R1_SECWM1_PEND_Field := 16#0#;
-- unspecified
Reserved_23_31 : HAL.UInt9 := 16#1FE#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECWM1R1_Register use record
SECWM1_PSTRT at 0 range 0 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
SECWM1_PEND at 0 range 16 .. 22;
Reserved_23_31 at 0 range 23 .. 31;
end record;
subtype SECWM1R2_PCROP1_PSTRT_Field is HAL.UInt7;
subtype SECWM1R2_HDP1_PEND_Field is HAL.UInt7;
-- Flash secure watermak1 register 2
type SECWM1R2_Register is record
-- PCROP1_PSTRT
PCROP1_PSTRT : SECWM1R2_PCROP1_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_14 : HAL.UInt8 := 16#1E#;
-- PCROP1EN
PCROP1EN : Boolean := False;
-- HDP1_PEND
HDP1_PEND : SECWM1R2_HDP1_PEND_Field := 16#0#;
-- unspecified
Reserved_23_30 : HAL.UInt8 := 16#1E#;
-- HDP1EN
HDP1EN : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECWM1R2_Register use record
PCROP1_PSTRT at 0 range 0 .. 6;
Reserved_7_14 at 0 range 7 .. 14;
PCROP1EN at 0 range 15 .. 15;
HDP1_PEND at 0 range 16 .. 22;
Reserved_23_30 at 0 range 23 .. 30;
HDP1EN at 0 range 31 .. 31;
end record;
subtype WRP1AR_WRP1A_PSTRT_Field is HAL.UInt7;
subtype WRP1AR_WRP1A_PEND_Field is HAL.UInt7;
-- Flash Bank 1 WRP area A address register
type WRP1AR_Register is record
-- WRP1A_PSTRT
WRP1A_PSTRT : WRP1AR_WRP1A_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#1FE#;
-- WRP1A_PEND
WRP1A_PEND : WRP1AR_WRP1A_PEND_Field := 16#0#;
-- unspecified
Reserved_23_31 : HAL.UInt9 := 16#1FE#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for WRP1AR_Register use record
WRP1A_PSTRT at 0 range 0 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
WRP1A_PEND at 0 range 16 .. 22;
Reserved_23_31 at 0 range 23 .. 31;
end record;
subtype WRP1BR_WRP1B_PSTRT_Field is HAL.UInt7;
subtype WRP1BR_WRP1B_PEND_Field is HAL.UInt7;
-- Flash Bank 1 WRP area B address register
type WRP1BR_Register is record
-- WRP1B_PSTRT
WRP1B_PSTRT : WRP1BR_WRP1B_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#1FE#;
-- WRP1B_PEND
WRP1B_PEND : WRP1BR_WRP1B_PEND_Field := 16#0#;
-- unspecified
Reserved_23_31 : HAL.UInt9 := 16#1FE#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for WRP1BR_Register use record
WRP1B_PSTRT at 0 range 0 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
WRP1B_PEND at 0 range 16 .. 22;
Reserved_23_31 at 0 range 23 .. 31;
end record;
subtype SECWM2R1_SECWM2_PSTRT_Field is HAL.UInt7;
subtype SECWM2R1_SECWM2_PEND_Field is HAL.UInt7;
-- Flash secure watermak2 register
type SECWM2R1_Register is record
-- SECWM2_PSTRT
SECWM2_PSTRT : SECWM2R1_SECWM2_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#1FE#;
-- SECWM2_PEND
SECWM2_PEND : SECWM2R1_SECWM2_PEND_Field := 16#0#;
-- unspecified
Reserved_23_31 : HAL.UInt9 := 16#1FE#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECWM2R1_Register use record
SECWM2_PSTRT at 0 range 0 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
SECWM2_PEND at 0 range 16 .. 22;
Reserved_23_31 at 0 range 23 .. 31;
end record;
subtype SECWM2R2_PCROP2_PSTRT_Field is HAL.UInt7;
subtype SECWM2R2_HDP2_PEND_Field is HAL.UInt7;
-- Flash secure watermak2 register2
type SECWM2R2_Register is record
-- PCROP2_PSTRT
PCROP2_PSTRT : SECWM2R2_PCROP2_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_14 : HAL.UInt8 := 16#1E#;
-- PCROP2EN
PCROP2EN : Boolean := False;
-- HDP2_PEND
HDP2_PEND : SECWM2R2_HDP2_PEND_Field := 16#0#;
-- unspecified
Reserved_23_30 : HAL.UInt8 := 16#1E#;
-- HDP2EN
HDP2EN : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECWM2R2_Register use record
PCROP2_PSTRT at 0 range 0 .. 6;
Reserved_7_14 at 0 range 7 .. 14;
PCROP2EN at 0 range 15 .. 15;
HDP2_PEND at 0 range 16 .. 22;
Reserved_23_30 at 0 range 23 .. 30;
HDP2EN at 0 range 31 .. 31;
end record;
subtype WRP2AR_WRP2A_PSTRT_Field is HAL.UInt7;
subtype WRP2AR_WRP2A_PEND_Field is HAL.UInt7;
-- Flash WPR2 area A address register
type WRP2AR_Register is record
-- WRP2A_PSTRT
WRP2A_PSTRT : WRP2AR_WRP2A_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#1FE#;
-- WRP2A_PEND
WRP2A_PEND : WRP2AR_WRP2A_PEND_Field := 16#0#;
-- unspecified
Reserved_23_31 : HAL.UInt9 := 16#1FE#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for WRP2AR_Register use record
WRP2A_PSTRT at 0 range 0 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
WRP2A_PEND at 0 range 16 .. 22;
Reserved_23_31 at 0 range 23 .. 31;
end record;
subtype WRP2BR_WRP2B_PSTRT_Field is HAL.UInt7;
subtype WRP2BR_WRP2B_PEND_Field is HAL.UInt7;
-- Flash WPR2 area B address register
type WRP2BR_Register is record
-- WRP2B_PSTRT
WRP2B_PSTRT : WRP2BR_WRP2B_PSTRT_Field := 16#0#;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#1FE#;
-- WRP2B_PEND
WRP2B_PEND : WRP2BR_WRP2B_PEND_Field := 16#0#;
-- unspecified
Reserved_23_31 : HAL.UInt9 := 16#1FE#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for WRP2BR_Register use record
WRP2B_PSTRT at 0 range 0 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
WRP2B_PEND at 0 range 16 .. 22;
Reserved_23_31 at 0 range 23 .. 31;
end record;
-- FLASH secure HDP control register
type SECHDPCR_Register is record
-- HDP1_ACCDIS
HDP1_ACCDIS : Boolean := False;
-- HDP2_ACCDIS
HDP2_ACCDIS : Boolean := False;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SECHDPCR_Register use record
HDP1_ACCDIS at 0 range 0 .. 0;
HDP2_ACCDIS at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
-- Power privilege configuration register
type PRIVCFGR_Register is record
-- PRIV
PRIV : Boolean := False;
-- unspecified
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PRIVCFGR_Register use record
PRIV at 0 range 0 .. 0;
Reserved_1_31 at 0 range 1 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Flash
type Flash_Peripheral is record
-- Access control register
ACR : aliased ACR_Register;
-- Power down key register
PDKEYR : aliased HAL.UInt32;
-- Flash non-secure key register
NSKEYR : aliased HAL.UInt32;
-- Flash secure key register
SECKEYR : aliased HAL.UInt32;
-- Flash option key register
OPTKEYR : aliased HAL.UInt32;
-- Flash low voltage key register
LVEKEYR : aliased HAL.UInt32;
-- Flash status register
NSSR : aliased NSSR_Register;
-- Flash status register
SECSR : aliased SECSR_Register;
-- Flash non-secure control register
NSCR : aliased NSCR_Register;
-- Flash secure control register
SECCR : aliased SECCR_Register;
-- Flash ECC register
ECCR : aliased ECCR_Register;
-- Flash option register
OPTR : aliased OPTR_Register;
-- Flash non-secure boot address 0 register
NSBOOTADD0R : aliased NSBOOTADD0R_Register;
-- Flash non-secure boot address 1 register
NSBOOTADD1R : aliased NSBOOTADD1R_Register;
-- FFlash secure boot address 0 register
SECBOOTADD0R : aliased SECBOOTADD0R_Register;
-- Flash bank 1 secure watermak1 register
SECWM1R1 : aliased SECWM1R1_Register;
-- Flash secure watermak1 register 2
SECWM1R2 : aliased SECWM1R2_Register;
-- Flash Bank 1 WRP area A address register
WRP1AR : aliased WRP1AR_Register;
-- Flash Bank 1 WRP area B address register
WRP1BR : aliased WRP1BR_Register;
-- Flash secure watermak2 register
SECWM2R1 : aliased SECWM2R1_Register;
-- Flash secure watermak2 register2
SECWM2R2 : aliased SECWM2R2_Register;
-- Flash WPR2 area A address register
WRP2AR : aliased WRP2AR_Register;
-- Flash WPR2 area B address register
WRP2BR : aliased WRP2BR_Register;
-- FLASH secure block based bank 1 register
SECBB1R1 : aliased HAL.UInt32;
-- FLASH secure block based bank 1 register
SECBB1R2 : aliased HAL.UInt32;
-- FLASH secure block based bank 1 register
SECBB1R3 : aliased HAL.UInt32;
-- FLASH secure block based bank 1 register
SECBB1R4 : aliased HAL.UInt32;
-- FLASH secure block based bank 2 register
SECBB2R1 : aliased HAL.UInt32;
-- FLASH secure block based bank 2 register
SECBB2R2 : aliased HAL.UInt32;
-- FLASH secure block based bank 2 register
SECBB2R3 : aliased HAL.UInt32;
-- FLASH secure block based bank 2 register
SECBB2R4 : aliased HAL.UInt32;
-- FLASH secure HDP control register
SECHDPCR : aliased SECHDPCR_Register;
-- Power privilege configuration register
PRIVCFGR : aliased PRIVCFGR_Register;
end record
with Volatile;
for Flash_Peripheral use record
ACR at 16#0# range 0 .. 31;
PDKEYR at 16#4# range 0 .. 31;
NSKEYR at 16#8# range 0 .. 31;
SECKEYR at 16#C# range 0 .. 31;
OPTKEYR at 16#10# range 0 .. 31;
LVEKEYR at 16#14# range 0 .. 31;
NSSR at 16#20# range 0 .. 31;
SECSR at 16#24# range 0 .. 31;
NSCR at 16#28# range 0 .. 31;
SECCR at 16#2C# range 0 .. 31;
ECCR at 16#30# range 0 .. 31;
OPTR at 16#40# range 0 .. 31;
NSBOOTADD0R at 16#44# range 0 .. 31;
NSBOOTADD1R at 16#48# range 0 .. 31;
SECBOOTADD0R at 16#4C# range 0 .. 31;
SECWM1R1 at 16#50# range 0 .. 31;
SECWM1R2 at 16#54# range 0 .. 31;
WRP1AR at 16#58# range 0 .. 31;
WRP1BR at 16#5C# range 0 .. 31;
SECWM2R1 at 16#60# range 0 .. 31;
SECWM2R2 at 16#64# range 0 .. 31;
WRP2AR at 16#68# range 0 .. 31;
WRP2BR at 16#6C# range 0 .. 31;
SECBB1R1 at 16#80# range 0 .. 31;
SECBB1R2 at 16#84# range 0 .. 31;
SECBB1R3 at 16#88# range 0 .. 31;
SECBB1R4 at 16#8C# range 0 .. 31;
SECBB2R1 at 16#A0# range 0 .. 31;
SECBB2R2 at 16#A4# range 0 .. 31;
SECBB2R3 at 16#A8# range 0 .. 31;
SECBB2R4 at 16#AC# range 0 .. 31;
SECHDPCR at 16#C0# range 0 .. 31;
PRIVCFGR at 16#C4# range 0 .. 31;
end record;
-- Flash
FLASH_Periph : aliased Flash_Peripheral
with Import, Address => System'To_Address (16#40022000#);
-- Flash
SEC_FLASH_Periph : aliased Flash_Peripheral
with Import, Address => System'To_Address (16#50022000#);
end STM32_SVD.Flash;
| 33.770186 | 65 | 0.574876 |
18fa88e95b3bf92c95cf2dc77ba417368c260ec1 | 3,565 | ads | Ada | source/web/tools/a2js/webapi/webgl/webapi-webgl-programs.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/web/tools/a2js/webapi/webgl/webapi-webgl-programs.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/web/tools/a2js/webapi/webgl/webapi-webgl-programs.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Web API Definition --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2016, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package WebAPI.WebGL.Programs is
pragma Preelaborate;
type WebGL_Program is limited interface;
type WebGL_Program_Access is access all WebGL_Program'Class
with Storage_Size => 0;
end WebAPI.WebGL.Programs;
| 64.818182 | 78 | 0.407574 |
1851b692dac098a0d1cfb68be3e92423ac71f911 | 8,012 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-rannum.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-rannum.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-rannum.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . R A N D O M _ N U M B E R S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2007-2020, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Extended pseudo-random number generation
-- This package provides a type representing pseudo-random number generators,
-- and subprograms to extract various uniform distributions of numbers
-- from them. It also provides types for representing initialization values
-- and snapshots of internal generator state, which permit reproducible
-- pseudo-random streams.
-- The generator currently provided by this package has an extremely long
-- period (at least 2**19937-1), and passes the Big Crush test suite, with the
-- exception of the two linear complexity tests. Therefore, it is suitable
-- for simulations, but should not be used as a cryptographic pseudo-random
-- source without additional processing.
-- Note: this package is in the System hierarchy so that it can be directly
-- used by other predefined packages. User access to this package is via
-- the package GNAT.Random_Numbers (file g-rannum.ads), which also extends
-- its capabilities. The interfaces are different so as to include in
-- System.Random_Numbers only the definitions necessary to implement the
-- standard random-number packages Ada.Numerics.Float_Random and
-- Ada.Numerics.Discrete_Random.
-- Note: this package is marked SPARK_Mode Off, because functions Random work
-- by side-effect to change the value of the generator, hence they should not
-- be called from SPARK code.
with Interfaces;
private with Ada.Strings.Text_Output;
package System.Random_Numbers with
SPARK_Mode => Off
is
type Generator is limited private;
-- Generator encodes the current state of a random number stream, it is
-- provided as input to produce the next random number, and updated so
-- that it is ready to produce the next one.
type State is private;
-- A non-limited version of a Generator's internal state
function Random (Gen : Generator) return Float;
function Random (Gen : Generator) return Long_Float;
-- Return pseudo-random numbers uniformly distributed on [0.0 .. 1.0)
function Random (Gen : Generator) return Interfaces.Unsigned_32;
function Random (Gen : Generator) return Interfaces.Unsigned_64;
-- Return pseudo-random numbers uniformly distributed on T'First .. T'Last
-- for builtin integer types.
generic
type Result_Subtype is (<>);
Default_Min : Result_Subtype := Result_Subtype'Val (0);
function Random_Discrete
(Gen : Generator;
Min : Result_Subtype := Default_Min;
Max : Result_Subtype := Result_Subtype'Last) return Result_Subtype;
-- Returns pseudo-random numbers uniformly distributed on Min .. Max
generic
type Result_Subtype is digits <>;
function Random_Float (Gen : Generator) return Result_Subtype;
-- Returns pseudo-random numbers uniformly distributed on [0 .. 1)
type Initialization_Vector is
array (Integer range <>) of Interfaces.Unsigned_32;
-- Provides the most general initialization values for a generator (used
-- in Reset). In general, there is little point in providing more than
-- a certain number of values (currently 624).
procedure Reset (Gen : Generator);
-- Re-initialize the state of Gen from the time of day
procedure Reset (Gen : Generator; Initiator : Initialization_Vector);
procedure Reset (Gen : Generator; Initiator : Interfaces.Integer_32);
procedure Reset (Gen : Generator; Initiator : Interfaces.Unsigned_32);
procedure Reset (Gen : Generator; Initiator : Integer);
-- Re-initialize Gen based on the Initiator in various ways. Identical
-- values of Initiator cause identical sequences of values.
procedure Reset (Gen : Generator; From_State : Generator);
-- Causes the state of Gen to be identical to that of From_State; Gen
-- and From_State will produce identical sequences of values subsequently.
procedure Reset (Gen : Generator; From_State : State);
procedure Save (Gen : Generator; To_State : out State);
-- The sequence
-- Save (Gen2, S); Reset (Gen1, S)
-- has the same effect as Reset (Gen2, Gen1).
procedure Reset (Gen : Generator; From_Image : String);
function Image (Gen : Generator) return String;
-- The call
-- Reset (Gen2, Image (Gen1))
-- has the same effect as Reset (Gen2, Gen1);
Max_Image_Width : constant := 11 * 624;
-- Maximum possible length of result of Image (...)
function Image (Of_State : State) return String;
-- A String representation of Of_State. Identical to the result of
-- Image (Gen), if Of_State has been set with Save (Gen, Of_State).
function Value (Coded_State : String) return State;
-- Inverse of Image on States
private
N : constant := 624;
-- The number of 32-bit integers in the shift register
M : constant := 397;
-- Feedback distance from the current position
subtype State_Val is Interfaces.Unsigned_32;
type State is array (0 .. N - 1) of State_Val with Put_Image => Put_Image;
procedure Put_Image
(S : in out Ada.Strings.Text_Output.Sink'Class; V : State);
type Writable_Access (Self : access Generator) is limited null record;
-- Auxiliary type to make Generator a self-referential type
type Generator is limited record
Writable : Writable_Access (Generator'Access);
-- This self reference allows functions to modify Generator arguments
S : State := (others => 0);
-- The shift register, a circular buffer
I : Integer := N;
-- Current starting position in shift register S (N means uninitialized)
-- We should avoid using the identifier I here ???
end record;
end System.Random_Numbers;
| 47.690476 | 79 | 0.615951 |
204d71964c75347837f571259635197e7939295d | 1,178 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/blkextract_from_reg.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/blkextract_from_reg.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/blkextract_from_reg.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- { dg-do run }
with System, Ada.Unchecked_Conversion; use System;
procedure BLKextract_From_Reg is
type Byte is range 0 .. +255;
for Byte'size use 8;
type RGB is array (1 .. 3) of Byte;
for RGB'Size use 24;
type RAW_Packet is range 0 .. 2 ** 32 - 1;
for RAW_Packet'Size use 32;
type Composite_Packet is record
Values : RGB;
Pad : Byte;
end record;
for Composite_Packet use record
Values at 0 range 0 .. 23;
Pad at 3 range 0 .. 7;
end record;
for Composite_Packet'Size use 32;
function To_Composite_Packet is
new Ada.Unchecked_Conversion (RAW_Packet, Composite_Packet);
function Blob return RGB is
RAW_Blob : RAW_Packet := 16#01020304#;
begin
return To_Composite_Packet (RAW_Blob).Values;
end;
Blob_Color : RGB := Blob;
Expected_Color : RGB;
begin
if System.Default_Bit_Order = High_Order_First then
Expected_Color := (1 => 1, 2 => 2, 3 => 3);
else
Expected_Color := (1 => 4, 2 => 3, 3 => 2);
end if;
for I in Blob_Color'Range loop
if Blob_Color (I) /= Expected_Color (I) then
raise Program_Error;
end if;
end loop;
end;
| 23.56 | 66 | 0.634975 |
0e1bd2c4dd3a6b407c8d238b9f6f35d031f27a0e | 952 | ads | Ada | 3-mid/opengl/source/lean/model/opengl-model-capsule-lit_colored_textured.ads | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 20 | 2015-11-04T09:23:59.000Z | 2022-01-14T10:21:42.000Z | 3-mid/opengl/source/lean/model/opengl-model-capsule-lit_colored_textured.ads | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 2 | 2015-11-04T17:05:56.000Z | 2015-12-08T03:16:13.000Z | 3-mid/opengl/source/lean/model/opengl-model-capsule-lit_colored_textured.ads | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 1 | 2015-12-07T12:53:52.000Z | 2015-12-07T12:53:52.000Z | with
openGL.Geometry;
package openGL.Model.capsule.lit_colored_textured
--
-- Models a lit, colored and textured capsule.
--
is
type Item is new Model.capsule.item with
record
Radius : Real;
Height : Real;
Color : lucid_Color;
Image : asset_Name := null_Asset;
end record;
type View is access all Item'Class;
---------
--- Forge
--
function new_Capsule (Radius : in Real;
Height : in Real;
Color : in lucid_Color;
Image : in asset_Name := null_Asset) return View;
--------------
--- Attributes
--
overriding
function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class;
Fonts : in Font.font_id_Map_of_font) return Geometry.views;
end openGL.Model.capsule.lit_colored_textured;
| 23.8 | 118 | 0.559874 |
182ca95abc7fb23b89da72f8b2c6896b5da0407a | 2,022 | ads | Ada | boards/MicroBit/src/zfp/adl_config.ads | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 6 | 2017-05-28T04:37:11.000Z | 2020-11-22T11:26:19.000Z | boards/MicroBit/src/zfp/adl_config.ads | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 2 | 2019-08-30T10:57:40.000Z | 2020-02-11T21:34:14.000Z | boards/MicroBit/src/zfp/adl_config.ads | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 2 | 2017-02-07T19:42:02.000Z | 2020-11-22T11:26:20.000Z | -- This package was generated by the Ada_Drivers_Library project wizard script
package ADL_Config is
Vendor : constant String := "Nordic"; -- From board definition
Max_Mount_Points : constant := 2; -- From default value
Boot_Memory : constant String := "flash"; -- From default value
Max_Mount_Name_Length : constant := 128; -- From default value
Runtime_Profile : constant String := "zfp"; -- From command line
Device_Name : constant String := "nRF51822xxAA"; -- From board definition
Device_Family : constant String := "nRF51"; -- From board definition
Has_Ravenscar_SFP_Runtime : constant String := "False"; -- From board definition
Runtime_Name : constant String := "zfp-cortex-m0"; -- From default value
Has_Ravenscar_Full_Runtime : constant String := "False"; -- From board definition
CPU_Core : constant String := "ARM Cortex-M0"; -- From mcu definition
Board : constant String := "MicroBit"; -- From command line
Has_ZFP_Runtime : constant String := "True"; -- From board definition
Number_Of_Interrupts : constant := 32; -- From MCU definition
Has_Custom_Memory_Area_1 : constant Boolean := False; -- From default value
Use_Startup_Gen : constant Boolean := True; -- From command line
Max_Path_Length : constant := 1024; -- From default value
Runtime_Name_Suffix : constant String := "cortex-m0"; -- From board definition
Architecture : constant String := "ARM"; -- From board definition
end ADL_Config;
| 87.913043 | 101 | 0.525717 |
c5c71f4d6864f6e1c93f5a9ad1fb45de250bd7ef | 3,682 | ads | Ada | source/amf/uml/amf-uml-holders-connector_kinds.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-uml-holders-connector_kinds.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-uml-holders-connector_kinds.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with League.Holders.Generic_Enumerations;
package AMF.UML.Holders.Connector_Kinds is
new League.Holders.Generic_Enumerations
(AMF.UML.UML_Connector_Kind);
pragma Preelaborate (AMF.UML.Holders.Connector_Kinds);
| 70.807692 | 78 | 0.40956 |
c50b1ed4c66c96b128cc36bf8ff8db67be2a22b9 | 10,053 | adb | Ada | .emacs.d/elpa/wisi-3.1.3/wisitoken-generate-packrat.adb | caqg/linux-home | eed631aae6f5e59e4f46e14f1dff443abca5fa28 | [
"Linux-OpenIB"
] | null | null | null | .emacs.d/elpa/wisi-3.1.3/wisitoken-generate-packrat.adb | caqg/linux-home | eed631aae6f5e59e4f46e14f1dff443abca5fa28 | [
"Linux-OpenIB"
] | null | null | null | .emacs.d/elpa/wisi-3.1.3/wisitoken-generate-packrat.adb | caqg/linux-home | eed631aae6f5e59e4f46e14f1dff443abca5fa28 | [
"Linux-OpenIB"
] | null | null | null | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your option) any later
-- version. This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- As a special exception under Section 7 of GPL version 3, you are granted
-- additional permissions described in the GCC Runtime Library Exception,
-- version 3.1, as published by the Free Software Foundation.
pragma License (Modified_GPL);
package body WisiToken.Generate.Packrat is
function Potential_Direct_Right_Recursive
(Grammar : in WisiToken.Productions.Prod_Arrays.Vector;
Empty : in Token_ID_Set)
return Token_ID_Set
is
subtype Nonterminal is Token_ID range Grammar.First_Index .. Grammar.Last_Index;
begin
return Result : Token_ID_Set (Nonterminal) := (others => False) do
for Prod of Grammar loop
RHS_Loop :
for RHS of Prod.RHSs loop
ID_Loop :
for I in reverse RHS.Tokens.First_Index + 1 .. RHS.Tokens.Last_Index loop
declare
ID : constant Token_ID := RHS.Tokens (I);
begin
if ID = Prod.LHS then
Result (ID) := True;
exit RHS_Loop;
elsif not (ID in Nonterminal) then
exit ID_Loop;
elsif not Empty (ID) then
exit ID_Loop;
end if;
end;
end loop ID_Loop;
end loop RHS_Loop;
end loop;
end return;
end Potential_Direct_Right_Recursive;
procedure Indirect_Left_Recursive (Data : in out Packrat.Data)
is
begin
for Prod_I of Data.Grammar loop
for Prod_J of Data.Grammar loop
Data.Involved (Prod_I.LHS, Prod_J.LHS) :=
Data.First (Prod_I.LHS, Prod_J.LHS) and
Data.First (Prod_J.LHS, Prod_I.LHS);
end loop;
end loop;
end Indirect_Left_Recursive;
----------
-- Public subprograms
function Initialize
(Source_File_Name : in String;
Grammar : in WisiToken.Productions.Prod_Arrays.Vector;
Source_Line_Map : in Productions.Source_Line_Maps.Vector;
First_Terminal : in Token_ID)
return Packrat.Data
is
Empty : constant Token_ID_Set := WisiToken.Generate.Has_Empty_Production (Grammar);
begin
return Result : Packrat.Data :=
(First_Terminal => First_Terminal,
First_Nonterminal => Grammar.First_Index,
Last_Nonterminal => Grammar.Last_Index,
Source_File_Name => +Source_File_Name,
Grammar => Grammar,
Source_Line_Map => Source_Line_Map,
Empty => Empty,
Direct_Left_Recursive => Potential_Direct_Left_Recursive (Grammar, Empty),
First => WisiToken.Generate.First (Grammar, Empty, First_Terminal => First_Terminal),
Involved => (others => (others => False)))
do
Indirect_Left_Recursive (Result);
end return;
end Initialize;
procedure Check_Recursion (Data : in Packrat.Data; Descriptor : in WisiToken.Descriptor)
is
Right_Recursive : constant Token_ID_Set := Potential_Direct_Right_Recursive (Data.Grammar, Data.Empty);
begin
for Prod of Data.Grammar loop
if Data.Direct_Left_Recursive (Prod.LHS) and Right_Recursive (Prod.LHS) then
-- We only implement the simplest left recursion solution ([warth
-- 2008] figure 3); [tratt 2010] section 6.3 gives this condition for
-- that to be valid.
-- FIXME: not quite? definite direct right recursive ok?
-- FIXME: for indirect left recursion, need potential indirect right recursive check?
Put_Error
(Error_Message
(-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).Line, "'" & Image (Prod.LHS, Descriptor) &
"' is both left and right recursive; not supported."));
end if;
for I in Data.Involved'Range (2) loop
if Prod.LHS /= I and then Data.Involved (Prod.LHS, I) then
Put_Error
(Error_Message
(-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).Line, "'" & Image (Prod.LHS, Descriptor) &
"' is indirect recursive with " & Image (I, Descriptor) & ", not supported"));
end if;
end loop;
end loop;
end Check_Recursion;
procedure Check_RHS_Order (Data : in Packrat.Data; Descriptor : in WisiToken.Descriptor)
is
use all type Ada.Containers.Count_Type;
begin
for Prod of Data.Grammar loop
-- Empty must be last
for I in Prod.RHSs.First_Index .. Prod.RHSs.Last_Index - 1 loop
if Prod.RHSs (I).Tokens.Length = 0 then
Put_Error
(Error_Message
(-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).RHS_Map (I),
"right hand side" & Integer'Image (I) & " in " & Image (Prod.LHS, Descriptor) &
" is empty, but not last; no later right hand side will match."));
WisiToken.Generate.Error := True;
end if;
end loop;
for I in Prod.RHSs.First_Index + 1 .. Prod.RHSs.Last_Index loop
declare
Cur : Token_ID_Arrays.Vector renames Prod.RHSs (I).Tokens;
begin
-- Shared prefix; longer must be first
for J in Prod.RHSs.First_Index .. I - 1 loop
declare
Prev : Token_ID_Arrays.Vector renames Prod.RHSs (J).Tokens;
K : constant Natural := Shared_Prefix (Prev, Cur);
begin
if K > 0 and Prev.Length < Cur.Length then
Put_Error
(Error_Message
(-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).RHS_Map (I),
"right hand side" & Integer'Image (I) & " in " & Image (Prod.LHS, Descriptor) &
" may never match; it shares a prefix with a shorter previous rhs" &
Integer'Image (J) & "."));
end if;
end;
end loop;
-- recursion; typical LALR list is written:
--
-- statement_list
-- : statement
-- | statement_list statement
-- ;
-- association_list
-- : association
-- | association_list COMMA association
-- ;
--
-- a different recursive definition:
--
-- name
-- : IDENTIFIER
-- | name LEFT_PAREN range_list RIGHT_PAREN
-- | name actual_parameter_part
-- ...
-- ;
--
-- For packrat, the recursive RHSs must come before others:
--
-- statement_list
-- : statement_list statement
-- | statement
-- ;
-- association_list
-- : association_list COMMA association
-- | association
-- ;
-- name
-- : name LEFT_PAREN range_list RIGHT_PAREN
-- | name actual_parameter_part
-- | IDENTIFIER
-- ...
-- ;
declare
Prev : Token_ID_Arrays.Vector renames Prod.RHSs (I - 1).Tokens;
begin
if Cur.Length > 0 and then Prev.Length > 0 and then
Cur (1) = Prod.LHS and then Prev (1) /= Prod.LHS
then
Put_Error
(Error_Message
(-Data.Source_File_Name, Data.Source_Line_Map (Prod.LHS).Line,
"recursive right hand sides must be before others."));
end if;
end;
end;
end loop;
end loop;
end Check_RHS_Order;
procedure Check_All (Data : in Packrat.Data; Descriptor : in WisiToken.Descriptor)
is begin
Check_Recursion (Data, Descriptor);
Check_RHS_Order (Data, Descriptor);
end Check_All;
function Potential_Direct_Left_Recursive
(Grammar : in WisiToken.Productions.Prod_Arrays.Vector;
Empty : in Token_ID_Set)
return Token_ID_Set
is
subtype Nonterminal is Token_ID range Grammar.First_Index .. Grammar.Last_Index;
begin
-- FIXME: this duplicates the computation of First; if keep First,
-- change this to use it.
return Result : Token_ID_Set (Nonterminal) := (others => False) do
for Prod of Grammar loop
RHS_Loop :
for RHS of Prod.RHSs loop
ID_Loop :
for ID of RHS.Tokens loop
if ID = Prod.LHS then
Result (ID) := True;
exit RHS_Loop;
elsif not (ID in Nonterminal) then
exit ID_Loop;
elsif not Empty (ID) then
exit ID_Loop;
end if;
end loop ID_Loop;
end loop RHS_Loop;
end loop;
end return;
end Potential_Direct_Left_Recursive;
end WisiToken.Generate.Packrat;
| 40.53629 | 119 | 0.539938 |
204b335b0557d243a26af8fe82a01298beac5f98 | 453 | adb | Ada | generate_key.adb | doug16rogers/solitaire | 124991c57ee3bfdfa9545996e9a3a83275532d99 | [
"MIT"
] | 1 | 2018-03-23T13:52:06.000Z | 2018-03-23T13:52:06.000Z | generate_key.adb | doug16rogers/solitaire | 124991c57ee3bfdfa9545996e9a3a83275532d99 | [
"MIT"
] | null | null | null | generate_key.adb | doug16rogers/solitaire | 124991c57ee3bfdfa9545996e9a3a83275532d99 | [
"MIT"
] | null | null | null | with Solitaire_Operations.Text_Representation;
with Ada.Text_IO;
use Ada;
procedure Generate_Key is
Deck : Solitaire_Operations.Deck_List := Solitaire_Operations.Standard_Deck;
begin -- Generate_Key
Solitaire_Operations.Shuffle (Deck => Deck);
Output : for I in Deck'range loop
Text_IO.Put (Item => Solitaire_Operations.Text_Representation.Short_Card_Name (Deck (I) ) );
end loop Output;
Text_IO.New_Line;
end Generate_Key; | 30.2 | 98 | 0.761589 |
0e03edc859ee76a84853a039962bc65abd68b8ad | 6,930 | adb | Ada | src/tcg-collision_objects.adb | Fabien-Chouteau/tiled-code-gen | c4ef09eee995793115a7f3fc35f8c17f5d715322 | [
"BSD-3-Clause"
] | 1 | 2020-12-19T21:14:57.000Z | 2020-12-19T21:14:57.000Z | src/tcg-collision_objects.adb | Fabien-Chouteau/tiled-code-gen | c4ef09eee995793115a7f3fc35f8c17f5d715322 | [
"BSD-3-Clause"
] | null | null | null | src/tcg-collision_objects.adb | Fabien-Chouteau/tiled-code-gen | c4ef09eee995793115a7f3fc35f8c17f5d715322 | [
"BSD-3-Clause"
] | null | null | null | with Ada.Strings.Fixed;
with TCG.Utils; use TCG.Utils;
with DOM.Core; use DOM.Core;
with DOM.Core.Elements; use DOM.Core.Elements;
with DOM.Core.Nodes; use DOM.Core.Nodes;
package body TCG.Collision_Objects is
type Polygon_Access is access all Polygon;
function To_Float (Str : String) return Float;
function To_Point (Str : String) return Point;
function To_Polygon (Offset : Point;
Str : String)
return not null Polygon_Access;
function Create (N : Node) return Collision_Shape;
function Inside_Ellipse (Pt : Point;
Ellipse : Polygon)
return Boolean
with Pre => Ellipse'Length = 4 and then Ellipse'First = 1;
--------------
-- To_Float --
--------------
function To_Float (Str : String) return Float
is (Float'Value (Str));
--------------
-- To_Point --
--------------
function To_Point (Str : String) return Point is
Index : constant Natural := Ada.Strings.Fixed.Index (Str, ",");
begin
return (To_Float (Str (Str'First .. Index - 1)),
To_Float (Str (Index + 1 .. Str'Last)));
end To_Point;
----------------
-- To_Polygon --
----------------
function To_Polygon (Offset : Point;
Str : String)
return not null Polygon_Access
is
Number_Of_Points : constant Natural :=
Ada.Strings.Fixed.Count (Str, " ") + 1;
Ret : constant not null Polygon_Access
:= new Polygon (1 .. Number_Of_Points);
Index : Natural;
Last_Index : Natural := Str'First;
begin
for Pt of Ret.all loop
Index := Ada.Strings.Fixed.Index (Str (Last_Index .. Str'Last), " ");
if Index = 0 then
-- Last point in the list
Pt := To_Point (Str (Last_Index .. Str'Last));
else
Pt := To_Point (Str (Last_Index .. Index - 1));
end if;
Pt.X := Pt.X + Offset.X;
Pt.Y := Pt.Y + Offset.Y;
Last_Index := Index + 1;
end loop;
return Ret;
end To_Polygon;
------------
-- Create --
------------
function Create (N : Node) return Collision_Shape is
X : constant Float := To_Float (Item_As_String (N, "x"));
Y : constant Float := To_Float (Item_As_String (N, "y"));
Has_Width : constant Boolean := Item_Exists (N, "width");
Has_Height : constant Boolean := Item_Exists (N, "height");
Height, Width : Float;
Rect : Polygon (1 .. 4);
Poly : access Polygon;
List : Node_List;
begin
if Has_Width or else Has_Height then
Width := To_Float (Item_As_String (N, "width"));
Height := To_Float (Item_As_String (N, "height"));
Rect := ((X, Y),
(X + Width, Y),
(X + Width, Y + Height),
(X, Y + Height));
List := Get_Elements_By_Tag_Name (N, "ellipse");
if Length (List) /= 0 then
Free (List);
return (Ellipse_Shape, Rect);
else
Free (List);
return (Rectangle_Shape, Rect);
end if;
else
List := Get_Elements_By_Tag_Name (N, "polygon");
if Length (List) /= 1 then
raise Program_Error with "Invalid number of polygon elements";
end if;
Poly := To_Polygon ((X, Y),
Item_As_String (Item (List, 0), "points"));
Free (List);
return (Polygon_Shape, Poly);
end if;
end Create;
-------------------
-- Has_Collision --
-------------------
function Has_Collision (This : Collisions)
return Boolean
is (not This.List.Is_Empty);
------------
-- Create --
------------
procedure Load (This : in out Collisions;
N : DOM.Core.Node)
is
List : Node_List;
begin
List := Elements.Get_Elements_By_Tag_Name (N, "object");
for Index in 1 .. Length (List) loop
This.List.Append (Create (Item (List, Index - 1)));
end loop;
Free (List);
end Load;
--------------------
-- Inside_Ellipse --
--------------------
function Inside_Ellipse (Pt : Point;
Ellipse : Polygon)
return Boolean
is
Diag_1 : constant Geometry.Line := To_Line (Ellipse (1), Ellipse (3));
Diag_2 : constant Geometry.Line := To_Line (Ellipse (2), Ellipse (4));
Center : constant Point := Intersection (Diag_1, Diag_2);
H_Axis : constant Vector := To_Vector ((Ellipse (1), Ellipse (2)));
V_Axis : constant Vector := To_Vector ((Ellipse (2), Ellipse (3)));
H_Semi : constant Distance_Type := Length (H_Axis) / 2.0;
V_Semi : constant Distance_Type := Length (V_Axis) / 2.0;
begin
return (
((Pt.X - Center.X)**2 / H_Semi**2)
+
((Pt.Y - Center.Y)**2 / V_Semi**2)
) <= 1.0;
end Inside_Ellipse;
-------------
-- Collide --
-------------
function Collide
(This : Collisions;
X, Y : Float)
return Boolean
is
function Fixed_Inside (P : Point; Poly : Polygon) return Boolean;
function Fixed_Inside (P : Point; Poly : Polygon) return Boolean is
J : Natural := Poly'Last;
C : Boolean := False;
Deltay : Float;
begin
-- See http://www.ecse.rpi.edu/Homepages/wrf/Research
-- /Short_Notes/pnpoly.html
for S in Poly'Range loop
Deltay := P.Y - Poly (S).Y;
-- The divide below is mandatory: if you transform it into a
-- multiplication on the other side, the sign of the denominator
-- will flip the inequality, and thus make the code harder.
if ((0.0 <= Deltay and then P.Y < Poly (J).Y)
or else (Poly (J).Y <= P.Y and then Deltay < 0.0))
and then
(P.X - Poly (S).X < (Poly (J).X - Poly (S).X) * Deltay
/ (Poly (J).Y - Poly (S).Y))
then
C := not C;
end if;
J := S;
end loop;
return C;
end Fixed_Inside;
begin
for Shape of This.List loop
case Shape.Kind is
when Rectangle_Shape =>
if Fixed_Inside ((X, Y), Shape.Rect) then
return True;
end if;
when Ellipse_Shape =>
if Inside_Ellipse ((X, Y), Shape.Rect) then
return True;
end if;
when Polygon_Shape =>
if Fixed_Inside ((X, Y), Shape.Poly.all) then
return True;
end if;
end case;
end loop;
return False;
end Collide;
end TCG.Collision_Objects;
| 29.742489 | 78 | 0.504185 |
2004e457a91b06ab7ab6587567c9b06cda3e0d28 | 4,246 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503g.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503g.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503g.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C35503G.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.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT 'PRED' AND 'SUCC' YIELD THE CORRECT RESULT WHEN THE
-- PREFIX IS AN INTEGER TYPE.
-- HISTORY:
-- RJW 03/17/86 CREATED ORIGINAL TEST.
-- DHH 10/19/87 SHORTENED LINES CONTAINING MORE THAN 72 CHARACTERS.
WITH REPORT; USE REPORT;
PROCEDURE C35503G IS
BEGIN
TEST ("C35503G", "CHECK THAT 'PRED' AND 'SUCC' YIELD THE " &
"CORRECT RESULT WHEN THE PREFIX IS AN " &
"INTEGER TYPE" );
DECLARE
TYPE INT IS RANGE -6 .. 6;
SUBTYPE SINT IS INT RANGE -4 .. 4;
BEGIN
FOR I IN INT'FIRST + 1 .. INT'LAST LOOP
BEGIN
IF SINT'PRED (I) /= I - 1 THEN
FAILED ( "WRONG SINT'PRED FOR " &
INT'IMAGE (I));
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED ( "EXCEPTION RAISED FOR " &
"SINT'PRED OF " &
INT'IMAGE (I));
END;
END LOOP;
FOR I IN INT'FIRST .. INT'LAST - 1 LOOP
BEGIN
IF SINT'SUCC (I) /= I + 1 THEN
FAILED ( "WRONG SINT'SUCC FOR " &
INT'IMAGE (I));
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED ( "EXCEPTION RAISED FOR " &
"SINT'SUCC OF " &
INT'IMAGE (I));
END;
END LOOP;
END;
DECLARE
SUBTYPE INTRANGE IS INTEGER RANGE IDENT_INT(-6) ..
IDENT_INT(6);
SUBTYPE SINTEGER IS INTEGER RANGE IDENT_INT(-4) ..
IDENT_INT(4);
BEGIN
FOR I IN INTRANGE LOOP
BEGIN
IF SINTEGER'PRED (I) /= I - IDENT_INT(1) THEN
FAILED ( "WRONG SINTEGER'PRED FOR " &
INTEGER'IMAGE (I));
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED ( "EXCEPTION RAISED FOR " &
"SINTEGER'PRED OF " &
INTEGER'IMAGE (I));
END;
BEGIN
IF SINTEGER'SUCC (I) /= I + IDENT_INT(1) THEN
FAILED ( "WRONG SINTEGER'SUCC FOR " &
INTEGER'IMAGE (I));
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED ( "EXCEPTION RAISED FOR " &
"SINTEGER'SUCC OF " &
INTEGER'IMAGE (I));
END;
END LOOP;
END;
RESULT;
END C35503G;
| 37.245614 | 79 | 0.462789 |
20628ca1504b6a79de8d47b0a20b929347c9ad14 | 152 | adb | Ada | 4-high/gel/applet/demo/distributed/dsa/launch_client.adb | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 20 | 2015-11-04T09:23:59.000Z | 2022-01-14T10:21:42.000Z | 4-high/gel/applet/demo/distributed/dsa/launch_client.adb | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 2 | 2015-11-04T17:05:56.000Z | 2015-12-08T03:16:13.000Z | 4-high/gel/applet/demo/distributed/dsa/launch_client.adb | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 1 | 2015-12-07T12:53:52.000Z | 2015-12-07T12:53:52.000Z | with
gel_demo_Client;
procedure launch_Client
--
-- Launches the remote client.
--
is
begin
gel_demo_Client.item.start;
end launch_Client;
| 10.857143 | 31 | 0.730263 |
187e226d67e2318f5364fef37b81feb7c3644457 | 326,037 | ads | Ada | source/amf/uml/amf-internals-tables-uml_metamodel-objects.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-internals-tables-uml_metamodel-objects.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-internals-tables-uml_metamodel-objects.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
package AMF.Internals.Tables.UML_Metamodel.Objects is
procedure Initialize;
private
procedure Initialize_1 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_5 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_6 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_7 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_8 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_9 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_10 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_11 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_12 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_13 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_14 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_15 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_16 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_17 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_18 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_19 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_20 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_21 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_22 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_23 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_24 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_25 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_26 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_27 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_28 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_29 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_30 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_31 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_32 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_33 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_34 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_35 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_36 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_37 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_38 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_39 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_40 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_41 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_42 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_43 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_44 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_45 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_46 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_47 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_48 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_49 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_50 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_51 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_52 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_53 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_54 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_55 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_56 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_57 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_58 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_59 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_60 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_61 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_62 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_63 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_64 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_65 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_66 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_67 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_68 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_69 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_70 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_71 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_72 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_73 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_74 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_75 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_76 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_77 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_78 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_79 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_80 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_81 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_82 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_83 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_84 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_85 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_86 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_87 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_88 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_89 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_90 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_91 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_92 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_93 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_94 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_95 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_96 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_97 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_98 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_99 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_100 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_101 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_102 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_103 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_104 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_105 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_106 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_107 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_108 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_109 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_110 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_111 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_112 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_113 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_114 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_115 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_116 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_117 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_118 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_119 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_120 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_121 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_122 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_123 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_124 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_125 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_126 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_127 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_128 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_129 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_130 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_131 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_132 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_133 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_134 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_135 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_136 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_137 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_138 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_139 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_140 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_141 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_142 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_143 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_144 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_145 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_146 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_147 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_148 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_149 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_150 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_151 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_152 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_153 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_154 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_155 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_156 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_157 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_158 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_159 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_160 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_161 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_162 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_163 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_164 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_165 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_166 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_167 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_168 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_169 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_170 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_171 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_172 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_173 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_174 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_175 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_176 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_177 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_178 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_179 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_180 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_181 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_182 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_183 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_184 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_185 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_186 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_187 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_188 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_189 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_190 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_191 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_192 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_193 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_194 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_195 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_196 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_197 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_198 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_199 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_200 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_201 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_202 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_203 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_204 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_205 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_206 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_207 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_208 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_209 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_210 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_211 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_212 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_213 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_214 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_215 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_216 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_217 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_218 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_219 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_220 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_221 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_222 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_223 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_224 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_225 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_226 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_227 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_228 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_229 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_230 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_231 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_232 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_233 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_234 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_235 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_236 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_237 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_238 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_239 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_240 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_241 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_242 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_243 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_244 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_245 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_246 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_247 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_248 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_249 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_250 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_251 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_252 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_253 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_254 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_255 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_256 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_257 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_258 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_259 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_260 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_261 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_262 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_263 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_264 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_265 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_266 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_267 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_268 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_269 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_270 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_271 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_272 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_273 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_274 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_275 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_276 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_277 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_278 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_279 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_280 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_281 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_282 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_283 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_284 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_285 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_286 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_287 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_288 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_289 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_290 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_291 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_292 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_293 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_294 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_295 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_296 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_297 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_298 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_299 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_300 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_301 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_302 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_303 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_304 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_305 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_306 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_307 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_308 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_309 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_310 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_311 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_312 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_313 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_314 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_315 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_316 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_317 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_318 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_319 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_320 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_321 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_322 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_323 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_324 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_325 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_326 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_327 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_328 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_329 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_330 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_331 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_332 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_333 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_334 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_335 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_336 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_337 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_338 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_339 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_340 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_341 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_342 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_343 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_344 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_345 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_346 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_347 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_348 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_349 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_350 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_351 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_352 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_353 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_354 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_355 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_356 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_357 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_358 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_359 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_360 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_361 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_362 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_363 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_364 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_365 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_366 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_367 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_368 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_369 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_370 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_371 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_372 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_373 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_374 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_375 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_376 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_377 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_378 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_379 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_380 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_381 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_382 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_383 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_384 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_385 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_386 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_387 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_388 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_389 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_390 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_391 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_392 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_393 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_394 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_395 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_396 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_397 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_398 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_399 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_400 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_401 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_402 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_403 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_404 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_405 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_406 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_407 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_408 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_409 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_410 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_411 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_412 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_413 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_414 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_415 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_416 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_417 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_418 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_419 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_420 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_421 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_422 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_423 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_424 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_425 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_426 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_427 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_428 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_429 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_430 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_431 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_432 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_433 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_434 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_435 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_436 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_437 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_438 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_439 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_440 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_441 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_442 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_443 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_444 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_445 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_446 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_447 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_448 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_449 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_450 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_451 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_452 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_453 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_454 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_455 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_456 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_457 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_458 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_459 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_460 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_461 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_462 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_463 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_464 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_465 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_466 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_467 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_468 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_469 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_470 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_471 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_472 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_473 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_474 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_475 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_476 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_477 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_478 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_479 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_480 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_481 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_482 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_483 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_484 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_485 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_486 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_487 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_488 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_489 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_490 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_491 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_492 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_493 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_494 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_495 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_496 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_497 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_498 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_499 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_500 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_501 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_502 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_503 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_504 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_505 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_506 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_507 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_508 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_509 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_510 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_511 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_512 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_513 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_514 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_515 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_516 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_517 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_518 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_519 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_520 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_521 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_522 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_523 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_524 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_525 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_526 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_527 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_528 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_529 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_530 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_531 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_532 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_533 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_534 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_535 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_536 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_537 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_538 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_539 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_540 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_541 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_542 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_543 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_544 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_545 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_546 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_547 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_548 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_549 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_550 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_551 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_552 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_553 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_554 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_555 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_556 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_557 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_558 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_559 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_560 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_561 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_562 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_563 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_564 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_565 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_566 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_567 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_568 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_569 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_570 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_571 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_572 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_573 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_574 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_575 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_576 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_577 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_578 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_579 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_580 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_581 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_582 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_583 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_584 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_585 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_586 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_587 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_588 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_589 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_590 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_591 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_592 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_593 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_594 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_595 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_596 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_597 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_598 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_599 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_600 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_601 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_602 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_603 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_604 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_605 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_606 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_607 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_608 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_609 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_610 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_611 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_612 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_613 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_614 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_615 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_616 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_617 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_618 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_619 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_620 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_621 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_622 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_623 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_624 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_625 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_626 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_627 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_628 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_629 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_630 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_631 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_632 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_633 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_634 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_635 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_636 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_637 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_638 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_639 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_640 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_641 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_642 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_643 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_644 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_645 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_646 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_647 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_648 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_649 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_650 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_651 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_652 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_653 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_654 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_655 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_656 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_657 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_658 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_659 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_660 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_661 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_662 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_663 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_664 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_665 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_666 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_667 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_668 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_669 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_670 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_671 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_672 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_673 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_674 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_675 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_676 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_677 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_678 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_679 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_680 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_681 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_682 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_683 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_684 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_685 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_686 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_687 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_688 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_689 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_690 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_691 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_692 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_693 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_694 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_695 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_696 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_697 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_698 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_699 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_700 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_701 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_702 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_703 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_704 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_705 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_706 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_707 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_708 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_709 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_710 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_711 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_712 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_713 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_714 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_715 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_716 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_717 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_718 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_719 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_720 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_721 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_722 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_723 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_724 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_725 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_726 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_727 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_728 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_729 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_730 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_731 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_732 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_733 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_734 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_735 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_736 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_737 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_738 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_739 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_740 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_741 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_742 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_743 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_744 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_745 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_746 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_747 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_748 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_749 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_750 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_751 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_752 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_753 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_754 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_755 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_756 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_757 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_758 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_759 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_760 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_761 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_762 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_763 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_764 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_765 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_766 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_767 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_768 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_769 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_770 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_771 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_772 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_773 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_774 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_775 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_776 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_777 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_778 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_779 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_780 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_781 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_782 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_783 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_784 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_785 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_786 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_787 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_788 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_789 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_790 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_791 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_792 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_793 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_794 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_795 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_796 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_797 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_798 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_799 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_800 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_801 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_802 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_803 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_804 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_805 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_806 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_807 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_808 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_809 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_810 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_811 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_812 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_813 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_814 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_815 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_816 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_817 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_818 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_819 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_820 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_821 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_822 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_823 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_824 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_825 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_826 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_827 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_828 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_829 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_830 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_831 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_832 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_833 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_834 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_835 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_836 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_837 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_838 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_839 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_840 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_841 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_842 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_843 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_844 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_845 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_846 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_847 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_848 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_849 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_850 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_851 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_852 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_853 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_854 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_855 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_856 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_857 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_858 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_859 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_860 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_861 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_862 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_863 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_864 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_865 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_866 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_867 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_868 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_869 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_870 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_871 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_872 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_873 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_874 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_875 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_876 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_877 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_878 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_879 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_880 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_881 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_882 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_883 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_884 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_885 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_886 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_887 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_888 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_889 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_890 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_891 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_892 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_893 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_894 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_895 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_896 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_897 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_898 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_899 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_900 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_901 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_902 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_903 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_904 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_905 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_906 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_907 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_908 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_909 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_910 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_911 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_912 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_913 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_914 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_915 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_916 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_917 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_918 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_919 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_920 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_921 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_922 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_923 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_924 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_925 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_926 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_927 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_928 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_929 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_930 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_931 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_932 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_933 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_934 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_935 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_936 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_937 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_938 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_939 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_940 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_941 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_942 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_943 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_944 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_945 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_946 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_947 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_948 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_949 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_950 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_951 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_952 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_953 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_954 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_955 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_956 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_957 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_958 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_959 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_960 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_961 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_962 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_963 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_964 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_965 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_966 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_967 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_968 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_969 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_970 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_971 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_972 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_973 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_974 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_975 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_976 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_977 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_978 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_979 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_980 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_981 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_982 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_983 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_984 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_985 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_986 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_987 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_988 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_989 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_990 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_991 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_992 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_993 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_994 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_995 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_996 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_997 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_998 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_999 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1000 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1001 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1002 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1003 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1004 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1005 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1006 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1007 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1008 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1009 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1010 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1011 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1012 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1013 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1014 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1015 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1016 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1017 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1018 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1019 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1020 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1021 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1022 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1023 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1024 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1025 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1026 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1027 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1028 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1029 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1030 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1031 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1032 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1033 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1034 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1035 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1036 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1037 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1038 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1039 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1040 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1041 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1042 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1043 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1044 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1045 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1046 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1047 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1048 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1049 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1050 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1051 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1052 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1053 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1054 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1055 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1056 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1057 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1058 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1059 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1060 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1061 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1062 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1063 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1064 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1065 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1066 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1067 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1068 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1069 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1070 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1071 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1072 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1073 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1074 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1075 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1076 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1077 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1078 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1079 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1080 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1081 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1082 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1083 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1084 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1085 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1086 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1087 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1088 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1089 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1090 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1091 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1092 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1093 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1094 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1095 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1096 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1097 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1098 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1099 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1100 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1101 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1102 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1103 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1104 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1105 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1106 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1107 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1108 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1109 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1110 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1111 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1112 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1113 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1114 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1115 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1116 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1117 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1118 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1119 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1120 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1121 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1122 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1123 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1124 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1125 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1126 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1127 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1128 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1129 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1130 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1131 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1132 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1133 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1134 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1135 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1136 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1137 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1138 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1139 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1140 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1141 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1142 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1143 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1144 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1145 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1146 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1147 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1148 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1149 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1150 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1151 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1152 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1153 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1154 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1155 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1156 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1157 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1158 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1159 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1160 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1161 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1162 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1163 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1164 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1165 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1166 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1167 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1168 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1169 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1170 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1171 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1172 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1173 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1174 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1175 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1176 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1177 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1178 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1179 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1180 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1181 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1182 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1183 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1184 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1185 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1186 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1187 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1188 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1189 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1190 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1191 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1192 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1193 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1194 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1195 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1196 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1197 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1198 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1199 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1200 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1201 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1202 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1203 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1204 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1205 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1206 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1207 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1208 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1209 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1210 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1211 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1212 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1213 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1214 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1215 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1216 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1217 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1218 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1219 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1220 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1221 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1222 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1223 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1224 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1225 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1226 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1227 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1228 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1229 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1230 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1231 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1232 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1233 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1234 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1235 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1236 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1237 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1238 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1239 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1240 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1241 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1242 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1243 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1244 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1245 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1246 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1247 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1248 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1249 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1250 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1251 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1252 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1253 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1254 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1255 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1256 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1257 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1258 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1259 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1260 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1261 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1262 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1263 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1264 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1265 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1266 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1267 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1268 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1269 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1270 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1271 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1272 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1273 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1274 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1275 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1276 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1277 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1278 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1279 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1280 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1281 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1282 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1283 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1284 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1285 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1286 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1287 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1288 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1289 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1290 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1291 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1292 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1293 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1294 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1295 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1296 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1297 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1298 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1299 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1300 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1301 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1302 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1303 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1304 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1305 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1306 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1307 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1308 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1309 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1310 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1311 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1312 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1313 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1314 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1315 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1316 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1317 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1318 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1319 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1320 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1321 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1322 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1323 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1324 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1325 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1326 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1327 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1328 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1329 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1330 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1331 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1332 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1333 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1334 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1335 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1336 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1337 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1338 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1339 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1340 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1341 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1342 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1343 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1344 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1345 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1346 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1347 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1348 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1349 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1350 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1351 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1352 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1353 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1354 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1355 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1356 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1357 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1358 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1359 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1360 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1361 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1362 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1363 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1364 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1365 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1366 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1367 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1368 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1369 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1370 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1371 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1372 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1373 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1374 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1375 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1376 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1377 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1378 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1379 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1380 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1381 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1382 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1383 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1384 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1385 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1386 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1387 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1388 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1389 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1390 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1391 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1392 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1393 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1394 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1395 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1396 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1397 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1398 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1399 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1400 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1401 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1402 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1403 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1404 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1405 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1406 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1407 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1408 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1409 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1410 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1411 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1412 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1413 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1414 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1415 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1416 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1417 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1418 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1419 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1420 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1421 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1422 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1423 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1424 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1425 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1426 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1427 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1428 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1429 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1430 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1431 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1432 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1433 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1434 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1435 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1436 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1437 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1438 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1439 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1440 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1441 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1442 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1443 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1444 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1445 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1446 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1447 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1448 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1449 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1450 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1451 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1452 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1453 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1454 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1455 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1456 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1457 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1458 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1459 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1460 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1461 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1462 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1463 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1464 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1465 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1466 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1467 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1468 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1469 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1470 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1471 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1472 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1473 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1474 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1475 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1476 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1477 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1478 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1479 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1480 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1481 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1482 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1483 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1484 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1485 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1486 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1487 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1488 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1489 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1490 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1491 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1492 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1493 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1494 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1495 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1496 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1497 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1498 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1499 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1500 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1501 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1502 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1503 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1504 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1505 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1506 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1507 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1508 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1509 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1510 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1511 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1512 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1513 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1514 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1515 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1516 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1517 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1518 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1519 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1520 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1521 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1522 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1523 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1524 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1525 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1526 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1527 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1528 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1529 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1530 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1531 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1532 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1533 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1534 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1535 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1536 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1537 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1538 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1539 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1540 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1541 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1542 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1543 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1544 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1545 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1546 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1547 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1548 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1549 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1550 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1551 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1552 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1553 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1554 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1555 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1556 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1557 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1558 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1559 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1560 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1561 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1562 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1563 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1564 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1565 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1566 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1567 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1568 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1569 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1570 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1571 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1572 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1573 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1574 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1575 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1576 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1577 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1578 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1579 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1580 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1581 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1582 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1583 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1584 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1585 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1586 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1587 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1588 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1589 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1590 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1591 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1592 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1593 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1594 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1595 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1596 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1597 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1598 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1599 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1600 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1601 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1602 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1603 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1604 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1605 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1606 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1607 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1608 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1609 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1610 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1611 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1612 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1613 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1614 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1615 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1616 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1617 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1618 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1619 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1620 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1621 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1622 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1623 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1624 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1625 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1626 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1627 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1628 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1629 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1630 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1631 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1632 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1633 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1634 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1635 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1636 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1637 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1638 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1639 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1640 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1641 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1642 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1643 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1644 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1645 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1646 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1647 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1648 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1649 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1650 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1651 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1652 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1653 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1654 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1655 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1656 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1657 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1658 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1659 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1660 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1661 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1662 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1663 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1664 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1665 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1666 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1667 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1668 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1669 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1670 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1671 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1672 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1673 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1674 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1675 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1676 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1677 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1678 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1679 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1680 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1681 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1682 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1683 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1684 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1685 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1686 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1687 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1688 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1689 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1690 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1691 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1692 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1693 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1694 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1695 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1696 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1697 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1698 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1699 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1700 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1701 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1702 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1703 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1704 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1705 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1706 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1707 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1708 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1709 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1710 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1711 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1712 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1713 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1714 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1715 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1716 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1717 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1718 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1719 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1720 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1721 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1722 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1723 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1724 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1725 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1726 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1727 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1728 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1729 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1730 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1731 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1732 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1733 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1734 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1735 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1736 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1737 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1738 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1739 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1740 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1741 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1742 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1743 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1744 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1745 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1746 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1747 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1748 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1749 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1750 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1751 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1752 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1753 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1754 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1755 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1756 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1757 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1758 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1759 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1760 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1761 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1762 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1763 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1764 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1765 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1766 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1767 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1768 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1769 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1770 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1771 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1772 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1773 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1774 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1775 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1776 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1777 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1778 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1779 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1780 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1781 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1782 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1783 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1784 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1785 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1786 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1787 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1788 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1789 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1790 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1791 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1792 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1793 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1794 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1795 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1796 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1797 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1798 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1799 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1800 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1801 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1802 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1803 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1804 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1805 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1806 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1807 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1808 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1809 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1810 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1811 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1812 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1813 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1814 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1815 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1816 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1817 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1818 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1819 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1820 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1821 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1822 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1823 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1824 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1825 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1826 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1827 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1828 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1829 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1830 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1831 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1832 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1833 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1834 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1835 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1836 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1837 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1838 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1839 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1840 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1841 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1842 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1843 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1844 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1845 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1846 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1847 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1848 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1849 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1850 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1851 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1852 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1853 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1854 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1855 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1856 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1857 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1858 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1859 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1860 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1861 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1862 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1863 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1864 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1865 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1866 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1867 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1868 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1869 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1870 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1871 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1872 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1873 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1874 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1875 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1876 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1877 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1878 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1879 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1880 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1881 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1882 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1883 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1884 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1885 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1886 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1887 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1888 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1889 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1890 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1891 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1892 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1893 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1894 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1895 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1896 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1897 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1898 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1899 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1900 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1901 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1902 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1903 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1904 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1905 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1906 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1907 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1908 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1909 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1910 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1911 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1912 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1913 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1914 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1915 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1916 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1917 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1918 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1919 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1920 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1921 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1922 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1923 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1924 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1925 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1926 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1927 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1928 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1929 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1930 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1931 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1932 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1933 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1934 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1935 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1936 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1937 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1938 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1939 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1940 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1941 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1942 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1943 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1944 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1945 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1946 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1947 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1948 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1949 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1950 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1951 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1952 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1953 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1954 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1955 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1956 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1957 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1958 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1959 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1960 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1961 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1962 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1963 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1964 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1965 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1966 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1967 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1968 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1969 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1970 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1971 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1972 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1973 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1974 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1975 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1976 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1977 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1978 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1979 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1980 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1981 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1982 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1983 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1984 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1985 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1986 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1987 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1988 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1989 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1990 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1991 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1992 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1993 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1994 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1995 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1996 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1997 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1998 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_1999 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2000 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2001 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2002 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2003 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2004 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2005 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2006 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2007 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2008 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2009 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2010 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2011 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2012 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2013 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2014 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2015 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2016 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2017 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2018 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2019 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2020 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2021 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2022 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2023 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2024 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2025 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2026 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2027 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2028 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2029 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2030 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2031 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2032 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2033 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2034 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2035 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2036 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2037 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2038 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2039 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2040 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2041 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2042 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2043 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2044 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2045 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2046 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2047 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2048 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2049 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2050 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2051 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2052 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2053 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2054 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2055 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2056 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2057 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2058 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2059 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2060 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2061 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2062 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2063 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2064 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2065 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2066 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2067 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2068 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2069 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2070 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2071 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2072 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2073 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2074 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2075 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2076 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2077 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2078 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2079 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2080 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2081 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2082 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2083 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2084 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2085 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2086 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2087 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2088 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2089 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2090 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2091 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2092 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2093 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2094 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2095 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2096 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2097 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2098 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2099 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2100 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2101 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2102 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2103 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2104 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2105 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2106 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2107 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2108 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2109 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2110 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2111 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2112 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2113 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2114 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2115 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2116 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2117 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2118 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2119 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2120 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2121 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2122 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2123 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2124 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2125 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2126 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2127 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2128 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2129 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2130 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2131 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2132 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2133 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2134 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2135 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2136 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2137 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2138 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2139 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2140 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2141 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2142 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2143 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2144 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2145 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2146 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2147 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2148 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2149 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2150 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2151 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2152 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2153 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2154 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2155 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2156 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2157 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2158 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2159 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2160 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2161 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2162 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2163 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2164 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2165 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2166 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2167 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2168 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2169 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2170 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2171 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2172 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2173 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2174 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2175 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2176 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2177 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2178 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2179 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2180 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2181 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2182 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2183 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2184 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2185 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2186 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2187 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2188 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2189 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2190 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2191 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2192 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2193 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2194 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2195 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2196 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2197 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2198 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2199 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2200 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2201 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2202 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2203 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2204 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2205 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2206 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2207 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2208 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2209 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2210 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2211 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2212 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2213 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2214 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2215 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2216 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2217 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2218 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2219 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2220 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2221 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2222 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2223 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2224 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2225 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2226 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2227 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2228 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2229 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2230 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2231 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2232 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2233 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2234 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2235 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2236 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2237 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2238 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2239 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2240 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2241 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2242 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2243 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2244 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2245 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2246 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2247 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2248 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2249 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2250 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2251 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2252 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2253 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2254 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2255 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2256 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2257 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2258 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2259 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2260 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2261 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2262 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2263 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2264 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2265 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2266 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2267 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2268 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2269 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2270 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2271 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2272 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2273 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2274 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2275 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2276 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2277 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2278 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2279 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2280 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2281 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2282 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2283 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2284 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2285 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2286 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2287 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2288 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2289 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2290 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2291 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2292 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2293 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2294 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2295 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2296 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2297 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2298 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2299 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2300 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2301 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2302 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2303 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2304 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2305 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2306 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2307 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2308 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2309 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2310 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2311 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2312 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2313 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2314 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2315 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2316 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2317 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2318 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2319 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2320 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2321 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2322 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2323 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2324 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2325 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2326 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2327 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2328 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2329 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2330 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2331 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2332 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2333 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2334 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2335 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2336 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2337 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2338 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2339 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2340 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2341 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2342 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2343 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2344 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2345 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2346 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2347 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2348 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2349 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2350 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2351 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2352 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2353 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2354 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2355 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2356 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2357 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2358 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2359 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2360 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2361 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2362 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2363 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2364 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2365 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2366 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2367 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2368 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2369 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2370 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2371 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2372 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2373 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2374 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2375 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2376 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2377 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2378 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2379 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2380 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2381 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2382 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2383 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2384 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2385 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2386 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2387 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2388 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2389 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2390 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2391 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2392 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2393 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2394 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2395 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2396 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2397 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2398 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2399 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2400 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2401 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2402 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2403 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2404 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2405 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2406 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2407 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2408 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2409 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2410 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2411 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2412 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2413 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2414 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2415 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2416 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2417 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2418 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2419 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2420 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2421 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2422 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2423 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2424 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2425 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2426 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2427 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2428 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2429 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2430 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2431 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2432 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2433 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2434 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2435 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2436 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2437 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2438 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2439 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2440 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2441 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2442 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2443 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2444 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2445 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2446 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2447 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2448 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2449 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2450 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2451 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2452 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2453 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2454 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2455 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2456 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2457 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2458 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2459 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2460 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2461 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2462 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2463 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2464 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2465 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2466 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2467 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2468 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2469 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2470 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2471 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2472 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2473 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2474 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2475 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2476 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2477 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2478 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2479 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2480 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2481 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2482 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2483 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2484 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2485 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2486 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2487 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2488 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2489 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2490 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2491 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2492 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2493 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2494 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2495 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2496 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2497 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2498 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2499 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2500 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2501 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2502 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2503 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2504 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2505 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2506 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2507 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2508 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2509 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2510 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2511 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2512 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2513 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2514 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2515 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2516 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2517 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2518 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2519 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2520 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2521 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2522 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2523 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2524 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2525 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2526 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2527 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2528 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2529 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2530 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2531 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2532 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2533 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2534 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2535 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2536 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2537 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2538 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2539 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2540 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2541 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2542 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2543 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2544 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2545 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2546 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2547 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2548 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2549 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2550 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2551 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2552 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2553 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2554 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2555 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2556 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2557 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2558 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2559 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2560 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2561 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2562 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2563 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2564 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2565 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2566 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2567 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2568 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2569 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2570 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2571 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2572 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2573 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2574 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2575 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2576 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2577 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2578 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2579 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2580 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2581 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2582 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2583 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2584 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2585 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2586 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2587 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2588 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2589 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2590 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2591 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2592 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2593 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2594 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2595 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2596 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2597 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2598 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2599 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2600 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2601 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2602 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2603 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2604 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2605 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2606 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2607 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2608 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2609 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2610 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2611 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2612 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2613 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2614 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2615 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2616 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2617 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2618 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2619 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2620 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2621 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2622 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2623 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2624 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2625 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2626 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2627 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2628 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2629 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2630 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2631 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2632 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2633 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2634 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2635 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2636 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2637 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2638 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2639 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2640 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2641 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2642 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2643 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2644 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2645 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2646 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2647 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2648 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2649 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2650 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2651 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2652 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2653 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2654 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2655 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2656 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2657 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2658 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2659 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2660 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2661 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2662 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2663 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2664 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2665 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2666 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2667 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2668 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2669 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2670 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2671 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2672 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2673 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2674 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2675 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2676 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2677 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2678 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2679 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2680 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2681 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2682 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2683 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2684 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2685 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2686 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2687 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2688 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2689 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2690 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2691 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2692 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2693 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2694 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2695 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2696 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2697 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2698 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2699 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2700 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2701 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2702 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2703 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2704 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2705 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2706 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2707 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2708 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2709 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2710 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2711 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2712 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2713 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2714 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2715 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2716 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2717 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2718 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2719 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2720 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2721 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2722 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2723 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2724 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2725 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2726 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2727 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2728 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2729 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2730 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2731 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2732 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2733 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2734 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2735 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2736 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2737 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2738 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2739 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2740 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2741 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2742 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2743 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2744 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2745 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2746 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2747 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2748 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2749 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2750 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2751 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2752 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2753 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2754 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2755 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2756 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2757 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2758 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2759 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2760 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2761 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2762 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2763 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2764 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2765 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2766 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2767 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2768 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2769 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2770 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2771 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2772 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2773 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2774 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2775 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2776 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2777 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2778 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2779 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2780 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2781 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2782 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2783 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2784 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2785 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2786 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2787 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2788 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2789 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2790 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2791 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2792 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2793 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2794 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2795 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2796 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2797 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2798 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2799 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2800 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2801 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2802 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2803 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2804 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2805 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2806 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2807 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2808 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2809 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2810 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2811 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2812 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2813 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2814 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2815 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2816 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2817 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2818 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2819 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2820 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2821 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2822 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2823 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2824 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2825 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2826 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2827 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2828 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2829 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2830 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2831 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2832 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2833 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2834 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2835 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2836 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2837 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2838 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2839 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2840 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2841 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2842 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2843 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2844 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2845 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2846 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2847 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2848 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2849 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2850 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2851 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2852 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2853 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2854 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2855 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2856 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2857 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2858 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2859 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2860 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2861 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2862 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2863 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2864 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2865 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2866 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2867 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2868 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2869 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2870 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2871 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2872 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2873 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2874 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2875 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2876 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2877 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2878 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2879 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2880 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2881 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2882 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2883 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2884 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2885 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2886 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2887 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2888 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2889 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2890 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2891 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2892 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2893 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2894 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2895 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2896 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2897 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2898 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2899 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2900 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2901 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2902 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2903 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2904 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2905 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2906 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2907 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2908 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2909 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2910 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2911 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2912 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2913 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2914 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2915 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2916 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2917 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2918 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2919 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2920 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2921 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2922 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2923 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2924 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2925 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2926 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2927 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2928 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2929 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2930 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2931 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2932 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2933 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2934 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2935 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2936 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2937 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2938 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2939 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2940 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2941 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2942 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2943 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2944 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2945 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2946 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2947 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2948 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2949 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2950 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2951 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2952 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2953 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2954 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2955 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2956 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2957 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2958 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2959 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2960 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2961 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2962 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2963 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2964 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2965 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2966 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2967 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2968 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2969 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2970 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2971 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2972 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2973 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2974 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2975 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2976 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2977 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2978 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2979 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2980 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2981 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2982 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2983 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2984 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2985 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2986 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2987 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2988 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2989 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2990 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2991 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2992 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2993 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2994 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2995 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2996 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2997 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2998 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_2999 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3000 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3001 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3002 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3003 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3004 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3005 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3006 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3007 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3008 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3009 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3010 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3011 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3012 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3013 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3014 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3015 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3016 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3017 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3018 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3019 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3020 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3021 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3022 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3023 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3024 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3025 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3026 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3027 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3028 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3029 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3030 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3031 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3032 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3033 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3034 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3035 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3036 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3037 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3038 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3039 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3040 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3041 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3042 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3043 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3044 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3045 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3046 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3047 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3048 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3049 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3050 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3051 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3052 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3053 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3054 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3055 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3056 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3057 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3058 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3059 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3060 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3061 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3062 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3063 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3064 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3065 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3066 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3067 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3068 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3069 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3070 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3071 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3072 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3073 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3074 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3075 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3076 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3077 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3078 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3079 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3080 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3081 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3082 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3083 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3084 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3085 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3086 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3087 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3088 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3089 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3090 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3091 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3092 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3093 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3094 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3095 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3096 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3097 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3098 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3099 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3100 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3101 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3102 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3103 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3104 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3105 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3106 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3107 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3108 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3109 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3110 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3111 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3112 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3113 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3114 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3115 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3116 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3117 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3118 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3119 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3120 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3121 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3122 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3123 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3124 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3125 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3126 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3127 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3128 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3129 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3130 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3131 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3132 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3133 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3134 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3135 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3136 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3137 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3138 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3139 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3140 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3141 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3142 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3143 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3144 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3145 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3146 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3147 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3148 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3149 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3150 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3151 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3152 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3153 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3154 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3155 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3156 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3157 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3158 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3159 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3160 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3161 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3162 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3163 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3164 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3165 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3166 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3167 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3168 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3169 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3170 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3171 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3172 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3173 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3174 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3175 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3176 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3177 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3178 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3179 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3180 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3181 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3182 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3183 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3184 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3185 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3186 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3187 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3188 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3189 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3190 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3191 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3192 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3193 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3194 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3195 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3196 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3197 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3198 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3199 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3200 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3201 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3202 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3203 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3204 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3205 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3206 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3207 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3208 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3209 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3210 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3211 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3212 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3213 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3214 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3215 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3216 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3217 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3218 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3219 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3220 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3221 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3222 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3223 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3224 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3225 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3226 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3227 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3228 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3229 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3230 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3231 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3232 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3233 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3234 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3235 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3236 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3237 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3238 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3239 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3240 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3241 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3242 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3243 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3244 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3245 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3246 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3247 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3248 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3249 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3250 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3251 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3252 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3253 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3254 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3255 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3256 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3257 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3258 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3259 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3260 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3261 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3262 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3263 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3264 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3265 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3266 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3267 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3268 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3269 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3270 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3271 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3272 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3273 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3274 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3275 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3276 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3277 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3278 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3279 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3280 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3281 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3282 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3283 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3284 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3285 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3286 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3287 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3288 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3289 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3290 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3291 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3292 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3293 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3294 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3295 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3296 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3297 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3298 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3299 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3300 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3301 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3302 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3303 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3304 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3305 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3306 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3307 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3308 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3309 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3310 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3311 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3312 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3313 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3314 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3315 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3316 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3317 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3318 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3319 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3320 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3321 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3322 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3323 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3324 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3325 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3326 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3327 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3328 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3329 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3330 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3331 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3332 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3333 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3334 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3335 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3336 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3337 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3338 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3339 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3340 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3341 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3342 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3343 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3344 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3345 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3346 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3347 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3348 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3349 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3350 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3351 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3352 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3353 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3354 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3355 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3356 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3357 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3358 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3359 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3360 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3361 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3362 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3363 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3364 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3365 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3366 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3367 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3368 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3369 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3370 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3371 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3372 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3373 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3374 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3375 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3376 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3377 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3378 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3379 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3380 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3381 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3382 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3383 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3384 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3385 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3386 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3387 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3388 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3389 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3390 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3391 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3392 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3393 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3394 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3395 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3396 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3397 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3398 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3399 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3400 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3401 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3402 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3403 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3404 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3405 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3406 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3407 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3408 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3409 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3410 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3411 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3412 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3413 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3414 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3415 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3416 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3417 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3418 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3419 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3420 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3421 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3422 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3423 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3424 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3425 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3426 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3427 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3428 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3429 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3430 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3431 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3432 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3433 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3434 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3435 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3436 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3437 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3438 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3439 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3440 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3441 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3442 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3443 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3444 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3445 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3446 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3447 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3448 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3449 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3450 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3451 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3452 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3453 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3454 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3455 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3456 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3457 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3458 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3459 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3460 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3461 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3462 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3463 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3464 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3465 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3466 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3467 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3468 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3469 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3470 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3471 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3472 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3473 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3474 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3475 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3476 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3477 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3478 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3479 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3480 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3481 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3482 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3483 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3484 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3485 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3486 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3487 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3488 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3489 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3490 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3491 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3492 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3493 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3494 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3495 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3496 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3497 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3498 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3499 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3500 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3501 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3502 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3503 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3504 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3505 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3506 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3507 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3508 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3509 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3510 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3511 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3512 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3513 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3514 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3515 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3516 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3517 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3518 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3519 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3520 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3521 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3522 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3523 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3524 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3525 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3526 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3527 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3528 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3529 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3530 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3531 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3532 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3533 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3534 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3535 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3536 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3537 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3538 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3539 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3540 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3541 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3542 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3543 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3544 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3545 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3546 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3547 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3548 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3549 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3550 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3551 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3552 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3553 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3554 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3555 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3556 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3557 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3558 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3559 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3560 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3561 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3562 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3563 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3564 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3565 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3566 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3567 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3568 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3569 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3570 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3571 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3572 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3573 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3574 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3575 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3576 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3577 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3578 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3579 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3580 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3581 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3582 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3583 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3584 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3585 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3586 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3587 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3588 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3589 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3590 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3591 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3592 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3593 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3594 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3595 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3596 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3597 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3598 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3599 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3600 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3601 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3602 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3603 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3604 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3605 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3606 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3607 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3608 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3609 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3610 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3611 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3612 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3613 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3614 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3615 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3616 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3617 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3618 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3619 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3620 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3621 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3622 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3623 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3624 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3625 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3626 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3627 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3628 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3629 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3630 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3631 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3632 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3633 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3634 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3635 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3636 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3637 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3638 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3639 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3640 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3641 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3642 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3643 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3644 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3645 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3646 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3647 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3648 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3649 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3650 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3651 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3652 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3653 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3654 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3655 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3656 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3657 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3658 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3659 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3660 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3661 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3662 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3663 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3664 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3665 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3666 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3667 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3668 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3669 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3670 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3671 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3672 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3673 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3674 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3675 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3676 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3677 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3678 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3679 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3680 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3681 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3682 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3683 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3684 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3685 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3686 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3687 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3688 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3689 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3690 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3691 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3692 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3693 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3694 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3695 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3696 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3697 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3698 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3699 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3700 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3701 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3702 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3703 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3704 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3705 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3706 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3707 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3708 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3709 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3710 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3711 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3712 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3713 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3714 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3715 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3716 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3717 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3718 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3719 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3720 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3721 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3722 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3723 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3724 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3725 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3726 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3727 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3728 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3729 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3730 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3731 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3732 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3733 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3734 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3735 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3736 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3737 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3738 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3739 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3740 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3741 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3742 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3743 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3744 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3745 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3746 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3747 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3748 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3749 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3750 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3751 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3752 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3753 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3754 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3755 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3756 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3757 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3758 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3759 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3760 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3761 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3762 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3763 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3764 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3765 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3766 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3767 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3768 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3769 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3770 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3771 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3772 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3773 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3774 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3775 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3776 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3777 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3778 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3779 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3780 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3781 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3782 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3783 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3784 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3785 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3786 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3787 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3788 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3789 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3790 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3791 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3792 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3793 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3794 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3795 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3796 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3797 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3798 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3799 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3800 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3801 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3802 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3803 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3804 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3805 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3806 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3807 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3808 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3809 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3810 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3811 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3812 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3813 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3814 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3815 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3816 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3817 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3818 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3819 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3820 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3821 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3822 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3823 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3824 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3825 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3826 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3827 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3828 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3829 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3830 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3831 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3832 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3833 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3834 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3835 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3836 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3837 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3838 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3839 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3840 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3841 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3842 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3843 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3844 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3845 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3846 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3847 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3848 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3849 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3850 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3851 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3852 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3853 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3854 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3855 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3856 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3857 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3858 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3859 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3860 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3861 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3862 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3863 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3864 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3865 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3866 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3867 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3868 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3869 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3870 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3871 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3872 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3873 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3874 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3875 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3876 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3877 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3878 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3879 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3880 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3881 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3882 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3883 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3884 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3885 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3886 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3887 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3888 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3889 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3890 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3891 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3892 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3893 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3894 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3895 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3896 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3897 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3898 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3899 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3900 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3901 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3902 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3903 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3904 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3905 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3906 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3907 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3908 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3909 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3910 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3911 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3912 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3913 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3914 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3915 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3916 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3917 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3918 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3919 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3920 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3921 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3922 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3923 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3924 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3925 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3926 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3927 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3928 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3929 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3930 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3931 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3932 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3933 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3934 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3935 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3936 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3937 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3938 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3939 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3940 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3941 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3942 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3943 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3944 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3945 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3946 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3947 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3948 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3949 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3950 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3951 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3952 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3953 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3954 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3955 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3956 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3957 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3958 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3959 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3960 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3961 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3962 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3963 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3964 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3965 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3966 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3967 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3968 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3969 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3970 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3971 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3972 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3973 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3974 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3975 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3976 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3977 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3978 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3979 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3980 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3981 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3982 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3983 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3984 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3985 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3986 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3987 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3988 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3989 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3990 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3991 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3992 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3993 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3994 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3995 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3996 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3997 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3998 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_3999 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4000 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4001 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4002 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4003 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4004 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4005 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4006 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4007 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4008 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4009 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4010 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4011 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4012 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4013 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4014 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4015 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4016 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4017 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4018 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4019 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4020 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4021 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4022 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4023 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4024 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4025 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4026 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4027 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4028 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4029 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4030 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4031 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4032 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4033 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4034 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4035 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4036 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4037 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4038 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4039 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4040 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4041 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4042 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4043 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4044 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4045 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4046 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4047 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4048 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4049 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4050 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4051 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4052 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4053 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4054 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4055 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4056 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4057 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4058 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4059 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4060 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4061 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4062 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4063 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4064 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4065 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4066 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4067 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4068 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4069 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4070 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4071 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4072 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4073 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4074 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4075 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4076 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4077 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4078 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4079 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4080 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4081 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4082 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4083 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4084 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4085 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4086 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4087 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4088 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4089 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4090 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4091 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4092 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4093 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4094 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4095 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4096 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4097 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4098 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4099 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4100 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4101 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4102 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4103 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4104 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4105 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4106 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4107 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4108 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4109 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4110 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4111 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4112 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4113 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4114 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4115 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4116 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4117 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4118 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4119 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4120 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4121 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4122 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4123 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4124 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4125 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4126 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4127 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4128 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4129 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4130 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4131 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4132 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4133 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4134 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4135 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4136 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4137 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4138 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4139 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4140 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4141 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4142 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4143 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4144 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4145 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4146 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4147 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4148 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4149 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4150 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4151 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4152 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4153 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4154 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4155 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4156 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4157 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4158 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4159 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4160 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4161 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4162 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4163 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4164 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4165 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4166 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4167 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4168 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4169 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4170 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4171 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4172 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4173 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4174 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4175 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4176 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4177 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4178 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4179 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4180 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4181 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4182 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4183 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4184 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4185 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4186 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4187 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4188 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4189 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4190 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4191 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4192 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4193 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4194 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4195 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4196 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4197 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4198 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4199 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4200 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4201 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4202 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4203 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4204 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4205 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4206 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4207 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4208 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4209 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4210 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4211 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4212 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4213 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4214 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4215 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4216 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4217 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4218 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4219 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4220 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4221 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4222 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4223 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4224 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4225 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4226 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4227 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4228 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4229 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4230 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4231 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4232 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4233 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4234 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4235 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4236 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4237 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4238 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4239 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4240 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4241 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4242 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4243 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4244 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4245 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4246 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4247 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4248 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4249 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4250 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4251 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4252 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4253 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4254 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4255 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4256 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4257 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4258 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4259 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4260 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4261 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4262 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4263 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4264 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4265 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4266 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4267 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4268 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4269 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4270 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4271 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4272 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4273 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4274 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4275 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4276 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4277 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4278 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4279 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4280 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4281 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4282 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4283 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4284 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4285 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4286 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4287 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4288 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4289 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4290 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4291 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4292 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4293 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4294 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4295 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4296 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4297 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4298 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4299 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4300 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4301 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4302 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4303 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4304 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4305 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4306 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4307 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4308 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4309 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4310 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4311 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4312 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4313 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4314 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4315 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4316 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4317 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4318 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4319 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4320 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4321 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4322 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4323 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4324 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4325 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4326 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4327 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4328 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4329 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4330 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4331 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4332 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4333 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4334 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4335 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4336 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4337 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4338 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4339 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4340 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4341 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4342 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4343 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4344 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4345 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4346 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4347 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4348 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4349 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4350 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4351 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4352 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4353 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4354 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4355 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4356 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4357 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4358 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4359 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4360 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4361 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4362 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4363 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4364 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4365 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4366 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4367 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4368 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4369 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4370 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4371 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4372 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4373 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4374 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4375 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4376 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4377 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4378 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4379 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4380 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4381 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4382 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4383 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4384 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4385 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4386 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4387 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4388 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4389 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4390 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4391 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4392 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4393 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4394 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4395 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4396 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4397 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4398 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4399 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4400 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4401 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4402 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4403 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4404 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4405 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4406 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4407 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4408 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4409 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4410 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4411 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4412 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4413 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4414 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4415 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4416 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4417 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4418 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4419 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4420 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4421 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4422 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4423 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4424 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4425 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4426 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4427 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4428 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4429 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4430 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4431 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4432 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4433 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4434 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4435 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4436 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4437 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4438 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4439 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4440 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4441 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4442 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4443 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4444 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4445 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4446 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4447 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4448 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4449 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4450 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4451 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4452 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4453 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4454 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4455 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4456 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4457 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4458 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4459 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4460 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4461 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4462 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4463 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4464 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4465 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4466 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4467 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4468 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4469 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4470 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4471 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4472 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4473 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4474 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4475 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4476 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4477 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4478 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4479 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4480 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4481 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4482 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4483 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4484 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4485 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4486 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4487 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4488 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4489 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4490 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4491 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4492 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4493 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4494 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4495 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4496 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4497 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4498 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4499 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4500 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4501 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4502 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4503 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4504 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4505 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4506 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4507 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4508 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4509 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4510 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4511 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4512 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4513 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4514 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4515 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4516 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4517 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4518 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4519 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4520 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4521 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4522 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4523 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4524 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4525 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4526 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4527 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4528 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4529 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4530 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4531 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4532 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4533 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4534 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4535 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4536 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4537 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4538 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4539 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4540 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4541 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4542 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4543 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4544 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4545 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4546 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4547 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4548 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4549 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4550 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4551 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4552 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4553 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4554 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4555 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4556 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4557 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4558 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4559 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4560 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4561 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4562 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4563 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4564 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4565 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4566 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4567 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4568 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4569 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4570 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4571 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4572 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4573 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4574 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4575 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4576 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4577 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4578 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4579 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4580 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4581 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4582 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4583 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4584 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4585 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4586 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4587 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4588 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4589 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4590 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4591 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4592 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4593 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4594 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4595 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4596 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4597 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4598 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4599 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4600 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4601 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4602 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4603 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4604 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4605 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4606 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4607 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4608 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4609 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4610 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4611 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4612 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4613 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4614 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4615 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4616 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4617 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4618 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4619 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4620 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4621 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4622 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4623 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4624 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4625 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4626 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4627 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4628 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4629 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4630 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4631 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4632 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4633 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4634 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4635 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4636 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4637 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4638 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4639 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4640 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4641 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4642 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4643 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4644 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4645 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4646 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4647 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4648 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4649 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4650 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4651 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4652 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4653 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4654 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4655 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4656 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4657 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4658 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4659 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4660 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4661 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4662 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4663 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4664 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4665 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4666 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4667 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4668 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4669 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4670 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4671 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4672 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4673 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4674 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4675 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4676 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4677 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4678 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4679 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4680 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4681 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4682 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4683 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4684 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4685 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4686 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4687 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4688 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4689 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4690 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4691 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4692 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4693 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4694 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4695 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4696 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4697 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4698 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4699 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4700 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4701 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4702 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4703 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4704 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4705 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4706 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4707 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4708 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4709 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4710 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4711 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4712 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4713 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4714 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4715 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4716 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4717 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4718 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4719 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4720 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4721 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4722 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4723 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4724 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4725 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4726 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4727 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4728 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4729 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4730 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4731 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4732 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4733 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4734 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4735 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4736 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4737 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4738 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4739 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4740 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4741 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4742 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4743 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4744 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4745 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4746 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4747 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4748 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4749 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4750 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4751 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4752 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4753 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4754 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4755 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4756 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4757 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4758 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4759 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4760 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4761 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4762 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4763 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4764 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4765 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4766 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4767 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4768 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4769 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4770 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4771 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4772 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4773 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4774 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4775 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4776 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4777 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4778 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4779 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4780 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4781 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4782 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4783 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4784 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4785 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4786 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4787 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4788 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4789 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4790 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4791 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4792 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4793 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4794 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4795 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4796 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4797 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4798 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4799 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4800 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4801 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4802 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4803 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4804 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4805 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4806 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4807 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4808 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4809 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4810 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4811 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4812 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4813 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4814 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4815 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4816 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4817 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4818 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4819 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4820 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4821 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4822 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4823 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4824 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4825 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4826 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4827 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4828 (Extent : AMF.Internals.AMF_Extent);
procedure Initialize_4829 (Extent : AMF.Internals.AMF_Extent);
end AMF.Internals.Tables.UML_Metamodel.Objects;
| 33.570531 | 78 | 0.771198 |
d0cae226b656a4caa0145fef8405f35d259b0169 | 5,659 | ads | Ada | source/amf/uml/amf-uml-deployments.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-uml-deployments.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-uml-deployments.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- 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 of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- A deployment is the allocation of an artifact or artifact instance to a
-- deployment target.
--
-- A component deployment is the deployment of one or more artifacts or
-- artifact instances to a deployment target, optionally parameterized by a
-- deployment specification. Examples are executables and configuration files.
------------------------------------------------------------------------------
with AMF.UML.Dependencies;
limited with AMF.UML.Deployed_Artifacts.Collections;
limited with AMF.UML.Deployment_Specifications.Collections;
limited with AMF.UML.Deployment_Targets;
package AMF.UML.Deployments is
pragma Preelaborate;
type UML_Deployment is limited interface
and AMF.UML.Dependencies.UML_Dependency;
type UML_Deployment_Access is
access all UML_Deployment'Class;
for UML_Deployment_Access'Storage_Size use 0;
not overriding function Get_Configuration
(Self : not null access constant UML_Deployment)
return AMF.UML.Deployment_Specifications.Collections.Set_Of_UML_Deployment_Specification is abstract;
-- Getter of Deployment::configuration.
--
-- The specification of properties that parameterize the deployment and
-- execution of one or more Artifacts.
not overriding function Get_Deployed_Artifact
(Self : not null access constant UML_Deployment)
return AMF.UML.Deployed_Artifacts.Collections.Set_Of_UML_Deployed_Artifact is abstract;
-- Getter of Deployment::deployedArtifact.
--
-- The Artifacts that are deployed onto a Node. This association
-- specializes the supplier association.
not overriding function Get_Location
(Self : not null access constant UML_Deployment)
return AMF.UML.Deployment_Targets.UML_Deployment_Target_Access is abstract;
-- Getter of Deployment::location.
--
-- The DeployedTarget which is the target of a Deployment.
not overriding procedure Set_Location
(Self : not null access UML_Deployment;
To : AMF.UML.Deployment_Targets.UML_Deployment_Target_Access) is abstract;
-- Setter of Deployment::location.
--
-- The DeployedTarget which is the target of a Deployment.
end AMF.UML.Deployments;
| 56.59 | 108 | 0.522177 |
0e49920071620834b638987331cc62dbb115003f | 1,981 | ads | Ada | src/parse_args-generic_discrete_options.ads | AntonMeep/parse_args | 907bcb470a21b36b625b942bfeade06eed048ec6 | [
"0BSD"
] | 9 | 2015-12-08T17:06:54.000Z | 2022-03-28T09:44:20.000Z | src/parse_args-generic_discrete_options.ads | AntonMeep/parse_args | 907bcb470a21b36b625b942bfeade06eed048ec6 | [
"0BSD"
] | 1 | 2022-03-30T20:17:18.000Z | 2022-03-30T20:58:34.000Z | src/parse_args-generic_discrete_options.ads | AntonMeep/parse_args | 907bcb470a21b36b625b942bfeade06eed048ec6 | [
"0BSD"
] | 2 | 2017-01-07T17:31:48.000Z | 2022-03-28T09:36:42.000Z | -- parse_args-generic_discrete_option.ads
-- A simple command line option parser
-- Copyright (c) 2015, James Humphry
--
-- 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 permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
pragma Profile(No_Implementation_Extensions);
with Parse_Args.Generic_Options;
generic
type Element is (<>);
Fallback_Default : Element;
with procedure Valid (Arg : in Element; Result : in out Boolean) is null;
package Parse_Args.Generic_Discrete_Options is
package Inner is new Parse_Args.Generic_Options(Element => Element,
Fallback_Default => Fallback_Default,
Value => Element'Value,
Image => Element'Image,
Valid => Valid);
subtype Element_Option is Inner.Element_Option;
function Image (O : in Element_Option) return String renames Inner.Image;
function Value (O : in Element_Option) return Element renames Inner.Value;
function Value(A : in Argument_Parser; Name : in String) return Element renames Inner.Value;
function Make_Option(Default : in Element := Fallback_Default)
return Option_Ptr renames Inner.Make_Option;
end Parse_Args.Generic_Discrete_Options;
| 46.069767 | 95 | 0.688036 |
2050a05b7ea588bda6c520504eed429f1c8120dd | 799 | ads | Ada | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/arraydim/pck.ads | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | 3 | 2021-05-04T17:09:06.000Z | 2021-10-04T07:19:26.000Z | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/arraydim/pck.ads | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/arraydim/pck.ads | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2013-2020 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.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with System;
package Pck is
procedure Do_Nothing (A : System.Address);
end Pck;
| 38.047619 | 73 | 0.737171 |
188144f5bd45b26360bf2c839323a1e26e334667 | 2,152 | ads | Ada | src/natools-web-filters-pass_through.ads | faelys/natools-web | f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750 | [
"0BSD"
] | 1 | 2015-04-23T10:48:58.000Z | 2015-04-23T10:48:58.000Z | src/natools-web-filters-pass_through.ads | faelys/natools-web | f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750 | [
"0BSD"
] | null | null | null | src/natools-web-filters-pass_through.ads | faelys/natools-web | f7ba99f2ffb6f5a06d1b1e8becbf5f92fd58c750 | [
"0BSD"
] | null | null | null | ------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Natools.Web.Filters.Pass_Through provides a filter which copies directly --
-- input into output, without any change. --
------------------------------------------------------------------------------
with Natools.S_Expressions.Lockable;
package Natools.Web.Filters.Pass_Through is
pragma Preelaborate;
type Filter is new Filters.Filter with private;
overriding procedure Apply
(Object : in Filter;
Output : in out Ada.Streams.Root_Stream_Type'Class;
Data : in Ada.Streams.Stream_Element_Array);
-- Transform Data into basic HTML and append it to Output
function Create
(Arguments : in out S_Expressions.Lockable.Descriptor'Class)
return Filters.Filter'Class;
-- Build a text block filter
private
type Filter is new Filters.Filter with null record;
end Natools.Web.Filters.Pass_Through;
| 47.822222 | 78 | 0.540892 |
0ee35ade930d1687bc970c39a32ffee2c5608e8f | 1,459 | adb | Ada | regtests/util_harness.adb | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 60 | 2015-01-18T23:05:34.000Z | 2022-03-20T18:56:30.000Z | regtests/util_harness.adb | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 20 | 2016-09-15T16:41:30.000Z | 2022-03-29T22:02:32.000Z | regtests/util_harness.adb | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 10 | 2015-02-13T04:00:45.000Z | 2022-03-20T18:57:54.000Z | -----------------------------------------------------------------------
-- Util -- Utilities
-- Copyright (C) 2009, 2010, 2021 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- 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 agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Directories;
with Util.Testsuite;
with Util.Tests;
with Util.Properties;
procedure Util_Harness is
procedure Initialize (Props : in Util.Properties.Manager);
procedure Harness is new Util.Tests.Harness (Util.Testsuite.Suite, Initialize);
procedure Initialize (Props : in Util.Properties.Manager) is
pragma Unreferenced (Props);
Path : constant String := Util.Tests.Get_Test_Path ("");
begin
if not Ada.Directories.Exists (Path) then
Ada.Directories.Create_Directory (Path);
end if;
end Initialize;
begin
Harness ("util-tests.xml");
end Util_Harness;
| 34.738095 | 82 | 0.652502 |
18c1c9379e9e991078410e8b28d6b979dd752ca8 | 2,497 | ads | Ada | thirdparty/adasdl/thin/adasdl/AdaSDL/stdtest/testwm_sprogs.ads | Lucretia/old_nehe_ada95 | d0378c3bfce202eb01bf00b57c128735dbe8582d | [
"BSD-3-Clause"
] | null | null | null | thirdparty/adasdl/thin/adasdl/AdaSDL/stdtest/testwm_sprogs.ads | Lucretia/old_nehe_ada95 | d0378c3bfce202eb01bf00b57c128735dbe8582d | [
"BSD-3-Clause"
] | null | null | null | thirdparty/adasdl/thin/adasdl/AdaSDL/stdtest/testwm_sprogs.ads | Lucretia/old_nehe_ada95 | d0378c3bfce202eb01bf00b57c128735dbe8582d | [
"BSD-3-Clause"
] | null | null | null |
-- ----------------------------------------------------------------- --
-- --
-- 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 Free Software Foundation; either --
-- version 2 of the License, or (at your option) any later version. --
-- --
-- This software is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU General Public --
-- License along with this library; if not, write to the --
-- Free Software Foundation, Inc., 59 Temple Place - Suite 330, --
-- Boston, MA 02111-1307, USA. --
-- --
-- ----------------------------------------------------------------- --
-- ----------------------------------------------------------------- --
-- This is a translation, to the Ada programming language, of the --
-- original C test files written by Sam Lantinga - www.libsdl.org --
-- translation made by Antonio F. Vargas - www.adapower.net/~avargas --
-- ----------------------------------------------------------------- --
with Interfaces.C.Pointers;
with Interfaces.C.Strings;
with SDL.Types; use SDL.Types;
with SDL.Video;
with SDL.Events;
with SDL.Error;
package Testwm_Sprogs is
package C renames Interfaces.C;
package CS renames Interfaces.C.Strings;
package V renames SDL.Video;
package Er renames SDL.Error;
package Ev renames SDL.Events;
type Icon_Mask_Array_Access is access V.Icon_Mask_Array;
use Uint8_Ptrs;
use Uint8_PtrOps;
procedure LoadIconSurface (
file : in string;
maskp : in out Icon_Mask_Array_Access;
icon : out V.Surface_ptr);
procedure HotKey_ToggleFullScreen;
procedure HotKey_ToggleGrab;
procedure HotKey_Iconify;
procedure HotKey_Quit;
function FilterEvents (event : Ev.Event_ptr) return C.int;
pragma Convention (C, FilterEvents);
end Testwm_Sprogs;
| 40.934426 | 71 | 0.520625 |
dcd6ad0b64f86d7266a4a95f3fb48636d79909fb | 25,080 | adb | Ada | gcc-gcc-7_3_0-release/gcc/ada/s-traceb-hpux.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/gcc/ada/s-traceb-hpux.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/s-traceb-hpux.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . T R A C E B A C K --
-- (HP/UX Version) --
-- --
-- B o d y --
-- --
-- Copyright (C) 2009-2015, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
package body System.Traceback is
-- This package implements the backtracing facility by way of a dedicated
-- HP library for stack unwinding described in the "Runtime Architecture
-- Document".
pragma Linker_Options ("/usr/lib/libcl.a");
-- The library basically offers services to fetch information about a
-- "previous" frame based on information about a "current" one.
type Current_Frame_Descriptor is record
cur_fsz : Address; -- Frame size of current routine.
cur_sp : Address; -- The current value of stack pointer.
cur_rls : Address; -- PC-space of the caller.
cur_rlo : Address; -- PC-offset of the caller.
cur_dp : Address; -- Data Pointer of the current routine.
top_rp : Address; -- Initial value of RP.
top_mrp : Address; -- Initial value of MRP.
top_sr0 : Address; -- Initial value of sr0.
top_sr4 : Address; -- Initial value of sr4.
top_r3 : Address; -- Initial value of gr3.
cur_r19 : Address; -- GR19 value of the calling routine.
top_r4 : Address; -- Initial value of gr4.
dummy : Address; -- Reserved.
out_rlo : Address; -- PC-offset of the caller after get_previous.
end record;
type Previous_Frame_Descriptor is record
prev_fsz : Address; -- frame size of calling routine.
prev_sp : Address; -- SP of calling routine.
prev_rls : Address; -- PC_space of calling routine's caller.
prev_rlo : Address; -- PC_offset of calling routine's caller.
prev_dp : Address; -- DP of calling routine.
udescr0 : Address; -- low word of calling routine's unwind desc.
udescr1 : Address; -- high word of calling routine's unwind desc.
ustart : Address; -- start of the unwind region.
uend : Address; -- end of the unwind region.
uw_index : Address; -- index into the unwind table.
prev_r19 : Address; -- GR19 value of the caller's caller.
top_r3 : Address; -- Caller's initial gr3.
top_r4 : Address; -- Caller's initial gr4.
end record;
-- Provide useful shortcuts for the names
subtype CFD is Current_Frame_Descriptor;
subtype PFD is Previous_Frame_Descriptor;
-- Frames with dynamic stack allocation are handled using the associated
-- frame pointer, but HP compilers and GCC setup this pointer differently.
-- HP compilers set it to point at the top (highest address) of the static
-- part of the frame, whereas GCC sets it to point at the bottom of this
-- region. We have to fake the unwinder to compensate for this difference,
-- for which we'll need to access some subprograms unwind descriptors.
type Bits_2_Value is mod 2 ** 2;
for Bits_2_Value'Size use 2;
type Bits_4_Value is mod 2 ** 4;
for Bits_4_Value'Size use 4;
type Bits_5_Value is mod 2 ** 5;
for Bits_5_Value'Size use 5;
type Bits_27_Value is mod 2 ** 27;
for Bits_27_Value'Size use 27;
type Unwind_Descriptor is record
cannot_unwind : Boolean;
mcode : Boolean;
mcode_save_restore : Boolean;
region_desc : Bits_2_Value;
reserved0 : Boolean;
entry_sr : Boolean;
entry_fr : Bits_4_Value;
entry_gr : Bits_5_Value;
args_stored : Boolean;
variable_frame : Boolean;
separate_package_body : Boolean;
frame_extension_mcode : Boolean;
stack_overflow_check : Boolean;
two_steps_sp_adjust : Boolean;
sr4_export : Boolean;
cxx_info : Boolean;
cxx_try_catch : Boolean;
sched_entry_seq : Boolean;
reserved1 : Boolean;
save_sp : Boolean;
save_rp : Boolean;
save_mrp : Boolean;
save_r19 : Boolean;
cleanups : Boolean;
hpe_interrupt_marker : Boolean;
hpux_interrupt_marker : Boolean;
large_frame : Boolean;
alloca_frame : Boolean;
reserved2 : Boolean;
frame_size : Bits_27_Value;
end record;
for Unwind_Descriptor'Size use 64;
for Unwind_Descriptor use record
cannot_unwind at 0 range 0 .. 0;
mcode at 0 range 1 .. 1;
mcode_save_restore at 0 range 2 .. 2;
region_desc at 0 range 3 .. 4;
reserved0 at 0 range 5 .. 5;
entry_sr at 0 range 6 .. 6;
entry_fr at 0 range 7 .. 10;
entry_gr at 1 range 3 .. 7;
args_stored at 2 range 0 .. 0;
variable_frame at 2 range 1 .. 1;
separate_package_body at 2 range 2 .. 2;
frame_extension_mcode at 2 range 3 .. 3;
stack_overflow_check at 2 range 4 .. 4;
two_steps_sp_adjust at 2 range 5 .. 5;
sr4_export at 2 range 6 .. 6;
cxx_info at 2 range 7 .. 7;
cxx_try_catch at 3 range 0 .. 0;
sched_entry_seq at 3 range 1 .. 1;
reserved1 at 3 range 2 .. 2;
save_sp at 3 range 3 .. 3;
save_rp at 3 range 4 .. 4;
save_mrp at 3 range 5 .. 5;
save_r19 at 3 range 6 .. 6;
cleanups at 3 range 7 .. 7;
hpe_interrupt_marker at 4 range 0 .. 0;
hpux_interrupt_marker at 4 range 1 .. 1;
large_frame at 4 range 2 .. 2;
alloca_frame at 4 range 3 .. 3;
reserved2 at 4 range 4 .. 4;
frame_size at 4 range 5 .. 31;
end record;
subtype UWD is Unwind_Descriptor;
type UWD_Ptr is access all UWD;
function To_UWD_Access is new Ada.Unchecked_Conversion (Address, UWD_Ptr);
-- The descriptor associated with a given code location is retrieved
-- using functions imported from the HP library, requiring the definition
-- of additional structures.
type Unwind_Table_Region is record
Table_Start : Address;
Table_End : Address;
end record;
-- An Unwind Table region, which is a memory area containing Unwind
-- Descriptors.
subtype UWT is Unwind_Table_Region;
-- The subprograms imported below are provided by the HP library
function U_get_unwind_table return UWT;
pragma Import (C, U_get_unwind_table, "U_get_unwind_table");
-- Get the unwind table region associated with the current executable.
-- This function is actually documented as having an argument, but which
-- is only used for the MPE/iX targets.
function U_get_shLib_unwind_table (r19 : Address) return UWT;
pragma Import (C, U_get_shLib_unwind_table, "U_get_shLib_unw_tbl");
-- Return the unwind table region associated with a possible shared
-- library, as determined by the provided r19 value.
function U_get_shLib_text_addr (r19 : Address) return Address;
pragma Import (C, U_get_shLib_text_addr, "U_get_shLib_text_addr");
-- Return the address at which the code for a shared library begins, or
-- -1 if the value provided for r19 does not identify shared library code.
function U_get_unwind_entry
(Pc : Address;
Space : Address;
Table_Start : Address;
Table_End : Address) return Address;
pragma Import (C, U_get_unwind_entry, "U_get_unwind_entry");
-- Given the bounds of an unwind table, return the address of the
-- unwind descriptor associated with a code location/space. In the case
-- of shared library code, the offset from the beginning of the library
-- is expected as Pc.
procedure U_init_frame_record (Frame : not null access CFD);
pragma Import (C, U_init_frame_record, "U_init_frame_record");
procedure U_prep_frame_rec_for_unwind (Frame : not null access CFD);
pragma Import (C, U_prep_frame_rec_for_unwind,
"U_prep_frame_rec_for_unwind");
-- Fetch the description data of the frame in which these two procedures
-- are called.
function U_get_u_rlo
(Cur : not null access CFD; Prev : not null access PFD) return Integer;
pragma Import (C, U_get_u_rlo, "U_IS_STUB_OR_CALLX");
-- From a complete current frame with a return location possibly located
-- into a linker generated stub, and basic information about the previous
-- frame, place the first non stub return location into the current frame.
-- Return -1 if something went wrong during the computation.
function U_is_shared_pc (rlo : Address; r19 : Address) return Address;
pragma Import (C, U_is_shared_pc, "U_is_shared_pc");
-- Return 0 if the provided return location does not correspond to code
-- in a shared library, or something non null otherwise.
function U_get_previous_frame_x
(current_frame : not null access CFD;
previous_frame : not null access PFD;
previous_size : Integer) return Integer;
pragma Import (C, U_get_previous_frame_x, "U_get_previous_frame_x");
-- Fetch the data describing the "previous" frame relatively to the
-- "current" one. "previous_size" should be the size of the "previous"
-- frame descriptor provided.
--
-- The library provides a simpler interface without the size parameter
-- but it is not usable when frames with dynamically allocated space are
-- on the way.
procedure Call_Chain
(Traceback : System.Address;
Max_Len : Natural;
Len : out Natural;
Exclude_Min : System.Address := System.Null_Address;
Exclude_Max : System.Address := System.Null_Address;
Skip_Frames : Natural := 1);
-- Same as the exported version, but takes Traceback as an Address
------------------
-- C_Call_Chain --
------------------
function C_Call_Chain
(Traceback : System.Address;
Max_Len : Natural) return Natural
is
Val : Natural;
begin
Call_Chain (Traceback, Max_Len, Val);
return Val;
end C_Call_Chain;
----------------
-- Call_Chain --
----------------
procedure Call_Chain
(Traceback : System.Address;
Max_Len : Natural;
Len : out Natural;
Exclude_Min : System.Address := System.Null_Address;
Exclude_Max : System.Address := System.Null_Address;
Skip_Frames : Natural := 1)
is
type Tracebacks_Array is array (1 .. Max_Len) of System.Address;
pragma Suppress_Initialization (Tracebacks_Array);
-- The code location returned by the unwinder is a return location but
-- what we need is a call point. Under HP-UX call instructions are 4
-- bytes long and the return point they specify is 4 bytes beyond the
-- next instruction because of the delay slot.
Call_Size : constant := 4;
DSlot_Size : constant := 4;
Rlo_Offset : constant := Call_Size + DSlot_Size;
-- Moreover, the return point is passed via a register which two least
-- significant bits specify a privilege level that we will have to mask.
Priv_Mask : constant := 16#00000003#;
Frame : aliased CFD;
Code : System.Address;
J : Natural := 1;
Pop_Success : Boolean;
Trace : Tracebacks_Array;
for Trace'Address use Traceback;
-- The backtracing process needs a set of subprograms :
function UWD_For_RLO_Of (Frame : not null access CFD) return UWD_Ptr;
-- Return an access to the unwind descriptor for the caller of
-- a given frame, using only the provided return location.
function UWD_For_Caller_Of (Frame : not null access CFD) return UWD_Ptr;
-- Return an access to the unwind descriptor for the user code caller
-- of a given frame, or null if the information is not available.
function Pop_Frame (Frame : not null access CFD) return Boolean;
-- Update the provided machine state structure so that it reflects
-- the state one call frame "above" the initial one.
--
-- Return True if the operation has been successful, False otherwise.
-- Failure typically occurs when the top of the call stack has been
-- reached.
function Prepare_For_Unwind_Of
(Frame : not null access CFD) return Boolean;
-- Perform the necessary adaptations to the machine state before
-- calling the unwinder. Currently used for the specific case of
-- dynamically sized previous frames.
--
-- Return True if everything went fine, or False otherwise.
Program_UWT : constant UWT := U_get_unwind_table;
---------------
-- Pop_Frame --
---------------
function Pop_Frame (Frame : not null access CFD) return Boolean is
Up_Frame : aliased PFD;
State_Ready : Boolean;
begin
-- Check/adapt the state before calling the unwinder and return
-- if anything went wrong.
State_Ready := Prepare_For_Unwind_Of (Frame);
if not State_Ready then
return False;
end if;
-- Now, safely call the unwinder and use the results
if U_get_previous_frame_x (Frame,
Up_Frame'Access,
Up_Frame'Size) /= 0
then
return False;
end if;
-- In case a stub is on the way, the usual previous return location
-- (the one in prev_rlo) is the one in the stub and the "real" one
-- is placed in the "current" record, so let's take this one into
-- account.
Frame.out_rlo := Frame.cur_rlo;
Frame.cur_fsz := Up_Frame.prev_fsz;
Frame.cur_sp := Up_Frame.prev_sp;
Frame.cur_rls := Up_Frame.prev_rls;
Frame.cur_rlo := Up_Frame.prev_rlo;
Frame.cur_dp := Up_Frame.prev_dp;
Frame.cur_r19 := Up_Frame.prev_r19;
Frame.top_r3 := Up_Frame.top_r3;
Frame.top_r4 := Up_Frame.top_r4;
return True;
end Pop_Frame;
---------------------------------
-- Prepare_State_For_Unwind_Of --
---------------------------------
function Prepare_For_Unwind_Of
(Frame : not null access CFD) return Boolean
is
Caller_UWD : UWD_Ptr;
FP_Adjustment : Integer;
begin
-- No need to bother doing anything if the stack is already fully
-- unwound.
if Frame.cur_rlo = 0 then
return False;
end if;
-- When ALLOCA_FRAME is set in an unwind descriptor, the unwinder
-- uses the value provided in current.top_r3 or current.top_r4 as
-- a frame pointer to compute the size of the frame. What decides
-- between r3 or r4 is the unwind descriptor LARGE_FRAME bit, with
-- r4 chosen if the bit is set.
-- The size computed by the unwinder is STATIC_PART + (SP - FP),
-- which is correct with HP's frame pointer convention, but not
-- with GCC's one since we end up with the static part accounted
-- for twice.
-- We have to compute r4 when it is required because the unwinder
-- has looked for it at a place where it was not if we went through
-- GCC frames.
-- The size of the static part of a frame can be found in the
-- associated unwind descriptor.
Caller_UWD := UWD_For_Caller_Of (Frame);
-- If we cannot get it, we are unable to compute the potentially
-- necessary adjustments. We'd better not try to go on then.
if Caller_UWD = null then
return False;
end if;
-- If the caller frame is a GCC one, r3 is its frame pointer and
-- points to the bottom of the frame. The value to provide for r4
-- can then be computed directly from the one of r3, compensating
-- for the static part of the frame.
-- If the caller frame is an HP one, r3 is used to locate the
-- previous frame marker, that is it also points to the bottom of
-- the frame (this is why r3 cannot be used as the frame pointer in
-- the HP sense for large frames). The value to provide for r4 can
-- then also be computed from the one of r3 with the compensation
-- for the static part of the frame.
FP_Adjustment := Integer (Caller_UWD.frame_size * 8);
Frame.top_r4 := Address (Integer (Frame.top_r3) + FP_Adjustment);
return True;
end Prepare_For_Unwind_Of;
-----------------------
-- UWD_For_Caller_Of --
-----------------------
function UWD_For_Caller_Of (Frame : not null access CFD) return UWD_Ptr
is
UWD_Access : UWD_Ptr;
begin
-- First try the most direct path, using the return location data
-- associated with the frame.
UWD_Access := UWD_For_RLO_Of (Frame);
if UWD_Access /= null then
return UWD_Access;
end if;
-- If we did not get a result, we might face an in-stub return
-- address. In this case U_get_previous_frame can tell us what the
-- first not-in-stub return point is. We cannot call it directly,
-- though, because we haven't computed the potentially necessary
-- frame pointer adjustments, which might lead to SEGV in some
-- circumstances. Instead, we directly call the libcl routine which
-- is called by U_get_previous_frame and which only requires few
-- information. Take care, however, that the information is provided
-- in the "current" argument, so we need to work on a copy to avoid
-- disturbing our caller.
declare
U_Current : aliased CFD := Frame.all;
U_Previous : aliased PFD;
begin
U_Previous.prev_dp := U_Current.cur_dp;
U_Previous.prev_rls := U_Current.cur_rls;
U_Previous.prev_sp := U_Current.cur_sp - U_Current.cur_fsz;
if U_get_u_rlo (U_Current'Access, U_Previous'Access) /= -1 then
UWD_Access := UWD_For_RLO_Of (U_Current'Access);
end if;
end;
return UWD_Access;
end UWD_For_Caller_Of;
--------------------
-- UWD_For_RLO_Of --
--------------------
function UWD_For_RLO_Of (Frame : not null access CFD) return UWD_Ptr
is
UWD_Address : Address;
-- The addresses returned by the library point to full descriptors
-- including the frame information bits but also the applicable PC
-- range. We need to account for this.
Frame_Info_Offset : constant := 8;
begin
-- First try to locate the descriptor in the program's unwind table
UWD_Address := U_get_unwind_entry (Frame.cur_rlo,
Frame.cur_rls,
Program_UWT.Table_Start,
Program_UWT.Table_End);
-- If we did not get it, we might have a frame from code in a
-- stub or shared library. For code in stub we would have to
-- compute the first non-stub return location but this is not
-- the role of this subprogram, so let's just try to see if we
-- can get a result from the tables in shared libraries.
if UWD_Address = -1
and then U_is_shared_pc (Frame.cur_rlo, Frame.cur_r19) /= 0
then
declare
Shlib_UWT : constant UWT :=
U_get_shLib_unwind_table (Frame.cur_r19);
Shlib_Start : constant Address :=
U_get_shLib_text_addr (Frame.cur_r19);
Rlo_Offset : constant Address :=
Frame.cur_rlo - Shlib_Start;
begin
UWD_Address := U_get_unwind_entry (Rlo_Offset,
Frame.cur_rls,
Shlib_UWT.Table_Start,
Shlib_UWT.Table_End);
end;
end if;
if UWD_Address /= -1 then
return To_UWD_Access (UWD_Address + Frame_Info_Offset);
else
return null;
end if;
end UWD_For_RLO_Of;
-- Start of processing for Call_Chain
begin
-- Fetch the state for this subprogram's frame and pop it so that we
-- start with an initial out_rlo "here".
U_init_frame_record (Frame'Access);
Frame.top_sr0 := 0;
Frame.top_sr4 := 0;
U_prep_frame_rec_for_unwind (Frame'Access);
Pop_Success := Pop_Frame (Frame'Access);
-- Skip the requested number of frames
for I in 1 .. Skip_Frames loop
Pop_Success := Pop_Frame (Frame'Access);
end loop;
-- Loop popping frames and storing locations until either a problem
-- occurs, or the top of the call chain is reached, or the provided
-- array is full.
loop
-- We have to test some conditions against the return location
-- as it is returned, so get it as is first.
Code := Frame.out_rlo;
exit when not Pop_Success or else Code = 0 or else J = Max_Len + 1;
-- Compute the call point from the retrieved return location :
-- Mask the privilege bits and account for the delta between the
-- call site and the return point.
Code := (Code and not Priv_Mask) - Rlo_Offset;
if Code < Exclude_Min or else Code > Exclude_Max then
Trace (J) := Code;
J := J + 1;
end if;
Pop_Success := Pop_Frame (Frame'Access);
end loop;
Len := J - 1;
end Call_Chain;
procedure Call_Chain
(Traceback : in out System.Traceback_Entries.Tracebacks_Array;
Max_Len : Natural;
Len : out Natural;
Exclude_Min : System.Address := System.Null_Address;
Exclude_Max : System.Address := System.Null_Address;
Skip_Frames : Natural := 1)
is
begin
Call_Chain
(Traceback'Address, Max_Len, Len,
Exclude_Min, Exclude_Max,
-- Skip one extra frame to skip the other Call_Chain entry as well
Skip_Frames => Skip_Frames + 1);
end Call_Chain;
end System.Traceback;
| 39.936306 | 79 | 0.584171 |
20811cc81699295bf327c70bb304be5cbd346fba | 12,104 | adb | Ada | ada_gui-gnoga-gui-element-multimedia.adb | jrcarter/Ada_GUI | 65a829c55dec91fd48a0b72f88d76137768bf4fb | [
"BSD-3-Clause"
] | 19 | 2018-03-18T18:07:14.000Z | 2022-03-30T03:10:12.000Z | ada_gui-gnoga-gui-element-multimedia.adb | jrcarter/Ada_GUI | 65a829c55dec91fd48a0b72f88d76137768bf4fb | [
"BSD-3-Clause"
] | 4 | 2021-08-23T12:52:06.000Z | 2022-03-31T10:48:43.000Z | ada_gui-gnoga-gui-element-multimedia.adb | jrcarter/Ada_GUI | 65a829c55dec91fd48a0b72f88d76137768bf4fb | [
"BSD-3-Clause"
] | null | null | null | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G A . G U I . E L E M E N T . M U L T I M E D I A --
-- --
-- B o d y --
-- --
-- --
-- Copyright (C) 2014 David Botton --
-- --
-- This library is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the --
-- Free Software Foundation; either version 3, or (at your option) any --
-- later version. This library is distributed in the hope that it will be --
-- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are --
-- granted additional permissions described in the GCC Runtime Library --
-- Exception, version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- For more information please go to http://www.gnoga.com --
------------------------------------------------------------------------------
package body Ada_GUI.Gnoga.Gui.Element.Multimedia is
----------
-- Play --
----------
procedure Play (Media : in out Multimedia_Type) is
begin
Media.Execute ("play()");
end Play;
-----------
-- Pause --
-----------
procedure Pause (Media : in out Multimedia_Type) is
begin
Media.Execute ("pause()");
end Pause;
----------
-- Load --
----------
procedure Load (Media : in out Multimedia_Type) is
begin
Media.Execute ("load()");
end Load;
function Can_Play (Media : Multimedia_Type; Media_Type : String)
return Boolean
is
begin
return Media.Execute ("canPlayType ('" & Media_Type & "')") /= "";
end Can_Play;
--------------------
-- Media_Duration --
--------------------
function Media_Duration (Media : Multimedia_Type) return Float is
begin
return Media.Property ("duration");
end Media_Duration;
------------------
-- Media_Source --
------------------
procedure Media_Source (Media : in out Multimedia_Type; Source : in String)
is
begin
Media.Property ("src", Source);
end Media_Source;
function Media_Source (Media : Multimedia_Type) return String is
begin
return Media.Property ("src");
end Media_Source;
--------------------
-- Media_Position --
--------------------
procedure Media_Position (Media : in out Multimedia_Type;
Seconds : in Float)
is
begin
Media.Property ("currentTime", Seconds);
end Media_Position;
function Media_Position (Media : Multimedia_Type) return Float is
begin
return Media.Property ("currentTime");
end Media_Position;
--------------------
-- Playback_Ended --
--------------------
function Playback_Ended (Media : Multimedia_Type) return Boolean is
begin
return Media.Property ("ended");
end Playback_Ended;
----------------
-- Loop_Media --
----------------
procedure Loop_Media (Media : in out Multimedia_Type; Value : Boolean) is
begin
Media.Property ("loop", Value);
end Loop_Media;
function Loop_Media (Media : Multimedia_Type) return Boolean is
begin
return Media.Property ("loop");
end Loop_Media;
-----------
-- Muted --
-----------
procedure Muted (Media : in out Multimedia_Type; Value : Boolean) is
begin
Media.Property ("muted", Value);
end Muted;
function Muted (Media : Multimedia_Type) return Boolean is
begin
return Media.Property ("muted");
end Muted;
------------
-- Paused --
------------
function Paused (Media : Multimedia_Type) return Boolean is
begin
return Media.Property ("paused");
end Paused;
-------------------
-- Playback_Rate --
-------------------
procedure Playback_Rate (Media : in out Multimedia_Type; Value : in Float)
is
begin
Media.Property ("playbackRate", Value);
end Playback_Rate;
function Playback_Rate (Media : Multimedia_Type) return Float is
begin
return Media.Property ("playbackRate");
end Playback_Rate;
-------------------
-- Ready_To_Play --
-------------------
function Ready_To_Play (Media : Multimedia_Type) return Boolean is
begin
return Media.Property ("readyState") /= 0;
end Ready_To_Play;
-------------
-- Seeking --
-------------
function Seeking (Media : Multimedia_Type) return Boolean is
begin
return Media.Property ("seeking");
end Seeking;
procedure Volume (Media : in out Multimedia_Type; Value : Volume_Range) is
begin
Media.Property ("volume", Value);
end Volume;
function Volume (Media : Multimedia_Type) return Volume_Range is
begin
return Media.Property ("volume");
end Volume;
------------
-- Create --
------------
procedure Create (Audio : in out Audio_Type;
Parent : in out Gnoga.Gui.Base_Type'Class;
Source : in String := "";
Controls : in Boolean := True;
Preload : in Boolean := False;
Autoplay : in Boolean := False;
Autoloop : in Boolean := False;
Muted : in Boolean := False;
ID : in String := "")
is
function Has_Controls return String;
function Has_Preload return String;
function Has_Autoplay return String;
function Has_Autoloop return String;
function Has_Muted return String;
function Has_Source return String;
function Has_Controls return String is
begin
if Controls then
return " controls";
else
return "";
end if;
end Has_Controls;
function Has_Preload return String is
begin
if Preload then
return Escape_Quotes (" preload='auto'");
else
return "";
end if;
end Has_Preload;
function Has_Autoplay return String is
begin
if Autoplay then
return " autoplay";
else
return "";
end if;
end Has_Autoplay;
function Has_Autoloop return String is
begin
if Autoloop then
return " loop";
else
return "";
end if;
end Has_Autoloop;
function Has_Muted return String is
begin
if Muted then
return " muted";
else
return "";
end if;
end Has_Muted;
function Has_Source return String is
begin
if Source /= "" then
return Escape_Quotes (" src='" & Escape_Inner_Quotes (Source) & "'");
else
return "";
end if;
end Has_Source;
begin
Audio.Create_From_HTML (Parent => Parent,
HTML => "<audio" &
Has_Controls &
Has_Preload &
Has_Autoplay &
Has_Autoloop &
Has_Muted &
Has_Source &
" />",
ID => ID);
end Create;
------------
-- Create --
------------
procedure Create (Video : in out Video_Type;
Parent : in out Gnoga.Gui.Base_Type'Class;
Source : in String := "";
Controls : in Boolean := True;
Preload : in Boolean := False;
Poster : in String := "";
Autoplay : in Boolean := False;
Autoloop : in Boolean := False;
Muted : in Boolean := False;
ID : in String := "")
is
function Has_Controls return String;
function Has_Preload return String;
function Has_Autoplay return String;
function Has_Autoloop return String;
function Has_Muted return String;
function Has_Poster return String;
function Has_Source return String;
function Has_Controls return String is
begin
if Controls then
return " controls";
else
return "";
end if;
end Has_Controls;
function Has_Preload return String is
begin
if Preload then
return " preload='auto'";
else
return "";
end if;
end Has_Preload;
function Has_Autoplay return String is
begin
if Autoplay then
return " autoplay";
else
return "";
end if;
end Has_Autoplay;
function Has_Autoloop return String is
begin
if Autoloop then
return " loop";
else
return "";
end if;
end Has_Autoloop;
function Has_Muted return String is
begin
if Muted then
return " muted";
else
return "";
end if;
end Has_Muted;
function Has_Poster return String is
begin
if Source /= "" then
return Escape_Quotes (" poster='" & Escape_Inner_Quotes (Poster) & "'");
else
return "";
end if;
end Has_Poster;
function Has_Source return String is
begin
if Source /= "" then
return Escape_Quotes (" src='" & Escape_Inner_Quotes (Source) & "'");
else
return "";
end if;
end Has_Source;
begin
Video.Create_From_HTML (Parent => Parent,
HTML => "<video" &
Has_Controls &
Has_Preload &
Has_Autoplay &
Has_Autoloop &
Has_Muted &
Has_Poster &
Has_Source &
" />",
ID => ID);
end Create;
end Ada_GUI.Gnoga.Gui.Element.Multimedia;
| 31.195876 | 84 | 0.478933 |
cbb3c9f6b2f11d1fdefe9de0ea57cf15e7acc5b3 | 1,224 | ads | Ada | src/sys/serialize/util-properties-form.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 60 | 2015-01-18T23:05:34.000Z | 2022-03-20T18:56:30.000Z | src/sys/serialize/util-properties-form.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 20 | 2016-09-15T16:41:30.000Z | 2022-03-29T22:02:32.000Z | src/sys/serialize/util-properties-form.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 10 | 2015-02-13T04:00:45.000Z | 2022-03-20T18:57:54.000Z | -----------------------------------------------------------------------
-- util-properties-form -- read application/form content into properties
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- 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 agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
package Util.Properties.Form is
-- Parse the application/form content and put the flattened content in the property manager.
procedure Parse_Form (Manager : in out Util.Properties.Manager'Class;
Content : in String;
Flatten_Separator : in String := ".");
end Util.Properties.Form;
| 45.333333 | 96 | 0.626634 |
Subsets and Splits