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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10711ffeca98e1eeb67a0520247f2ece5bfb8699 | 127,814 | adb | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-coinve.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-coinve.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-coinve.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- A D A . C O N T A I N E R S . I N D E F I N I T E _ V E C T O R S --
-- --
-- B o d y --
-- --
-- Copyright (C) 2004-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/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with Ada.Containers.Generic_Array_Sort;
with Ada.Unchecked_Deallocation;
with System; use type System.Address;
with System.Put_Images;
package body Ada.Containers.Indefinite_Vectors with
SPARK_Mode => Off
is
pragma Warnings (Off, "variable ""Busy*"" is not referenced");
pragma Warnings (Off, "variable ""Lock*"" is not referenced");
-- See comment in Ada.Containers.Helpers
procedure Free is
new Ada.Unchecked_Deallocation (Elements_Type, Elements_Access);
procedure Free is
new Ada.Unchecked_Deallocation (Element_Type, Element_Access);
procedure Append_Slow_Path
(Container : in out Vector;
New_Item : Element_Type;
Count : Count_Type);
-- This is the slow path for Append. This is split out to minimize the size
-- of Append, because we have Inline (Append).
---------
-- "&" --
---------
-- We decide that the capacity of the result of "&" is the minimum needed
-- -- the sum of the lengths of the vector parameters. We could decide to
-- make it larger, but we have no basis for knowing how much larger, so we
-- just allocate the minimum amount of storage.
function "&" (Left, Right : Vector) return Vector is
begin
return Result : Vector do
Reserve_Capacity (Result, Length (Left) + Length (Right));
Append (Result, Left);
Append (Result, Right);
end return;
end "&";
function "&" (Left : Vector; Right : Element_Type) return Vector is
begin
return Result : Vector do
Reserve_Capacity (Result, Length (Left) + 1);
Append (Result, Left);
Append (Result, Right);
end return;
end "&";
function "&" (Left : Element_Type; Right : Vector) return Vector is
begin
return Result : Vector do
Reserve_Capacity (Result, 1 + Length (Right));
Append (Result, Left);
Append (Result, Right);
end return;
end "&";
function "&" (Left, Right : Element_Type) return Vector is
begin
return Result : Vector do
Reserve_Capacity (Result, 1 + 1);
Append (Result, Left);
Append (Result, Right);
end return;
end "&";
---------
-- "=" --
---------
overriding function "=" (Left, Right : Vector) return Boolean is
begin
if Left.Last /= Right.Last then
return False;
end if;
if Left.Length = 0 then
return True;
end if;
declare
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
Lock_Left : With_Lock (Left.TC'Unrestricted_Access);
Lock_Right : With_Lock (Right.TC'Unrestricted_Access);
begin
for J in Index_Type range Index_Type'First .. Left.Last loop
if Left.Elements.EA (J) = null then
if Right.Elements.EA (J) /= null then
return False;
end if;
elsif Right.Elements.EA (J) = null then
return False;
elsif Left.Elements.EA (J).all /= Right.Elements.EA (J).all then
return False;
end if;
end loop;
end;
return True;
end "=";
------------
-- Adjust --
------------
procedure Adjust (Container : in out Vector) is
begin
-- If the counts are nonzero, execution is technically erroneous, but
-- it seems friendly to allow things like concurrent "=" on shared
-- constants.
Zero_Counts (Container.TC);
if Container.Last = No_Index then
Container.Elements := null;
return;
end if;
declare
L : constant Index_Type := Container.Last;
E : Elements_Array renames
Container.Elements.EA (Index_Type'First .. L);
begin
Container.Elements := null;
Container.Last := No_Index;
Container.Elements := new Elements_Type (L);
for J in E'Range loop
if E (J) /= null then
Container.Elements.EA (J) := new Element_Type'(E (J).all);
end if;
Container.Last := J;
end loop;
end;
end Adjust;
------------
-- Append --
------------
procedure Append (Container : in out Vector; New_Item : Vector) is
begin
if Is_Empty (New_Item) then
return;
elsif Checks and then Container.Last = Index_Type'Last then
raise Constraint_Error with "vector is already at its maximum length";
else
Insert (Container, Container.Last + 1, New_Item);
end if;
end Append;
procedure Append
(Container : in out Vector;
New_Item : Element_Type;
Count : Count_Type := 1)
is
begin
-- In the general case, we pass the buck to Insert, but for efficiency,
-- we check for the usual case where Count = 1 and the vector has enough
-- room for at least one more element.
if Count = 1
and then Container.Elements /= null
and then Container.Last /= Container.Elements.Last
then
TC_Check (Container.TC);
-- Increment Container.Last after assigning the New_Item, so we
-- leave the Container unmodified in case Finalize/Adjust raises
-- an exception.
declare
New_Last : constant Index_Type := Container.Last + 1;
-- The element allocator may need an accessibility check in the
-- case actual type is class-wide or has access discriminants
-- (see RM 4.8(10.1) and AI12-0035).
pragma Unsuppress (Accessibility_Check);
begin
Container.Elements.EA (New_Last) := new Element_Type'(New_Item);
Container.Last := New_Last;
end;
else
Append_Slow_Path (Container, New_Item, Count);
end if;
end Append;
----------------
-- Append_One --
----------------
procedure Append_One (Container : in out Vector;
New_Item : Element_Type)
is
begin
Insert (Container, Last_Index (Container) + 1, New_Item, 1);
end Append_One;
----------------------
-- Append_Slow_Path --
----------------------
procedure Append_Slow_Path
(Container : in out Vector;
New_Item : Element_Type;
Count : Count_Type)
is
begin
if Count = 0 then
return;
elsif Checks and then Container.Last = Index_Type'Last then
raise Constraint_Error with "vector is already at its maximum length";
else
Insert (Container, Container.Last + 1, New_Item, Count);
end if;
end Append_Slow_Path;
------------
-- Assign --
------------
procedure Assign (Target : in out Vector; Source : Vector) is
begin
if Target'Address = Source'Address then
return;
else
Target.Clear;
Target.Append (Source);
end if;
end Assign;
--------------
-- Capacity --
--------------
function Capacity (Container : Vector) return Count_Type is
begin
if Container.Elements = null then
return 0;
else
return Container.Elements.EA'Length;
end if;
end Capacity;
-----------
-- Clear --
-----------
procedure Clear (Container : in out Vector) is
begin
TC_Check (Container.TC);
while Container.Last >= Index_Type'First loop
declare
X : Element_Access := Container.Elements.EA (Container.Last);
begin
Container.Elements.EA (Container.Last) := null;
Container.Last := Container.Last - 1;
Free (X);
end;
end loop;
end Clear;
------------------------
-- Constant_Reference --
------------------------
function Constant_Reference
(Container : aliased Vector;
Position : Cursor) return Constant_Reference_Type
is
begin
if Checks then
if Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
end if;
if Position.Container /= Container'Unrestricted_Access then
raise Program_Error with "Position cursor denotes wrong container";
end if;
if Position.Index > Position.Container.Last then
raise Constraint_Error with "Position cursor is out of range";
end if;
end if;
declare
TC : constant Tamper_Counts_Access :=
Container.TC'Unrestricted_Access;
begin
-- The following will raise Constraint_Error if Element is null
return R : constant Constant_Reference_Type :=
(Element => Container.Elements.EA (Position.Index),
Control => (Controlled with TC))
do
Busy (TC.all);
end return;
end;
end Constant_Reference;
function Constant_Reference
(Container : aliased Vector;
Index : Index_Type) return Constant_Reference_Type
is
begin
if Checks and then Index > Container.Last then
raise Constraint_Error with "Index is out of range";
end if;
declare
TC : constant Tamper_Counts_Access :=
Container.TC'Unrestricted_Access;
begin
-- The following will raise Constraint_Error if Element is null
return R : constant Constant_Reference_Type :=
(Element => Container.Elements.EA (Index),
Control => (Controlled with TC))
do
Busy (TC.all);
end return;
end;
end Constant_Reference;
--------------
-- Contains --
--------------
function Contains
(Container : Vector;
Item : Element_Type) return Boolean
is
begin
return Find_Index (Container, Item) /= No_Index;
end Contains;
----------
-- Copy --
----------
function Copy
(Source : Vector;
Capacity : Count_Type := 0) return Vector
is
C : Count_Type;
begin
if Capacity < Source.Length then
if Checks and then Capacity /= 0 then
raise Capacity_Error
with "Requested capacity is less than Source length";
end if;
C := Source.Length;
else
C := Capacity;
end if;
return Target : Vector do
Target.Reserve_Capacity (C);
Target.Assign (Source);
end return;
end Copy;
------------
-- Delete --
------------
procedure Delete
(Container : in out Vector;
Index : Extended_Index;
Count : Count_Type := 1)
is
Old_Last : constant Index_Type'Base := Container.Last;
New_Last : Index_Type'Base;
Count2 : Count_Type'Base; -- count of items from Index to Old_Last
J : Index_Type'Base; -- first index of items that slide down
begin
-- The tampering bits exist to prevent an item from being deleted (or
-- otherwise harmfully manipulated) while it is being visited. Query,
-- Update, and Iterate increment the busy count on entry, and decrement
-- the count on exit. Delete checks the count to determine whether it is
-- being called while the associated callback procedure is executing.
TC_Check (Container.TC);
-- Delete removes items from the vector, the number of which is the
-- minimum of the specified Count and the items (if any) that exist from
-- Index to Container.Last. There are no constraints on the specified
-- value of Count (it can be larger than what's available at this
-- position in the vector, for example), but there are constraints on
-- the allowed values of the Index.
-- As a precondition on the generic actual Index_Type, the base type
-- must include Index_Type'Pred (Index_Type'First); this is the value
-- that Container.Last assumes when the vector is empty. However, we do
-- not allow that as the value for Index when specifying which items
-- should be deleted, so we must manually check. (That the user is
-- allowed to specify the value at all here is a consequence of the
-- declaration of the Extended_Index subtype, which includes the values
-- in the base range that immediately precede and immediately follow the
-- values in the Index_Type.)
if Checks and then Index < Index_Type'First then
raise Constraint_Error with "Index is out of range (too small)";
end if;
-- We do allow a value greater than Container.Last to be specified as
-- the Index, but only if it's immediately greater. This allows the
-- corner case of deleting no items from the back end of the vector to
-- be treated as a no-op. (It is assumed that specifying an index value
-- greater than Last + 1 indicates some deeper flaw in the caller's
-- algorithm, so that case is treated as a proper error.)
if Index > Old_Last then
if Checks and then Index > Old_Last + 1 then
raise Constraint_Error with "Index is out of range (too large)";
else
return;
end if;
end if;
-- Here and elsewhere we treat deleting 0 items from the container as a
-- no-op, even when the container is busy, so we simply return.
if Count = 0 then
return;
end if;
-- The internal elements array isn't guaranteed to exist unless we have
-- elements, so we handle that case here in order to avoid having to
-- check it later. (Note that an empty vector can never be busy, so
-- there's no semantic harm in returning early.)
if Container.Is_Empty then
return;
end if;
-- We first calculate what's available for deletion starting at
-- Index. Here and elsewhere we use the wider of Index_Type'Base and
-- Count_Type'Base as the type for intermediate values. (See function
-- Length for more information.)
if Count_Type'Base'Last >= Index_Type'Pos (Index_Type'Base'Last) then
Count2 := Count_Type'Base (Old_Last) - Count_Type'Base (Index) + 1;
else
Count2 := Count_Type'Base (Old_Last - Index + 1);
end if;
-- If the number of elements requested (Count) for deletion is equal to
-- (or greater than) the number of elements available (Count2) for
-- deletion beginning at Index, then everything from Index to
-- Container.Last is deleted (this is equivalent to Delete_Last).
if Count >= Count2 then
-- Elements in an indefinite vector are allocated, so we must iterate
-- over the loop and deallocate elements one-at-a-time. We work from
-- back to front, deleting the last element during each pass, in
-- order to gracefully handle deallocation failures.
declare
EA : Elements_Array renames Container.Elements.EA;
begin
while Container.Last >= Index loop
declare
K : constant Index_Type := Container.Last;
X : Element_Access := EA (K);
begin
-- We first isolate the element we're deleting, removing it
-- from the vector before we attempt to deallocate it, in
-- case the deallocation fails.
EA (K) := null;
Container.Last := K - 1;
-- Container invariants have been restored, so it is now
-- safe to attempt to deallocate the element.
Free (X);
end;
end loop;
end;
return;
end if;
-- There are some elements that aren't being deleted (the requested
-- count was less than the available count), so we must slide them down
-- to Index. We first calculate the index values of the respective array
-- slices, using the wider of Index_Type'Base and Count_Type'Base as the
-- type for intermediate calculations. For the elements that slide down,
-- index value New_Last is the last index value of their new home, and
-- index value J is the first index of their old home.
if Index_Type'Base'Last >= Count_Type_Last then
New_Last := Old_Last - Index_Type'Base (Count);
J := Index + Index_Type'Base (Count);
else
New_Last := Index_Type'Base (Count_Type'Base (Old_Last) - Count);
J := Index_Type'Base (Count_Type'Base (Index) + Count);
end if;
-- The internal elements array isn't guaranteed to exist unless we have
-- elements, but we have that guarantee here because we know we have
-- elements to slide. The array index values for each slice have
-- already been determined, so what remains to be done is to first
-- deallocate the elements that are being deleted, and then slide down
-- to Index the elements that aren't being deleted.
declare
EA : Elements_Array renames Container.Elements.EA;
begin
-- Before we can slide down the elements that aren't being deleted,
-- we need to deallocate the elements that are being deleted.
for K in Index .. J - 1 loop
declare
X : Element_Access := EA (K);
begin
-- First we remove the element we're about to deallocate from
-- the vector, in case the deallocation fails, in order to
-- preserve representation invariants.
EA (K) := null;
-- The element has been removed from the vector, so it is now
-- safe to attempt to deallocate it.
Free (X);
end;
end loop;
EA (Index .. New_Last) := EA (J .. Old_Last);
Container.Last := New_Last;
end;
end Delete;
procedure Delete
(Container : in out Vector;
Position : in out Cursor;
Count : Count_Type := 1)
is
begin
if Checks then
if Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
elsif Position.Container /= Container'Unrestricted_Access then
raise Program_Error with "Position cursor denotes wrong container";
elsif Position.Index > Container.Last then
raise Program_Error with "Position index is out of range";
end if;
end if;
Delete (Container, Position.Index, Count);
Position := No_Element;
end Delete;
------------------
-- Delete_First --
------------------
procedure Delete_First
(Container : in out Vector;
Count : Count_Type := 1)
is
begin
if Count = 0 then
return;
elsif Count >= Length (Container) then
Clear (Container);
return;
else
Delete (Container, Index_Type'First, Count);
end if;
end Delete_First;
-----------------
-- Delete_Last --
-----------------
procedure Delete_Last
(Container : in out Vector;
Count : Count_Type := 1)
is
begin
-- It is not permitted to delete items while the container is busy (for
-- example, we're in the middle of a passive iteration). However, we
-- always treat deleting 0 items as a no-op, even when we're busy, so we
-- simply return without checking.
if Count = 0 then
return;
end if;
-- We cannot simply subsume the empty case into the loop below (the loop
-- would iterate 0 times), because we rename the internal array object
-- (which is allocated), but an empty vector isn't guaranteed to have
-- actually allocated an array. (Note that an empty vector can never be
-- busy, so there's no semantic harm in returning early here.)
if Container.Is_Empty then
return;
end if;
-- The tampering bits exist to prevent an item from being deleted (or
-- otherwise harmfully manipulated) while it is being visited. Query,
-- Update, and Iterate increment the busy count on entry, and decrement
-- the count on exit. Delete_Last checks the count to determine whether
-- it is being called while the associated callback procedure is
-- executing.
TC_Check (Container.TC);
-- Elements in an indefinite vector are allocated, so we must iterate
-- over the loop and deallocate elements one-at-a-time. We work from
-- back to front, deleting the last element during each pass, in order
-- to gracefully handle deallocation failures.
declare
E : Elements_Array renames Container.Elements.EA;
begin
for Indx in 1 .. Count_Type'Min (Count, Container.Length) loop
declare
J : constant Index_Type := Container.Last;
X : Element_Access := E (J);
begin
-- Note that we first isolate the element we're deleting,
-- removing it from the vector, before we actually deallocate
-- it, in order to preserve representation invariants even if
-- the deallocation fails.
E (J) := null;
Container.Last := J - 1;
-- Container invariants have been restored, so it is now safe
-- to deallocate the element.
Free (X);
end;
end loop;
end;
end Delete_Last;
-------------
-- Element --
-------------
function Element
(Container : Vector;
Index : Index_Type) return Element_Type
is
begin
if Checks and then Index > Container.Last then
raise Constraint_Error with "Index is out of range";
end if;
declare
EA : constant Element_Access := Container.Elements.EA (Index);
begin
if Checks and then EA = null then
raise Constraint_Error with "element is empty";
else
return EA.all;
end if;
end;
end Element;
function Element (Position : Cursor) return Element_Type is
begin
if Checks then
if Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
end if;
if Position.Index > Position.Container.Last then
raise Constraint_Error with "Position cursor is out of range";
end if;
end if;
declare
EA : constant Element_Access :=
Position.Container.Elements.EA (Position.Index);
begin
if Checks and then EA = null then
raise Constraint_Error with "element is empty";
else
return EA.all;
end if;
end;
end Element;
-----------
-- Empty --
-----------
function Empty (Capacity : Count_Type := 10) return Vector is
begin
return Result : Vector do
Reserve_Capacity (Result, Capacity);
end return;
end Empty;
--------------
-- Finalize --
--------------
procedure Finalize (Container : in out Vector) is
begin
Clear (Container); -- Checks busy-bit
declare
X : Elements_Access := Container.Elements;
begin
Container.Elements := null;
Free (X);
end;
end Finalize;
procedure Finalize (Object : in out Iterator) is
begin
Unbusy (Object.Container.TC);
end Finalize;
----------
-- Find --
----------
function Find
(Container : Vector;
Item : Element_Type;
Position : Cursor := No_Element) return Cursor
is
begin
if Checks and then Position.Container /= null then
if Position.Container /= Container'Unrestricted_Access then
raise Program_Error with "Position cursor denotes wrong container";
end if;
if Position.Index > Container.Last then
raise Program_Error with "Position index is out of range";
end if;
end if;
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock : With_Lock (Container.TC'Unrestricted_Access);
begin
for J in Position.Index .. Container.Last loop
if Container.Elements.EA (J).all = Item then
return Cursor'(Container'Unrestricted_Access, J);
end if;
end loop;
return No_Element;
end;
end Find;
----------------
-- Find_Index --
----------------
function Find_Index
(Container : Vector;
Item : Element_Type;
Index : Index_Type := Index_Type'First) return Extended_Index
is
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
Lock : With_Lock (Container.TC'Unrestricted_Access);
begin
for Indx in Index .. Container.Last loop
if Container.Elements.EA (Indx).all = Item then
return Indx;
end if;
end loop;
return No_Index;
end Find_Index;
-----------
-- First --
-----------
function First (Container : Vector) return Cursor is
begin
if Is_Empty (Container) then
return No_Element;
end if;
return (Container'Unrestricted_Access, Index_Type'First);
end First;
function First (Object : Iterator) return Cursor is
begin
-- The value of the iterator object's Index component influences the
-- behavior of the First (and Last) selector function.
-- When the Index component is No_Index, this means the iterator
-- object was constructed without a start expression, in which case the
-- (forward) iteration starts from the (logical) beginning of the entire
-- sequence of items (corresponding to Container.First, for a forward
-- iterator).
-- Otherwise, this is iteration over a partial sequence of items.
-- When the Index component isn't No_Index, the iterator object was
-- constructed with a start expression, that specifies the position
-- from which the (forward) partial iteration begins.
if Object.Index = No_Index then
return First (Object.Container.all);
else
return Cursor'(Object.Container, Object.Index);
end if;
end First;
-------------------
-- First_Element --
-------------------
function First_Element (Container : Vector) return Element_Type is
begin
if Checks and then Container.Last = No_Index then
raise Constraint_Error with "Container is empty";
end if;
declare
EA : constant Element_Access :=
Container.Elements.EA (Index_Type'First);
begin
if Checks and then EA = null then
raise Constraint_Error with "first element is empty";
else
return EA.all;
end if;
end;
end First_Element;
-----------------
-- New_Vector --
-----------------
function New_Vector (First, Last : Index_Type) return Vector
is
begin
return (To_Vector (Count_Type (Last - First + 1)));
end New_Vector;
-----------------
-- First_Index --
-----------------
function First_Index (Container : Vector) return Index_Type is
pragma Unreferenced (Container);
begin
return Index_Type'First;
end First_Index;
---------------------
-- Generic_Sorting --
---------------------
package body Generic_Sorting is
-----------------------
-- Local Subprograms --
-----------------------
function Is_Less (L, R : Element_Access) return Boolean;
pragma Inline (Is_Less);
-------------
-- Is_Less --
-------------
function Is_Less (L, R : Element_Access) return Boolean is
begin
if L = null then
return R /= null;
elsif R = null then
return False;
else
return L.all < R.all;
end if;
end Is_Less;
---------------
-- Is_Sorted --
---------------
function Is_Sorted (Container : Vector) return Boolean is
begin
if Container.Last <= Index_Type'First then
return True;
end if;
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock : With_Lock (Container.TC'Unrestricted_Access);
E : Elements_Array renames Container.Elements.EA;
begin
for J in Index_Type'First .. Container.Last - 1 loop
if Is_Less (E (J + 1), E (J)) then
return False;
end if;
end loop;
return True;
end;
end Is_Sorted;
-----------
-- Merge --
-----------
procedure Merge (Target, Source : in out Vector) is
I, J : Index_Type'Base;
begin
TC_Check (Source.TC);
-- The semantics of Merge changed slightly per AI05-0021. It was
-- originally the case that if Target and Source denoted the same
-- container object, then the GNAT implementation of Merge did
-- nothing. However, it was argued that RM05 did not precisely
-- specify the semantics for this corner case. The decision of the
-- ARG was that if Target and Source denote the same non-empty
-- container object, then Program_Error is raised.
if Source.Last < Index_Type'First then -- Source is empty
return;
end if;
if Checks and then Target'Address = Source'Address then
raise Program_Error with
"Target and Source denote same non-empty container";
end if;
if Target.Last < Index_Type'First then -- Target is empty
Move (Target => Target, Source => Source);
return;
end if;
I := Target.Last; -- original value (before Set_Length)
Target.Set_Length (Length (Target) + Length (Source));
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
TA : Elements_Array renames Target.Elements.EA;
SA : Elements_Array renames Source.Elements.EA;
Lock_Target : With_Lock (Target.TC'Unchecked_Access);
Lock_Source : With_Lock (Source.TC'Unchecked_Access);
begin
J := Target.Last; -- new value (after Set_Length)
while Source.Last >= Index_Type'First loop
pragma Assert
(Source.Last <= Index_Type'First
or else not (Is_Less (SA (Source.Last),
SA (Source.Last - 1))));
if I < Index_Type'First then
declare
Src : Elements_Array renames
SA (Index_Type'First .. Source.Last);
begin
TA (Index_Type'First .. J) := Src;
Src := (others => null);
end;
Source.Last := No_Index;
exit;
end if;
pragma Assert
(I <= Index_Type'First
or else not (Is_Less (TA (I), TA (I - 1))));
declare
Src : Element_Access renames SA (Source.Last);
Tgt : Element_Access renames TA (I);
begin
if Is_Less (Src, Tgt) then
Target.Elements.EA (J) := Tgt;
Tgt := null;
I := I - 1;
else
Target.Elements.EA (J) := Src;
Src := null;
Source.Last := Source.Last - 1;
end if;
end;
J := J - 1;
end loop;
end;
end Merge;
----------
-- Sort --
----------
procedure Sort (Container : in out Vector) is
procedure Sort is new Generic_Array_Sort
(Index_Type => Index_Type,
Element_Type => Element_Access,
Array_Type => Elements_Array,
"<" => Is_Less);
-- Start of processing for Sort
begin
if Container.Last <= Index_Type'First then
return;
end if;
-- The exception behavior for the vector container must match that
-- for the list container, so we check for cursor tampering here
-- (which will catch more things) instead of for element tampering
-- (which will catch fewer things). It's true that the elements of
-- this vector container could be safely moved around while (say) an
-- iteration is taking place (iteration only increments the busy
-- counter), and so technically all we would need here is a test for
-- element tampering (indicated by the lock counter), that's simply
-- an artifact of our array-based implementation. Logically Sort
-- requires a check for cursor tampering.
TC_Check (Container.TC);
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock : With_Lock (Container.TC'Unchecked_Access);
begin
Sort (Container.Elements.EA (Index_Type'First .. Container.Last));
end;
end Sort;
end Generic_Sorting;
------------------------
-- Get_Element_Access --
------------------------
function Get_Element_Access
(Position : Cursor) return not null Element_Access
is
Ptr : constant Element_Access :=
Position.Container.Elements.EA (Position.Index);
begin
-- An indefinite vector may contain spaces that hold no elements.
-- Any iteration over an indefinite vector with spaces will raise
-- Constraint_Error.
if Ptr = null then
raise Constraint_Error;
else
return Ptr;
end if;
end Get_Element_Access;
-----------------
-- Has_Element --
-----------------
function Has_Element (Position : Cursor) return Boolean is
begin
if Position.Container = null then
return False;
else
return Position.Index <= Position.Container.Last;
end if;
end Has_Element;
------------
-- Insert --
------------
procedure Insert
(Container : in out Vector;
Before : Extended_Index;
New_Item : Element_Type;
Count : Count_Type := 1)
is
Old_Length : constant Count_Type := Container.Length;
Max_Length : Count_Type'Base; -- determined from range of Index_Type
New_Length : Count_Type'Base; -- sum of current length and Count
New_Last : Index_Type'Base; -- last index of vector after insertion
Index : Index_Type'Base; -- scratch for intermediate values
J : Count_Type'Base; -- scratch
New_Capacity : Count_Type'Base; -- length of new, expanded array
Dst_Last : Index_Type'Base; -- last index of new, expanded array
Dst : Elements_Access; -- new, expanded internal array
begin
-- The tampering bits exist to prevent an item from being harmfully
-- manipulated while it is being visited. Query, Update, and Iterate
-- increment the busy count on entry, and decrement the count on
-- exit. Insert checks the count to determine whether it is being called
-- while the associated callback procedure is executing.
TC_Check (Container.TC);
if Checks then
-- As a precondition on the generic actual Index_Type, the base type
-- must include Index_Type'Pred (Index_Type'First); this is the value
-- that Container.Last assumes when the vector is empty. However, we
-- do not allow that as the value for Index when specifying where the
-- new items should be inserted, so we must manually check. (That the
-- user is allowed to specify the value at all here is a consequence
-- of the declaration of the Extended_Index subtype, which includes
-- the values in the base range that immediately precede and
-- immediately follow the values in the Index_Type.)
if Before < Index_Type'First then
raise Constraint_Error with
"Before index is out of range (too small)";
end if;
-- We do allow a value greater than Container.Last to be specified as
-- the Index, but only if it's immediately greater. This allows for
-- the case of appending items to the back end of the vector. (It is
-- assumed that specifying an index value greater than Last + 1
-- indicates some deeper flaw in the caller's algorithm, so that case
-- is treated as a proper error.)
if Before > Container.Last + 1 then
raise Constraint_Error with
"Before index is out of range (too large)";
end if;
end if;
-- We treat inserting 0 items into the container as a no-op, even when
-- the container is busy, so we simply return.
if Count = 0 then
return;
end if;
-- There are two constraints we need to satisfy. The first constraint is
-- that a container cannot have more than Count_Type'Last elements, so
-- we must check the sum of the current length and the insertion count.
-- Note: we cannot simply add these values, because of the possibility
-- of overflow.
if Checks and then Old_Length > Count_Type'Last - Count then
raise Constraint_Error with "Count is out of range";
end if;
-- It is now safe compute the length of the new vector, without fear of
-- overflow.
New_Length := Old_Length + Count;
-- The second constraint is that the new Last index value cannot exceed
-- Index_Type'Last. In each branch below, we calculate the maximum
-- length (computed from the range of values in Index_Type), and then
-- compare the new length to the maximum length. If the new length is
-- acceptable, then we compute the new last index from that.
if Index_Type'Base'Last >= Count_Type_Last then
-- We have to handle the case when there might be more values in the
-- range of Index_Type than in the range of Count_Type.
if Index_Type'First <= 0 then
-- We know that No_Index (the same as Index_Type'First - 1) is
-- less than 0, so it is safe to compute the following sum without
-- fear of overflow.
Index := No_Index + Index_Type'Base (Count_Type'Last);
if Index <= Index_Type'Last then
-- We have determined that range of Index_Type has at least as
-- many values as in Count_Type, so Count_Type'Last is the
-- maximum number of items that are allowed.
Max_Length := Count_Type'Last;
else
-- The range of Index_Type has fewer values than in Count_Type,
-- so the maximum number of items is computed from the range of
-- the Index_Type.
Max_Length := Count_Type'Base (Index_Type'Last - No_Index);
end if;
else
-- No_Index is equal or greater than 0, so we can safely compute
-- the difference without fear of overflow (which we would have to
-- worry about if No_Index were less than 0, but that case is
-- handled above).
if Index_Type'Last - No_Index >= Count_Type_Last then
-- We have determined that range of Index_Type has at least as
-- many values as in Count_Type, so Count_Type'Last is the
-- maximum number of items that are allowed.
Max_Length := Count_Type'Last;
else
-- The range of Index_Type has fewer values than in Count_Type,
-- so the maximum number of items is computed from the range of
-- the Index_Type.
Max_Length := Count_Type'Base (Index_Type'Last - No_Index);
end if;
end if;
elsif Index_Type'First <= 0 then
-- We know that No_Index (the same as Index_Type'First - 1) is less
-- than 0, so it is safe to compute the following sum without fear of
-- overflow.
J := Count_Type'Base (No_Index) + Count_Type'Last;
if J <= Count_Type'Base (Index_Type'Last) then
-- We have determined that range of Index_Type has at least as
-- many values as in Count_Type, so Count_Type'Last is the maximum
-- number of items that are allowed.
Max_Length := Count_Type'Last;
else
-- The range of Index_Type has fewer values than Count_Type does,
-- so the maximum number of items is computed from the range of
-- the Index_Type.
Max_Length :=
Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index);
end if;
else
-- No_Index is equal or greater than 0, so we can safely compute the
-- difference without fear of overflow (which we would have to worry
-- about if No_Index were less than 0, but that case is handled
-- above).
Max_Length :=
Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index);
end if;
-- We have just computed the maximum length (number of items). We must
-- now compare the requested length to the maximum length, as we do not
-- allow a vector expand beyond the maximum (because that would create
-- an internal array with a last index value greater than
-- Index_Type'Last, with no way to index those elements).
if Checks and then New_Length > Max_Length then
raise Constraint_Error with "Count is out of range";
end if;
-- New_Last is the last index value of the items in the container after
-- insertion. Use the wider of Index_Type'Base and Count_Type'Base to
-- compute its value from the New_Length.
if Index_Type'Base'Last >= Count_Type_Last then
New_Last := No_Index + Index_Type'Base (New_Length);
else
New_Last := Index_Type'Base (Count_Type'Base (No_Index) + New_Length);
end if;
if Container.Elements = null then
pragma Assert (Container.Last = No_Index);
-- This is the simplest case, with which we must always begin: we're
-- inserting items into an empty vector that hasn't allocated an
-- internal array yet. Note that we don't need to check the busy bit
-- here, because an empty container cannot be busy.
-- In an indefinite vector, elements are allocated individually, and
-- stored as access values on the internal array (the length of which
-- represents the vector "capacity"), which is separately allocated.
Container.Elements := new Elements_Type (New_Last);
-- The element backbone has been successfully allocated, so now we
-- allocate the elements.
for Idx in Container.Elements.EA'Range loop
-- In order to preserve container invariants, we always attempt
-- the element allocation first, before setting the Last index
-- value, in case the allocation fails (either because there is no
-- storage available, or because element initialization fails).
declare
-- The element allocator may need an accessibility check in the
-- case actual type is class-wide or has access discriminants
-- (see RM 4.8(10.1) and AI12-0035).
pragma Unsuppress (Accessibility_Check);
begin
Container.Elements.EA (Idx) := new Element_Type'(New_Item);
end;
-- The allocation of the element succeeded, so it is now safe to
-- update the Last index, restoring container invariants.
Container.Last := Idx;
end loop;
return;
end if;
if New_Length <= Container.Elements.EA'Length then
-- In this case, we're inserting elements into a vector that has
-- already allocated an internal array, and the existing array has
-- enough unused storage for the new items.
declare
E : Elements_Array renames Container.Elements.EA;
K : Index_Type'Base;
begin
if Before > Container.Last then
-- The new items are being appended to the vector, so no
-- sliding of existing elements is required.
for Idx in Before .. New_Last loop
-- In order to preserve container invariants, we always
-- attempt the element allocation first, before setting the
-- Last index value, in case the allocation fails (either
-- because there is no storage available, or because element
-- initialization fails).
declare
-- The element allocator may need an accessibility check
-- in 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 (Idx) := new Element_Type'(New_Item);
end;
-- The allocation of the element succeeded, so it is now
-- safe to update the Last index, restoring container
-- invariants.
Container.Last := Idx;
end loop;
else
-- The new items are being inserted before some existing
-- elements, so we must slide the existing elements up to their
-- new home. We use the wider of Index_Type'Base and
-- Count_Type'Base as the type for intermediate index values.
if Index_Type'Base'Last >= Count_Type_Last then
Index := Before + Index_Type'Base (Count);
else
Index := Index_Type'Base (Count_Type'Base (Before) + Count);
end if;
-- The new items are being inserted in the middle of the array,
-- in the range [Before, Index). Copy the existing elements to
-- the end of the array, to make room for the new items.
E (Index .. New_Last) := E (Before .. Container.Last);
Container.Last := New_Last;
-- We have copied the existing items up to the end of the
-- array, to make room for the new items in the middle of
-- the array. Now we actually allocate the new items.
-- Note: initialize K outside loop to make it clear that
-- K always has a value if the exception handler triggers.
K := Before;
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
while K < Index loop
E (K) := new Element_Type'(New_Item);
K := K + 1;
end loop;
exception
when others =>
-- Values in the range [Before, K) were successfully
-- allocated, but values in the range [K, Index) are
-- stale (these array positions contain copies of the
-- old items, that did not get assigned a new item,
-- because the allocation failed). We must finish what
-- we started by clearing out all of the stale values,
-- leaving a "hole" in the middle of the array.
E (K .. Index - 1) := (others => null);
raise;
end;
end if;
end;
return;
end if;
-- In this case, we're inserting elements into a vector that has already
-- allocated an internal array, but the existing array does not have
-- enough storage, so we must allocate a new, longer array. In order to
-- guarantee that the amortized insertion cost is O(1), we always
-- allocate an array whose length is some power-of-two factor of the
-- current array length. (The new array cannot have a length less than
-- the New_Length of the container, but its last index value cannot be
-- greater than Index_Type'Last.)
New_Capacity := Count_Type'Max (1, Container.Elements.EA'Length);
while New_Capacity < New_Length loop
if New_Capacity > Count_Type'Last / 2 then
New_Capacity := Count_Type'Last;
exit;
end if;
New_Capacity := 2 * New_Capacity;
end loop;
if New_Capacity > Max_Length then
-- We have reached the limit of capacity, so no further expansion
-- will occur. (This is not a problem, as there is never a need to
-- have more capacity than the maximum container length.)
New_Capacity := Max_Length;
end if;
-- We have computed the length of the new internal array (and this is
-- what "vector capacity" means), so use that to compute its last index.
if Index_Type'Base'Last >= Count_Type_Last then
Dst_Last := No_Index + Index_Type'Base (New_Capacity);
else
Dst_Last :=
Index_Type'Base (Count_Type'Base (No_Index) + New_Capacity);
end if;
-- Now we allocate the new, longer internal array. If the allocation
-- fails, we have not changed any container state, so no side-effect
-- will occur as a result of propagating the exception.
Dst := new Elements_Type (Dst_Last);
-- We have our new internal array. All that needs to be done now is to
-- copy the existing items (if any) from the old array (the "source"
-- array) to the new array (the "destination" array), and then
-- deallocate the old array.
declare
Src : Elements_Access := Container.Elements;
begin
Dst.EA (Index_Type'First .. Before - 1) :=
Src.EA (Index_Type'First .. Before - 1);
if Before > Container.Last then
-- The new items are being appended to the vector, so no
-- sliding of existing elements is required.
-- We have copied the elements from to the old source array to the
-- new destination array, so we can now deallocate the old array.
Container.Elements := Dst;
Free (Src);
-- Now we append the new items.
for Idx in Before .. New_Last loop
-- In order to preserve container invariants, we always attempt
-- the element allocation first, before setting the Last index
-- value, in case the allocation fails (either because there
-- is no storage available, or because element initialization
-- fails).
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
Dst.EA (Idx) := new Element_Type'(New_Item);
end;
-- The allocation of the element succeeded, so it is now safe
-- to update the Last index, restoring container invariants.
Container.Last := Idx;
end loop;
else
-- The new items are being inserted before some existing elements,
-- so we must slide the existing elements up to their new home.
if Index_Type'Base'Last >= Count_Type_Last then
Index := Before + Index_Type'Base (Count);
else
Index := Index_Type'Base (Count_Type'Base (Before) + Count);
end if;
Dst.EA (Index .. New_Last) := Src.EA (Before .. Container.Last);
-- We have copied the elements from to the old source array to the
-- new destination array, so we can now deallocate the old array.
Container.Elements := Dst;
Container.Last := New_Last;
Free (Src);
-- The new array has a range in the middle containing null access
-- values. Fill in that partition of the array with the new items.
for Idx in Before .. Index - 1 loop
-- Note that container invariants have already been satisfied
-- (in particular, the Last index value of the vector has
-- already been updated), so if this allocation fails we simply
-- let it propagate.
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
Dst.EA (Idx) := new Element_Type'(New_Item);
end;
end loop;
end if;
end;
end Insert;
procedure Insert
(Container : in out Vector;
Before : Extended_Index;
New_Item : Vector)
is
N : constant Count_Type := Length (New_Item);
J : Index_Type'Base;
begin
-- Use Insert_Space to create the "hole" (the destination slice) into
-- which we copy the source items.
Insert_Space (Container, Before, Count => N);
if N = 0 then
-- There's nothing else to do here (vetting of parameters was
-- performed already in Insert_Space), so we simply return.
return;
end if;
if Container'Address /= New_Item'Address then
-- This is the simple case. New_Item denotes an object different
-- from Container, so there's nothing special we need to do to copy
-- the source items to their destination, because all of the source
-- items are contiguous.
declare
subtype Src_Index_Subtype is Index_Type'Base range
Index_Type'First .. New_Item.Last;
Src : Elements_Array renames
New_Item.Elements.EA (Src_Index_Subtype);
Dst : Elements_Array renames Container.Elements.EA;
Dst_Index : Index_Type'Base;
begin
Dst_Index := Before - 1;
for Src_Index in Src'Range loop
Dst_Index := Dst_Index + 1;
if Src (Src_Index) /= null then
Dst (Dst_Index) := new Element_Type'(Src (Src_Index).all);
end if;
end loop;
end;
return;
end if;
-- New_Item denotes the same object as Container, so an insertion has
-- potentially split the source items. The first source slice is
-- [Index_Type'First, Before), and the second source slice is
-- [J, Container.Last], where index value J is the first index of the
-- second slice. (J gets computed below, but only after we have
-- determined that the second source slice is non-empty.) The
-- destination slice is always the range [Before, J). We perform the
-- copy in two steps, using each of the two slices of the source items.
declare
L : constant Index_Type'Base := Before - 1;
subtype Src_Index_Subtype is Index_Type'Base range
Index_Type'First .. L;
Src : Elements_Array renames
Container.Elements.EA (Src_Index_Subtype);
Dst : Elements_Array renames Container.Elements.EA;
Dst_Index : Index_Type'Base;
begin
-- We first copy the source items that precede the space we
-- inserted. (If Before equals Index_Type'First, then this first
-- source slice will be empty, which is harmless.)
Dst_Index := Before - 1;
for Src_Index in Src'Range loop
Dst_Index := Dst_Index + 1;
if Src (Src_Index) /= null then
Dst (Dst_Index) := new Element_Type'(Src (Src_Index).all);
end if;
end loop;
if Src'Length = N then
-- The new items were effectively appended to the container, so we
-- have already copied all of the items that need to be copied.
-- We return early here, even though the source slice below is
-- empty (so the assignment would be harmless), because we want to
-- avoid computing J, which will overflow if J is greater than
-- Index_Type'Base'Last.
return;
end if;
end;
-- Index value J is the first index of the second source slice. (It is
-- also 1 greater than the last index of the destination slice.) Note:
-- avoid computing J if J is greater than Index_Type'Base'Last, in order
-- to avoid overflow. Prevent that by returning early above, immediately
-- after copying the first slice of the source, and determining that
-- this second slice of the source is empty.
if Index_Type'Base'Last >= Count_Type_Last then
J := Before + Index_Type'Base (N);
else
J := Index_Type'Base (Count_Type'Base (Before) + N);
end if;
declare
subtype Src_Index_Subtype is Index_Type'Base range
J .. Container.Last;
Src : Elements_Array renames
Container.Elements.EA (Src_Index_Subtype);
Dst : Elements_Array renames Container.Elements.EA;
Dst_Index : Index_Type'Base;
begin
-- We next copy the source items that follow the space we inserted.
-- Index value Dst_Index is the first index of that portion of the
-- destination that receives this slice of the source. (For the
-- reasons given above, this slice is guaranteed to be non-empty.)
if Index_Type'Base'Last >= Count_Type_Last then
Dst_Index := J - Index_Type'Base (Src'Length);
else
Dst_Index := Index_Type'Base (Count_Type'Base (J) - Src'Length);
end if;
for Src_Index in Src'Range loop
if Src (Src_Index) /= null then
Dst (Dst_Index) := new Element_Type'(Src (Src_Index).all);
end if;
Dst_Index := Dst_Index + 1;
end loop;
end;
end Insert;
procedure Insert
(Container : in out Vector;
Before : Cursor;
New_Item : Vector)
is
Index : Index_Type'Base;
begin
if Checks and then Before.Container /= null
and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Before cursor denotes wrong container";
end if;
if Is_Empty (New_Item) then
return;
end if;
if Before.Container = null or else Before.Index > Container.Last then
if Checks and then Container.Last = Index_Type'Last then
raise Constraint_Error with
"vector is already at its maximum length";
end if;
Index := Container.Last + 1;
else
Index := Before.Index;
end if;
Insert (Container, Index, New_Item);
end Insert;
procedure Insert
(Container : in out Vector;
Before : Cursor;
New_Item : Vector;
Position : out Cursor)
is
Index : Index_Type'Base;
begin
if Checks and then Before.Container /= null
and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Before cursor denotes wrong container";
end if;
if Is_Empty (New_Item) then
if Before.Container = null or else Before.Index > Container.Last then
Position := No_Element;
else
Position := (Container'Unrestricted_Access, Before.Index);
end if;
return;
end if;
if Before.Container = null or else Before.Index > Container.Last then
if Checks and then Container.Last = Index_Type'Last then
raise Constraint_Error with
"vector is already at its maximum length";
end if;
Index := Container.Last + 1;
else
Index := Before.Index;
end if;
Insert (Container, Index, New_Item);
Position := (Container'Unrestricted_Access, Index);
end Insert;
procedure Insert
(Container : in out Vector;
Before : Cursor;
New_Item : Element_Type;
Count : Count_Type := 1)
is
Index : Index_Type'Base;
begin
if Checks and then Before.Container /= null
and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Before cursor denotes wrong container";
end if;
if Count = 0 then
return;
end if;
if Before.Container = null or else Before.Index > Container.Last then
if Checks and then Container.Last = Index_Type'Last then
raise Constraint_Error with
"vector is already at its maximum length";
end if;
Index := Container.Last + 1;
else
Index := Before.Index;
end if;
Insert (Container, Index, New_Item, Count);
end Insert;
procedure Insert
(Container : in out Vector;
Before : Cursor;
New_Item : Element_Type;
Position : out Cursor;
Count : Count_Type := 1)
is
Index : Index_Type'Base;
begin
if Checks and then Before.Container /= null
and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Before cursor denotes wrong container";
end if;
if Count = 0 then
if Before.Container = null or else Before.Index > Container.Last then
Position := No_Element;
else
Position := (Container'Unrestricted_Access, Before.Index);
end if;
return;
end if;
if Before.Container = null or else Before.Index > Container.Last then
if Checks and then Container.Last = Index_Type'Last then
raise Constraint_Error with
"vector is already at its maximum length";
end if;
Index := Container.Last + 1;
else
Index := Before.Index;
end if;
Insert (Container, Index, New_Item, Count);
Position := (Container'Unrestricted_Access, Index);
end Insert;
------------------
-- Insert_Space --
------------------
procedure Insert_Space
(Container : in out Vector;
Before : Extended_Index;
Count : Count_Type := 1)
is
Old_Length : constant Count_Type := Container.Length;
Max_Length : Count_Type'Base; -- determined from range of Index_Type
New_Length : Count_Type'Base; -- sum of current length and Count
New_Last : Index_Type'Base; -- last index of vector after insertion
Index : Index_Type'Base; -- scratch for intermediate values
J : Count_Type'Base; -- scratch
New_Capacity : Count_Type'Base; -- length of new, expanded array
Dst_Last : Index_Type'Base; -- last index of new, expanded array
Dst : Elements_Access; -- new, expanded internal array
begin
-- The tampering bits exist to prevent an item from being harmfully
-- manipulated while it is being visited. Query, Update, and Iterate
-- increment the busy count on entry, and decrement the count on exit.
-- Insert checks the count to determine whether it is being called while
-- the associated callback procedure is executing.
TC_Check (Container.TC);
if Checks then
-- As a precondition on the generic actual Index_Type, the base type
-- must include Index_Type'Pred (Index_Type'First); this is the value
-- that Container.Last assumes when the vector is empty. However, we
-- do not allow that as the value for Index when specifying where the
-- new items should be inserted, so we must manually check. (That the
-- user is allowed to specify the value at all here is a consequence
-- of the declaration of the Extended_Index subtype, which includes
-- the values in the base range that immediately precede and
-- immediately follow the values in the Index_Type.)
if Before < Index_Type'First then
raise Constraint_Error with
"Before index is out of range (too small)";
end if;
-- We do allow a value greater than Container.Last to be specified as
-- the Index, but only if it's immediately greater. This allows for
-- the case of appending items to the back end of the vector. (It is
-- assumed that specifying an index value greater than Last + 1
-- indicates some deeper flaw in the caller's algorithm, so that case
-- is treated as a proper error.)
if Before > Container.Last + 1 then
raise Constraint_Error with
"Before index is out of range (too large)";
end if;
end if;
-- We treat inserting 0 items into the container as a no-op, even when
-- the container is busy, so we simply return.
if Count = 0 then
return;
end if;
-- There are two constraints we need to satisfy. The first constraint is
-- that a container cannot have more than Count_Type'Last elements, so
-- we must check the sum of the current length and the insertion count.
-- Note: we cannot simply add these values, because of the possibility
-- of overflow.
if Checks and then Old_Length > Count_Type'Last - Count then
raise Constraint_Error with "Count is out of range";
end if;
-- It is now safe compute the length of the new vector, without fear of
-- overflow.
New_Length := Old_Length + Count;
-- The second constraint is that the new Last index value cannot exceed
-- Index_Type'Last. In each branch below, we calculate the maximum
-- length (computed from the range of values in Index_Type), and then
-- compare the new length to the maximum length. If the new length is
-- acceptable, then we compute the new last index from that.
if Index_Type'Base'Last >= Count_Type_Last then
-- We have to handle the case when there might be more values in the
-- range of Index_Type than in the range of Count_Type.
if Index_Type'First <= 0 then
-- We know that No_Index (the same as Index_Type'First - 1) is
-- less than 0, so it is safe to compute the following sum without
-- fear of overflow.
Index := No_Index + Index_Type'Base (Count_Type'Last);
if Index <= Index_Type'Last then
-- We have determined that range of Index_Type has at least as
-- many values as in Count_Type, so Count_Type'Last is the
-- maximum number of items that are allowed.
Max_Length := Count_Type'Last;
else
-- The range of Index_Type has fewer values than in Count_Type,
-- so the maximum number of items is computed from the range of
-- the Index_Type.
Max_Length := Count_Type'Base (Index_Type'Last - No_Index);
end if;
else
-- No_Index is equal or greater than 0, so we can safely compute
-- the difference without fear of overflow (which we would have to
-- worry about if No_Index were less than 0, but that case is
-- handled above).
if Index_Type'Last - No_Index >= Count_Type_Last then
-- We have determined that range of Index_Type has at least as
-- many values as in Count_Type, so Count_Type'Last is the
-- maximum number of items that are allowed.
Max_Length := Count_Type'Last;
else
-- The range of Index_Type has fewer values than in Count_Type,
-- so the maximum number of items is computed from the range of
-- the Index_Type.
Max_Length := Count_Type'Base (Index_Type'Last - No_Index);
end if;
end if;
elsif Index_Type'First <= 0 then
-- We know that No_Index (the same as Index_Type'First - 1) is less
-- than 0, so it is safe to compute the following sum without fear of
-- overflow.
J := Count_Type'Base (No_Index) + Count_Type'Last;
if J <= Count_Type'Base (Index_Type'Last) then
-- We have determined that range of Index_Type has at least as
-- many values as in Count_Type, so Count_Type'Last is the maximum
-- number of items that are allowed.
Max_Length := Count_Type'Last;
else
-- The range of Index_Type has fewer values than Count_Type does,
-- so the maximum number of items is computed from the range of
-- the Index_Type.
Max_Length :=
Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index);
end if;
else
-- No_Index is equal or greater than 0, so we can safely compute the
-- difference without fear of overflow (which we would have to worry
-- about if No_Index were less than 0, but that case is handled
-- above).
Max_Length :=
Count_Type'Base (Index_Type'Last) - Count_Type'Base (No_Index);
end if;
-- We have just computed the maximum length (number of items). We must
-- now compare the requested length to the maximum length, as we do not
-- allow a vector expand beyond the maximum (because that would create
-- an internal array with a last index value greater than
-- Index_Type'Last, with no way to index those elements).
if Checks and then New_Length > Max_Length then
raise Constraint_Error with "Count is out of range";
end if;
-- New_Last is the last index value of the items in the container after
-- insertion. Use the wider of Index_Type'Base and Count_Type'Base to
-- compute its value from the New_Length.
if Index_Type'Base'Last >= Count_Type_Last then
New_Last := No_Index + Index_Type'Base (New_Length);
else
New_Last := Index_Type'Base (Count_Type'Base (No_Index) + New_Length);
end if;
if Container.Elements = null then
pragma Assert (Container.Last = No_Index);
-- This is the simplest case, with which we must always begin: we're
-- inserting items into an empty vector that hasn't allocated an
-- internal array yet. Note that we don't need to check the busy bit
-- here, because an empty container cannot be busy.
-- In an indefinite vector, elements are allocated individually, and
-- stored as access values on the internal array (the length of which
-- represents the vector "capacity"), which is separately allocated.
-- We have no elements here (because we're inserting "space"), so all
-- we need to do is allocate the backbone.
Container.Elements := new Elements_Type (New_Last);
Container.Last := New_Last;
return;
end if;
if New_Length <= Container.Elements.EA'Length then
-- In this case, we are inserting elements into a vector that has
-- already allocated an internal array, and the existing array has
-- enough unused storage for the new items.
declare
E : Elements_Array renames Container.Elements.EA;
begin
if Before <= Container.Last then
-- The new space is being inserted before some existing
-- elements, so we must slide the existing elements up to
-- their new home. We use the wider of Index_Type'Base and
-- Count_Type'Base as the type for intermediate index values.
if Index_Type'Base'Last >= Count_Type_Last then
Index := Before + Index_Type'Base (Count);
else
Index := Index_Type'Base (Count_Type'Base (Before) + Count);
end if;
E (Index .. New_Last) := E (Before .. Container.Last);
E (Before .. Index - 1) := (others => null);
end if;
end;
Container.Last := New_Last;
return;
end if;
-- In this case, we're inserting elements into a vector that has already
-- allocated an internal array, but the existing array does not have
-- enough storage, so we must allocate a new, longer array. In order to
-- guarantee that the amortized insertion cost is O(1), we always
-- allocate an array whose length is some power-of-two factor of the
-- current array length. (The new array cannot have a length less than
-- the New_Length of the container, but its last index value cannot be
-- greater than Index_Type'Last.)
New_Capacity := Count_Type'Max (1, Container.Elements.EA'Length);
while New_Capacity < New_Length loop
if New_Capacity > Count_Type'Last / 2 then
New_Capacity := Count_Type'Last;
exit;
end if;
New_Capacity := 2 * New_Capacity;
end loop;
if New_Capacity > Max_Length then
-- We have reached the limit of capacity, so no further expansion
-- will occur. (This is not a problem, as there is never a need to
-- have more capacity than the maximum container length.)
New_Capacity := Max_Length;
end if;
-- We have computed the length of the new internal array (and this is
-- what "vector capacity" means), so use that to compute its last index.
if Index_Type'Base'Last >= Count_Type_Last then
Dst_Last := No_Index + Index_Type'Base (New_Capacity);
else
Dst_Last :=
Index_Type'Base (Count_Type'Base (No_Index) + New_Capacity);
end if;
-- Now we allocate the new, longer internal array. If the allocation
-- fails, we have not changed any container state, so no side-effect
-- will occur as a result of propagating the exception.
Dst := new Elements_Type (Dst_Last);
-- We have our new internal array. All that needs to be done now is to
-- copy the existing items (if any) from the old array (the "source"
-- array) to the new array (the "destination" array), and then
-- deallocate the old array.
declare
Src : Elements_Access := Container.Elements;
begin
Dst.EA (Index_Type'First .. Before - 1) :=
Src.EA (Index_Type'First .. Before - 1);
if Before <= Container.Last then
-- The new items are being inserted before some existing elements,
-- so we must slide the existing elements up to their new home.
if Index_Type'Base'Last >= Count_Type_Last then
Index := Before + Index_Type'Base (Count);
else
Index := Index_Type'Base (Count_Type'Base (Before) + Count);
end if;
Dst.EA (Index .. New_Last) := Src.EA (Before .. Container.Last);
end if;
-- We have copied the elements from to the old, source array to the
-- new, destination array, so we can now restore invariants, and
-- deallocate the old array.
Container.Elements := Dst;
Container.Last := New_Last;
Free (Src);
end;
end Insert_Space;
procedure Insert_Space
(Container : in out Vector;
Before : Cursor;
Position : out Cursor;
Count : Count_Type := 1)
is
Index : Index_Type'Base;
begin
if Checks and then Before.Container /= null
and then Before.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Before cursor denotes wrong container";
end if;
if Count = 0 then
if Before.Container = null or else Before.Index > Container.Last then
Position := No_Element;
else
Position := (Container'Unrestricted_Access, Before.Index);
end if;
return;
end if;
if Before.Container = null or else Before.Index > Container.Last then
if Checks and then Container.Last = Index_Type'Last then
raise Constraint_Error with
"vector is already at its maximum length";
end if;
Index := Container.Last + 1;
else
Index := Before.Index;
end if;
Insert_Space (Container, Index, Count);
Position := (Container'Unrestricted_Access, Index);
end Insert_Space;
--------------
-- Is_Empty --
--------------
function Is_Empty (Container : Vector) return Boolean is
begin
return Container.Last < Index_Type'First;
end Is_Empty;
-------------
-- Iterate --
-------------
procedure Iterate
(Container : Vector;
Process : not null access procedure (Position : Cursor))
is
Busy : With_Busy (Container.TC'Unrestricted_Access);
begin
for Indx in Index_Type'First .. Container.Last loop
Process (Cursor'(Container'Unrestricted_Access, Indx));
end loop;
end Iterate;
function Iterate
(Container : Vector)
return Vector_Iterator_Interfaces.Reversible_Iterator'Class
is
V : constant Vector_Access := Container'Unrestricted_Access;
begin
-- The value of its Index component influences the behavior of the First
-- and Last selector functions of the iterator object. When the Index
-- component is No_Index (as is the case here), this means the iterator
-- object was constructed without a start expression. This is a complete
-- iterator, meaning that the iteration starts from the (logical)
-- beginning of the sequence of items.
-- Note: For a forward iterator, Container.First is the beginning, and
-- for a reverse iterator, Container.Last is the beginning.
return It : constant Iterator :=
(Limited_Controlled with
Container => V,
Index => No_Index)
do
Busy (Container.TC'Unrestricted_Access.all);
end return;
end Iterate;
function Iterate
(Container : Vector;
Start : Cursor)
return Vector_Iterator_Interfaces.Reversible_Iterator'Class
is
V : constant Vector_Access := Container'Unrestricted_Access;
begin
-- It was formerly the case that when Start = No_Element, the partial
-- iterator was defined to behave the same as for a complete iterator,
-- and iterate over the entire sequence of items. However, those
-- semantics were unintuitive and arguably error-prone (it is too easy
-- to accidentally create an endless loop), and so they were changed,
-- per the ARG meeting in Denver on 2011/11. However, there was no
-- consensus about what positive meaning this corner case should have,
-- and so it was decided to simply raise an exception. This does imply,
-- however, that it is not possible to use a partial iterator to specify
-- an empty sequence of items.
if Checks then
if Start.Container = null then
raise Constraint_Error with
"Start position for iterator equals No_Element";
end if;
if Start.Container /= V then
raise Program_Error with
"Start cursor of Iterate designates wrong vector";
end if;
if Start.Index > V.Last then
raise Constraint_Error with
"Start position for iterator equals No_Element";
end if;
end if;
-- The value of its Index component influences the behavior of the First
-- and Last selector functions of the iterator object. When the Index
-- component is not No_Index (as is the case here), it means that this
-- is a partial iteration, over a subset of the complete sequence of
-- items. The iterator object was constructed with a start expression,
-- indicating the position from which the iteration begins. Note that
-- the start position has the same value irrespective of whether this
-- is a forward or reverse iteration.
return It : constant Iterator :=
(Limited_Controlled with
Container => V,
Index => Start.Index)
do
Busy (Container.TC'Unrestricted_Access.all);
end return;
end Iterate;
----------
-- Last --
----------
function Last (Container : Vector) return Cursor is
begin
if Is_Empty (Container) then
return No_Element;
end if;
return (Container'Unrestricted_Access, Container.Last);
end Last;
function Last (Object : Iterator) return Cursor is
begin
-- The value of the iterator object's Index component influences the
-- behavior of the Last (and First) selector function.
-- When the Index component is No_Index, this means the iterator
-- object was constructed without a start expression, in which case the
-- (reverse) iteration starts from the (logical) beginning of the entire
-- sequence (corresponding to Container.Last, for a reverse iterator).
-- Otherwise, this is iteration over a partial sequence of items.
-- When the Index component is not No_Index, the iterator object was
-- constructed with a start expression, that specifies the position
-- from which the (reverse) partial iteration begins.
if Object.Index = No_Index then
return Last (Object.Container.all);
else
return Cursor'(Object.Container, Object.Index);
end if;
end Last;
------------------
-- Last_Element --
------------------
function Last_Element (Container : Vector) return Element_Type is
begin
if Checks and then Container.Last = No_Index then
raise Constraint_Error with "Container is empty";
end if;
declare
EA : constant Element_Access :=
Container.Elements.EA (Container.Last);
begin
if Checks and then EA = null then
raise Constraint_Error with "last element is empty";
else
return EA.all;
end if;
end;
end Last_Element;
----------------
-- Last_Index --
----------------
function Last_Index (Container : Vector) return Extended_Index is
begin
return Container.Last;
end Last_Index;
------------
-- Length --
------------
function Length (Container : Vector) return Count_Type is
L : constant Index_Type'Base := Container.Last;
F : constant Index_Type := Index_Type'First;
begin
-- The base range of the index type (Index_Type'Base) might not include
-- all values for length (Count_Type). Contrariwise, the index type
-- might include values outside the range of length. Hence we use
-- whatever type is wider for intermediate values when calculating
-- length. Note that no matter what the index type is, the maximum
-- length to which a vector is allowed to grow is always the minimum
-- of Count_Type'Last and (IT'Last - IT'First + 1).
-- For example, an Index_Type with range -127 .. 127 is only guaranteed
-- to have a base range of -128 .. 127, but the corresponding vector
-- would have lengths in the range 0 .. 255. In this case we would need
-- to use Count_Type'Base for intermediate values.
-- Another case would be the index range -2**63 + 1 .. -2**63 + 10. The
-- vector would have a maximum length of 10, but the index values lie
-- outside the range of Count_Type (which is only 32 bits). In this
-- case we would need to use Index_Type'Base for intermediate values.
if Count_Type'Base'Last >= Index_Type'Pos (Index_Type'Base'Last) then
return Count_Type'Base (L) - Count_Type'Base (F) + 1;
else
return Count_Type (L - F + 1);
end if;
end Length;
----------
-- Move --
----------
procedure Move
(Target : in out Vector;
Source : in out Vector)
is
begin
if Target'Address = Source'Address then
return;
end if;
TC_Check (Source.TC);
Clear (Target); -- Checks busy-bit
declare
Target_Elements : constant Elements_Access := Target.Elements;
begin
Target.Elements := Source.Elements;
Source.Elements := Target_Elements;
end;
Target.Last := Source.Last;
Source.Last := No_Index;
end Move;
----------
-- Next --
----------
function Next (Position : Cursor) return Cursor is
begin
if Position.Container = null then
return No_Element;
elsif Position.Index < Position.Container.Last then
return (Position.Container, Position.Index + 1);
else
return No_Element;
end if;
end Next;
function Next (Object : Iterator; Position : Cursor) return Cursor is
begin
if Position.Container = null then
return No_Element;
elsif Checks and then Position.Container /= Object.Container then
raise Program_Error with
"Position cursor of Next designates wrong vector";
else
return Next (Position);
end if;
end Next;
procedure Next (Position : in out Cursor) is
begin
if Position.Container = null then
return;
elsif Position.Index < Position.Container.Last then
Position.Index := Position.Index + 1;
else
Position := No_Element;
end if;
end Next;
-------------
-- Prepend --
-------------
procedure Prepend (Container : in out Vector; New_Item : Vector) is
begin
Insert (Container, Index_Type'First, New_Item);
end Prepend;
procedure Prepend
(Container : in out Vector;
New_Item : Element_Type;
Count : Count_Type := 1)
is
begin
Insert (Container, Index_Type'First, New_Item, Count);
end Prepend;
--------------
-- Previous --
--------------
function Previous (Position : Cursor) return Cursor is
begin
if Position.Container = null then
return No_Element;
elsif Position.Index > Index_Type'First then
return (Position.Container, Position.Index - 1);
else
return No_Element;
end if;
end Previous;
function Previous (Object : Iterator; Position : Cursor) return Cursor is
begin
if Position.Container = null then
return No_Element;
elsif Checks and then Position.Container /= Object.Container then
raise Program_Error with
"Position cursor of Previous designates wrong vector";
else
return Previous (Position);
end if;
end Previous;
procedure Previous (Position : in out Cursor) is
begin
if Position.Container = null then
return;
elsif Position.Index > Index_Type'First then
Position.Index := Position.Index - 1;
else
Position := No_Element;
end if;
end Previous;
----------------------
-- Pseudo_Reference --
----------------------
function Pseudo_Reference
(Container : aliased Vector'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
Busy (TC.all);
end return;
end Pseudo_Reference;
-------------------
-- Query_Element --
-------------------
procedure Query_Element
(Container : Vector;
Index : Index_Type;
Process : not null access procedure (Element : Element_Type))
is
Lock : With_Lock (Container.TC'Unrestricted_Access);
V : Vector renames Container'Unrestricted_Access.all;
begin
if Checks and then Index > Container.Last then
raise Constraint_Error with "Index is out of range";
end if;
if Checks and then V.Elements.EA (Index) = null then
raise Constraint_Error with "element is null";
end if;
Process (V.Elements.EA (Index).all);
end Query_Element;
procedure Query_Element
(Position : Cursor;
Process : not null access procedure (Element : Element_Type))
is
begin
if Checks and then Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
else
Query_Element (Position.Container.all, Position.Index, Process);
end if;
end Query_Element;
---------------
-- Put_Image --
---------------
procedure Put_Image
(S : in out Ada.Strings.Text_Output.Sink'Class; V : Vector)
is
First_Time : Boolean := True;
use System.Put_Images;
procedure Put_Elem (Position : Cursor);
procedure Put_Elem (Position : Cursor) is
begin
if First_Time then
First_Time := False;
else
Simple_Array_Between (S);
end if;
Element_Type'Put_Image (S, Element (Position));
end Put_Elem;
begin
Array_Before (S);
Iterate (V, Put_Elem'Access);
Array_After (S);
end Put_Image;
----------
-- Read --
----------
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Container : out Vector)
is
Length : Count_Type'Base;
Last : Index_Type'Base := Index_Type'Pred (Index_Type'First);
B : Boolean;
begin
Clear (Container);
Count_Type'Base'Read (Stream, Length);
if Length > Capacity (Container) then
Reserve_Capacity (Container, Capacity => Length);
end if;
for J in Count_Type range 1 .. Length loop
Last := Last + 1;
Boolean'Read (Stream, B);
if B then
Container.Elements.EA (Last) :=
new Element_Type'(Element_Type'Input (Stream));
end if;
Container.Last := Last;
end loop;
end Read;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Position : out Cursor)
is
begin
raise Program_Error with "attempt to stream vector cursor";
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 Vector;
Position : Cursor) return Reference_Type
is
begin
if Checks then
if Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
end if;
if Position.Container /= Container'Unrestricted_Access then
raise Program_Error with "Position cursor denotes wrong container";
end if;
if Position.Index > Position.Container.Last then
raise Constraint_Error with "Position cursor is out of range";
end if;
end if;
declare
TC : constant Tamper_Counts_Access :=
Container.TC'Unrestricted_Access;
begin
-- The following will raise Constraint_Error if Element is null
return R : constant Reference_Type :=
(Element => Container.Elements.EA (Position.Index),
Control => (Controlled with TC))
do
Busy (TC.all);
end return;
end;
end Reference;
function Reference
(Container : aliased in out Vector;
Index : Index_Type) return Reference_Type
is
begin
if Checks and then Index > Container.Last then
raise Constraint_Error with "Index is out of range";
end if;
declare
TC : constant Tamper_Counts_Access :=
Container.TC'Unrestricted_Access;
begin
-- The following will raise Constraint_Error if Element is null
return R : constant Reference_Type :=
(Element => Container.Elements.EA (Index),
Control => (Controlled with TC))
do
Busy (TC.all);
end return;
end;
end Reference;
---------------------
-- Replace_Element --
---------------------
procedure Replace_Element
(Container : in out Vector;
Index : Index_Type;
New_Item : Element_Type)
is
begin
TE_Check (Container.TC);
if Checks and then Index > Container.Last then
raise Constraint_Error with "Index is out of range";
end if;
declare
X : Element_Access := Container.Elements.EA (Index);
-- The element allocator may need an accessibility check in the case
-- where the actual type is class-wide or has access discriminants
-- (see RM 4.8(10.1) and AI12-0035).
pragma Unsuppress (Accessibility_Check);
begin
Container.Elements.EA (Index) := new Element_Type'(New_Item);
Free (X);
end;
end Replace_Element;
procedure Replace_Element
(Container : in out Vector;
Position : Cursor;
New_Item : Element_Type)
is
begin
TE_Check (Container.TC);
if Checks then
if Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
end if;
if Position.Container /= Container'Unrestricted_Access then
raise Program_Error with "Position cursor denotes wrong container";
end if;
if Position.Index > Container.Last then
raise Constraint_Error with "Position cursor is out of range";
end if;
end if;
declare
X : Element_Access := Container.Elements.EA (Position.Index);
-- The element allocator may need an accessibility check in the case
-- where the actual type is class-wide or has access discriminants
-- (see RM 4.8(10.1) and AI12-0035).
pragma Unsuppress (Accessibility_Check);
begin
Container.Elements.EA (Position.Index) := new Element_Type'(New_Item);
Free (X);
end;
end Replace_Element;
----------------------
-- Reserve_Capacity --
----------------------
procedure Reserve_Capacity
(Container : in out Vector;
Capacity : Count_Type)
is
N : constant Count_Type := Length (Container);
Index : Count_Type'Base;
Last : Index_Type'Base;
begin
-- Reserve_Capacity can be used to either expand the storage available
-- for elements (this would be its typical use, in anticipation of
-- future insertion), or to trim back storage. In the latter case,
-- storage can only be trimmed back to the limit of the container
-- length. Note that Reserve_Capacity neither deletes (active) elements
-- nor inserts elements; it only affects container capacity, never
-- container length.
if Capacity = 0 then
-- This is a request to trim back storage, to the minimum amount
-- possible given the current state of the container.
if N = 0 then
-- The container is empty, so in this unique case we can
-- deallocate the entire internal array. Note that an empty
-- container can never be busy, so there's no need to check the
-- tampering bits.
declare
X : Elements_Access := Container.Elements;
begin
-- First we remove the internal array from the container, to
-- handle the case when the deallocation raises an exception
-- (although that's unlikely, since this is simply an array of
-- access values, all of which are null).
Container.Elements := null;
-- Container invariants have been restored, so it is now safe
-- to attempt to deallocate the internal array.
Free (X);
end;
elsif N < Container.Elements.EA'Length then
-- The container is not empty, and the current length is less than
-- the current capacity, so there's storage available to trim. In
-- this case, we allocate a new internal array having a length
-- that exactly matches the number of items in the
-- container. (Reserve_Capacity does not delete active elements,
-- so this is the best we can do with respect to minimizing
-- storage).
TC_Check (Container.TC);
declare
subtype Array_Index_Subtype is Index_Type'Base range
Index_Type'First .. Container.Last;
Src : Elements_Array renames
Container.Elements.EA (Array_Index_Subtype);
X : Elements_Access := Container.Elements;
begin
-- Although we have isolated the old internal array that we're
-- going to deallocate, we don't deallocate it until we have
-- successfully allocated a new one. If there is an exception
-- during allocation (because there is not enough storage), we
-- let it propagate without causing any side-effect.
Container.Elements := new Elements_Type'(Container.Last, Src);
-- We have successfully allocated a new internal array (with a
-- smaller length than the old one, and containing a copy of
-- just the active elements in the container), so we can
-- deallocate the old array.
Free (X);
end;
end if;
return;
end if;
-- Reserve_Capacity can be used to expand the storage available for
-- elements, but we do not let the capacity grow beyond the number of
-- values in Index_Type'Range. (Were it otherwise, there would be no way
-- to refer to the elements with index values greater than
-- Index_Type'Last, so that storage would be wasted.) Here we compute
-- the Last index value of the new internal array, in a way that avoids
-- any possibility of overflow.
if Index_Type'Base'Last >= Count_Type_Last then
-- We perform a two-part test. First we determine whether the
-- computed Last value lies in the base range of the type, and then
-- determine whether it lies in the range of the index (sub)type.
-- Last must satisfy this relation:
-- First + Length - 1 <= Last
-- We regroup terms:
-- First - 1 <= Last - Length
-- Which can rewrite as:
-- No_Index <= Last - Length
if Checks and then
Index_Type'Base'Last - Index_Type'Base (Capacity) < No_Index
then
raise Constraint_Error with "Capacity is out of range";
end if;
-- We now know that the computed value of Last is within the base
-- range of the type, so it is safe to compute its value:
Last := No_Index + Index_Type'Base (Capacity);
-- Finally we test whether the value is within the range of the
-- generic actual index subtype:
if Checks and then Last > Index_Type'Last then
raise Constraint_Error with "Capacity is out of range";
end if;
elsif Index_Type'First <= 0 then
-- Here we can compute Last directly, in the normal way. We know that
-- No_Index is less than 0, so there is no danger of overflow when
-- adding the (positive) value of Capacity.
Index := Count_Type'Base (No_Index) + Capacity; -- Last
if Checks and then Index > Count_Type'Base (Index_Type'Last) then
raise Constraint_Error with "Capacity is out of range";
end if;
-- We know that the computed value (having type Count_Type) of Last
-- is within the range of the generic actual index subtype, so it is
-- safe to convert to Index_Type:
Last := Index_Type'Base (Index);
else
-- Here Index_Type'First (and Index_Type'Last) is positive, so we
-- must test the length indirectly (by working backwards from the
-- largest possible value of Last), in order to prevent overflow.
Index := Count_Type'Base (Index_Type'Last) - Capacity; -- No_Index
if Checks and then Index < Count_Type'Base (No_Index) then
raise Constraint_Error with "Capacity is out of range";
end if;
-- We have determined that the value of Capacity would not create a
-- Last index value outside of the range of Index_Type, so we can now
-- safely compute its value.
Last := Index_Type'Base (Count_Type'Base (No_Index) + Capacity);
end if;
-- The requested capacity is non-zero, but we don't know yet whether
-- this is a request for expansion or contraction of storage.
if Container.Elements = null then
-- The container is empty (it doesn't even have an internal array),
-- so this represents a request to allocate storage having the given
-- capacity.
Container.Elements := new Elements_Type (Last);
return;
end if;
if Capacity <= N then
-- This is a request to trim back storage, but only to the limit of
-- what's already in the container. (Reserve_Capacity never deletes
-- active elements, it only reclaims excess storage.)
if N < Container.Elements.EA'Length then
-- The container is not empty (because the requested capacity is
-- positive, and less than or equal to the container length), and
-- the current length is less than the current capacity, so there
-- is storage available to trim. In this case, we allocate a new
-- internal array having a length that exactly matches the number
-- of items in the container.
TC_Check (Container.TC);
declare
subtype Array_Index_Subtype is Index_Type'Base range
Index_Type'First .. Container.Last;
Src : Elements_Array renames
Container.Elements.EA (Array_Index_Subtype);
X : Elements_Access := Container.Elements;
begin
-- Although we have isolated the old internal array that we're
-- going to deallocate, we don't deallocate it until we have
-- successfully allocated a new one. If there is an exception
-- during allocation (because there is not enough storage), we
-- let it propagate without causing any side-effect.
Container.Elements := new Elements_Type'(Container.Last, Src);
-- We have successfully allocated a new internal array (with a
-- smaller length than the old one, and containing a copy of
-- just the active elements in the container), so it is now
-- safe to deallocate the old array.
Free (X);
end;
end if;
return;
end if;
-- The requested capacity is larger than the container length (the
-- number of active elements). Whether this represents a request for
-- expansion or contraction of the current capacity depends on what the
-- current capacity is.
if Capacity = Container.Elements.EA'Length then
-- The requested capacity matches the existing capacity, so there's
-- nothing to do here. We treat this case as a no-op, and simply
-- return without checking the busy bit.
return;
end if;
-- There is a change in the capacity of a non-empty container, so a new
-- internal array will be allocated. (The length of the new internal
-- array could be less or greater than the old internal array. We know
-- only that the length of the new internal array is greater than the
-- number of active elements in the container.) We must check whether
-- the container is busy before doing anything else.
TC_Check (Container.TC);
-- We now allocate a new internal array, having a length different from
-- its current value.
declare
X : Elements_Access := Container.Elements;
subtype Index_Subtype is Index_Type'Base range
Index_Type'First .. Container.Last;
begin
-- We now allocate a new internal array, having a length different
-- from its current value.
Container.Elements := new Elements_Type (Last);
-- We have successfully allocated the new internal array, so now we
-- move the existing elements from the existing the old internal
-- array onto the new one. Note that we're just copying access
-- values, to this should not raise any exceptions.
Container.Elements.EA (Index_Subtype) := X.EA (Index_Subtype);
-- We have moved the elements from the old internal array, so now we
-- can deallocate it.
Free (X);
end;
end Reserve_Capacity;
----------------------
-- Reverse_Elements --
----------------------
procedure Reverse_Elements (Container : in out Vector) is
begin
if Container.Length <= 1 then
return;
end if;
-- The exception behavior for the vector container must match that for
-- the list container, so we check for cursor tampering here (which will
-- catch more things) instead of for element tampering (which will catch
-- fewer things). It's true that the elements of this vector container
-- could be safely moved around while (say) an iteration is taking place
-- (iteration only increments the busy counter), and so technically all
-- we would need here is a test for element tampering (indicated by the
-- lock counter), that's simply an artifact of our array-based
-- implementation. Logically Reverse_Elements requires a check for
-- cursor tampering.
TC_Check (Container.TC);
declare
I : Index_Type;
J : Index_Type;
E : Elements_Array renames Container.Elements.EA;
begin
I := Index_Type'First;
J := Container.Last;
while I < J loop
declare
EI : constant Element_Access := E (I);
begin
E (I) := E (J);
E (J) := EI;
end;
I := I + 1;
J := J - 1;
end loop;
end;
end Reverse_Elements;
------------------
-- Reverse_Find --
------------------
function Reverse_Find
(Container : Vector;
Item : Element_Type;
Position : Cursor := No_Element) return Cursor
is
Last : Index_Type'Base;
begin
if Checks and then Position.Container /= null
and then Position.Container /= Container'Unrestricted_Access
then
raise Program_Error with "Position cursor denotes wrong container";
end if;
Last :=
(if Position.Container = null or else Position.Index > Container.Last
then Container.Last
else Position.Index);
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
declare
Lock : With_Lock (Container.TC'Unrestricted_Access);
begin
for Indx in reverse Index_Type'First .. Last loop
if Container.Elements.EA (Indx) /= null
and then Container.Elements.EA (Indx).all = Item
then
return Cursor'(Container'Unrestricted_Access, Indx);
end if;
end loop;
return No_Element;
end;
end Reverse_Find;
------------------------
-- Reverse_Find_Index --
------------------------
function Reverse_Find_Index
(Container : Vector;
Item : Element_Type;
Index : Index_Type := Index_Type'Last) return Extended_Index
is
-- Per AI05-0022, the container implementation is required to detect
-- element tampering by a generic actual subprogram.
Lock : With_Lock (Container.TC'Unrestricted_Access);
Last : constant Index_Type'Base :=
Index_Type'Min (Container.Last, Index);
begin
for Indx in reverse Index_Type'First .. Last loop
if Container.Elements.EA (Indx) /= null
and then Container.Elements.EA (Indx).all = Item
then
return Indx;
end if;
end loop;
return No_Index;
end Reverse_Find_Index;
---------------------
-- Reverse_Iterate --
---------------------
procedure Reverse_Iterate
(Container : Vector;
Process : not null access procedure (Position : Cursor))
is
Busy : With_Busy (Container.TC'Unrestricted_Access);
begin
for Indx in reverse Index_Type'First .. Container.Last loop
Process (Cursor'(Container'Unrestricted_Access, Indx));
end loop;
end Reverse_Iterate;
----------------
-- Set_Length --
----------------
procedure Set_Length (Container : in out Vector; Length : Count_Type) is
Count : constant Count_Type'Base := Container.Length - Length;
begin
-- Set_Length allows the user to set the length explicitly, instead of
-- implicitly as a side-effect of deletion or insertion. If the
-- requested length is less than the current length, this is equivalent
-- to deleting items from the back end of the vector. If the requested
-- length is greater than the current length, then this is equivalent to
-- inserting "space" (nonce items) at the end.
if Count >= 0 then
Container.Delete_Last (Count);
elsif Checks and then Container.Last >= Index_Type'Last then
raise Constraint_Error with "vector is already at its maximum length";
else
Container.Insert_Space (Container.Last + 1, -Count);
end if;
end Set_Length;
----------
-- Swap --
----------
procedure Swap (Container : in out Vector; I, J : Index_Type) is
begin
TE_Check (Container.TC);
if Checks then
if I > Container.Last then
raise Constraint_Error with "I index is out of range";
end if;
if J > Container.Last then
raise Constraint_Error with "J index is out of range";
end if;
end if;
if I = J then
return;
end if;
declare
EI : Element_Access renames Container.Elements.EA (I);
EJ : Element_Access renames Container.Elements.EA (J);
EI_Copy : constant Element_Access := EI;
begin
EI := EJ;
EJ := EI_Copy;
end;
end Swap;
procedure Swap
(Container : in out Vector;
I, J : Cursor)
is
begin
if Checks then
if I.Container = null then
raise Constraint_Error with "I cursor has no element";
end if;
if J.Container = null then
raise Constraint_Error with "J cursor has no element";
end if;
if I.Container /= Container'Unrestricted_Access then
raise Program_Error with "I cursor denotes wrong container";
end if;
if J.Container /= Container'Unrestricted_Access then
raise Program_Error with "J cursor denotes wrong container";
end if;
end if;
Swap (Container, I.Index, J.Index);
end Swap;
---------------
-- To_Cursor --
---------------
function To_Cursor
(Container : Vector;
Index : Extended_Index) return Cursor
is
begin
if Index not in Index_Type'First .. Container.Last then
return No_Element;
end if;
return Cursor'(Container'Unrestricted_Access, Index);
end To_Cursor;
--------------
-- To_Index --
--------------
function To_Index (Position : Cursor) return Extended_Index is
begin
if Position.Container = null then
return No_Index;
elsif Position.Index <= Position.Container.Last then
return Position.Index;
else
return No_Index;
end if;
end To_Index;
---------------
-- To_Vector --
---------------
function To_Vector (Length : Count_Type) return Vector is
Index : Count_Type'Base;
Last : Index_Type'Base;
Elements : Elements_Access;
begin
if Length = 0 then
return Empty_Vector;
end if;
-- We create a vector object with a capacity that matches the specified
-- Length, but we do not allow the vector capacity (the length of the
-- internal array) to exceed the number of values in Index_Type'Range
-- (otherwise, there would be no way to refer to those components via an
-- index). We must therefore check whether the specified Length would
-- create a Last index value greater than Index_Type'Last.
if Index_Type'Base'Last >= Count_Type_Last then
-- We perform a two-part test. First we determine whether the
-- computed Last value lies in the base range of the type, and then
-- determine whether it lies in the range of the index (sub)type.
-- Last must satisfy this relation:
-- First + Length - 1 <= Last
-- We regroup terms:
-- First - 1 <= Last - Length
-- Which can rewrite as:
-- No_Index <= Last - Length
if Checks and then
Index_Type'Base'Last - Index_Type'Base (Length) < No_Index
then
raise Constraint_Error with "Length is out of range";
end if;
-- We now know that the computed value of Last is within the base
-- range of the type, so it is safe to compute its value:
Last := No_Index + Index_Type'Base (Length);
-- Finally we test whether the value is within the range of the
-- generic actual index subtype:
if Checks and then Last > Index_Type'Last then
raise Constraint_Error with "Length is out of range";
end if;
elsif Index_Type'First <= 0 then
-- Here we can compute Last directly, in the normal way. We know that
-- No_Index is less than 0, so there is no danger of overflow when
-- adding the (positive) value of Length.
Index := Count_Type'Base (No_Index) + Length; -- Last
if Checks and then Index > Count_Type'Base (Index_Type'Last) then
raise Constraint_Error with "Length is out of range";
end if;
-- We know that the computed value (having type Count_Type) of Last
-- is within the range of the generic actual index subtype, so it is
-- safe to convert to Index_Type:
Last := Index_Type'Base (Index);
else
-- Here Index_Type'First (and Index_Type'Last) is positive, so we
-- must test the length indirectly (by working backwards from the
-- largest possible value of Last), in order to prevent overflow.
Index := Count_Type'Base (Index_Type'Last) - Length; -- No_Index
if Checks and then Index < Count_Type'Base (No_Index) then
raise Constraint_Error with "Length is out of range";
end if;
-- We have determined that the value of Length would not create a
-- Last index value outside of the range of Index_Type, so we can now
-- safely compute its value.
Last := Index_Type'Base (Count_Type'Base (No_Index) + Length);
end if;
Elements := new Elements_Type (Last);
return Vector'(Controlled with Elements, Last, TC => <>);
end To_Vector;
function To_Vector
(New_Item : Element_Type;
Length : Count_Type) return Vector
is
Index : Count_Type'Base;
Last : Index_Type'Base;
Elements : Elements_Access;
begin
if Length = 0 then
return Empty_Vector;
end if;
-- We create a vector object with a capacity that matches the specified
-- Length, but we do not allow the vector capacity (the length of the
-- internal array) to exceed the number of values in Index_Type'Range
-- (otherwise, there would be no way to refer to those components via an
-- index). We must therefore check whether the specified Length would
-- create a Last index value greater than Index_Type'Last.
if Index_Type'Base'Last >= Count_Type_Last then
-- We perform a two-part test. First we determine whether the
-- computed Last value lies in the base range of the type, and then
-- determine whether it lies in the range of the index (sub)type.
-- Last must satisfy this relation:
-- First + Length - 1 <= Last
-- We regroup terms:
-- First - 1 <= Last - Length
-- Which can rewrite as:
-- No_Index <= Last - Length
if Checks and then
Index_Type'Base'Last - Index_Type'Base (Length) < No_Index
then
raise Constraint_Error with "Length is out of range";
end if;
-- We now know that the computed value of Last is within the base
-- range of the type, so it is safe to compute its value:
Last := No_Index + Index_Type'Base (Length);
-- Finally we test whether the value is within the range of the
-- generic actual index subtype:
if Checks and then Last > Index_Type'Last then
raise Constraint_Error with "Length is out of range";
end if;
elsif Index_Type'First <= 0 then
-- Here we can compute Last directly, in the normal way. We know that
-- No_Index is less than 0, so there is no danger of overflow when
-- adding the (positive) value of Length.
Index := Count_Type'Base (No_Index) + Length; -- Last
if Checks and then Index > Count_Type'Base (Index_Type'Last) then
raise Constraint_Error with "Length is out of range";
end if;
-- We know that the computed value (having type Count_Type) of Last
-- is within the range of the generic actual index subtype, so it is
-- safe to convert to Index_Type:
Last := Index_Type'Base (Index);
else
-- Here Index_Type'First (and Index_Type'Last) is positive, so we
-- must test the length indirectly (by working backwards from the
-- largest possible value of Last), in order to prevent overflow.
Index := Count_Type'Base (Index_Type'Last) - Length; -- No_Index
if Checks and then Index < Count_Type'Base (No_Index) then
raise Constraint_Error with "Length is out of range";
end if;
-- We have determined that the value of Length would not create a
-- Last index value outside of the range of Index_Type, so we can now
-- safely compute its value.
Last := Index_Type'Base (Count_Type'Base (No_Index) + Length);
end if;
Elements := new Elements_Type (Last);
-- We use Last as the index of the loop used to populate the internal
-- array with items. In general, we prefer to initialize the loop index
-- immediately prior to entering the loop. However, Last is also used in
-- the exception handler (to reclaim elements that have been allocated,
-- before propagating the exception), and the initialization of Last
-- after entering the block containing the handler confuses some static
-- analysis tools, with respect to whether Last has been properly
-- initialized when the handler executes. So here we initialize our loop
-- variable earlier than we prefer, before entering the block, so there
-- is no ambiguity.
Last := Index_Type'First;
declare
-- The element allocator may need an accessibility check in the case
-- where the actual type is class-wide or has access discriminants
-- (see RM 4.8(10.1) and AI12-0035).
pragma Unsuppress (Accessibility_Check);
begin
loop
Elements.EA (Last) := new Element_Type'(New_Item);
exit when Last = Elements.Last;
Last := Last + 1;
end loop;
exception
when others =>
for J in Index_Type'First .. Last - 1 loop
Free (Elements.EA (J));
end loop;
Free (Elements);
raise;
end;
return (Controlled with Elements, Last, TC => <>);
end To_Vector;
--------------------
-- Update_Element --
--------------------
procedure Update_Element
(Container : in out Vector;
Index : Index_Type;
Process : not null access procedure (Element : in out Element_Type))
is
Lock : With_Lock (Container.TC'Unchecked_Access);
begin
if Checks and then Index > Container.Last then
raise Constraint_Error with "Index is out of range";
end if;
if Checks and then Container.Elements.EA (Index) = null then
raise Constraint_Error with "element is null";
end if;
Process (Container.Elements.EA (Index).all);
end Update_Element;
procedure Update_Element
(Container : in out Vector;
Position : Cursor;
Process : not null access procedure (Element : in out Element_Type))
is
begin
if Checks then
if Position.Container = null then
raise Constraint_Error with "Position cursor has no element";
elsif Position.Container /= Container'Unrestricted_Access then
raise Program_Error with "Position cursor denotes wrong container";
end if;
end if;
Update_Element (Container, Position.Index, Process);
end Update_Element;
-----------
-- Write --
-----------
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Container : Vector)
is
N : constant Count_Type := Length (Container);
begin
Count_Type'Base'Write (Stream, N);
if N = 0 then
return;
end if;
declare
E : Elements_Array renames Container.Elements.EA;
begin
for Indx in Index_Type'First .. Container.Last loop
if E (Indx) = null then
Boolean'Write (Stream, False);
else
Boolean'Write (Stream, True);
Element_Type'Output (Stream, E (Indx).all);
end if;
end loop;
end;
end Write;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Position : Cursor)
is
begin
raise Program_Error with "attempt to stream vector cursor";
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_Vectors;
| 34.29407 | 79 | 0.593605 |
4d48476a7f6fc82506e4c265edef7e97c90871fc | 5,572 | adb | Ada | arch/ARM/STM32/devices/stm32f46_79x/stm32-rcc.adb | shakram02/Ada_Drivers_Library | a407ca7ddbc2d9756647016c2f8fd8ef24a239ff | [
"BSD-3-Clause"
] | 192 | 2016-06-01T18:32:04.000Z | 2022-03-26T22:52:31.000Z | arch/ARM/STM32/devices/stm32f46_79x/stm32-rcc.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 239 | 2016-05-26T20:02:01.000Z | 2022-03-31T09:46:56.000Z | arch/ARM/STM32/devices/stm32f46_79x/stm32-rcc.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 142 | 2016-06-05T08:12:20.000Z | 2022-03-24T17:37:17.000Z | ------------------------------------------------------------------------------
-- --
-- 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 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.Unchecked_Conversion;
with STM32.Device; use STM32.Device;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.RCC; use STM32_SVD.RCC;
package body STM32.RCC is
function To_AHB1RSTR_T is new Ada.Unchecked_Conversion
(UInt32, AHB1RSTR_Register);
function To_AHB2RSTR_T is new Ada.Unchecked_Conversion
(UInt32, AHB2RSTR_Register);
function To_APB1RSTR_T is new Ada.Unchecked_Conversion
(UInt32, APB1RSTR_Register);
function To_APB2RSTR_T is new Ada.Unchecked_Conversion
(UInt32, APB2RSTR_Register);
---------------------------------------------------------------------------
------- Enable/Disable/Reset Routines -----------------------------------
---------------------------------------------------------------------------
procedure CRC_Clock_Enable is
begin
RCC_Periph.AHB1ENR.CRCEN := True;
end CRC_Clock_Enable;
procedure BKPSRAM_Clock_Enable is
begin
RCC_Periph.AHB1ENR.BKPSRAMEN := True;
end BKPSRAM_Clock_Enable;
procedure WWDG_Clock_Enable is
begin
RCC_Periph.APB1ENR.WWDGEN := True;
end WWDG_Clock_Enable;
procedure SYSCFG_Clock_Enable is
begin
RCC_Periph.APB2ENR.SYSCFGEN := True;
end SYSCFG_Clock_Enable;
procedure AHB1_Force_Reset
is
begin
RCC_Periph.AHB1RSTR := To_AHB1RSTR_T (16#FFFF_FFFF#);
end AHB1_Force_Reset;
procedure AHB1_Release_Reset is
begin
RCC_Periph.AHB1RSTR := To_AHB1RSTR_T (0);
end AHB1_Release_Reset;
procedure AHB2_Force_Reset is
begin
RCC_Periph.AHB2RSTR := To_AHB2RSTR_T (16#FFFF_FFFF#);
end AHB2_Force_Reset;
procedure AHB2_Release_Reset is
begin
RCC_Periph.AHB2RSTR := To_AHB2RSTR_T (0);
end AHB2_Release_Reset;
procedure APB1_Force_Reset is
begin
RCC_Periph.APB1RSTR := To_APB1RSTR_T (16#FFFF_FFFF#);
end APB1_Force_Reset;
procedure APB1_Release_Reset is
begin
RCC_Periph.APB1RSTR := To_APB1RSTR_T (0);
end APB1_Release_Reset;
procedure APB2_Force_Reset is
begin
RCC_Periph.APB2RSTR := To_APB2RSTR_T (16#FFFF_FFFF#);
end APB2_Force_Reset;
procedure APB2_Release_Reset is
begin
RCC_Periph.APB2RSTR := To_APB2RSTR_T (0);
end APB2_Release_Reset;
procedure CRC_Force_Reset is
begin
RCC_Periph.AHB1RSTR.CRCRST := True;
end CRC_Force_Reset;
procedure CRC_Release_Reset is
begin
RCC_Periph.AHB1RSTR.CRCRST := False;
end CRC_Release_Reset;
procedure OTGFS_Force_Reset is
begin
RCC_Periph.AHB2RSTR.OTGFSRST := True;
end OTGFS_Force_Reset;
procedure OTGFS_Release_Reset is
begin
RCC_Periph.AHB2RSTR.OTGFSRST := False;
end OTGFS_Release_Reset;
procedure WWDG_Force_Reset is
begin
RCC_Periph.APB1RSTR.WWDGRST := True;
end WWDG_Force_Reset;
procedure WWDG_Release_Reset is
begin
RCC_Periph.APB1RSTR.WWDGRST := False;
end WWDG_Release_Reset;
procedure SYSCFG_Force_Reset is
begin
RCC_Periph.APB2RSTR.SYSCFGRST := True;
end SYSCFG_Force_Reset;
procedure SYSCFG_Release_Reset is
begin
RCC_Periph.APB2RSTR.SYSCFGRST := False;
end SYSCFG_Release_Reset;
end STM32.RCC;
| 36.181818 | 78 | 0.606425 |
4da100d414ad7898468f39589cc13669d3140221 | 1,225 | adb | Ada | src/numerics-sparse_matrices-omega.adb | sciencylab/lagrangian-solver | 0f77265c1105658a27a9fa316bf5f046ac233774 | [
"MIT"
] | null | null | null | src/numerics-sparse_matrices-omega.adb | sciencylab/lagrangian-solver | 0f77265c1105658a27a9fa316bf5f046ac233774 | [
"MIT"
] | null | null | null | src/numerics-sparse_matrices-omega.adb | sciencylab/lagrangian-solver | 0f77265c1105658a27a9fa316bf5f046ac233774 | [
"MIT"
] | null | null | null | separate (Numerics.Sparse_Matrices)
function Omega (N : in Nat;
M : in Pos := 0) return Sparse_Matrix is
Result : Sparse_Matrix;
use Ada.Containers;
begin
-----------------------------------------------
-- omega (N, M) = [ 0_N -1_N ]
-- [ 1_N 0_N ]
-- [ 0_M ]
-- and is such that for
-- X = [q, p, lambda]
-- where
-- q, p \in R^N
-- and
-- lambda \in R^M,
-- the Hamiltonian equations are
-- omega (N, M) (d/dt) X = grad H
----------------------------------------------
Result.Format := CSC;
Result.N_Row := 2 * N + M;
Result.N_Col := 2 * N + M;
Result.P.Reserve_Capacity (Count_Type (2 * N + M + 1));
Result.I.Reserve_Capacity (Count_Type (2 * N));
Result.X.Reserve_Capacity (Count_Type (2 * N));
for I in 1 .. N loop
Result.P.Append (I);
Result.I.Append (N + I);
Result.X.Append (1.0);
end loop;
for I in 1 .. N loop
Result.P.Append (N + I);
Result.I.Append (I);
Result.X.Append (-1.0);
end loop;
for I in 2 * N + 1 .. 2 * N + M + 1 loop
Result.P.Append (I);
end loop;
return Result;
end Omega;
| 25.520833 | 58 | 0.461224 |
0b3ad4c35a2d22b119af4fff4735561a91674e32 | 205 | ads | Ada | source/vampire-r3-refresh_page.ads | ytomino/vampire | 2ff6c93af53e55c89cab70fedb63accba83bcd92 | [
"OpenSSL",
"Unlicense"
] | 1 | 2016-12-19T13:25:14.000Z | 2016-12-19T13:25:14.000Z | source/vampire-r3-refresh_page.ads | ytomino/vampire | 2ff6c93af53e55c89cab70fedb63accba83bcd92 | [
"OpenSSL",
"Unlicense"
] | null | null | null | source/vampire-r3-refresh_page.ads | ytomino/vampire | 2ff6c93af53e55c89cab70fedb63accba83bcd92 | [
"OpenSSL",
"Unlicense"
] | null | null | null | -- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Refresh_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
URI : in String);
| 34.166667 | 61 | 0.77561 |
5011b4d3e906cf57f315156f0d42b2d5fee9ddd4 | 3,514 | adb | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-valcha.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-valcha.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-valcha.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . V A L _ C H A R --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-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/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Val_Util; use System.Val_Util;
package body System.Val_Char is
---------------------
-- Value_Character --
---------------------
function Value_Character (Str : String) return Character is
F : Natural;
L : Natural;
S : String (Str'Range) := Str;
begin
Normalize_String (S, F, L);
-- Accept any single character enclosed in quotes
if L - F = 2 and then S (F) = ''' and then S (L) = ''' then
return Character'Val (Character'Pos (S (F + 1)));
-- Check control character cases
else
for C in Character'Val (16#00#) .. Character'Val (16#1F#) loop
if S (F .. L) = Character'Image (C) then
return C;
end if;
end loop;
for C in Character'Val (16#7F#) .. Character'Val (16#9F#) loop
if S (F .. L) = Character'Image (C) then
return C;
end if;
end loop;
if S (F .. L) = "SOFT_HYPHEN" then
return Character'Val (16#AD#);
end if;
Bad_Value (Str);
end if;
end Value_Character;
end System.Val_Char;
| 45.636364 | 78 | 0.412351 |
4d097574e9f8d05fe5bd49ad5406982bd4a964e9 | 4,424 | ads | Ada | uuids-version_4.ads | annexi-strayline/ASAP-UUIDs | fc0e62228807884765a8dedc1b296f7d8fa44c46 | [
"BSD-3-Clause"
] | null | null | null | uuids-version_4.ads | annexi-strayline/ASAP-UUIDs | fc0e62228807884765a8dedc1b296f7d8fa44c46 | [
"BSD-3-Clause"
] | null | null | null | uuids-version_4.ads | annexi-strayline/ASAP-UUIDs | fc0e62228807884765a8dedc1b296f7d8fa44c46 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Common UUID Handling Package --
-- - RFC 4122 Implementation - --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Version 4 (Random) UUID Generation Package --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2021 ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Richard Wai (ANNEXI-STRAYLINE) --
-- --
-- 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 ANNEXI-STRAYLINE 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 ANNEXI-STRAYLINE --
-- 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.Numerics.Discrete_Random;
private with Interfaces;
package UUIDs.Version_4 is
type Generator(<>) is limited private;
type State is private;
function Initialize (Seed: Natural) return Generator;
function Initialize (From_State: State) return Generator;
procedure Save (Gen: in Generator; To_State : out State);
procedure Reset (Gen: in out Generator; Seed : in Integer);
procedure Reset (Gen: in out Generator; From_State: in State);
function Random_UUID (Gen: Generator) return UUID;
private
package Gen_64 is new Ada.Numerics.Discrete_Random (Interfaces.Unsigned_64);
type Generator is limited
record
Gen: Gen_64.Generator;
end record;
type State is
record
Gen_State: Gen_64.State;
end record;
end UUIDs.Version_4;
| 56 | 79 | 0.431962 |
fba30dfee8ab528875914dc454ec85708a970ee3 | 7,682 | ads | Ada | gcc-gcc-7_3_0-release/gcc/ada/a-stuten.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/a-stuten.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/a-stuten.ads | 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 . S T R I N G S . U T F _ E N C O D I N G --
-- --
-- S p e c --
-- --
-- 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 one of the Ada 2012 package defined in AI05-0137-1. It is a parent
-- package that contains declarations used in the child packages for handling
-- UTF encoded strings. Note: this package is consistent with Ada 95, and may
-- be used in Ada 95 or Ada 2005 mode.
with Interfaces;
with Unchecked_Conversion;
package Ada.Strings.UTF_Encoding is
pragma Pure (UTF_Encoding);
subtype UTF_String is String;
-- Used to represent a string of 8-bit values containing a sequence of
-- values encoded in one of three ways (UTF-8, UTF-16BE, or UTF-16LE).
-- Typically used in connection with a Scheme parameter indicating which
-- of the encodings applies. This is not strictly a String value in the
-- sense defined in the Ada RM, but in practice type String accommodates
-- all possible 256 codes, and can be used to hold any sequence of 8-bit
-- codes. We use String directly rather than create a new type so that
-- all existing facilities for manipulating type String (e.g. the child
-- packages of Ada.Strings) are available for manipulation of UTF_Strings.
type Encoding_Scheme is (UTF_8, UTF_16BE, UTF_16LE);
-- Used to specify which of three possible encodings apply to a UTF_String
subtype UTF_8_String is String;
-- Similar to UTF_String but specifically represents a UTF-8 encoded string
subtype UTF_16_Wide_String is Wide_String;
-- This is similar to UTF_8_String but is used to represent a Wide_String
-- value which is a sequence of 16-bit values encoded using UTF-16. Again
-- this is not strictly a Wide_String in the sense of the Ada RM, but the
-- type Wide_String can be used to represent a sequence of arbitrary 16-bit
-- values, and it is more convenient to use Wide_String than a new type.
Encoding_Error : exception;
-- This exception is raised in the following situations:
-- a) A UTF encoded string contains an invalid encoding sequence
-- b) A UTF-16BE or UTF-16LE input string has an odd length
-- c) An incorrect character value is present in the Input string
-- d) The result for a Wide_Character output exceeds 16#FFFF#
-- The exception message has the index value where the error occurred.
-- The BOM (BYTE_ORDER_MARK) values defined here are used at the start of
-- a string to indicate the encoding. The convention in this package is
-- that on input a correct BOM is ignored and an incorrect BOM causes an
-- Encoding_Error exception. On output, the output string may or may not
-- include a BOM depending on the setting of Output_BOM.
BOM_8 : constant UTF_8_String :=
Character'Val (16#EF#) &
Character'Val (16#BB#) &
Character'Val (16#BF#);
BOM_16BE : constant UTF_String :=
Character'Val (16#FE#) &
Character'Val (16#FF#);
BOM_16LE : constant UTF_String :=
Character'Val (16#FF#) &
Character'Val (16#FE#);
BOM_16 : constant UTF_16_Wide_String :=
(1 => Wide_Character'Val (16#FEFF#));
function Encoding
(Item : UTF_String;
Default : Encoding_Scheme := UTF_8) return Encoding_Scheme;
-- This function inspects a UTF_String value to determine whether it
-- starts with a BOM for UTF-8, UTF-16BE, or UTF_16LE. If so, the result
-- is the scheme corresponding to the BOM. If no valid BOM is present
-- then the result is the specified Default value.
private
function To_Unsigned_8 is new
Unchecked_Conversion (Character, Interfaces.Unsigned_8);
function To_Unsigned_16 is new
Unchecked_Conversion (Wide_Character, Interfaces.Unsigned_16);
function To_Unsigned_32 is new
Unchecked_Conversion (Wide_Wide_Character, Interfaces.Unsigned_32);
subtype UTF_XE_Encoding is Encoding_Scheme range UTF_16BE .. UTF_16LE;
-- Subtype containing only UTF_16BE and UTF_16LE entries
-- Utility routines for converting between UTF-16 and UTF-16LE/BE
function From_UTF_16
(Item : UTF_16_Wide_String;
Output_Scheme : UTF_XE_Encoding;
Output_BOM : Boolean := False) return UTF_String;
-- The input string Item is encoded in UTF-16. The output is encoded using
-- Output_Scheme (which is either UTF-16LE or UTF-16BE). There are no error
-- cases. The output starts with BOM_16BE/LE if Output_BOM is True.
function To_UTF_16
(Item : UTF_String;
Input_Scheme : UTF_XE_Encoding;
Output_BOM : Boolean := False) return UTF_16_Wide_String;
-- The input string Item is encoded using Input_Scheme which is either
-- UTF-16LE or UTF-16BE. The output is the corresponding UTF_16 wide
-- string. Encoding error is raised if the length of the input is odd.
-- The output starts with BOM_16 if Output_BOM is True.
procedure Raise_Encoding_Error (Index : Natural);
pragma No_Return (Raise_Encoding_Error);
-- Raise Encoding_Error exception for bad encoding in input item. The
-- parameter Index is the index of the location in Item for the error.
end Ada.Strings.UTF_Encoding;
| 52.97931 | 79 | 0.606353 |
1c9fe4e7056a0a4d2eaed4f1019eba2532cb04fd | 2,709 | adb | Ada | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnarl/s-reldel.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnarl/s-reldel.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnarl/s-reldel.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . R E L A T I V E _ D E L A Y S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2016-2021, Free Software Foundation, Inc. --
-- --
-- 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. 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. --
-- --
-- --
-- --
-- --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
with Ada.Real_Time; use Ada.Real_Time;
package body System.Relative_Delays is
procedure Delay_For (D : Duration) is
begin
-- Simple expression, not very efficient as the implementation of
-- delay until also reads the clock.
delay until Clock + To_Time_Span (D);
end Delay_For;
end System.Relative_Delays;
| 61.568182 | 78 | 0.354005 |
0ba9b9ea5c733433838bef3f9185ce57059c61cb | 17,013 | adb | Ada | tools-src/gnu/gcc/gcc/ada/exp_smem.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/exp_smem.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/exp_smem.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E X P _ S M E M --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1998-2000 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 Exp_Util; use Exp_Util;
with Nmake; use Nmake;
with Namet; use Namet;
with Nlists; use Nlists;
with Rtsfind; use Rtsfind;
with Sem; use Sem;
with Sem_Util; use Sem_Util;
with Sinfo; use Sinfo;
with Snames; use Snames;
with Stand; use Stand;
with Stringt; use Stringt;
with Tbuild; use Tbuild;
package body Exp_Smem is
Insert_Node : Node_Id;
-- Node after which a write call is to be inserted
-----------------------
-- Local Subprograms --
-----------------------
procedure Add_Read_Before (N : Node_Id);
-- Insert a Shared_Var_ROpen call for variable before node N
procedure Add_Write_After (N : Node_Id);
-- Insert a Shared_Var_WOpen call for variable after the node
-- Insert_Node, as recorded by On_Lhs_Of_Assigment (where it points
-- to the assignment statement) or Is_Out_Actual (where it points to
-- the procedure call statement).
procedure Build_Full_Name
(E : in Entity_Id;
N : out String_Id);
-- Build the fully qualified string name of a shared variable.
function On_Lhs_Of_Assignment (N : Node_Id) return Boolean;
-- Determines if N is on the left hand of the assignment. This means
-- that either it is a simple variable, or it is a record or array
-- variable with a corresponding selected or indexed component on
-- the left side of an assignment. If the result is True, then
-- Insert_Node is set to point to the assignment
function Is_Out_Actual (N : Node_Id) return Boolean;
-- In a similar manner, this function determines if N appears as an
-- OUT or IN OUT parameter to a procedure call. If the result is
-- True, then Insert_Node is set to point to the assignment.
---------------------
-- Add_Read_Before --
---------------------
procedure Add_Read_Before (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Ent : constant Node_Id := Entity (N);
begin
if Present (Shared_Var_Read_Proc (Ent)) then
Insert_Action (N,
Make_Procedure_Call_Statement (Loc,
Name =>
New_Occurrence_Of (Shared_Var_Read_Proc (Ent), Loc),
Parameter_Associations => Empty_List));
end if;
end Add_Read_Before;
-------------------------------
-- Add_Shared_Var_Lock_Procs --
-------------------------------
procedure Add_Shared_Var_Lock_Procs (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Obj : constant Entity_Id := Entity (Expression (First_Actual (N)));
Inode : Node_Id;
Vnm : String_Id;
begin
-- We have to add Shared_Var_Lock and Shared_Var_Unlock calls around
-- the procedure or function call node. First we locate the right
-- place to do the insertion, which is the call itself in the
-- procedure call case, or else the nearest non subexpression
-- node that contains the function call.
Inode := N;
while Nkind (Inode) /= N_Procedure_Call_Statement
and then Nkind (Inode) in N_Subexpr
loop
Inode := Parent (Inode);
end loop;
-- Now insert the Lock and Unlock calls and the read/write calls
-- Two concerns here. First we are not dealing with the exception
-- case, really we need some kind of cleanup routine to do the
-- Unlock. Second, these lock calls should be inside the protected
-- object processing, not outside, otherwise they can be done at
-- the wrong priority, resulting in dead lock situations ???
Build_Full_Name (Obj, Vnm);
-- First insert the Lock call before
Insert_Before_And_Analyze (Inode,
Make_Procedure_Call_Statement (Loc,
Name => New_Occurrence_Of (RTE (RE_Shared_Var_Lock), Loc),
Parameter_Associations => New_List (
Make_String_Literal (Loc, Vnm))));
-- Now, right after the Lock, insert a call to read the object
Insert_Before_And_Analyze (Inode,
Make_Procedure_Call_Statement (Loc,
Name => New_Occurrence_Of (Shared_Var_Read_Proc (Obj), Loc)));
-- Now insert the Unlock call after
Insert_After_And_Analyze (Inode,
Make_Procedure_Call_Statement (Loc,
Name => New_Occurrence_Of (RTE (RE_Shared_Var_Unlock), Loc),
Parameter_Associations => New_List (
Make_String_Literal (Loc, Vnm))));
-- Now for a procedure call, but not a function call, insert the
-- call to write the object just before the unlock.
if Nkind (N) = N_Procedure_Call_Statement then
Insert_After_And_Analyze (Inode,
Make_Procedure_Call_Statement (Loc,
Name => New_Occurrence_Of (Shared_Var_Assign_Proc (Obj), Loc)));
end if;
end Add_Shared_Var_Lock_Procs;
---------------------
-- Add_Write_After --
---------------------
procedure Add_Write_After (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Ent : constant Node_Id := Entity (N);
begin
if Present (Shared_Var_Assign_Proc (Ent)) then
Insert_After_And_Analyze (Insert_Node,
Make_Procedure_Call_Statement (Loc,
Name =>
New_Occurrence_Of (Shared_Var_Assign_Proc (Ent), Loc),
Parameter_Associations => Empty_List));
end if;
end Add_Write_After;
---------------------
-- Build_Full_Name --
---------------------
procedure Build_Full_Name
(E : in Entity_Id;
N : out String_Id)
is
procedure Build_Name (E : Entity_Id);
-- This is a recursive routine used to construct the fully
-- qualified string name of the package corresponding to the
-- shared variable.
procedure Build_Name (E : Entity_Id) is
begin
if Scope (E) /= Standard_Standard then
Build_Name (Scope (E));
Store_String_Char ('.');
end if;
Get_Decoded_Name_String (Chars (E));
Store_String_Chars (Name_Buffer (1 .. Name_Len));
end Build_Name;
begin
Start_String;
Build_Name (E);
N := End_String;
end Build_Full_Name;
------------------------------------
-- Expand_Shared_Passive_Variable --
------------------------------------
procedure Expand_Shared_Passive_Variable (N : Node_Id) is
Typ : constant Entity_Id := Etype (N);
begin
-- Nothing to do for protected or limited objects
if Is_Limited_Type (Typ) or else Is_Concurrent_Type (Typ) then
return;
-- If we are on the left hand side of an assignment, then we add
-- the write call after the assignment.
elsif On_Lhs_Of_Assignment (N) then
Add_Write_After (N);
-- If we are a parameter for an out or in out formal, then put
-- the read before and the write after.
elsif Is_Out_Actual (N) then
Add_Read_Before (N);
Add_Write_After (N);
-- All other cases are simple reads
else
Add_Read_Before (N);
end if;
end Expand_Shared_Passive_Variable;
-------------------
-- Is_Out_Actual --
-------------------
function Is_Out_Actual (N : Node_Id) return Boolean is
Parnt : constant Node_Id := Parent (N);
Formal : Entity_Id;
Call : Node_Id;
Actual : Node_Id;
begin
if (Nkind (Parnt) = N_Indexed_Component
or else
Nkind (Parnt) = N_Selected_Component)
and then N = Prefix (Parnt)
then
return Is_Out_Actual (Parnt);
elsif Nkind (Parnt) = N_Parameter_Association
and then N = Explicit_Actual_Parameter (Parnt)
then
Call := Parent (Parnt);
elsif Nkind (Parnt) = N_Procedure_Call_Statement then
Call := Parnt;
else
return False;
end if;
-- Fall here if we are definitely a parameter
Actual := First_Actual (Call);
Formal := First_Formal (Entity (Name (Call)));
loop
if Actual = N then
if Ekind (Formal) /= E_In_Parameter then
Insert_Node := Call;
return True;
else
return False;
end if;
else
Actual := Next_Actual (Actual);
Formal := Next_Formal (Formal);
end if;
end loop;
end Is_Out_Actual;
---------------------------
-- Make_Shared_Var_Procs --
---------------------------
procedure Make_Shared_Var_Procs (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N);
Ent : constant Entity_Id := Defining_Identifier (N);
Typ : constant Entity_Id := Etype (Ent);
Vnm : String_Id;
Atr : Node_Id;
Assign_Proc : constant Entity_Id :=
Make_Defining_Identifier (Loc,
Chars => New_External_Name (Chars (Ent), 'A'));
Read_Proc : constant Entity_Id :=
Make_Defining_Identifier (Loc,
Chars => New_External_Name (Chars (Ent), 'R'));
S : Entity_Id;
-- Start of processing for Make_Shared_Var_Procs
begin
Build_Full_Name (Ent, Vnm);
-- We turn off Shared_Passive during construction and analysis of
-- the assign and read routines, to avoid improper attempts to
-- process the variable references within these procedures.
Set_Is_Shared_Passive (Ent, False);
-- Construct assignment routine
-- procedure VarA is
-- S : Ada.Streams.Stream_IO.Stream_Access;
-- begin
-- S := Shared_Var_WOpen ("pkg.var");
-- typ'Write (S, var);
-- Shared_Var_Close (S);
-- end VarA;
S := Make_Defining_Identifier (Loc, Name_uS);
Atr :=
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Typ, Loc),
Attribute_Name => Name_Write,
Expressions => New_List (
New_Reference_To (S, Loc),
New_Occurrence_Of (Ent, Loc)));
Set_OK_For_Stream (Atr, True);
Insert_After_And_Analyze (N,
Make_Subprogram_Body (Loc,
Specification =>
Make_Procedure_Specification (Loc,
Defining_Unit_Name => Assign_Proc),
-- S : Ada.Streams.Stream_IO.Stream_Access;
Declarations => New_List (
Make_Object_Declaration (Loc,
Defining_Identifier => S,
Object_Definition =>
New_Occurrence_Of (RTE (RE_Stream_Access), Loc))),
Handled_Statement_Sequence =>
Make_Handled_Sequence_Of_Statements (Loc,
Statements => New_List (
-- S := Shared_Var_WOpen ("pkg.var");
Make_Assignment_Statement (Loc,
Name => New_Reference_To (S, Loc),
Expression =>
Make_Function_Call (Loc,
Name =>
New_Occurrence_Of
(RTE (RE_Shared_Var_WOpen), Loc),
Parameter_Associations => New_List (
Make_String_Literal (Loc, Vnm)))),
Atr,
-- Shared_Var_Close (S);
Make_Procedure_Call_Statement (Loc,
Name =>
New_Occurrence_Of (RTE (RE_Shared_Var_Close), Loc),
Parameter_Associations =>
New_List (New_Reference_To (S, Loc)))))));
-- Construct read routine
-- procedure varR is
-- S : Ada.Streams.Stream_IO.Stream_Access;
-- begin
-- S := Shared_Var_ROpen ("pkg.var");
-- if S /= null then
-- typ'Read (S, Var);
-- Shared_Var_Close (S);
-- end if;
-- end varR;
S := Make_Defining_Identifier (Loc, Name_uS);
Atr :=
Make_Attribute_Reference (Loc,
Prefix => New_Occurrence_Of (Typ, Loc),
Attribute_Name => Name_Read,
Expressions => New_List (
New_Reference_To (S, Loc),
New_Occurrence_Of (Ent, Loc)));
Set_OK_For_Stream (Atr, True);
Insert_After_And_Analyze (N,
Make_Subprogram_Body (Loc,
Specification =>
Make_Procedure_Specification (Loc,
Defining_Unit_Name => Read_Proc),
-- S : Ada.Streams.Stream_IO.Stream_Access;
Declarations => New_List (
Make_Object_Declaration (Loc,
Defining_Identifier => S,
Object_Definition =>
New_Occurrence_Of (RTE (RE_Stream_Access), Loc))),
Handled_Statement_Sequence =>
Make_Handled_Sequence_Of_Statements (Loc,
Statements => New_List (
-- S := Shared_Var_ROpen ("pkg.var");
Make_Assignment_Statement (Loc,
Name => New_Reference_To (S, Loc),
Expression =>
Make_Function_Call (Loc,
Name =>
New_Occurrence_Of
(RTE (RE_Shared_Var_ROpen), Loc),
Parameter_Associations => New_List (
Make_String_Literal (Loc, Vnm)))),
-- if S /= null then
Make_Implicit_If_Statement (N,
Condition =>
Make_Op_Ne (Loc,
Left_Opnd => New_Reference_To (S, Loc),
Right_Opnd => Make_Null (Loc)),
Then_Statements => New_List (
-- typ'Read (S, Var);
Atr,
-- Shared_Var_Close (S);
Make_Procedure_Call_Statement (Loc,
Name =>
New_Occurrence_Of
(RTE (RE_Shared_Var_Close), Loc),
Parameter_Associations =>
New_List (New_Reference_To (S, Loc)))))))));
Set_Is_Shared_Passive (Ent, True);
Set_Shared_Var_Assign_Proc (Ent, Assign_Proc);
Set_Shared_Var_Read_Proc (Ent, Read_Proc);
end Make_Shared_Var_Procs;
--------------------------
-- On_Lhs_Of_Assignment --
--------------------------
function On_Lhs_Of_Assignment (N : Node_Id) return Boolean is
P : constant Node_Id := Parent (N);
begin
if Nkind (P) = N_Assignment_Statement then
if N = Name (P) then
Insert_Node := P;
return True;
else
return False;
end if;
elsif (Nkind (P) = N_Indexed_Component
or else
Nkind (P) = N_Selected_Component)
and then N = Prefix (P)
then
return On_Lhs_Of_Assignment (P);
else
return False;
end if;
end On_Lhs_Of_Assignment;
end Exp_Smem;
| 33.823062 | 78 | 0.539352 |
39695967c464afd7a9dc1a3c672f0e5ef5ae4fa6 | 19,620 | adb | Ada | tls/inet-tcp-tls.adb | annexi-strayline/ASAP-INET | df3b73e2aa94a786e5b1759db2cb2d1be3c0a4b6 | [
"BSD-3-Clause"
] | null | null | null | tls/inet-tcp-tls.adb | annexi-strayline/ASAP-INET | df3b73e2aa94a786e5b1759db2cb2d1be3c0a4b6 | [
"BSD-3-Clause"
] | null | null | null | tls/inet-tcp-tls.adb | annexi-strayline/ASAP-INET | df3b73e2aa94a786e5b1759db2cb2d1be3c0a4b6 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- Internet Protocol Suite Package --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Richard Wai (ANNEXI-STRAYLINE) --
-- --
-- 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 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 --
-- OWNER 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.IO_Exceptions;
with INET.IP.Lookup;
with INET.Internal.UNIX_Sockets;
package body INET.TCP.TLS is
End_Error: exception renames Ada.IO_Exceptions.End_Error;
--
-- TLS_Connection
--
-------------
-- Secured --
-------------
function Secured (Connection: TLS_Connection) return Boolean is
(Connection.TLS_Go);
----------
-- Read --
----------
procedure Receive_Immediate_Wrapper
(Connection: in out TLS_Connection;
Buffer : out Stream_Element_Array;
Last : out Stream_Element_Offset;
Status : out INET.Internal.UNIX_Sockets.Operation_Status;
Errno : out Interfaces.C.int)
with Inline is
use INET.Internal.UNIX_Sockets;
begin
if not Connection.TLS_Go then
raise Program_Error with
"Attempt to Read from an unsecured TLS_Connection";
elsif Connection.Read_Down then
raise End_Error with "TLS: Read direction has been shutdown";
end if;
Connection.Context.TLS_Receive_Immediate
(Buffer => Buffer,
Last => Last);
Status := OK;
Errno := 0;
-- These are really specific to the "standard" implementation in INET.TCP
-- which we are borrowing. In the case of TLS, if something goes wrong,
-- it is usually pretty catestrophic, so we just propegate the exception
-- as it arrives. If we get here, everything appears to be normal.
end Receive_Immediate_Wrapper;
----------------------------------------------------------------------
procedure Read_Actual is new Generic_Read
(Connection_Type => TLS_Connection,
Connection_Receive_Immediate => Receive_Immediate_Wrapper);
procedure Read (Stream: in out TLS_Connection;
Item : out Stream_Element_Array;
Last : out Stream_Element_Offset)
renames Read_Actual;
--------------------
-- Read_Immediate --
--------------------
procedure Read_Immediate (Stream: in out TLS_Connection;
Item : out Stream_Element_Array;
Last : out Stream_Element_Offset)
is begin
if not Stream.TLS_Go then
raise Program_Error with
"Attempt to Read from an unsecured TLS_Connection";
elsif Stream.Read_Down then
raise End_Error with "TLS: Read direction has been shutdown";
end if;
Stream.Context.TLS_Receive_Immediate (Buffer => Item,
Last => Last);
end Read_Immediate;
-----------
-- Write --
-----------
procedure Send_Immediate_Wrapper
(Connection: in out TLS_Connection;
Buffer : in Stream_Element_Array;
Last : out Stream_Element_Offset;
Status : out INET.Internal.UNIX_Sockets.Operation_Status;
Errno : out Interfaces.C.int)
with Inline is
use INET.Internal.UNIX_Sockets;
begin
if not Connection.TLS_Go then
raise Program_Error with
"Attempt to Write to an unsecured TLS_Connection";
elsif Connection.Write_Down then
raise End_Error with "TLS: Write direction has been shutdown";
end if;
Connection.Context.TLS_Send_Immediate
(Buffer => Buffer,
Last => Last);
Status := OK;
Errno := 0;
-- These are really specific to the "standard" implementation in INET.TCP
-- which we are borrowing. In the case of TLS, if something goes wrong,
-- it is usually pretty catestrophic, so we just propegate the exception
-- as it arrives. If we get here, everything appears to be normal.
end Send_Immediate_Wrapper;
----------------------------------------------------------------------
procedure Write_Actual is new Generic_Write
(Connection_Type => TLS_Connection,
Connection_Send_Immediate => Send_Immediate_Wrapper);
procedure Write (Stream: in out TLS_Connection;
Item : in Stream_Element_Array)
renames Write_Actual;
---------------------
-- Write_Immediate --
---------------------
procedure Write_Immediate (Stream: in out TLS_Connection;
Item : in Stream_Element_Array;
Last : out Stream_Element_Offset)
is begin
if not Stream.TLS_Go then
raise Program_Error with
"Attempt to Write to an unsecured TLS_Connection";
elsif Stream.Write_Down then
raise End_Error with "TLS: Write direction has been shutdown";
end if;
Stream.Context.TLS_Send_Immediate (Buffer => Item,
Last => Last);
end Write_Immediate;
--------------
-- Shutdown --
--------------
procedure Shutdown (Connection: in out TLS_Connection) is
begin
Connection.Context.Shutdown;
TCP_Connection(Connection).Shutdown;
Connection.TLS_Go := False;
Connection.Read_Down := True;
Connection.Write_Down := True;
exception
when TLS_Error => null;
-- Sometimes the remote peer closes the connection without a close
-- notify. We do not want to propegate this out when we shutdown
end Shutdown;
-------------------
-- Shutdown_Read --
-------------------
procedure Shutdown_Read (Connection: in out TLS_Connection) is
begin
if Connection.Write_Down then
Connection.Shutdown;
else
Connection.Read_Down := True;
end if;
end Shutdown_Read;
--------------------
-- Shutdown_Write --
--------------------
procedure Shutdown_Write (Connection: in out TLS_Connection) is
begin
if Connection.Read_Down then
Connection.Shutdown;
else
Connection.Write_Down := True;
end if;
end Shutdown_Write;
--
-- TLS_Client_Connection
--
-------------
-- Connect --
-------------
procedure Connect_Actual (Connection : in out TLS_Client_Connection;
Address : in IP.IP_Address;
Port : in TCP_Port;
Server_Name: in String)
with Inline is
begin
Connection.Shutdown;
TCP_Connection (Connection).Connect (Address, Port);
Connection.TLS_Go := False;
Connection.Read_Down := False;
Connection.Write_Down := False;
Connection.Secure (Server_Name);
exception
when others =>
Connection.Shutdown;
raise;
end Connect_Actual;
----------------------------------------------------------------------
procedure Connect (Connection: in out TLS_Client_Connection;
Address : in IP.IP_Address;
Port : in TCP_Port)
is begin
raise Program_Error with
"TLS client connections must provide a host name for the remote peer.";
end;
----------------------------------------------------------------------
procedure Connect (Connection : in out TLS_Client_Connection;
Address : in IP.IP_Address;
Port : in TCP_Port;
Server_Name: in String)
is begin
if Server_Name'Length = 0 then
raise Constraint_Error with
"SNI Server name must not be an empty string.";
end if;
Connect_Actual (Connection, Address, Port, Server_Name);
end;
----------------------------------------------------------------------
overriding
procedure Connect (Connection: in out TLS_Client_Connection;
Host_Name : in String;
Port : in TCP_Port)
is
use INET.IP.Lookup;
Query : IP_Lookup;
Result: IP_Lookup_Entry;
begin
Query.Lookup (Host_Name => Host_Name,
Protocol => Proto_TCP);
if not Query.Has_More_Entries then
raise TCP_Lookup_Failed with "Lookup of host """
& Host_Name & """ failed.";
end if;
Query.Pop (Result);
Connection.Connect (Address => Result.Address,
Port => Port,
Server_Name => Host_Name);
end Connect;
----------------------------------------------------------------------
overriding
procedure Connect (Connection : in out TLS_Client_Connection;
Host_Name : in String;
Port : in TCP_Port;
Version : in IP.IP_Version)
is
use INET.IP.Lookup;
Query : IP_Lookup;
Result: IP_Lookup_Entry;
begin
Query.Lookup (Host_Name => Host_Name,
Protocol => Proto_TCP,
Version => Version);
if not Query.Has_More_Entries then
raise TCP_Lookup_Failed with "Lookup of host """
& Host_Name & """ failed.";
end if;
Query.Pop (Result);
Connection.Connect (Address => Result.Address,
Port => Port,
Server_Name => Host_Name);
end Connect;
------------
-- Secure --
------------
procedure Secure
(Connection : in out TLS_Client_Connection;
Server_Name: in String)
is begin
if Server_Name'Length = 0 then
raise Constraint_Error with
"SNI Server name must not be an empty string.";
elsif Connection.Write_Down and Connection.Read_Down then
raise Program_Error with
"Secure cannot be invoked on a shutdown connection.";
elsif Connection.TLS_Go then
Connection.Context.Handshake (Socket => Connection.Socket,
Timeout => Explicit_Handshake_Timeout);
else
pragma Assert (not Connection.Context.Available);
if Server_Name'Length > 0 then
Connection.Context.Establish
(Configuration => Connection.Configuration.all,
Server_Name => Server_Name,
Socket => Connection.Socket,
Timeout => Explicit_Handshake_Timeout);
else
Connection.Context.Establish
(Configuration => Connection.Configuration.all,
Socket => Connection.Socket,
Timeout => Explicit_Handshake_Timeout);
end if;
Connection.TLS_Go := True;
Connection.Read_Down := False;
Connection.Write_Down := False;
end if;
exception
when others =>
Connection.Shutdown;
raise;
end Secure;
--
-- TLS_Server_Connection
--
-------------
-- Connect --
-------------
procedure No_Connect with Inline, No_Return is
begin
raise Program_Error with
"Connect not allowed on TLS_Server_Connection objects.";
end;
----------------------------------------------------------------------
procedure Connect (Connection: in out TLS_Server_Connection;
Address : in IP.IP_Address;
Port : in TCP_Port)
is begin
No_Connect;
end;
----------------------------------------------------------------------
procedure Connect (Connection: in out TLS_Server_Connection;
Host_Name : in String;
Port : in TCP_Port)
is begin
No_Connect;
end;
----------------------------------------------------------------------
procedure Connect (Connection : in out TLS_Server_Connection;
Host_Name : in String;
Port : in TCP_Port;
Version : in IP.IP_Version)
is begin
No_Connect;
end;
------------
-- Secure --
------------
procedure Secure (Connection : in out TLS_Server_Connection;
Configuration: in TLS_Server_Configuration'Class)
is
-- This one is a bit unusual, since we need to make a single-use
-- TLS_Listener_Context, since libtls needs that to generate a
-- context for a server-side connection. This is part of the reason
-- why already Secured TLS_Server_Connections are not allowed.
--
-- Normally, with a TLS_Listener.Dequeue, we'd use that as the
-- listener.
--
-- This Secure is specifically here to allow for negotiated upgrades
-- to TLS, such as in SMTP with STARTTLS
Source_Context: INET.Internal.TLS.TLS_Listener_Context;
begin
if Connection.Write_Down and Connection.Read_Down then
raise Program_Error with
"Secure cannot be invoked on a shutdown connection.";
elsif Connection.TLS_Go then
raise Program_Error with
"Secure cannot be invoked on Secured TLS_Server_Connection "
& "objects. ";
end if;
Source_Context.Configure (Configuration);
Connection.Context.Establish
(Listener_Context => Source_Context,
Socket => Connection.Socket,
Timeout => Explicit_Handshake_Timeout);
Connection.TLS_Go := True;
Connection.Read_Down := False;
Connection.Write_Down := False;
exception
when others =>
Connection.Shutdown;
raise;
end Secure;
---------------
-- Re_Secure --
---------------
procedure Re_secure (Connection: in out TLS_Server_Connection) is
begin
if Connection.Write_Down and Connection.Read_Down then
raise Program_Error with
"Re_Secure cannot be invoked on a shutdown connection.";
elsif not Connection.TLS_Go then
raise Program_Error with
"Re_Secure cannot be invoked unless the TLS_Server_Connection "
& "object is already Secured";
end if;
Connection.Context.Handshake (Socket => Connection.Socket,
Timeout => Explicit_Handshake_Timeout);
exception
when others =>
Connection.Shutdown;
raise;
end Re_Secure;
--
-- TLS_Listener
--
----------
-- Bind --
----------
procedure Bind (Listener: in out TLS_Listener;
Address : in IP.IP_Address;
Port : in TCP_Port)
is begin
TCP_Listener (Listener).Bind (Address, Port);
Listener.Context.Configure (Listener.Configuration.all);
end Bind;
-------------
-- Dequeue --
-------------
procedure Dequeue (Listener : in out TLS_Listener;
Connection: in out TCP_Connection'Class)
is
begin
if Connection not in TLS_Server_Connection'Class then
raise Program_Error with
"TLS_Listener.Dequeue must be target an object of "
& "TLS_Server_Connection'Class only.";
end if;
Connection.Shutdown;
TCP_Listener (Listener).Dequeue (Connection);
declare
TLS_Connection: TLS_Server_Connection'Class
renames TLS_Server_Connection'Class (Connection);
begin
TLS_Connection.Context.Establish
(Listener_Context => Listener.Context,
Socket => TLS_Connection.Socket,
Timeout => Explicit_Handshake_Timeout);
TLS_Connection.TLS_Go := True;
TLS_Connection.Read_Down := False;
TLS_Connection.Write_Down := False;
exception
when others =>
TLS_Connection.Shutdown;
raise;
end;
end Dequeue;
----------------------------------------------------------------------
function Dequeue (Listener: in out TLS_Listener) return TCP_Connection'Class
is begin
return New_Connection: TLS_Server_Connection do
Listener.Dequeue (New_Connection);
end return;
end Dequeue;
end INET.TCP.TLS;
| 35.09839 | 79 | 0.516208 |
18adda31187b46324276ce7651e71ceb5d99225b | 8,504 | adb | Ada | gcc-gcc-7_3_0-release/gcc/ada/validsw.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/validsw.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/validsw.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- V A L I D S W --
-- --
-- B o d y --
-- --
-- Copyright (C) 2001-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 Opt; use Opt;
with Output; use Output;
package body Validsw is
----------------------------------
-- Reset_Validity_Check_Options --
----------------------------------
procedure Reset_Validity_Check_Options is
begin
Validity_Check_Components := False;
Validity_Check_Copies := False;
Validity_Check_Default := True;
Validity_Check_Floating_Point := False;
Validity_Check_In_Out_Params := False;
Validity_Check_In_Params := False;
Validity_Check_Operands := False;
Validity_Check_Returns := False;
Validity_Check_Subscripts := False;
Validity_Check_Tests := False;
end Reset_Validity_Check_Options;
---------------------------------
-- Save_Validity_Check_Options --
---------------------------------
procedure Save_Validity_Check_Options
(Options : out Validity_Check_Options)
is
P : Natural := 0;
procedure Add (C : Character; S : Boolean);
-- Add given character C to string if switch S is true
procedure Add (C : Character; S : Boolean) is
begin
if S then
P := P + 1;
Options (P) := C;
end if;
end Add;
-- Start of processing for Save_Validity_Check_Options
begin
for K in Options'Range loop
Options (K) := ' ';
end loop;
Add ('n', not Validity_Check_Default);
Add ('c', Validity_Check_Copies);
Add ('e', Validity_Check_Components);
Add ('f', Validity_Check_Floating_Point);
Add ('i', Validity_Check_In_Params);
Add ('m', Validity_Check_In_Out_Params);
Add ('o', Validity_Check_Operands);
Add ('r', Validity_Check_Returns);
Add ('s', Validity_Check_Subscripts);
Add ('t', Validity_Check_Tests);
end Save_Validity_Check_Options;
----------------------------------------
-- Set_Default_Validity_Check_Options --
----------------------------------------
procedure Set_Default_Validity_Check_Options is
begin
Reset_Validity_Check_Options;
Set_Validity_Check_Options ("d");
end Set_Default_Validity_Check_Options;
--------------------------------
-- Set_Validity_Check_Options --
--------------------------------
-- Version used when no error checking is required
procedure Set_Validity_Check_Options (Options : String) is
OK : Boolean;
EC : Natural;
pragma Warnings (Off, OK);
pragma Warnings (Off, EC);
begin
Set_Validity_Check_Options (Options, OK, EC);
end Set_Validity_Check_Options;
-- Normal version with error checking
procedure Set_Validity_Check_Options
(Options : String;
OK : out Boolean;
Err_Col : out Natural)
is
J : Natural;
C : Character;
begin
J := Options'First;
while J <= Options'Last loop
C := Options (J);
J := J + 1;
-- Turn on validity checking (gets turned off by Vn)
Validity_Checks_On := True;
case C is
when 'c' =>
Validity_Check_Copies := True;
when 'd' =>
Validity_Check_Default := True;
when 'e' =>
Validity_Check_Components := True;
when 'f' =>
Validity_Check_Floating_Point := True;
when 'i' =>
Validity_Check_In_Params := True;
when 'm' =>
Validity_Check_In_Out_Params := True;
when 'o' =>
Validity_Check_Operands := True;
when 'p' =>
Validity_Check_Parameters := True;
when 'r' =>
Validity_Check_Returns := True;
when 's' =>
Validity_Check_Subscripts := True;
when 't' =>
Validity_Check_Tests := True;
when 'C' =>
Validity_Check_Copies := False;
when 'D' =>
Validity_Check_Default := False;
when 'E' =>
Validity_Check_Components := False;
when 'F' =>
Validity_Check_Floating_Point := False;
when 'I' =>
Validity_Check_In_Params := False;
when 'M' =>
Validity_Check_In_Out_Params := False;
when 'O' =>
Validity_Check_Operands := False;
when 'P' =>
Validity_Check_Parameters := False;
when 'R' =>
Validity_Check_Returns := False;
when 'S' =>
Validity_Check_Subscripts := False;
when 'T' =>
Validity_Check_Tests := False;
when 'a' =>
Validity_Check_Components := True;
Validity_Check_Copies := True;
Validity_Check_Default := True;
Validity_Check_Floating_Point := True;
Validity_Check_In_Out_Params := True;
Validity_Check_In_Params := True;
Validity_Check_Operands := True;
Validity_Check_Parameters := True;
Validity_Check_Returns := True;
Validity_Check_Subscripts := True;
Validity_Check_Tests := True;
when 'n' =>
Validity_Check_Components := False;
Validity_Check_Copies := False;
Validity_Check_Default := False;
Validity_Check_Floating_Point := False;
Validity_Check_In_Out_Params := False;
Validity_Check_In_Params := False;
Validity_Check_Operands := False;
Validity_Check_Parameters := False;
Validity_Check_Returns := False;
Validity_Check_Subscripts := False;
Validity_Check_Tests := False;
Validity_Checks_On := False;
when ' ' =>
null;
when others =>
if Ignore_Unrecognized_VWY_Switches then
Write_Line ("unrecognized switch -gnatV" & C & " ignored");
else
OK := False;
Err_Col := J - 1;
return;
end if;
end case;
end loop;
OK := True;
Err_Col := Options'Last + 1;
end Set_Validity_Check_Options;
end Validsw;
| 34.42915 | 78 | 0.476011 |
fb17a344eb060aceb310644a088afe0c41d24d08 | 3,602 | adb | Ada | tools/css-reports-docs.adb | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | 3 | 2017-01-03T22:18:22.000Z | 2017-01-10T07:58:17.000Z | tools/css-reports-docs.adb | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | null | null | null | tools/css-reports-docs.adb | stcarrez/ada-css | f7c337306094993186c507540701d04a4753b724 | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- css-reports -- CSS Reports
-- Copyright (C) 2017 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 Util.Log.Locations;
with Util.Strings;
with CSS.Printer;
with CSS.Analysis.Classes;
with CSS.Core.Selectors;
with CSS.Core.Sets;
with CSS.Core.Styles;
with CSS.Core.Refs;
with CSS.Core.Vectors;
with CSS.Tools.Location_Sets;
package body CSS.Reports.Docs is
procedure Print_Lines (Stream : in out CSS.Printer.File_Type'Class;
List : in CSS.Tools.Location_Sets.Set) is
Prev_Path : Ada.Strings.Unbounded.Unbounded_String;
Need_Sep : Boolean := False;
procedure Print_One (Pos : in CSS.Tools.Location_Sets.Cursor) is
Loc : constant CSS.Core.Location := CSS.Tools.Location_Sets.Element (Pos);
Path : constant String := Util.Log.Locations.File (Loc);
begin
Stream.Do_Indent;
if Path /= Ada.Strings.Unbounded.To_String (Prev_Path) then
Stream.Print (" ");
Stream.Print (Path);
Prev_Path := Ada.Strings.Unbounded.To_Unbounded_String (Path);
Stream.Print (": ");
end if;
if Need_Sep then
Stream.Print(" ");
end if;
Stream.Print (Util.Strings.Image (Util.Log.Locations.Line (Loc)));
Need_Sep := True;
end Print_One;
begin
List.Iterate (Print_One'Access);
end Print_Lines;
procedure Print (Stream : in out CSS.Printer.File_Type'Class;
Data : in CSS.Analysis.Classes.Map) is
use CSS.Analysis.Classes;
procedure Print_Rule (Pos : in CSS.Core.Sets.Cursor) is
use type CSS.Core.Refs.Ref;
use type CSS.Core.CSSRule_Access;
Ref : CSS.Core.Refs.Ref := CSS.Core.Sets.Element (Pos);
-- Rule : CSS.Core.Styles.CSSStyleRule_Access := CSS.Core.Styles.Element (Pos);
begin
if Ref.Value /= null then
Stream.Print (" ");
CSS.Printer.Print (Stream, CSS.Core.Styles.CSSStyleRule'Class (Ref.Value.all)'Access);
end if;
Stream.New_Line;
end Print_Rule;
procedure Print_One (Pos : in CSS.Analysis.Classes.Cursor) is
Info : Class_Information := CSS.Analysis.Classes.Class_Maps.Element (Pos);
begin
Stream.Print (CSS.Analysis.Classes.Class_Maps.Key (Pos));
Stream.Print (" ");
Stream.Print (Natural'Image (Natural (Info.List.Length)));
Stream.Print (" Lines: ");
Print_Lines (Stream, Info.Loc);
Stream.New_Line;
Stream.Indent := Stream.Indent + Stream.Indent_Level + 1;
Info.List.Iterate (Print_Rule'Access);
Stream.Indent := Stream.Indent - Stream.Indent_Level - 1;
Stream.New_Line;
end Print_One;
begin
Data.Iterate (Print_One'Access);
end Print;
end CSS.Reports.Docs;
| 37.520833 | 97 | 0.621321 |
4d8a60d080da44d3bbbb845002635322c6416006 | 7,364 | ads | Ada | source/nodes/program-nodes-object_renaming_declarations.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-object_renaming_declarations.ads | optikos/oasis | 9f64d46d26d964790d69f9db681c874cfb3bf96d | [
"MIT"
] | null | null | null | source/nodes/program-nodes-object_renaming_declarations.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.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Aspect_Specifications;
with Program.Elements.Object_Renaming_Declarations;
with Program.Element_Visitors;
package Program.Nodes.Object_Renaming_Declarations is
pragma Preelaborate;
type Object_Renaming_Declaration is
new Program.Nodes.Node
and Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration
and Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration_Text
with private;
function Create
(Names : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Vector_Access;
Colon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Not_Token : Program.Lexical_Elements.Lexical_Element_Access;
Null_Token : Program.Lexical_Elements.Lexical_Element_Access;
Object_Subtype : not null Program.Elements.Element_Access;
Renames_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Renamed_Object : not null Program.Elements.Expressions.Expression_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 Object_Renaming_Declaration;
type Implicit_Object_Renaming_Declaration is
new Program.Nodes.Node
and Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration
with private;
function Create
(Names : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Vector_Access;
Object_Subtype : not null Program.Elements.Element_Access;
Renamed_Object : not null Program.Elements.Expressions
.Expression_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;
Has_Not_Null : Boolean := False)
return Implicit_Object_Renaming_Declaration
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Object_Renaming_Declaration is
abstract new Program.Nodes.Node
and Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration
with record
Names : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Vector_Access;
Object_Subtype : not null Program.Elements.Element_Access;
Renamed_Object : not null Program.Elements.Expressions
.Expression_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
end record;
procedure Initialize
(Self : aliased in out Base_Object_Renaming_Declaration'Class);
overriding procedure Visit
(Self : not null access Base_Object_Renaming_Declaration;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Names
(Self : Base_Object_Renaming_Declaration)
return not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Vector_Access;
overriding function Object_Subtype
(Self : Base_Object_Renaming_Declaration)
return not null Program.Elements.Element_Access;
overriding function Renamed_Object
(Self : Base_Object_Renaming_Declaration)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Aspects
(Self : Base_Object_Renaming_Declaration)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
overriding function Is_Object_Renaming_Declaration_Element
(Self : Base_Object_Renaming_Declaration)
return Boolean;
overriding function Is_Declaration_Element
(Self : Base_Object_Renaming_Declaration)
return Boolean;
type Object_Renaming_Declaration is
new Base_Object_Renaming_Declaration
and Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration_Text
with record
Colon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Not_Token : Program.Lexical_Elements.Lexical_Element_Access;
Null_Token : Program.Lexical_Elements.Lexical_Element_Access;
Renames_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
With_Token : Program.Lexical_Elements.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Object_Renaming_Declaration_Text
(Self : aliased in out Object_Renaming_Declaration)
return Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration_Text_Access;
overriding function Colon_Token
(Self : Object_Renaming_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Not_Token
(Self : Object_Renaming_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Null_Token
(Self : Object_Renaming_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Renames_Token
(Self : Object_Renaming_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function With_Token
(Self : Object_Renaming_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Object_Renaming_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Has_Not_Null
(Self : Object_Renaming_Declaration)
return Boolean;
type Implicit_Object_Renaming_Declaration is
new Base_Object_Renaming_Declaration
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
Has_Not_Null : Boolean;
end record;
overriding function To_Object_Renaming_Declaration_Text
(Self : aliased in out Implicit_Object_Renaming_Declaration)
return Program.Elements.Object_Renaming_Declarations
.Object_Renaming_Declaration_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Object_Renaming_Declaration)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Object_Renaming_Declaration)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Object_Renaming_Declaration)
return Boolean;
overriding function Has_Not_Null
(Self : Implicit_Object_Renaming_Declaration)
return Boolean;
end Program.Nodes.Object_Renaming_Declarations;
| 37.958763 | 79 | 0.748099 |
5017c7ed8d89ad2df5f58d53b10015daf227e48f | 6,640 | adb | Ada | tools-src/gnu/gcc/gcc/ada/s-pack48.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/s-pack48.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/s-pack48.adb | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- S Y S T E M . P A C K _ 4 8 --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-1999 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. --
-- --
-- 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. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Storage_Elements;
with System.Unsigned_Types;
with Unchecked_Conversion;
package body System.Pack_48 is
subtype Ofs is System.Storage_Elements.Storage_Offset;
subtype Uns is System.Unsigned_Types.Unsigned;
subtype N07 is System.Unsigned_Types.Unsigned range 0 .. 7;
use type System.Storage_Elements.Storage_Offset;
use type System.Unsigned_Types.Unsigned;
type Cluster is record
E0, E1, E2, E3, E4, E5, E6, E7 : Bits_48;
end record;
for Cluster use record
E0 at 0 range 0 * Bits .. 0 * Bits + Bits - 1;
E1 at 0 range 1 * Bits .. 1 * Bits + Bits - 1;
E2 at 0 range 2 * Bits .. 2 * Bits + Bits - 1;
E3 at 0 range 3 * Bits .. 3 * Bits + Bits - 1;
E4 at 0 range 4 * Bits .. 4 * Bits + Bits - 1;
E5 at 0 range 5 * Bits .. 5 * Bits + Bits - 1;
E6 at 0 range 6 * Bits .. 6 * Bits + Bits - 1;
E7 at 0 range 7 * Bits .. 7 * Bits + Bits - 1;
end record;
for Cluster'Size use Bits * 8;
for Cluster'Alignment use Integer'Min (Standard'Maximum_Alignment,
1 +
1 * Boolean'Pos (Bits mod 2 = 0) +
2 * Boolean'Pos (Bits mod 4 = 0));
-- Use maximum possible alignment, given the bit field size, since this
-- will result in the most efficient code possible for the field.
type Cluster_Ref is access Cluster;
function To_Ref is new
Unchecked_Conversion (System.Address, Cluster_Ref);
-- The following declarations are for the case where the address
-- passed to GetU_48 or SetU_48 is not guaranteed to be aligned.
-- These routines are used when the packed array is itself a
-- component of a packed record, and therefore may not be aligned.
type ClusterU is new Cluster;
for ClusterU'Alignment use 1;
type ClusterU_Ref is access ClusterU;
function To_Ref is new
Unchecked_Conversion (System.Address, ClusterU_Ref);
------------
-- Get_48 --
------------
function Get_48 (Arr : System.Address; N : Natural) return Bits_48 is
C : constant Cluster_Ref := To_Ref (Arr + Bits * Ofs (Uns (N) / 8));
begin
case N07 (Uns (N) mod 8) is
when 0 => return C.E0;
when 1 => return C.E1;
when 2 => return C.E2;
when 3 => return C.E3;
when 4 => return C.E4;
when 5 => return C.E5;
when 6 => return C.E6;
when 7 => return C.E7;
end case;
end Get_48;
-------------
-- GetU_48 --
-------------
function GetU_48 (Arr : System.Address; N : Natural) return Bits_48 is
C : constant ClusterU_Ref := To_Ref (Arr + Bits * Ofs (Uns (N) / 8));
begin
case N07 (Uns (N) mod 8) is
when 0 => return C.E0;
when 1 => return C.E1;
when 2 => return C.E2;
when 3 => return C.E3;
when 4 => return C.E4;
when 5 => return C.E5;
when 6 => return C.E6;
when 7 => return C.E7;
end case;
end GetU_48;
------------
-- Set_48 --
------------
procedure Set_48 (Arr : System.Address; N : Natural; E : Bits_48) is
C : constant Cluster_Ref := To_Ref (Arr + Bits * Ofs (Uns (N) / 8));
begin
case N07 (Uns (N) mod 8) is
when 0 => C.E0 := E;
when 1 => C.E1 := E;
when 2 => C.E2 := E;
when 3 => C.E3 := E;
when 4 => C.E4 := E;
when 5 => C.E5 := E;
when 6 => C.E6 := E;
when 7 => C.E7 := E;
end case;
end Set_48;
-------------
-- SetU_48 --
-------------
procedure SetU_48 (Arr : System.Address; N : Natural; E : Bits_48) is
C : constant ClusterU_Ref := To_Ref (Arr + Bits * Ofs (Uns (N) / 8));
begin
case N07 (Uns (N) mod 8) is
when 0 => C.E0 := E;
when 1 => C.E1 := E;
when 2 => C.E2 := E;
when 3 => C.E3 := E;
when 4 => C.E4 := E;
when 5 => C.E5 := E;
when 6 => C.E6 := E;
when 7 => C.E7 := E;
end case;
end SetU_48;
end System.Pack_48;
| 38.604651 | 78 | 0.485843 |
0b54d81f87b6b6825596aa40d59cb534a6e48190 | 2,445 | ads | Ada | stm32l0/stm32l0x1/svd/stm32_svd-crc.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | stm32l0/stm32l0x1/svd/stm32_svd-crc.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | stm32l0/stm32l0x1/svd/stm32_svd-crc.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | -- This spec has been automatically generated from STM32L0x1.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.CRC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Independent data register
type IDR_Register is record
-- General-purpose 8-bit data register bits
IDR : STM32_SVD.Byte;
-- unspecified
Reserved_8_31 : STM32_SVD.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for IDR_Register use record
IDR at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-- Control register
type CR_Register is record
-- Write-only. RESET bit
RESET : STM32_SVD.Bit;
-- unspecified
Reserved_1_2 : STM32_SVD.UInt2;
-- Polynomial size
POLYSIZE : STM32_SVD.UInt2;
-- Reverse input data
REV_IN : STM32_SVD.UInt2;
-- Reverse output data
REV_OUT : STM32_SVD.Bit;
-- unspecified
Reserved_8_31 : STM32_SVD.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CR_Register use record
RESET at 0 range 0 .. 0;
Reserved_1_2 at 0 range 1 .. 2;
POLYSIZE at 0 range 3 .. 4;
REV_IN at 0 range 5 .. 6;
REV_OUT at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Cyclic redundancy check calculation unit
type CRC_Peripheral is record
-- Data register
DR : aliased STM32_SVD.UInt32;
-- Independent data register
IDR : aliased IDR_Register;
-- Control register
CR : aliased CR_Register;
-- Initial CRC value
INIT : aliased STM32_SVD.UInt32;
-- polynomial
POL : aliased STM32_SVD.UInt32;
end record
with Volatile;
for CRC_Peripheral use record
DR at 16#0# range 0 .. 31;
IDR at 16#4# range 0 .. 31;
CR at 16#8# range 0 .. 31;
INIT at 16#10# range 0 .. 31;
POL at 16#14# range 0 .. 31;
end record;
-- Cyclic redundancy check calculation unit
CRC_Periph : aliased CRC_Peripheral
with Import, Address => CRC_Base;
end STM32_SVD.CRC;
| 27.166667 | 65 | 0.593047 |
1007c946f00056f17ca3b1a84c46d7610ccb3084 | 1,849 | ads | Ada | ada/src/client/-clients.ads | mindviser/keepaSDK | 24627e3372bf2ca75d8a42de79d31046e4ae14c1 | [
"MIT"
] | 3 | 2019-09-18T20:18:24.000Z | 2021-07-26T18:08:29.000Z | ada/src/client/-clients.ads | mindviser/keepaSDK | 24627e3372bf2ca75d8a42de79d31046e4ae14c1 | [
"MIT"
] | 3 | 2020-05-15T21:27:09.000Z | 2022-02-09T01:00:00.000Z | ada/src/client/-clients.ads | magicCashew/keepaSDK | 24627e3372bf2ca75d8a42de79d31046e4ae14c1 | [
"MIT"
] | null | null | null | -- Keepa API
-- The Keepa API offers numerous endpoints. Every request requires your API access key as a parameter. You can find and change your key in the keepa portal. All requests must be issued as a HTTPS GET and accept gzip encoding. If possible, use a Keep_Alive connection. Multiple requests can be made in parallel to increase throughput.
--
-- OpenAPI spec version: 1.0.0
-- Contact: [email protected]
--
-- NOTE: This package is auto generated by the swagger code generator 4.0.0-beta2.
-- https://openapi-generator.tech
-- Do not edit the class manually.
with .Models;
with Swagger.Clients;
package .Clients is
type Client_Type is new Swagger.Clients.Client_Type with null record;
-- Returns Amazon category information from Keepa API.
-- Retrieve category objects using their node ids and (optional) their parent tree.
procedure Category
(Client : in out Client_Type;
Key : in Swagger.UString;
Domain : in Integer;
Category : in Integer;
Parents : in Integer;
Result : out .Models.CategoryType_Vectors.Vector);
-- Retrieve the product for the specified ASIN and domain.
-- Retrieves the product object for the specified ASIN and domain. If our last update is older than one hour it will be automatically refreshed before delivered to you to ensure you get near to real-time pricing data. You can request products via either their ASIN (preferred) or via UPC and EAN codes. You can not use both parameters, asin and code, in the same request. Keepa can not track Amazon Fresh and eBooks.
procedure Product
(Client : in out Client_Type;
Key : in Swagger.UString;
Domain : in Integer;
Asin : in Swagger.Nullable_UString;
Code : in Swagger.Nullable_UString;
Result : out .Models.CategoryType_Vectors.Vector);
end .Clients;
| 49.972973 | 421 | 0.728502 |
504479363556738f1345d649346d4ad84b3578cd | 3,887 | ads | Ada | src/gl/interface/gl-uniforms.ads | Roldak/OpenGLAda | 6807605b7321249d71286fa25231bdfd537d3eac | [
"MIT"
] | 79 | 2015-04-20T23:10:02.000Z | 2022-03-04T13:50:56.000Z | src/gl/interface/gl-uniforms.ads | Roldak/OpenGLAda | 6807605b7321249d71286fa25231bdfd537d3eac | [
"MIT"
] | 126 | 2015-09-10T10:41:34.000Z | 2022-03-20T11:25:40.000Z | src/gl/interface/gl-uniforms.ads | Roldak/OpenGLAda | 6807605b7321249d71286fa25231bdfd537d3eac | [
"MIT"
] | 20 | 2015-03-17T07:15:57.000Z | 2022-02-02T17:12:11.000Z | -- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types; use GL.Types;
package GL.Uniforms is
pragma Preelaborate;
type Uniform is new Int;
procedure Set_Single (Location : Uniform; Value : Single);
procedure Set_Single (Location : Uniform; V1, V2 : Single);
procedure Set_Single (Location : Uniform; Value : Singles.Vector2);
procedure Set_Single (Location : Uniform; V1, V2, V3 : Single);
procedure Set_Single (Location : Uniform; Value : Singles.Vector3);
procedure Set_Single (Location : Uniform; V1, V2, V3, V4 : Single);
procedure Set_Single (Location : Uniform; Value : Singles.Vector4);
procedure Set_Single (Location : Uniform; Value : Single_Array);
procedure Set_Single (Location : Uniform; Value : Singles.Vector2_Array);
procedure Set_Single (Location : Uniform; Value : Singles.Vector3_Array);
procedure Set_Single (Location : Uniform; Value : Singles.Vector4_Array);
procedure Set_Single (Location : Uniform; Value : Singles.Matrix2);
procedure Set_Single (Location : Uniform; Value : Singles.Matrix3);
procedure Set_Single (Location : Uniform; Value : Singles.Matrix4);
procedure Set_Single (Location : Uniform; Value : Singles.Matrix2_Array);
procedure Set_Single (Location : Uniform; Value : Singles.Matrix3_Array);
procedure Set_Single (Location : Uniform; Value : Singles.Matrix4_Array);
procedure Set_Int (Location : Uniform; Value : Int);
procedure Set_Int (Location : Uniform; V1, V2 : Int);
procedure Set_Int (Location : Uniform; Value : Ints.Vector2);
procedure Set_Int (Location : Uniform; V1, V2, V3 : Int);
procedure Set_Int (Location : Uniform; Value : Ints.Vector3);
procedure Set_Int (Location : Uniform; V1, V2, V3, V4 : Int);
procedure Set_Int (Location : Uniform; Value : Ints.Vector4);
procedure Set_Int (Location : Uniform; Value : Int_Array);
procedure Set_Int (Location : Uniform; Value : Ints.Vector2_Array);
procedure Set_Int (Location : Uniform; Value : Ints.Vector3_Array);
procedure Set_Int (Location : Uniform; Value : Ints.Vector4_Array);
procedure Set_Int (Location : Uniform; Value : Ints.Matrix2);
procedure Set_Int (Location : Uniform; Value : Ints.Matrix3);
procedure Set_Int (Location : Uniform; Value : Ints.Matrix4);
procedure Set_Int (Location : Uniform; Value : Ints.Matrix2_Array);
procedure Set_Int (Location : Uniform; Value : Ints.Matrix3_Array);
procedure Set_Int (Location : Uniform; Value : Ints.Matrix4_Array);
procedure Set_UInt (Location : Uniform; Value : UInt);
procedure Set_UInt (Location : Uniform; V1, V2 : UInt);
procedure Set_UInt (Location : Uniform; Value : UInts.Vector2);
procedure Set_UInt (Location : Uniform; V1, V2, V3 : UInt);
procedure Set_UInt (Location : Uniform; Value : UInts.Vector3);
procedure Set_UInt (Location : Uniform; V1, V2, V3, V4 : UInt);
procedure Set_UInt (Location : Uniform; Value : UInts.Vector4);
procedure Set_UInt (Location : Uniform; Value : UInt_Array);
procedure Set_UInt (Location : Uniform; Value : UInts.Vector2_Array);
procedure Set_UInt (Location : Uniform; Value : UInts.Vector3_Array);
procedure Set_UInt (Location : Uniform; Value : UInts.Vector4_Array);
procedure Set_UInt (Location : Uniform; Value : UInts.Matrix2);
procedure Set_UInt (Location : Uniform; Value : UInts.Matrix3);
procedure Set_UInt (Location : Uniform; Value : UInts.Matrix4);
procedure Set_UInt (Location : Uniform; Value : UInts.Matrix2_Array);
procedure Set_UInt (Location : Uniform; Value : UInts.Matrix3_Array);
procedure Set_UInt (Location : Uniform; Value : UInts.Matrix4_Array);
end GL.Uniforms;
| 51.826667 | 79 | 0.700283 |
50607ae697a018880765af1b6be8b02e16d0fb9c | 15,569 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-strsup.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-strsup.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-strsup.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . S T R I N G S . S U P E R B O U N D E D --
-- --
-- S p e c --
-- --
-- Copyright (C) 2003-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. --
-- --
------------------------------------------------------------------------------
-- This non generic package contains most of the implementation of the
-- generic package Ada.Strings.Bounded.Generic_Bounded_Length.
-- It defines type Super_String as a discriminated record with the maximum
-- length as the discriminant. Individual instantiations of Strings.Bounded
-- use this type with an appropriate discriminant value set.
with Ada.Strings.Maps;
package Ada.Strings.Superbounded is
pragma Preelaborate;
-- Type Bounded_String in Ada.Strings.Bounded.Generic_Bounded_Length is
-- derived from Super_String, with the constraint of the maximum length.
type Super_String (Max_Length : Positive) is record
Current_Length : Natural := 0;
Data : String (1 .. Max_Length);
-- A previous version had a default initial value for Data, which is
-- no longer necessary, because we now special-case this type in the
-- compiler, so "=" composes properly for descendants of this type.
-- Leaving it out is more efficient.
end record;
-- The subprograms defined for Super_String are similar to those
-- defined for Bounded_String, except that they have different names, so
-- that they can be renamed in Ada.Strings.Bounded.Generic_Bounded_Length.
function Super_Length (Source : Super_String) return Natural;
--------------------------------------------------------
-- Conversion, Concatenation, and Selection Functions --
--------------------------------------------------------
function To_Super_String
(Source : String;
Max_Length : Natural;
Drop : Truncation := Error) return Super_String;
-- Note the additional parameter Max_Length, which specifies the maximum
-- length setting of the resulting Super_String value.
-- The following procedures have declarations (and semantics) that are
-- exactly analogous to those declared in Ada.Strings.Bounded.
function Super_To_String (Source : Super_String) return String;
procedure Set_Super_String
(Target : out Super_String;
Source : String;
Drop : Truncation := Error);
function Super_Append
(Left : Super_String;
Right : Super_String;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : Super_String;
Right : String;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : String;
Right : Super_String;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : Super_String;
Right : Character;
Drop : Truncation := Error) return Super_String;
function Super_Append
(Left : Character;
Right : Super_String;
Drop : Truncation := Error) return Super_String;
procedure Super_Append
(Source : in out Super_String;
New_Item : Super_String;
Drop : Truncation := Error);
procedure Super_Append
(Source : in out Super_String;
New_Item : String;
Drop : Truncation := Error);
procedure Super_Append
(Source : in out Super_String;
New_Item : Character;
Drop : Truncation := Error);
function Concat
(Left : Super_String;
Right : Super_String) return Super_String;
function Concat
(Left : Super_String;
Right : String) return Super_String;
function Concat
(Left : String;
Right : Super_String) return Super_String;
function Concat
(Left : Super_String;
Right : Character) return Super_String;
function Concat
(Left : Character;
Right : Super_String) return Super_String;
function Super_Element
(Source : Super_String;
Index : Positive) return Character;
procedure Super_Replace_Element
(Source : in out Super_String;
Index : Positive;
By : Character);
function Super_Slice
(Source : Super_String;
Low : Positive;
High : Natural) return String;
function Super_Slice
(Source : Super_String;
Low : Positive;
High : Natural) return Super_String;
procedure Super_Slice
(Source : Super_String;
Target : out Super_String;
Low : Positive;
High : Natural);
function "="
(Left : Super_String;
Right : Super_String) return Boolean;
function Equal
(Left : Super_String;
Right : Super_String) return Boolean renames "=";
function Equal
(Left : Super_String;
Right : String) return Boolean;
function Equal
(Left : String;
Right : Super_String) return Boolean;
function Less
(Left : Super_String;
Right : Super_String) return Boolean;
function Less
(Left : Super_String;
Right : String) return Boolean;
function Less
(Left : String;
Right : Super_String) return Boolean;
function Less_Or_Equal
(Left : Super_String;
Right : Super_String) return Boolean;
function Less_Or_Equal
(Left : Super_String;
Right : String) return Boolean;
function Less_Or_Equal
(Left : String;
Right : Super_String) return Boolean;
function Greater
(Left : Super_String;
Right : Super_String) return Boolean;
function Greater
(Left : Super_String;
Right : String) return Boolean;
function Greater
(Left : String;
Right : Super_String) return Boolean;
function Greater_Or_Equal
(Left : Super_String;
Right : Super_String) return Boolean;
function Greater_Or_Equal
(Left : Super_String;
Right : String) return Boolean;
function Greater_Or_Equal
(Left : String;
Right : Super_String) return Boolean;
----------------------
-- Search Functions --
----------------------
function Super_Index
(Source : Super_String;
Pattern : String;
Going : Direction := Forward;
Mapping : Maps.Character_Mapping := Maps.Identity) return Natural;
function Super_Index
(Source : Super_String;
Pattern : String;
Going : Direction := Forward;
Mapping : Maps.Character_Mapping_Function) return Natural;
function Super_Index
(Source : Super_String;
Set : Maps.Character_Set;
Test : Membership := Inside;
Going : Direction := Forward) return Natural;
function Super_Index
(Source : Super_String;
Pattern : String;
From : Positive;
Going : Direction := Forward;
Mapping : Maps.Character_Mapping := Maps.Identity) return Natural;
function Super_Index
(Source : Super_String;
Pattern : String;
From : Positive;
Going : Direction := Forward;
Mapping : Maps.Character_Mapping_Function) return Natural;
function Super_Index
(Source : Super_String;
Set : Maps.Character_Set;
From : Positive;
Test : Membership := Inside;
Going : Direction := Forward) return Natural;
function Super_Index_Non_Blank
(Source : Super_String;
Going : Direction := Forward) return Natural;
function Super_Index_Non_Blank
(Source : Super_String;
From : Positive;
Going : Direction := Forward) return Natural;
function Super_Count
(Source : Super_String;
Pattern : String;
Mapping : Maps.Character_Mapping := Maps.Identity) return Natural;
function Super_Count
(Source : Super_String;
Pattern : String;
Mapping : Maps.Character_Mapping_Function) return Natural;
function Super_Count
(Source : Super_String;
Set : Maps.Character_Set) return Natural;
procedure Super_Find_Token
(Source : Super_String;
Set : Maps.Character_Set;
From : Positive;
Test : Membership;
First : out Positive;
Last : out Natural);
procedure Super_Find_Token
(Source : Super_String;
Set : Maps.Character_Set;
Test : Membership;
First : out Positive;
Last : out Natural);
------------------------------------
-- String Translation Subprograms --
------------------------------------
function Super_Translate
(Source : Super_String;
Mapping : Maps.Character_Mapping) return Super_String;
procedure Super_Translate
(Source : in out Super_String;
Mapping : Maps.Character_Mapping);
function Super_Translate
(Source : Super_String;
Mapping : Maps.Character_Mapping_Function) return Super_String;
procedure Super_Translate
(Source : in out Super_String;
Mapping : Maps.Character_Mapping_Function);
---------------------------------------
-- String Transformation Subprograms --
---------------------------------------
function Super_Replace_Slice
(Source : Super_String;
Low : Positive;
High : Natural;
By : String;
Drop : Truncation := Error) return Super_String;
procedure Super_Replace_Slice
(Source : in out Super_String;
Low : Positive;
High : Natural;
By : String;
Drop : Truncation := Error);
function Super_Insert
(Source : Super_String;
Before : Positive;
New_Item : String;
Drop : Truncation := Error) return Super_String;
procedure Super_Insert
(Source : in out Super_String;
Before : Positive;
New_Item : String;
Drop : Truncation := Error);
function Super_Overwrite
(Source : Super_String;
Position : Positive;
New_Item : String;
Drop : Truncation := Error) return Super_String;
procedure Super_Overwrite
(Source : in out Super_String;
Position : Positive;
New_Item : String;
Drop : Truncation := Error);
function Super_Delete
(Source : Super_String;
From : Positive;
Through : Natural) return Super_String;
procedure Super_Delete
(Source : in out Super_String;
From : Positive;
Through : Natural);
---------------------------------
-- String Selector Subprograms --
---------------------------------
function Super_Trim
(Source : Super_String;
Side : Trim_End) return Super_String;
procedure Super_Trim
(Source : in out Super_String;
Side : Trim_End);
function Super_Trim
(Source : Super_String;
Left : Maps.Character_Set;
Right : Maps.Character_Set) return Super_String;
procedure Super_Trim
(Source : in out Super_String;
Left : Maps.Character_Set;
Right : Maps.Character_Set);
function Super_Head
(Source : Super_String;
Count : Natural;
Pad : Character := Space;
Drop : Truncation := Error) return Super_String;
procedure Super_Head
(Source : in out Super_String;
Count : Natural;
Pad : Character := Space;
Drop : Truncation := Error);
function Super_Tail
(Source : Super_String;
Count : Natural;
Pad : Character := Space;
Drop : Truncation := Error) return Super_String;
procedure Super_Tail
(Source : in out Super_String;
Count : Natural;
Pad : Character := Space;
Drop : Truncation := Error);
------------------------------------
-- String Constructor Subprograms --
------------------------------------
-- Note: in some of the following routines, there is an extra parameter
-- Max_Length which specifies the value of the maximum length for the
-- resulting Super_String value.
function Times
(Left : Natural;
Right : Character;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Times
(Left : Natural;
Right : String;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Times
(Left : Natural;
Right : Super_String) return Super_String;
function Super_Replicate
(Count : Natural;
Item : Character;
Drop : Truncation := Error;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Super_Replicate
(Count : Natural;
Item : String;
Drop : Truncation := Error;
Max_Length : Positive) return Super_String;
-- Note the additional parameter Max_Length
function Super_Replicate
(Count : Natural;
Item : Super_String;
Drop : Truncation := Error) return Super_String;
private
-- Pragma Inline declarations
pragma Inline ("=");
pragma Inline (Less);
pragma Inline (Less_Or_Equal);
pragma Inline (Greater);
pragma Inline (Greater_Or_Equal);
pragma Inline (Concat);
pragma Inline (Super_Count);
pragma Inline (Super_Element);
pragma Inline (Super_Find_Token);
pragma Inline (Super_Index);
pragma Inline (Super_Index_Non_Blank);
pragma Inline (Super_Length);
pragma Inline (Super_Replace_Element);
pragma Inline (Super_Slice);
pragma Inline (Super_To_String);
end Ada.Strings.Superbounded;
| 31.516194 | 78 | 0.587064 |
0bc29ad4b17956a91a2b1abde2ef19d5afb71f10 | 1,693 | ads | Ada | tests/tcl-test_data-tests.ads | thindil/tashy2 | 43fcbadb33c0062b2c8d6138a8238441dec5fd80 | [
"Apache-2.0"
] | 2 | 2020-12-09T07:27:07.000Z | 2021-10-19T13:31:54.000Z | tests/tcl-test_data-tests.ads | thindil/tashy2 | 43fcbadb33c0062b2c8d6138a8238441dec5fd80 | [
"Apache-2.0"
] | null | null | null | tests/tcl-test_data-tests.ads | thindil/tashy2 | 43fcbadb33c0062b2c8d6138a8238441dec5fd80 | [
"Apache-2.0"
] | null | null | null | -- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tcl.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Test_Data
.Test with
null record;
procedure Test_Tcl_Eval_6f41cd_5b9cd5(Gnattest_T: in out Test);
-- tcl.ads:231:4:Tcl_Eval:Test_Tcl_Eval
procedure Test_Tcl_Eval_aa3c35_916b02(Gnattest_T: in out Test);
-- tcl.ads:256:4:Tcl_Eval:Test_Tcl_Eval2
procedure Test_Tcl_Eval_991647_19bef1(Gnattest_T: in out Test);
-- tcl.ads:282:4:Tcl_Eval:Test_Tcl_Eval3
procedure Test_Tcl_Eval_a72eed_9dbc2f(Gnattest_T: in out Test);
-- tcl.ads:308:4:Tcl_Eval:Test_Tcl_Eval4
procedure Test_Tcl_Eval_629595_f7c23b(Gnattest_T: in out Test);
-- tcl.ads:334:4:Tcl_Eval:Test_Tcl_Eval5
procedure Test_Tcl_Eval_File_54cee0_9ae206(Gnattest_T: in out Test);
-- tcl.ads:361:4:Tcl_Eval_File:Test_Tcl_Eval_File
procedure Test_Tcl_Get_Result_9a7ac3_b83d43(Gnattest_T: in out Test);
-- tcl.ads:412:4:Tcl_Get_Result:Test_Tcl_GetResult
procedure Test_Tcl_Get_Result_8d4605_70ce85(Gnattest_T: in out Test);
-- tcl.ads:435:4:Tcl_Get_Result:Test_Tcl_GetResult2
procedure Test_Tcl_Get_Result_040714_d18240(Gnattest_T: in out Test);
-- tcl.ads:457:4:Tcl_Get_Result:Test_Tcl_GetResult3
procedure Test_Tcl_Set_Result_2e8975_cb8f85(Gnattest_T: in out Test);
-- tcl.ads:479:4:Tcl_Set_Result:Test_Tcl_SetResult
procedure Test_Tcl_Update_7113e2_953c64(Gnattest_T: in out Test);
-- tcl.ads:504:4:Tcl_Update:Test_Tcl_Update
end Tcl.Test_Data.Tests;
-- end read only
| 35.270833 | 76 | 0.77909 |
124a4cca4735f3c23ae400d8f5bdfdb8ce04f656 | 5,420 | adb | Ada | samples/openid.adb | Letractively/ada-asf | da9f85f85666eba7e23fefea661160863b74154d | [
"Apache-2.0"
] | null | null | null | samples/openid.adb | Letractively/ada-asf | da9f85f85666eba7e23fefea661160863b74154d | [
"Apache-2.0"
] | null | null | null | samples/openid.adb | Letractively/ada-asf | da9f85f85666eba7e23fefea661160863b74154d | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- openid -- Example of OpenID 2.0 Authentication
-- Copyright (C) 2011, 2012, 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 Ada.Text_IO;
with Ada.Exceptions;
with Ada.IO_Exceptions;
with ASF.Server.Web;
with ASF.Applications;
with ASF.Applications.Main;
with ASF.Servlets.Faces;
with ASF.Servlets.Files;
with ASF.Servlets.Measures;
with ASF.Filters.Dump;
with Util.Beans.Objects;
with Util.Log.Loggers;
with Users;
with AWS.Net.SSL;
with ASF.Security.Servlets;
procedure Openid is
use ASF.Applications;
Log : Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Openid");
CONTEXT_PATH : constant String := "/openid";
CONFIG_PATH : constant String := "samples.properties";
App : aliased ASF.Applications.Main.Application;
Factory : ASF.Applications.Main.Application_Factory;
C : ASF.Applications.Config;
-- Application servlets.
Faces : aliased ASF.Servlets.Faces.Faces_Servlet;
Files : aliased ASF.Servlets.Files.File_Servlet;
Perf : aliased ASF.Servlets.Measures.Measure_Servlet;
Auth : aliased ASF.Security.Servlets.Request_Auth_Servlet;
Verify_Auth : aliased ASF.Security.Servlets.Verify_Auth_Servlet;
-- Debug filters.
Dump : aliased ASF.Filters.Dump.Dump_Filter;
-- Web application server
WS : ASF.Server.Web.AWS_Container;
begin
if not AWS.Net.SSL.Is_Supported then
Log.Error ("SSL is not supported by AWS.");
Log.Error ("SSL is required for the OpenID connector to connect to OpenID providers.");
Log.Error ("Please, rebuild AWS with SSL support.");
return;
end if;
begin
C.Load_Properties (CONFIG_PATH);
Util.Log.Loggers.Initialize (CONFIG_PATH);
exception
when Ada.IO_Exceptions.Name_Error =>
Log.Error ("Cannot read application configuration file {0}", CONFIG_PATH);
end;
App.Initialize (C, Factory);
App.Register ("samplesMsg", "samples");
App.Set_Global ("contextPath", "/openid");
-- Declare a global bean to identify this sample from within the XHTML files.
App.Set_Global ("sampleName", "openid");
App.Set_Global ("version", "0.1");
App.Set_Global ("user", Util.Beans.Objects.To_Object (Users.User'Access,
Util.Beans.Objects.STATIC));
-- Register the servlets and filters
App.Add_Servlet (Name => "faces", Server => Faces'Unchecked_Access);
App.Add_Servlet (Name => "files", Server => Files'Unchecked_Access);
App.Add_Servlet (Name => "auth", Server => Auth'Unchecked_Access);
App.Add_Servlet (Name => "verify-auth", Server => Verify_Auth'Unchecked_Access);
App.Add_Servlet (Name => "perf", Server => Perf'Unchecked_Access);
-- Register the filters
App.Add_Filter (Name => "perf", Filter => Perf'Unchecked_Access);
App.Add_Filter (Name => "dump", Filter => Dump'Unchecked_Access);
-- Define servlet mappings
App.Add_Mapping (Name => "faces", Pattern => "*.html");
App.Add_Mapping (Name => "files", Pattern => "*.css");
App.Add_Mapping (Name => "files", Pattern => "*.js");
App.Add_Mapping (Name => "files", Pattern => "*.png");
App.Add_Mapping (Name => "files", Pattern => "*.jpg");
App.Add_Mapping (Name => "verify-auth", Pattern => "/auth/verify");
App.Add_Mapping (Name => "auth", Pattern => "/auth/auth/*");
App.Add_Mapping (Name => "perf", Pattern => "/statistics.xml");
-- Install the debug filter.
App.Add_Filter_Mapping (Name => "perf", Pattern => "*.html");
App.Add_Filter_Mapping (Name => "dump", Pattern => "*.html");
App.Add_Filter_Mapping (Name => "perf", Pattern => "*.css");
App.Add_Filter_Mapping (Name => "dump", Pattern => "*.css");
App.Add_Filter_Mapping (Name => "perf", Pattern => "*.png");
App.Add_Filter_Mapping (Name => "dump", Pattern => "*.png");
App.Add_Filter_Mapping (Name => "perf", Pattern => "*.jpg");
App.Add_Filter_Mapping (Name => "dump", Pattern => "*.jpg");
App.Add_Filter_Mapping (Name => "perf", Pattern => "/auth/verify");
App.Add_Filter_Mapping (Name => "dump", Pattern => "/auth/verify");
App.Add_Filter_Mapping (Name => "perf", Pattern => "/auth/auth/*");
App.Add_Filter_Mapping (Name => "dump", Pattern => "/auth/auth/*");
WS.Register_Application (CONTEXT_PATH, App'Unchecked_Access);
Log.Info ("Connect you browser to: http://localhost:8080/openid/auth/login.html");
WS.Start;
delay 600.0;
App.Close;
exception
when E : others =>
Ada.Text_IO.Put_Line ("Exception in server: " &
Ada.Exceptions.Exception_Name (E) & ": " &
Ada.Exceptions.Exception_Message (E));
end Openid;
| 38.169014 | 93 | 0.649815 |
127b1f35c7bf34de836446089f5644ae6adfe287 | 801 | adb | Ada | Lab0/in_och_utmatningar.adb | albinjal/ada_basic | 2ee5963f18496870ee9efc2e6466917c87482ddc | [
"MIT"
] | 3 | 2020-01-27T10:04:20.000Z | 2022-02-11T23:17:00.000Z | Lab0/in_och_utmatningar.adb | albinjal/ada_basic | 2ee5963f18496870ee9efc2e6466917c87482ddc | [
"MIT"
] | null | null | null | Lab0/in_och_utmatningar.adb | albinjal/ada_basic | 2ee5963f18496870ee9efc2e6466917c87482ddc | [
"MIT"
] | null | null | null | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure In_Och_Utmatningar is
I: Integer;
F: Float;
C: Character;
S: String(1..6);
begin
Put("Skriv in en sträng med 3 tecken: ");
Get_Line(S, I);
Put(S(1..3));
New_Line(1);
Put("Skriv in ett heltal och en sträng med 5 tecken: ");
Get(I);
Put("Du skrev in talet |"); Put(I,1); Put("| och strängen |");
Get_Line(S, I);
Put(S(2..6));
Put("|.");
New_Line(1);
Put("Skriv in en sträng med 3 tecken och ett flyttal: ");
--Skip_Line;
Get_Line(S, I);
--Get(F);
Put_Line(S);
--Put("Du skrev in """); Put(F, 3, 3, 0); Put(""" "); Put(S);
end In_Och_Utmatningar;
| 22.885714 | 67 | 0.570537 |
0b59632f21a207707c136a90aaeb3f45d1e13435 | 2,694 | ads | Ada | examples/common/last_chance_handler.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | examples/common/last_chance_handler.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | examples/common/last_chance_handler.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | ------------------------------------------------------------------------------
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
-- This version is for use with the ravenscar-sfp runtime.
with System;
package Last_Chance_Handler is
procedure Last_Chance_Handler (Msg : System.Address; Line : Integer);
pragma Export (C, Last_Chance_Handler, "__gnat_last_chance_handler");
pragma No_Return (Last_Chance_Handler);
end Last_Chance_Handler;
| 61.227273 | 78 | 0.53712 |
507a7575bdeba885e2c740302033fde6ed00fca6 | 3,913 | adb | Ada | llvm-gcc-4.2-2.9/gcc/ada/s-finroo.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/s-finroo.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/s-finroo.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . F I N A L I Z A T I O N _ R O O T --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-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. --
-- --
-- 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. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
package body System.Finalization_Root is
-- It should not be possible to call any of these subprograms
------------
-- Adjust --
------------
procedure Adjust (Object : in out Root_Controlled) is
begin
raise Program_Error;
end Adjust;
--------------
-- Finalize --
--------------
procedure Finalize (Object : in out Root_Controlled) is
begin
raise Program_Error;
end Finalize;
----------------
-- Initialize --
----------------
procedure Initialize (Object : in out Root_Controlled) is
begin
raise Program_Error;
end Initialize;
----------
-- Read --
----------
-- Read and Write must be empty in order to avoid copying the
-- finalization pointers.
pragma Warnings (Off);
-- Suppress warning for out paramater Item which is not assigned
-- because it is pretty much empty.
procedure Read
(Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Item : out Root_Controlled)
is
begin
null;
end Read;
-----------
-- Write --
-----------
-- Read and Write must be empty in order to avoid copying the
-- finalization pointers.
procedure Write
(Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Item : Root_Controlled)
is
begin
null;
end Write;
end System.Finalization_Root;
| 39.13 | 78 | 0.474316 |
10060fd9ee59ff35590c5ba4a89f934c554a8f30 | 21,695 | adb | Ada | src/ui/dialogs.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 80 | 2017-04-08T23:14:07.000Z | 2022-02-10T22:30:51.000Z | src/ui/dialogs.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 89 | 2017-06-24T08:18:26.000Z | 2021-11-12T04:37:36.000Z | src/ui/dialogs.adb | thindil/steamsky | d5d7fea622f7994c91017c4cd7ba5e188153556c | [
"TCL",
"MIT"
] | 9 | 2018-04-14T16:37:25.000Z | 2020-03-21T14:33:49.000Z | -- Copyright (c) 2021 Bartek thindil Jasicki <[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 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 Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Tcl; use Tcl;
with Tcl.Ada; use Tcl.Ada;
with Tcl.Tk.Ada; use Tcl.Tk.Ada;
with Tcl.Tk.Ada.Busy;
with Tcl.Tk.Ada.Grid;
with Tcl.Tk.Ada.Place;
with Tcl.Tk.Ada.Widgets; use Tcl.Tk.Ada.Widgets;
with Tcl.Tk.Ada.Widgets.TtkButton; use Tcl.Tk.Ada.Widgets.TtkButton;
with Tcl.Tk.Ada.Widgets.TtkEntry; use Tcl.Tk.Ada.Widgets.TtkEntry;
with Tcl.Tk.Ada.Widgets.TtkEntry.TtkSpinBox;
use Tcl.Tk.Ada.Widgets.TtkEntry.TtkSpinBox;
with Tcl.Tk.Ada.Widgets.TtkLabel; use Tcl.Tk.Ada.Widgets.TtkLabel;
with Tcl.Tk.Ada.Widgets.TtkWidget; use Tcl.Tk.Ada.Widgets.TtkWidget;
with Config; use Config;
with CoreUI; use CoreUI;
with Ships; use Ships;
with Utils.UI; use Utils.UI;
package body Dialogs is
-- ****iv* Dialogs/Dialogs.TimerId
-- FUNCTION
-- Id of timer for auto close command
-- SOURCE
TimerId: Unbounded_String := Null_Unbounded_String;
-- ****
function Create_Dialog
(Name, Title: String; Title_Width: Positive := 275;
Columns: Positive := 1; Parent_Name: String := ".gameframe")
return Ttk_Frame is
New_Dialog: constant Ttk_Frame := Create(Name, "-style Dialog.TFrame");
Dialog_Header: constant Ttk_Label :=
Create
(New_Dialog & ".header",
"-text {" & Title & "} -wraplength" & Positive'Image(Title_Width) &
" -style Header.TLabel -cursor hand1");
begin
if Parent_Name = ".gameframe" then
Tcl.Tk.Ada.Busy.Busy(Game_Header);
Tcl.Tk.Ada.Busy.Busy(Main_Paned);
else
Tcl.Tk.Ada.Busy.Busy(Ttk_Frame'(Get_Widget(Parent_Name)));
end if;
if TimerId /= Null_Unbounded_String then
Cancel(To_String(TimerId));
TimerId := Null_Unbounded_String;
end if;
Tcl_Eval(Get_Context, "update");
Tcl.Tk.Ada.Grid.Grid
(Dialog_Header,
"-sticky we -padx 2 -pady {2 0}" &
(if Columns > 1 then " -columnspan" & Positive'Image(Columns)
else ""));
Bind
(Dialog_Header,
"<ButtonPress-" & (if Game_Settings.Right_Button then "3" else "1") &
">",
"{SetMousePosition " & Dialog_Header & " %X %Y}");
Bind(Dialog_Header, "<Motion>", "{MoveDialog " & New_Dialog & " %X %Y}");
Bind
(Dialog_Header,
"<ButtonRelease-" &
(if Game_Settings.Right_Button then "3" else "1") & ">",
"{SetMousePosition " & Dialog_Header & " 0 0}");
return New_Dialog;
end Create_Dialog;
procedure Add_Close_Button
(Name, Text, Command: String; ColumnSpan: Positive := 1;
Row: Natural := 0) is
Button: constant Ttk_Button :=
Create(Name, "-text {" & Text & "} -command {" & Command & "}");
begin
Tcl.Tk.Ada.Grid.Grid
(Button,
"-pady 5" &
(if ColumnSpan > 1 then " -columnspan" & Positive'Image(ColumnSpan)
else "") &
(if Row > 0 then " -row" & Positive'Image(Row) else ""));
Focus(Button);
Bind(Button, "<Tab>", "{break}");
Bind(Button, "<Escape>", "{" & Button & " invoke;break}");
end Add_Close_Button;
procedure Show_Dialog
(Dialog: Ttk_Frame; Parent_Frame: String := ".gameframe";
With_Timer: Boolean := False;
Relative_X, Relative_Y: Damage_Factor := 0.3) is
begin
Tcl.Tk.Ada.Place.Place
(Dialog,
"-in " & Parent_Frame & " -relx" & Damage_Factor'Image(Relative_X) &
" -rely" & Damage_Factor'Image(Relative_Y));
Widget_Raise(Dialog);
if With_Timer then
TimerId :=
To_Unbounded_String
(After
(1_000,
"UpdateDialog " & Dialog &
(if Parent_Frame = ".gameframe" then ""
else " " & Parent_Frame)));
end if;
end Show_Dialog;
function Close_Dialog_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData);
Dialog: Ttk_Frame := Get_Widget(CArgv.Arg(Argv, 1), Interp);
Frame: Ttk_Frame := Get_Widget(".gameframe.header", Interp);
begin
if TimerId /= Null_Unbounded_String then
Cancel(To_String(TimerId));
TimerId := Null_Unbounded_String;
end if;
if Argc = 3 then
Frame := Get_Widget(CArgv.Arg(Argv, 2), Interp);
Tcl.Tk.Ada.Busy.Forget(Frame);
if CArgv.Arg(Argv, 2) = ".memberdialog" then
Frame := Get_Widget(Frame & ".button", Interp);
end if;
Focus(Frame);
Destroy(Dialog);
return TCL_OK;
end if;
if Tcl.Tk.Ada.Busy.Status(Frame) = "1" then
Tcl.Tk.Ada.Busy.Forget(Frame);
Frame := Get_Widget(".gameframe.paned");
Tcl.Tk.Ada.Busy.Forget(Frame);
end if;
Destroy(Dialog);
return TCL_OK;
end Close_Dialog_Command;
-- ****o* Dialogs/Dialogs.Update_Dialog_Command
-- FUNCTION
-- Update countdown timer on the selected dialog. If timer reach 0, close
-- dialog
-- PARAMETERS
-- ClientData - Custom data send to the command.
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command.
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- UpdateDialog dialogname
-- Dialogname is name of the dialog to update
-- SOURCE
function Update_Dialog_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Update_Dialog_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
MessageButton: constant Ttk_Button :=
Get_Widget(CArgv.Arg(Argv, 1) & ".button", Interp);
Text: constant String := Widgets.cget(MessageButton, "-text");
Seconds: constant Natural := Natural'Value(Text(6 .. Text'Last)) - 1;
begin
if Seconds = 0 then
return Close_Dialog_Command(ClientData, Interp, Argc, Argv);
end if;
Widgets.configure
(MessageButton, "-text {Close" & Positive'Image(Seconds) & "}");
TimerId :=
To_Unbounded_String
(After
(1_000,
"UpdateDialog " & CArgv.Arg(Argv, 1) &
(if Argc = 3 then " " & CArgv.Arg(Argv, 2) else "")));
return TCL_OK;
end Update_Dialog_Command;
-- ****o* UUI/UUI.Get_String_Command
-- FUNCTION
-- Get string value from the player, like new ship or module name
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed. Unused
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- GetString caption closeaction title
-- Caption is the text showed above entry field in the dialog, variable
-- is the variable which will be set and title is the title of the dialog
-- SOURCE
function Get_String_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Get_String_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Interp, Argc);
StringDialog: constant Ttk_Frame :=
Create_Dialog(".getstring", CArgv.Arg(Argv, 3), 275, 2);
StringLabel: constant Ttk_Label :=
Create
(StringDialog & ".text",
"-text {" & CArgv.Arg(Argv, 1) & "} -wraplength 300");
StringEntry: constant Ttk_Entry :=
Create
(StringDialog & ".entry",
"-validate key -validatecommand {set value %P;if {$value == {}} {.getstring.okbutton state disabled; return 1} else {.getstring.okbutton state !disabled; return 1}}");
OkButton: constant Ttk_Button :=
Create
(StringDialog & ".okbutton",
"-text {Ok} -command {SetTextVariable " & CArgv.Arg(Argv, 2) &
"; CloseDialog " & StringDialog & "}");
CancelButton: constant Ttk_Button :=
Create
(StringDialog & ".closebutton",
"-text {Cancel} -command {CloseDialog " & StringDialog & "}");
begin
Tcl.Tk.Ada.Grid.Grid(StringLabel, "-padx 5 -pady {5 0} -columnspan 2");
Tcl.Tk.Ada.Grid.Grid(StringEntry, "-sticky we -padx 5 -columnspan 2");
Tcl.Tk.Ada.Grid.Grid(OkButton, "-row 3 -pady 5 -padx 5");
State(OkButton, "disabled");
Tcl.Tk.Ada.Grid.Grid(CancelButton, "-row 3 -column 1 -pady 5 -padx 5");
Bind(CancelButton, "<Tab>", "{focus .getstring.entry;break}");
Bind(CancelButton, "<Escape>", "{" & CancelButton & " invoke;break}");
Bind(OkButton, "<Escape>", "{" & CancelButton & " invoke;break}");
Bind(StringEntry, "<Escape>", "{" & CancelButton & " invoke;break}");
Bind(StringEntry, "<Return>", "{" & OkButton & " invoke;break}");
Focus(StringEntry);
Show_Dialog(StringDialog);
return TCL_OK;
end Get_String_Command;
-- ****iv* Dialogs/Dialogs.Mouse_X_Position
-- FUNCTION
-- The current mouse position in X coordinates
-- SOURCE
Mouse_X_Position: Natural := 0;
-- ****
-- ****if* Dialogs/Dialogs.Mouse_Y_Position
-- FUNCTION
-- The current mouse position in Y coordinates
-- SOURCE
Mouse_Y_Position: Natural := 0;
-- ****
-- ****o* Dialogs/Dialogs.Set_Mouse_Position_Command
-- FUNCTION
-- Set the mouse position
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- SetMousePosition x y
-- X and Y are current position of the mouse
-- SOURCE
function Set_Mouse_Position_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Set_Mouse_Position_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
Dialog_Header: constant Ttk_Label :=
Get_Widget(CArgv.Arg(Argv, 1), Interp);
begin
Mouse_X_Position := Natural'Value(CArgv.Arg(Argv, 2));
Mouse_Y_Position := Natural'Value(CArgv.Arg(Argv, 3));
if Mouse_X_Position > 0 and Mouse_Y_Position > 0 then
configure(Dialog_Header, "-cursor fleur");
else
configure(Dialog_Header, "-cursor hand1");
end if;
return TCL_OK;
end Set_Mouse_Position_Command;
-- ****o* Dialogs/Dialogs.Move_Dialog_Command
-- FUNCTION
-- Move the selected dialog around
-- PARAMETERS
-- ClientData - Custom data send to the command.
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command.
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- MoveDialog dialogname x y
-- Dialogname is name of the dialog to move, x and y are the current
-- position of the mouse to count where to move the dialog
-- SOURCE
function Move_Dialog_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Move_Dialog_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
Dialog: constant Ttk_Frame := Get_Widget(CArgv.Arg(Argv, 1), Interp);
New_X, New_Y: Integer;
function Get_Coordinate(Name: String) return Integer is
begin
Tcl_Eval
(Interp, "lindex [place configure " & Dialog & " -" & Name & "] 4");
if Tcl_GetResult(Interp) = "" then
return 0;
end if;
return Integer'Value(Tcl_GetResult(Interp));
end Get_Coordinate;
begin
if Mouse_X_Position = 0 and Mouse_Y_Position = 0 then
return TCL_OK;
end if;
New_X :=
Get_Coordinate("x") -
(Mouse_X_Position - Integer'Value(CArgv.Arg(Argv, 2)));
New_Y :=
Get_Coordinate("y") -
(Mouse_Y_Position - Integer'Value(CArgv.Arg(Argv, 3)));
Tcl.Tk.Ada.Place.Place_Configure
(Dialog,
"-x " & Trim(Integer'Image(New_X), Left) & " -y " &
Trim(Integer'Image(New_Y), Left));
Mouse_X_Position := Integer'Value(CArgv.Arg(Argv, 2));
Mouse_Y_Position := Integer'Value(CArgv.Arg(Argv, 3));
return TCL_OK;
end Move_Dialog_Command;
procedure Add_Commands is
begin
Add_Command("CloseDialog", Close_Dialog_Command'Access);
Add_Command("UpdateDialog", Update_Dialog_Command'Access);
Add_Command("GetString", Get_String_Command'Access);
Add_Command("SetMousePosition", Set_Mouse_Position_Command'Access);
Add_Command("MoveDialog", Move_Dialog_Command'Access);
end Add_Commands;
procedure ShowMessage
(Text: String; ParentFrame: String := ".gameframe"; Title: String) is
MessageDialog: constant Ttk_Frame :=
Create_Dialog
(Name =>
(if ParentFrame = "." then "" else ParentFrame) & ".message",
Title => Title, Parent_Name => ParentFrame);
MessageLabel: constant Ttk_Label :=
Create
(MessageDialog & ".text", "-text {" & Text & "} -wraplength 300");
begin
Tcl.Tk.Ada.Grid.Grid(MessageLabel, "-sticky we -padx 5 -pady 5");
Add_Close_Button
(MessageDialog & ".button",
"Close" & Positive'Image(Game_Settings.Auto_Close_Messages_Time),
"CloseDialog " & MessageDialog &
(if ParentFrame = ".gameframe" then "" else " " & ParentFrame));
Show_Dialog(MessageDialog, ParentFrame, True);
end ShowMessage;
procedure ShowInfo
(Text: String; ParentName: String := ".gameframe"; Title: String) is
InfoDialog: constant Ttk_Frame :=
Create_Dialog(".info", Title, 275, 1, ParentName);
InfoLabel: constant Ttk_Label :=
Create(InfoDialog & ".text", "-text {" & Text & "} -wraplength 300");
begin
Tcl.Tk.Ada.Grid.Grid(InfoLabel, "-sticky we -padx 5 -pady {5 0}");
if ParentName = ".gameframe" then
Add_Close_Button
(InfoDialog & ".button", "Close", "CloseDialog " & InfoDialog);
else
Add_Close_Button
(InfoDialog & ".button", "Close",
"CloseDialog " & InfoDialog & " " & ParentName);
end if;
Show_Dialog(InfoDialog);
end ShowInfo;
procedure ShowManipulateItem
(Title, Command, Action: String;
ItemIndex: Inventory_Container.Extended_Index;
MaxAmount, Cost: Natural := 0) is
ItemDialog: constant Ttk_Frame :=
Create_Dialog(".itemdialog", Title, 275, 2);
Button: Ttk_Button :=
Create
(ItemDialog & ".dropbutton", "-text Ok -command {" & Command & "}");
Label: Ttk_Label;
AmountBox: Ttk_SpinBox;
begin
if MaxAmount = 0 then
AmountBox :=
Create
(ItemDialog & ".amount",
"-width 10 -from 1 -to" &
Positive'Image(Player_Ship.Cargo(ItemIndex).Amount) &
" -validate key -validatecommand {CheckAmount " & ItemDialog &
".amount" & Positive'Image(ItemIndex) & " %P " & Action &
(if Cost > 0 then Positive'Image(Cost) else "") &
"} -command {ValidateAmount " & ItemDialog & ".amount" &
Positive'Image(ItemIndex) & " " & Action &
(if Cost > 0 then Positive'Image(Cost) else "") & "}");
else
AmountBox :=
Create
(ItemDialog & ".amount",
"-width 10 -from 1 -to" & Positive'Image(MaxAmount) &
" -validate key -validatecommand {CheckAmount " & ItemDialog &
".amount" & Positive'Image(ItemIndex) & " %P " & Action &
(if Cost > 0 then Positive'Image(Cost) else "") &
"} -command {ValidateAmount " & ItemDialog & ".amount" &
Positive'Image(ItemIndex) & " " & Action &
(if Cost > 0 then Positive'Image(Cost) else "") & "}");
end if;
if MaxAmount = 0 then
Label :=
Create
(ItemDialog & ".amountlbl",
"-text {Amount (max:" &
Positive'Image(Player_Ship.Cargo(ItemIndex).Amount) &
"):} -takefocus 0");
else
Label :=
Create
(ItemDialog & ".amountlbl",
"-text {Amount (max:" & Positive'Image(MaxAmount) &
"):} -takefocus 0");
end if;
Tcl.Tk.Ada.Grid.Grid(Label, "-padx {5 0}");
Set(AmountBox, "1");
Tcl.Tk.Ada.Grid.Grid(AmountBox, "-column 1 -row 1");
Bind
(AmountBox, "<Escape>",
"{" & ItemDialog & ".cancelbutton invoke;break}");
if Cost > 0 then
Label :=
Create
(ItemDialog & ".costlbl",
"-wraplength 370 -text {" &
(if Action = "buy" then "Cost:" else "Gain:") &
Natural'Image(Cost) & " " & To_String(Money_Name) & "}");
Tcl.Tk.Ada.Grid.Grid(Label, "-columnspan 2 -padx 5 -sticky w");
end if;
Label :=
Create
(ItemDialog & ".errorlbl",
"-style Headerred.TLabel -wraplength 370");
Tcl.Tk.Ada.Grid.Grid(Label, "-columnspan 2 -padx 5");
Tcl.Tk.Ada.Grid.Grid_Remove(Label);
Tcl.Tk.Ada.Grid.Grid(Button, "-column 0 -row 4 -pady {0 5}");
Bind
(Button, "<Escape>", "{" & ItemDialog & ".cancelbutton invoke;break}");
Button :=
Create
(ItemDialog & ".cancelbutton",
"-text Cancel -command {CloseDialog " & ItemDialog & "}");
Tcl.Tk.Ada.Grid.Grid(Button, "-column 1 -row 4 -pady {0 5}");
Focus(Button);
Bind(Button, "<Tab>", "{focus .itemdialog.dropbutton;break}");
Bind(Button, "<Escape>", "{" & Button & " invoke;break}");
Show_Dialog(ItemDialog);
end ShowManipulateItem;
procedure ShowQuestion
(Question, Result: String; In_Game: Boolean := True) is
QuestionDialog: constant Ttk_Frame :=
Create_Dialog
(".questiondialog",
(if Result = "showstats" then "Question" else "Confirmation"), 275,
2, (if In_Game then ".gameframe" else "."));
Label: constant Ttk_Label :=
Create
(QuestionDialog & ".question",
"-text {" & Question & "} -wraplength 370 -takefocus 0");
Button: Ttk_Button :=
Create
(QuestionDialog & ".yesbutton",
"-text Yes -command {.questiondialog.nobutton invoke; ProcessQuestion " &
Result & "}");
begin
Tcl.Tk.Ada.Grid.Grid(Label, "-columnspan 2 -padx 5 -pady {5 0}");
Tcl.Tk.Ada.Grid.Grid(Button, "-column 0 -row 2 -pady {0 5} -padx 5");
Bind
(Button, "<Escape>", "{" & QuestionDialog & ".nobutton invoke;break}");
if not In_Game then
Button :=
Create
(QuestionDialog & ".nobutton",
"-text No -command {CloseDialog " & QuestionDialog & " .}");
else
Button :=
Create
(QuestionDialog & ".nobutton",
"-text No -command {CloseDialog " & QuestionDialog & "}");
end if;
Tcl.Tk.Ada.Grid.Grid(Button, "-column 1 -row 2 -pady {0 5} -padx 5");
Focus(Button);
if In_Game then
Show_Dialog(QuestionDialog);
else
Show_Dialog(QuestionDialog, ".");
end if;
Bind(Button, "<Tab>", "{focus .questiondialog.yesbutton;break}");
Bind(Button, "<Escape>", "{" & Button & " invoke;break}");
if Result = "showstats" then
Widgets.configure
(Button,
"-command {CloseDialog " & QuestionDialog &
"; ProcessQuestion mainmenu}");
Button := Get_Widget(QuestionDialog & ".yesbutton");
Widgets.configure
(Button,
"-command {CloseDialog " & QuestionDialog &
"; ProcessQuestion showstats}");
end if;
end ShowQuestion;
end Dialogs;
| 39.302536 | 178 | 0.607605 |
39ebee61b5f0fa28595d911cd47061d5e75aa98d | 1,466 | ads | Ada | rts/gcc-9/adainclude/a-cgcaso.ads | letsbyteit/build-avr-ada-toolchain | 7c5dddbc69e6e2df8c30971417dc50d2f2b29794 | [
"MIT"
] | 7 | 2019-09-17T20:54:13.000Z | 2021-12-20T04:31:40.000Z | rts/gcc-9/adainclude/a-cgcaso.ads | letsbyteit/build-avr-ada-toolchain | 7c5dddbc69e6e2df8c30971417dc50d2f2b29794 | [
"MIT"
] | 6 | 2019-05-08T14:20:48.000Z | 2022-01-20T18:58:30.000Z | rts/gcc-9/adainclude/a-cgcaso.ads | letsbyteit/build-avr-ada-toolchain | 7c5dddbc69e6e2df8c30971417dc50d2f2b29794 | [
"MIT"
] | 8 | 2019-07-09T09:18:51.000Z | 2022-01-15T20:28:50.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.GENERIC_CONSTRAINED_ARRAY_SORT --
-- --
-- S p e c --
-- --
-- This specification is derived 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. --
-- --
------------------------------------------------------------------------------
generic
type Index_Type is (<>);
type Element_Type is private;
type Array_Type is array (Index_Type) of Element_Type;
with function "<" (Left, Right : Element_Type)
return Boolean is <>;
procedure Ada.Containers.Generic_Constrained_Array_Sort
(Container : in out Array_Type);
pragma Pure (Ada.Containers.Generic_Constrained_Array_Sort);
| 52.357143 | 78 | 0.392906 |
4d14736c9b6ad24b4d88495f90c33ca0c5579abe | 1,829 | ads | Ada | tools/scitools/conf/understand/ada/ada05/a-numeri.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/a-numeri.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | tools/scitools/conf/understand/ada/ada05/a-numeri.ads | brucegua/moocos | 575c161cfa35e220f10d042e2e5ca18773691695 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . N U M E R I C S --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
package Ada.Numerics is
pragma Pure;
Argument_Error : exception;
Pi : constant :=
3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511;
-- Scientific Toolworks: Removed declaration of Greek leter Pi
-- until the full ISO/IEC 10646:2003 Universal Multiple-Octet
-- Coded Character Set is being handled.
--["03C0"] : constant := Pi;
-- This is the greek letter Pi (for Ada 2005 AI-388). Note that it is
-- conforming to have this constant present even in Ada 95 mode, as there
-- is no way for a normal mode Ada 95 program to reference this identifier.
e : constant :=
2.71828_18284_59045_23536_02874_71352_66249_77572_47093_69996;
end Ada.Numerics;
| 49.432432 | 79 | 0.431383 |
1c69b55f8d01a2555cbe9c82a0341d437a4e1592 | 7,854 | adb | Ada | PIM/Projet/src/google_creuse.adb | Hathoute/ENSEEIHT | d42f0b0dedb269e6df3b1c006d4d45e52fc518b8 | [
"MIT"
] | 1 | 2021-06-26T21:51:11.000Z | 2021-06-26T21:51:11.000Z | PIM/Projet/src/google_creuse.adb | Hathoute/ENSEEIHT | d42f0b0dedb269e6df3b1c006d4d45e52fc518b8 | [
"MIT"
] | null | null | null | PIM/Projet/src/google_creuse.adb | Hathoute/ENSEEIHT | d42f0b0dedb269e6df3b1c006d4d45e52fc518b8 | [
"MIT"
] | null | null | null | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with System.Multiprocessors; use System.Multiprocessors;
with System.Multiprocessors.Dispatching_Domains; use System.Multiprocessors.Dispatching_Domains;
package body Google_Creuse is
procedure Initialiser(Google: out T_Google) is
begin
Vecteur_Matrice.Initialiser(Google.Matrice_Creuse, Taille);
Google.Addition := (1.0-Alpha)/T_Precision(Taille);
Google.PreVide := Alpha/T_Precision(Taille) + Google.Addition;
end Initialiser;
procedure Creer(Google: in out T_Google; Liens: in LC_Integer_Integer.T_LC) is
TH: TH_Matrice.T_TH;
LCA: TH_Matrice.T_LCA_C.T_LCA;
Vecteur: Vecteur_Matrice.T_Vecteur;
procedure Incrementer(Gauche: Integer; Droit: Integer) is
begin
if not TH_Matrice.Cle_Presente(TH, (Gauche, Droit)) then -- Verifier si il n'existe pas plusieurs liaisons identiques.
TH_Matrice.Enregistrer(TH, (Gauche, Droit), 1.0);
Vecteur_Integer.Modifier(Google.Sortants, Gauche, Vecteur_Integer.Valeur(Google.Sortants, Gauche) + 1);
end if;
end Incrementer;
procedure Calculer_Sortants is
new LC_Integer_Integer.Pour_Chaque(Incrementer);
procedure Populer(Gauche: Integer; Droit: Integer) is
begin
TH_Matrice.Enregistrer(TH, (Droit, Gauche), T_Precision(Alpha)*1.0/T_Precision(Vecteur_Integer.Valeur(Google.Sortants,Gauche)) + Google.Addition);
end Populer;
procedure Populer_Liste is
new LC_Integer_Integer.Pour_Chaque(Populer);
procedure Inserer (Indice: T_Indice; Valeur: T_Precision) is
Valeur_Matrice: T_Matrice_Valeur;
begin
Valeur_Matrice.Indice := Indice;
Valeur_Matrice.Valeur := Valeur;
Vecteur_Matrice.Ajouter(Vecteur, Valeur_Matrice);
end Inserer;
procedure Convertir_Vecteur is
new TH_Matrice.T_LCA_C.Pour_Chaque (Inserer);
function Comparer_Indice(Val1: T_Matrice_Valeur; Val2: T_Matrice_Valeur) return Boolean is
begin
return Val1.Indice.Y > Val2.Indice.Y;
end Comparer_Indice;
procedure Ordonner_Vecteur is
new Vecteur_Matrice.Trier(Comparer_Indice);
procedure Ajouter(Valeur_Matrice: T_Matrice_Valeur) is
begin
Vecteur_Matrice.Ajouter(Google.Matrice_Creuse, Valeur_Matrice);
end Ajouter;
procedure Combiner_Vecteurs is
new Vecteur_Matrice.Pour_Chaque(Ajouter);
begin
TH_Matrice.Initialiser(TH, Taille);
Vecteur_Integer.Initialiser(Google.Sortants, Taille);
for J in 0..Taille-1 loop
Vecteur_Integer.Ajouter(Google.Sortants, 0);
end loop;
Calculer_Sortants(Liens);
TH_Matrice.Vider(TH);
Populer_Liste(Liens);
Vecteur_Matrice.Initialiser(Google.Matrice_Creuse, TH_Matrice.Taille(TH));
for I in 0..Taille-1 loop
LCA := TH_Matrice.LCA(TH, (I, 0));
if TH_Matrice.T_LCA_C.Taille(LCA) /= 0 then
Vecteur_Matrice.Initialiser(Vecteur, TH_Matrice.T_LCA_C.Taille(LCA));
Convertir_Vecteur(LCA);
Ordonner_Vecteur(Vecteur);
Combiner_Vecteurs(Vecteur);
Vecteur_Matrice.Vider(Vecteur);
end if;
end loop;
end Creer;
procedure Calculer_Rangs(Google: in out T_Google; Rangs: out Vecteur_Poids.T_Vecteur) is
Poids: Vecteur_Precision.T_Vecteur;
Poids_Original: Vecteur_Precision.T_Vecteur;
Finished: array (1..4) of Boolean;
Bords: array (1..5) of Integer;
Count: Integer;
Matrice_Val: T_Matrice_Valeur;
task type TT(Id: Integer; CPU_Id: CPU_Range)
with CPU => CPU_Id
is
entry Start(Matrice: Vecteur_Matrice.T_Vecteur; Poids_Original: Vecteur_Precision.T_Vecteur);
end TT;
task body TT is
Matrice_Valeur: T_Matrice_Valeur;
pCount: Integer;
Temp: T_Precision;
begin
loop select
accept Start(Matrice: Vecteur_Matrice.T_Vecteur; Poids_Original: Vecteur_Precision.T_Vecteur) do
Finished(Id) := false;
end Start;
pCount := Bords(Id);
Matrice_Valeur := Vecteur_Matrice.Valeur(Google.Matrice_Creuse, pCount);
for I in Taille*(Id-1)/4..Taille*Id/4-1 loop
Temp := 0.0;
for J in 0..Taille-1 loop
if Matrice_Valeur.Indice.X = I and Matrice_Valeur.Indice.Y = J then
Temp := Temp + Vecteur_Precision.Valeur(Poids_Original, J)*Matrice_Valeur.Valeur;
if Bords(Id+1) = pCount+1 then
Matrice_Valeur.Indice.X := Taille;
else
pCount := pCount + 1;
Matrice_Valeur := Vecteur_Matrice.Valeur(Google.Matrice_Creuse, pCount);
end if;
else
Temp := Temp + Vecteur_Precision.Valeur(Poids_Original, J)*Google.Addition;
null;
end if;
end loop;
Vecteur_Precision.Modifier(Poids, I, Temp);
end loop;
Finished(Id) := true;
or
terminate;
end select; end loop;
end TT;
Task1: TT(1, Not_A_Specific_CPU);
Task2: TT(2, Not_A_Specific_CPU);
Task3: TT(3, Not_A_Specific_CPU);
Task4: TT(4, Not_A_Specific_CPU);
begin
Vecteur_Precision.Initialiser(Poids, Taille);
for I in 0..Taille-1 loop
Vecteur_Precision.Ajouter(Poids, 1.0/T_Precision(Taille));
end loop;
Bords(1) := 0;
Count := 1;
for I in 0..Vecteur_Matrice.Taille(Google.Matrice_Creuse)-1 loop
Matrice_Val := Vecteur_Matrice.Valeur(Google.Matrice_Creuse, I);
while Matrice_Val.Indice.X >= Taille*Count/4 loop
Count := Count + 1;
Bords(Count) := I;
end loop;
end loop;
Count := Count + 1;
Bords(Count) := Vecteur_Matrice.Taille(Google.Matrice_Creuse);
for tmp in 1..MaxIterations loop
Count := 1;
Vecteur_Precision.Copier(Poids_Original, Poids);
for I in 0..Taille-1 loop
if Vecteur_Integer.Valeur(Google.Sortants, I) = 0 then
Vecteur_Precision.Modifier(Poids_Original, I, Vecteur_Precision.Valeur(Poids_Original, I)*Google.PreVide/Google.Addition);
end if;
end loop;
Task1.Start(Google.Matrice_Creuse, Poids_Original);
Task2.Start(Google.Matrice_Creuse, Poids_Original);
Task3.Start(Google.Matrice_Creuse, Poids_Original);
Task4.Start(Google.Matrice_Creuse, Poids_Original);
while not Finished(1) or else not Finished(2) or else not Finished(3) or else not Finished(4) loop
null; -- Attendre le resultat...
end loop;
Vecteur_Precision.Vider(Poids_Original);
end loop;
Put_Line("Fin des itérations");
Vecteur_Poids.Initialiser(Rangs, Taille);
for I in 0..Taille-1 loop
declare
Rank: T_Rank := (Rang => I, Poid => T_Digits(Vecteur_Precision.Valeur(Poids, I)));
begin
Vecteur_Poids.Ajouter(Rangs, Rank);
end;
end loop;
Vecteur_Precision.Vider(Poids);
end Calculer_Rangs;
end Google_Creuse;
| 38.5 | 158 | 0.598039 |
0ba209e617183afb42f8c3dac7c40e11ac288e8a | 4,711 | ads | Ada | 3-mid/impact/source/3d/collision/shapes/impact-d3-triangle_info_map.ads | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 20 | 2015-11-04T09:23:59.000Z | 2022-01-14T10:21:42.000Z | 3-mid/impact/source/3d/collision/shapes/impact-d3-triangle_info_map.ads | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 2 | 2015-11-04T17:05:56.000Z | 2015-12-08T03:16:13.000Z | 3-mid/impact/source/3d/collision/shapes/impact-d3-triangle_info_map.ads | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 1 | 2015-12-07T12:53:52.000Z | 2015-12-07T12:53:52.000Z | with ada.Containers.Hashed_Maps;
with Ada.Unchecked_Conversion;
-- #include "LinearMath/btHashMap.h"
-- #include "LinearMath/btSerializer.h"
package impact.d3.triangle_info_Map
--
-- The impact.d3.triangle_info_Map stores edge angle information for some triangles.
-- You can compute this information yourself or using btGenerateInternalEdgeInfo.
--
is
-- The btTriangleInfo structure stores information to adjust collision normals to avoid collisions against internal edges
--
type btTriangleInfo is
record
m_flags : Integer := 0;
m_edgeV0V1Angle : math.Real := 2.0 * math.Pi;
m_edgeV1V2Angle : math.Real := 2.0 * math.Pi;
m_edgeV2V0Angle : math.Real := 2.0 * math.Pi;
end record;
function Hash is new ada.Unchecked_Conversion (Integer, ada.Containers.Hash_Type);
package btInternalTriangleInfoMaps is new ada.Containers.Hashed_Maps (Integer, btTriangleInfo, Hash, "=");
subtype btInternalTriangleInfoMap is btInternalTriangleInfoMaps.Map;
-- typedef btHashMap<btHashInt,btTriangleInfo> btInternalTriangleInfoMap;
type Item is new btInternalTriangleInfoMap with private;
-- for btTriangleInfo m_flags
--
TRI_INFO_V0V1_CONVEX : constant := 1;
TRI_INFO_V1V2_CONVEX : constant := 2;
TRI_INFO_V2V0_CONVEX : constant := 4;
TRI_INFO_V0V1_SWAP_NORMALB : constant := 8;
TRI_INFO_V1V2_SWAP_NORMALB : constant := 16;
TRI_INFO_V2V0_SWAP_NORMALB : constant := 32;
private
type Item is new btInternalTriangleInfoMap with
record
null;
end record;
end impact.d3.triangle_info_Map;
--
-- struct impact.d3.triangle_info_Map : public btInternalTriangleInfoMap
-- {
-- impact.d3.Scalar m_convexEpsilon;///used to determine if an edge or contact normal is convex, using the dot product
-- impact.d3.Scalar m_planarEpsilon; ///used to determine if a triangle edge is planar with zero angle
-- impact.d3.Scalar m_equalVertexThreshold; ///used to compute connectivity: if the distance between two vertices is smaller than m_equalVertexThreshold, they are considered to be 'shared'
-- impact.d3.Scalar m_edgeDistanceThreshold; ///used to determine edge contacts: if the closest distance between a contact point and an edge is smaller than this distance threshold it is considered to "hit the edge"
-- impact.d3.Scalar m_maxEdgeAngleThreshold; //ignore edges that connect triangles at an angle larger than this m_maxEdgeAngleThreshold
-- impact.d3.Scalar m_zeroAreaThreshold; ///used to determine if a triangle is degenerate (length squared of cross product of 2 triangle edges < threshold)
--
--
-- impact.d3.triangle_info_Map()
-- {
-- m_convexEpsilon = 0.00f;
-- m_planarEpsilon = 0.0001f;
-- m_equalVertexThreshold = impact.d3.Scalar(0.0001)*impact.d3.Scalar(0.0001);
-- m_edgeDistanceThreshold = impact.d3.Scalar(0.1);
-- m_zeroAreaThreshold = impact.d3.Scalar(0.0001)*impact.d3.Scalar(0.0001);
-- m_maxEdgeAngleThreshold = SIMD_2_PI;
-- }
-- virtual ~impact.d3.triangle_info_Map() {}
--
-- virtual int calculateSerializeBufferSize() const;
--
-- ///fills the dataBuffer and returns the struct name (and 0 on failure)
-- virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const;
--
-- void deSerialize(struct impact.d3.triangle_info_MapData& data);
--
-- };
-- struct btTriangleInfoData
-- {
-- int m_flags;
-- float m_edgeV0V1Angle;
-- float m_edgeV1V2Angle;
-- float m_edgeV2V0Angle;
-- };
-- struct impact.d3.triangle_info_MapData
-- {
-- int *m_hashTablePtr;
-- int *m_nextPtr;
-- btTriangleInfoData *m_valueArrayPtr;
-- int *m_keyArrayPtr;
--
-- float m_convexEpsilon;
-- float m_planarEpsilon;
-- float m_equalVertexThreshold;
-- float m_edgeDistanceThreshold;
-- float m_zeroAreaThreshold;
--
-- int m_nextSize;
-- int m_hashTableSize;
-- int m_numValues;
-- int m_numKeys;
-- char m_padding[4];
-- };
| 33.411348 | 231 | 0.610486 |
fb122a76e67f6b35ac0d2c2dd0b8d195f90f0708 | 4,666 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52103c.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/c5/c52103c.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52103c.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C52103C.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.
--*
-- CHECK THAT LENGTHS MUST MATCH IN ARRAY AND SLICE ASSIGNMENTS.
-- MORE SPECIFICALLY, TEST THAT ARRAY ASSIGNMENTS WITH MATCHING
-- LENGTHS DO NOT CAUSE CONSTRAINT_ERROR TO BE RAISED AND
-- ARE PERFORMED CORRECTLY.
-- (OVERLAPS BETWEEN THE OPERANDS OF THE ASSIGNMENT STATEMENT
-- ARE TREATED ELSEWHERE.)
-- THIS IS THE THIRD FILE IN
-- DIVISION A : STATICALLY-DETERMINABLE NON-NULL LENGTHS.
-- RM 07/20/81
-- SPS 3/22/83
WITH REPORT;
PROCEDURE C52103C IS
USE REPORT ;
BEGIN
TEST( "C52103C" , "CHECK THAT IN ARRAY ASSIGNMENTS AND IN SLICE" &
" ASSIGNMENTS THE LENGTHS MUST MATCH" );
-- ( EACH DIVISION COMPRISES 3 FILES,
-- COVERING RESPECTIVELY THE FIRST
-- 3 , NEXT 2 , AND LAST 3 OF THE 8
-- SELECTIONS FOR THE DIVISION.)
-------------------------------------------------------------------
-- (7) UNSLICED OBJECTS OF THE PREDEFINED TYPE 'STRING' (BY
-- THEMSELVES).
DECLARE
ARR71 : STRING( 1..5 ) := "ABCDE" ;
ARR72 : STRING( 5..9 ) := "FGHIJ" ;
BEGIN
-- STRING ASSIGNMENT:
ARR72 := ARR71 ;
-- CHECKING THE VALUES AFTER THE STRING ASSIGNMENT:
IF ARR72 /= "ABCDE"
THEN
FAILED( "STRING ASSIGNMENT NOT CORRECT (7)" );
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED( "EXCEPTION RAISED - SUBTEST 7" );
END ;
-------------------------------------------------------------------
-- (8) SLICED OBJECTS OF THE PREDEFINED TYPE 'STRING' , WITH
-- STRING LITERALS.
--
DECLARE
ARR82 : STRING( 5..9 ) ;
BEGIN
-- INITIALIZATION OF UNUSED COMPONENT OF LHS ARRAY:
ARR82( 5..5 ) := "Q" ;
-- STRING LITERAL ASSIGNMENT:
ARR82( 5..9 )( 6..9 ) := "BCDE" ;
-- CHECKING THE VALUES AFTER THE SLICE ASSIGNMENT:
IF ARR82 /= "QBCDE" OR
ARR82( 5..9 ) /= "QBCDE"
THEN
FAILED( "SLICE ASSIGNMENT NOT CORRECT (8)" );
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED( "EXCEPTION RAISED - SUBTEST 8" );
END ;
-------------------------------------------------------------------
-- (9) SLICED OBJECTS OF THE PREDEFINED TYPE 'STRING' (BY
-- THEMSELVES).
--
DECLARE
SUBTYPE TA92 IS STRING( 5..9 ) ;
ARR91 : STRING( 1..5 ) := "ABCDE" ;
ARR92 : TA92 ;
BEGIN
-- INITIALIZATION OF UNUSED COMPONENT OF LHS ARRAY:
ARR92( 5..5 ) := "Q" ;
-- STRING SLICE ASSIGNMENT:
ARR92( 5..9 )( 6..9 ) := ARR91( 1..5 )(2..5 )( 2..5 ) ;
-- CHECKING THE VALUES AFTER THE SLICE ASSIGNMENT:
IF ARR92 /= "QBCDE" OR
ARR92( 5..9 ) /= "QBCDE"
THEN
FAILED( "SLICE ASSIGNMENT NOT CORRECT (9)" );
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED( "EXCEPTION RAISED - SUBTEST 9" );
END ;
-------------------------------------------------------------------
RESULT ;
END C52103C;
| 26.067039 | 79 | 0.506858 |
0be2cd20d79bdf07eb34ce6a04df8204095a6988 | 10,127 | adb | Ada | tests/tk-image-bitmap-bitmap_options_test_data-bitmap_options_tests.adb | thindil/tashy2 | 43fcbadb33c0062b2c8d6138a8238441dec5fd80 | [
"Apache-2.0"
] | 2 | 2020-12-09T07:27:07.000Z | 2021-10-19T13:31:54.000Z | tests/tk-image-bitmap-bitmap_options_test_data-bitmap_options_tests.adb | thindil/tashy2 | 43fcbadb33c0062b2c8d6138a8238441dec5fd80 | [
"Apache-2.0"
] | null | null | null | tests/tk-image-bitmap-bitmap_options_test_data-bitmap_options_tests.adb | thindil/tashy2 | 43fcbadb33c0062b2c8d6138a8238441dec5fd80 | [
"Apache-2.0"
] | null | null | null | -- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the test environment should be
-- placed into Tk.Image.Bitmap.Bitmap_Options_Test_Data.
with AUnit.Assertions; use AUnit.Assertions;
with System.Assertions;
-- begin read only
-- id:2.2/00/
--
-- This section can be used to add with clauses if necessary.
--
-- end read only
with Ada.Environment_Variables; use Ada.Environment_Variables;
-- begin read only
-- end read only
package body Tk.Image.Bitmap.Bitmap_Options_Test_Data.Bitmap_Options_Tests is
-- begin read only
-- id:2.2/01/
--
-- This section can be used to add global variables and other elements.
--
-- end read only
-- begin read only
-- end read only
-- begin read only
procedure Wrap_Test_Create_22037c_81543e
(Bitmap_Image: Tk_Image; Options: Bitmap_Options;
Interpreter: Tcl_Interpreter := Get_Interpreter) is
begin
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(tk-image-bitmap.ads:0):Tests_Create_Bitmap test requirement violated");
end;
GNATtest_Generated.GNATtest_Standard.Tk.Image.Bitmap.Create
(Bitmap_Image, Options, Interpreter);
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(tk-image-bitmap.ads:0:):Tests_Create_Bitmap test commitment violated");
end;
end Wrap_Test_Create_22037c_81543e;
-- end read only
-- begin read only
procedure Test_1_Create_tests_create_bitmap
(Gnattest_T: in out Test_Bitmap_Options);
procedure Test_Create_22037c_81543e
(Gnattest_T: in out Test_Bitmap_Options) renames
Test_1_Create_tests_create_bitmap;
-- id:2.2/22037c1fbc7ae682/Create/1/0/tests_create_bitmap/
procedure Test_1_Create_tests_create_bitmap
(Gnattest_T: in out Test_Bitmap_Options) is
procedure Create
(Bitmap_Image: Tk_Image; Options: Bitmap_Options;
Interpreter: Tcl_Interpreter := Get_Interpreter) renames
Wrap_Test_Create_22037c_81543e;
-- end read only
pragma Unreferenced(Gnattest_T);
begin
if Value("DISPLAY", "")'Length = 0 then
Assert(True, "No display, can't test");
return;
end if;
Create
("mybitmap",
Bitmap_Options'
(Data =>
To_Tcl_String
("#define test_width 16\n#define test_height 16\nstatic unsigned char test_bits[] = {\n 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};",
True),
others => <>));
Assert
(Image_Type("mybitmap") = "bitmap",
"Failed to create a bitmap image with selected name from file.");
-- begin read only
end Test_1_Create_tests_create_bitmap;
-- end read only
-- begin read only
function Wrap_Test_Create_fa334a_79ca4a
(Options: Bitmap_Options; Interpreter: Tcl_Interpreter := Get_Interpreter)
return Tk_Image is
begin
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(tk-image-bitmap.ads:0):Tests_Create2_Bitmap test requirement violated");
end;
declare
Test_Create_fa334a_79ca4a_Result: constant Tk_Image :=
GNATtest_Generated.GNATtest_Standard.Tk.Image.Bitmap.Create
(Options, Interpreter);
begin
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(tk-image-bitmap.ads:0:):Tests_Create2_Bitmap test commitment violated");
end;
return Test_Create_fa334a_79ca4a_Result;
end;
end Wrap_Test_Create_fa334a_79ca4a;
-- end read only
-- begin read only
procedure Test_2_Create_tests_create2_bitmap
(Gnattest_T: in out Test_Bitmap_Options);
procedure Test_Create_fa334a_79ca4a
(Gnattest_T: in out Test_Bitmap_Options) renames
Test_2_Create_tests_create2_bitmap;
-- id:2.2/fa334a87cdcf0776/Create/0/0/tests_create2_bitmap/
procedure Test_2_Create_tests_create2_bitmap
(Gnattest_T: in out Test_Bitmap_Options) is
function Create
(Options: Bitmap_Options;
Interpreter: Tcl_Interpreter := Get_Interpreter)
return Tk_Image renames
Wrap_Test_Create_fa334a_79ca4a;
-- end read only
pragma Unreferenced(Gnattest_T);
begin
if Value("DISPLAY", "")'Length = 0 then
Assert(True, "No display, can't test");
return;
end if;
declare
Bitmap_Image: constant Tk_Image := Create(Default_Bitmap_Options);
begin
Assert
(Bitmap_Image'Length > 0,
"Failed to create a bitmap image with random name.");
Delete(Bitmap_Image);
end;
-- begin read only
end Test_2_Create_tests_create2_bitmap;
-- end read only
-- begin read only
procedure Wrap_Test_Configure_6e2ac0_d54688
(Bitmap_Image: Tk_Image; Options: Bitmap_Options;
Interpreter: Tcl_Interpreter := Get_Interpreter) is
begin
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(tk-image-bitmap.ads:0):Tests_Configure_Bitmap test requirement violated");
end;
GNATtest_Generated.GNATtest_Standard.Tk.Image.Bitmap.Configure
(Bitmap_Image, Options, Interpreter);
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(tk-image-bitmap.ads:0:):Tests_Configure_Bitmap test commitment violated");
end;
end Wrap_Test_Configure_6e2ac0_d54688;
-- end read only
-- begin read only
procedure Test_Configure_tests_configure_bitmap
(Gnattest_T: in out Test_Bitmap_Options);
procedure Test_Configure_6e2ac0_d54688
(Gnattest_T: in out Test_Bitmap_Options) renames
Test_Configure_tests_configure_bitmap;
-- id:2.2/6e2ac08c4cd9ce38/Configure/1/0/tests_configure_bitmap/
procedure Test_Configure_tests_configure_bitmap
(Gnattest_T: in out Test_Bitmap_Options) is
procedure Configure
(Bitmap_Image: Tk_Image; Options: Bitmap_Options;
Interpreter: Tcl_Interpreter := Get_Interpreter) renames
Wrap_Test_Configure_6e2ac0_d54688;
-- end read only
pragma Unreferenced(Gnattest_T);
begin
if Value("DISPLAY", "")'Length = 0 then
Assert(True, "No display, can't test");
return;
end if;
Configure
("mybitmap",
Bitmap_Options'(Background => To_Tcl_String("black"), others => <>));
Assert
(Get_Option("mybitmap", "background") = "black",
"Failed to set options for bitmap image.");
-- begin read only
end Test_Configure_tests_configure_bitmap;
-- end read only
-- begin read only
function Wrap_Test_Get_Options_5c7a9c_cd346b
(Bitmap_Image: Tk_Image; Interpreter: Tcl_Interpreter := Get_Interpreter)
return Bitmap_Options is
begin
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"req_sloc(tk-image-bitmap.ads:0):Tests_Get_Options_Bitmap test requirement violated");
end;
declare
Test_Get_Options_5c7a9c_cd346b_Result: constant Bitmap_Options :=
GNATtest_Generated.GNATtest_Standard.Tk.Image.Bitmap.Get_Options
(Bitmap_Image, Interpreter);
begin
begin
pragma Assert(True);
null;
exception
when System.Assertions.Assert_Failure =>
AUnit.Assertions.Assert
(False,
"ens_sloc(tk-image-bitmap.ads:0:):Tests_Get_Options_Bitmap test commitment violated");
end;
return Test_Get_Options_5c7a9c_cd346b_Result;
end;
end Wrap_Test_Get_Options_5c7a9c_cd346b;
-- end read only
-- begin read only
procedure Test_Get_Options_tests_get_options_bitmap
(Gnattest_T: in out Test_Bitmap_Options);
procedure Test_Get_Options_5c7a9c_cd346b
(Gnattest_T: in out Test_Bitmap_Options) renames
Test_Get_Options_tests_get_options_bitmap;
-- id:2.2/5c7a9c2ff87b2567/Get_Options/1/0/tests_get_options_bitmap/
procedure Test_Get_Options_tests_get_options_bitmap
(Gnattest_T: in out Test_Bitmap_Options) is
function Get_Options
(Bitmap_Image: Tk_Image;
Interpreter: Tcl_Interpreter := Get_Interpreter)
return Bitmap_Options renames
Wrap_Test_Get_Options_5c7a9c_cd346b;
-- end read only
pragma Unreferenced(Gnattest_T);
begin
if Value("DISPLAY", "")'Length = 0 then
Assert(True, "No display, can't test");
return;
end if;
Assert
(Get_Options("mybitmap").Background = "black",
"Failed to get options for bitmap image.");
-- begin read only
end Test_Get_Options_tests_get_options_bitmap;
-- end read only
-- begin read only
-- id:2.2/02/
--
-- This section can be used to add elaboration code for the global state.
--
begin
-- end read only
null;
-- begin read only
-- end read only
end Tk.Image.Bitmap.Bitmap_Options_Test_Data.Bitmap_Options_Tests;
| 32.87987 | 308 | 0.668609 |
50854c182f4c67a3c9da29b33d3ee9d8b769ac58 | 1,325 | ads | Ada | tutorial/src/window1_callbacks.ads | Blady-Com/Gate3 | ceb4e8dc1c25b5126b2d8c3331ef4c3fc5678a4a | [
"MIT"
] | 1 | 2021-10-03T15:41:28.000Z | 2021-10-03T15:41:28.000Z | tutorial/src/window1_callbacks.ads | Blady-Com/Gate3 | ceb4e8dc1c25b5126b2d8c3331ef4c3fc5678a4a | [
"MIT"
] | null | null | null | tutorial/src/window1_callbacks.ads | Blady-Com/Gate3 | ceb4e8dc1c25b5126b2d8c3331ef4c3fc5678a4a | [
"MIT"
] | null | null | null | -----------------------------------------------------------------------------
-- Legal licensing note : !!! Edit the file gate3_license.txt !!!
--
-- Copyright (c) F. J. FABIEN - 2013
-- Berry
-- FRANCE
-- Send bug reports or feedback to : [email protected]
--
-- 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.
-- NB: this is the MIT License, as found 12-Sep-2007 on the site
-- http://www.opensource.org/licenses/mit-license.php
-----------------------------------------------------------------------------
with Gtkada.Builder; use Gtkada.Builder;
package Window1_Callbacks is
function On_Window1_Delete_Event (Builder : access Gtkada_Builder_Record'Class)
return Boolean;
procedure Gtk_Main_Quit (Builder : access Gtkada_Builder_Record'Class);
procedure On_Button2_Clicked (Builder : access Gtkada_Builder_Record'Class);
end Window1_Callbacks;
| 41.40625 | 83 | 0.661887 |
180be2a462ae69a33e19edbe7957eb4353f50595 | 47,509 | ads | Ada | software/hal/hpl/STM32/svd/stm32f427x/stm32_svd-ethernet.ads | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 12 | 2017-06-08T14:19:57.000Z | 2022-03-09T02:48:59.000Z | software/hal/hpl/STM32/svd/stm32f427x/stm32_svd-ethernet.ads | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 6 | 2017-06-08T13:13:50.000Z | 2020-05-15T09:32:43.000Z | software/hal/hpl/STM32/svd/stm32f427x/stm32_svd-ethernet.ads | TUM-EI-RCS/StratoX | 5fdd04e01a25efef6052376f43ce85b5bc973392 | [
"BSD-3-Clause"
] | 3 | 2017-06-30T14:05:06.000Z | 2022-02-17T12:20:45.000Z | -- This spec has been automatically generated from STM32F427x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
with HAL;
package STM32_SVD.Ethernet is
pragma Preelaborate;
---------------
-- Registers --
---------------
--------------------
-- MACCR_Register --
--------------------
subtype MACCR_BL_Field is HAL.UInt2;
subtype MACCR_IFG_Field is HAL.UInt3;
-- Ethernet MAC configuration register
type MACCR_Register is record
-- unspecified
Reserved_0_1 : HAL.UInt2 := 16#0#;
-- RE
RE : Boolean := False;
-- TE
TE : Boolean := False;
-- DC
DC : Boolean := False;
-- BL
BL : MACCR_BL_Field := 16#0#;
-- APCS
APCS : Boolean := False;
-- unspecified
Reserved_8_8 : HAL.Bit := 16#0#;
-- RD
RD : Boolean := False;
-- IPCO
IPCO : Boolean := False;
-- DM
DM : Boolean := False;
-- LM
LM : Boolean := False;
-- ROD
ROD : Boolean := False;
-- FES
FES : Boolean := False;
-- unspecified
Reserved_15_15 : HAL.Bit := 16#1#;
-- CSD
CSD : Boolean := False;
-- IFG
IFG : MACCR_IFG_Field := 16#0#;
-- unspecified
Reserved_20_21 : HAL.UInt2 := 16#0#;
-- JD
JD : Boolean := False;
-- WD
WD : Boolean := False;
-- unspecified
Reserved_24_24 : HAL.Bit := 16#0#;
-- CSTF
CSTF : Boolean := False;
-- unspecified
Reserved_26_31 : HAL.UInt6 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACCR_Register use record
Reserved_0_1 at 0 range 0 .. 1;
RE at 0 range 2 .. 2;
TE at 0 range 3 .. 3;
DC at 0 range 4 .. 4;
BL at 0 range 5 .. 6;
APCS at 0 range 7 .. 7;
Reserved_8_8 at 0 range 8 .. 8;
RD at 0 range 9 .. 9;
IPCO at 0 range 10 .. 10;
DM at 0 range 11 .. 11;
LM at 0 range 12 .. 12;
ROD at 0 range 13 .. 13;
FES at 0 range 14 .. 14;
Reserved_15_15 at 0 range 15 .. 15;
CSD at 0 range 16 .. 16;
IFG at 0 range 17 .. 19;
Reserved_20_21 at 0 range 20 .. 21;
JD at 0 range 22 .. 22;
WD at 0 range 23 .. 23;
Reserved_24_24 at 0 range 24 .. 24;
CSTF at 0 range 25 .. 25;
Reserved_26_31 at 0 range 26 .. 31;
end record;
---------------------
-- MACFFR_Register --
---------------------
-- Ethernet MAC frame filter register
type MACFFR_Register is record
-- no description available
PM : Boolean := False;
-- no description available
HU : Boolean := False;
-- no description available
HM : Boolean := False;
-- no description available
DAIF : Boolean := False;
-- no description available
RAM : Boolean := False;
-- no description available
BFD : Boolean := False;
-- no description available
PCF : Boolean := False;
-- no description available
SAIF : Boolean := False;
-- no description available
SAF : Boolean := False;
-- no description available
HPF : Boolean := False;
-- unspecified
Reserved_10_30 : HAL.UInt21 := 16#0#;
-- no description available
RA : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACFFR_Register use record
PM at 0 range 0 .. 0;
HU at 0 range 1 .. 1;
HM at 0 range 2 .. 2;
DAIF at 0 range 3 .. 3;
RAM at 0 range 4 .. 4;
BFD at 0 range 5 .. 5;
PCF at 0 range 6 .. 6;
SAIF at 0 range 7 .. 7;
SAF at 0 range 8 .. 8;
HPF at 0 range 9 .. 9;
Reserved_10_30 at 0 range 10 .. 30;
RA at 0 range 31 .. 31;
end record;
-----------------------
-- MACMIIAR_Register --
-----------------------
subtype MACMIIAR_CR_Field is HAL.UInt3;
subtype MACMIIAR_MR_Field is HAL.UInt5;
subtype MACMIIAR_PA_Field is HAL.UInt5;
-- Ethernet MAC MII address register
type MACMIIAR_Register is record
-- no description available
MB : Boolean := False;
-- no description available
MW : Boolean := False;
-- no description available
CR : MACMIIAR_CR_Field := 16#0#;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- no description available
MR : MACMIIAR_MR_Field := 16#0#;
-- no description available
PA : MACMIIAR_PA_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACMIIAR_Register use record
MB at 0 range 0 .. 0;
MW at 0 range 1 .. 1;
CR at 0 range 2 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
MR at 0 range 6 .. 10;
PA at 0 range 11 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-----------------------
-- MACMIIDR_Register --
-----------------------
subtype MACMIIDR_TD_Field is HAL.Short;
-- Ethernet MAC MII data register
type MACMIIDR_Register is record
-- no description available
TD : MACMIIDR_TD_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACMIIDR_Register use record
TD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
---------------------
-- MACFCR_Register --
---------------------
subtype MACFCR_PLT_Field is HAL.UInt2;
subtype MACFCR_PT_Field is HAL.Short;
-- Ethernet MAC flow control register
type MACFCR_Register is record
-- no description available
FCB : Boolean := False;
-- no description available
TFCE : Boolean := False;
-- no description available
RFCE : Boolean := False;
-- no description available
UPFD : Boolean := False;
-- no description available
PLT : MACFCR_PLT_Field := 16#0#;
-- unspecified
Reserved_6_6 : HAL.Bit := 16#0#;
-- no description available
ZQPD : Boolean := False;
-- unspecified
Reserved_8_15 : HAL.Byte := 16#0#;
-- no description available
PT : MACFCR_PT_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACFCR_Register use record
FCB at 0 range 0 .. 0;
TFCE at 0 range 1 .. 1;
RFCE at 0 range 2 .. 2;
UPFD at 0 range 3 .. 3;
PLT at 0 range 4 .. 5;
Reserved_6_6 at 0 range 6 .. 6;
ZQPD at 0 range 7 .. 7;
Reserved_8_15 at 0 range 8 .. 15;
PT at 0 range 16 .. 31;
end record;
------------------------
-- MACVLANTR_Register --
------------------------
subtype MACVLANTR_VLANTI_Field is HAL.Short;
-- Ethernet MAC VLAN tag register
type MACVLANTR_Register is record
-- no description available
VLANTI : MACVLANTR_VLANTI_Field := 16#0#;
-- no description available
VLANTC : 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 MACVLANTR_Register use record
VLANTI at 0 range 0 .. 15;
VLANTC at 0 range 16 .. 16;
Reserved_17_31 at 0 range 17 .. 31;
end record;
------------------------
-- MACPMTCSR_Register --
------------------------
-- Ethernet MAC PMT control and status register
type MACPMTCSR_Register is record
-- no description available
PD : Boolean := False;
-- no description available
MPE : Boolean := False;
-- no description available
WFE : Boolean := False;
-- unspecified
Reserved_3_4 : HAL.UInt2 := 16#0#;
-- no description available
MPR : Boolean := False;
-- no description available
WFR : Boolean := False;
-- unspecified
Reserved_7_8 : HAL.UInt2 := 16#0#;
-- no description available
GU : Boolean := False;
-- unspecified
Reserved_10_30 : HAL.UInt21 := 16#0#;
-- no description available
WFFRPR : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACPMTCSR_Register use record
PD at 0 range 0 .. 0;
MPE at 0 range 1 .. 1;
WFE at 0 range 2 .. 2;
Reserved_3_4 at 0 range 3 .. 4;
MPR at 0 range 5 .. 5;
WFR at 0 range 6 .. 6;
Reserved_7_8 at 0 range 7 .. 8;
GU at 0 range 9 .. 9;
Reserved_10_30 at 0 range 10 .. 30;
WFFRPR at 0 range 31 .. 31;
end record;
----------------------
-- MACDBGR_Register --
----------------------
-- Ethernet MAC debug register
type MACDBGR_Register is record
-- Read-only. CR
CR : Boolean;
-- Read-only. CSR
CSR : Boolean;
-- Read-only. ROR
ROR : Boolean;
-- Read-only. MCF
MCF : Boolean;
-- Read-only. MCP
MCP : Boolean;
-- Read-only. MCFHP
MCFHP : Boolean;
-- unspecified
Reserved_6_31 : HAL.UInt26;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACDBGR_Register use record
CR at 0 range 0 .. 0;
CSR at 0 range 1 .. 1;
ROR at 0 range 2 .. 2;
MCF at 0 range 3 .. 3;
MCP at 0 range 4 .. 4;
MCFHP at 0 range 5 .. 5;
Reserved_6_31 at 0 range 6 .. 31;
end record;
--------------------
-- MACSR_Register --
--------------------
-- Ethernet MAC interrupt status register
type MACSR_Register is record
-- unspecified
Reserved_0_2 : HAL.UInt3 := 16#0#;
-- Read-only. no description available
PMTS : Boolean := False;
-- Read-only. no description available
MMCS : Boolean := False;
-- Read-only. no description available
MMCRS : Boolean := False;
-- Read-only. no description available
MMCTS : Boolean := False;
-- unspecified
Reserved_7_8 : HAL.UInt2 := 16#0#;
-- no description available
TSTS : Boolean := False;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACSR_Register use record
Reserved_0_2 at 0 range 0 .. 2;
PMTS at 0 range 3 .. 3;
MMCS at 0 range 4 .. 4;
MMCRS at 0 range 5 .. 5;
MMCTS at 0 range 6 .. 6;
Reserved_7_8 at 0 range 7 .. 8;
TSTS at 0 range 9 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
---------------------
-- MACIMR_Register --
---------------------
-- Ethernet MAC interrupt mask register
type MACIMR_Register is record
-- unspecified
Reserved_0_2 : HAL.UInt3 := 16#0#;
-- no description available
PMTIM : Boolean := False;
-- unspecified
Reserved_4_8 : HAL.UInt5 := 16#0#;
-- no description available
TSTIM : Boolean := False;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACIMR_Register use record
Reserved_0_2 at 0 range 0 .. 2;
PMTIM at 0 range 3 .. 3;
Reserved_4_8 at 0 range 4 .. 8;
TSTIM at 0 range 9 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
----------------------
-- MACA0HR_Register --
----------------------
subtype MACA0HR_MACA0H_Field is HAL.Short;
-- Ethernet MAC address 0 high register
type MACA0HR_Register is record
-- MAC address0 high
MACA0H : MACA0HR_MACA0H_Field := 16#FFFF#;
-- unspecified
Reserved_16_30 : HAL.UInt15 := 16#10#;
-- Read-only. Always 1
MO : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACA0HR_Register use record
MACA0H at 0 range 0 .. 15;
Reserved_16_30 at 0 range 16 .. 30;
MO at 0 range 31 .. 31;
end record;
----------------------
-- MACA1HR_Register --
----------------------
subtype MACA1HR_MACA1H_Field is HAL.Short;
subtype MACA1HR_MBC_Field is HAL.UInt6;
-- Ethernet MAC address 1 high register
type MACA1HR_Register is record
-- no description available
MACA1H : MACA1HR_MACA1H_Field := 16#FFFF#;
-- unspecified
Reserved_16_23 : HAL.Byte := 16#0#;
-- no description available
MBC : MACA1HR_MBC_Field := 16#0#;
-- no description available
SA : Boolean := False;
-- no description available
AE : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACA1HR_Register use record
MACA1H at 0 range 0 .. 15;
Reserved_16_23 at 0 range 16 .. 23;
MBC at 0 range 24 .. 29;
SA at 0 range 30 .. 30;
AE at 0 range 31 .. 31;
end record;
----------------------
-- MACA2HR_Register --
----------------------
subtype MACA2HR_MAC2AH_Field is HAL.Short;
subtype MACA2HR_MBC_Field is HAL.UInt6;
-- Ethernet MAC address 2 high register
type MACA2HR_Register is record
-- no description available
MAC2AH : MACA2HR_MAC2AH_Field := 16#FFFF#;
-- unspecified
Reserved_16_23 : HAL.Byte := 16#0#;
-- no description available
MBC : MACA2HR_MBC_Field := 16#0#;
-- no description available
SA : Boolean := False;
-- no description available
AE : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACA2HR_Register use record
MAC2AH at 0 range 0 .. 15;
Reserved_16_23 at 0 range 16 .. 23;
MBC at 0 range 24 .. 29;
SA at 0 range 30 .. 30;
AE at 0 range 31 .. 31;
end record;
----------------------
-- MACA2LR_Register --
----------------------
subtype MACA2LR_MACA2L_Field is HAL.UInt31;
-- Ethernet MAC address 2 low register
type MACA2LR_Register is record
-- no description available
MACA2L : MACA2LR_MACA2L_Field := 16#7FFFFFFF#;
-- unspecified
Reserved_31_31 : HAL.Bit := 16#1#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACA2LR_Register use record
MACA2L at 0 range 0 .. 30;
Reserved_31_31 at 0 range 31 .. 31;
end record;
----------------------
-- MACA3HR_Register --
----------------------
subtype MACA3HR_MACA3H_Field is HAL.Short;
subtype MACA3HR_MBC_Field is HAL.UInt6;
-- Ethernet MAC address 3 high register
type MACA3HR_Register is record
-- no description available
MACA3H : MACA3HR_MACA3H_Field := 16#FFFF#;
-- unspecified
Reserved_16_23 : HAL.Byte := 16#0#;
-- no description available
MBC : MACA3HR_MBC_Field := 16#0#;
-- no description available
SA : Boolean := False;
-- no description available
AE : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MACA3HR_Register use record
MACA3H at 0 range 0 .. 15;
Reserved_16_23 at 0 range 16 .. 23;
MBC at 0 range 24 .. 29;
SA at 0 range 30 .. 30;
AE at 0 range 31 .. 31;
end record;
--------------------
-- MMCCR_Register --
--------------------
-- Ethernet MMC control register
type MMCCR_Register is record
-- no description available
CR : Boolean := False;
-- no description available
CSR : Boolean := False;
-- no description available
ROR : Boolean := False;
-- no description available
MCF : Boolean := False;
-- no description available
MCP : Boolean := False;
-- no description available
MCFHP : Boolean := False;
-- unspecified
Reserved_6_31 : HAL.UInt26 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MMCCR_Register use record
CR at 0 range 0 .. 0;
CSR at 0 range 1 .. 1;
ROR at 0 range 2 .. 2;
MCF at 0 range 3 .. 3;
MCP at 0 range 4 .. 4;
MCFHP at 0 range 5 .. 5;
Reserved_6_31 at 0 range 6 .. 31;
end record;
---------------------
-- MMCRIR_Register --
---------------------
-- Ethernet MMC receive interrupt register
type MMCRIR_Register is record
-- unspecified
Reserved_0_4 : HAL.UInt5 := 16#0#;
-- no description available
RFCES : Boolean := False;
-- no description available
RFAES : Boolean := False;
-- unspecified
Reserved_7_16 : HAL.UInt10 := 16#0#;
-- no description available
RGUFS : Boolean := False;
-- unspecified
Reserved_18_31 : HAL.UInt14 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MMCRIR_Register use record
Reserved_0_4 at 0 range 0 .. 4;
RFCES at 0 range 5 .. 5;
RFAES at 0 range 6 .. 6;
Reserved_7_16 at 0 range 7 .. 16;
RGUFS at 0 range 17 .. 17;
Reserved_18_31 at 0 range 18 .. 31;
end record;
---------------------
-- MMCTIR_Register --
---------------------
-- Ethernet MMC transmit interrupt register
type MMCTIR_Register is record
-- unspecified
Reserved_0_13 : HAL.UInt14;
-- Read-only. no description available
TGFSCS : Boolean;
-- Read-only. no description available
TGFMSCS : Boolean;
-- unspecified
Reserved_16_20 : HAL.UInt5;
-- Read-only. no description available
TGFS : Boolean;
-- unspecified
Reserved_22_31 : HAL.UInt10;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MMCTIR_Register use record
Reserved_0_13 at 0 range 0 .. 13;
TGFSCS at 0 range 14 .. 14;
TGFMSCS at 0 range 15 .. 15;
Reserved_16_20 at 0 range 16 .. 20;
TGFS at 0 range 21 .. 21;
Reserved_22_31 at 0 range 22 .. 31;
end record;
----------------------
-- MMCRIMR_Register --
----------------------
-- Ethernet MMC receive interrupt mask register
type MMCRIMR_Register is record
-- unspecified
Reserved_0_4 : HAL.UInt5 := 16#0#;
-- no description available
RFCEM : Boolean := False;
-- no description available
RFAEM : Boolean := False;
-- unspecified
Reserved_7_16 : HAL.UInt10 := 16#0#;
-- no description available
RGUFM : Boolean := False;
-- unspecified
Reserved_18_31 : HAL.UInt14 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for MMCRIMR_Register use record
Reserved_0_4 at 0 range 0 .. 4;
RFCEM at 0 range 5 .. 5;
RFAEM at 0 range 6 .. 6;
Reserved_7_16 at 0 range 7 .. 16;
RGUFM at 0 range 17 .. 17;
Reserved_18_31 at 0 range 18 .. 31;
end record;
----------------------
-- MMCTIMR_Register --
----------------------
-- Ethernet MMC transmit interrupt mask register
type MMCTIMR_Register is record
-- unspecified
Reserved_0_13 : HAL.UInt14 := 16#0#;
-- no description available
TGFSCM : Boolean := False;
-- no description available
TGFMSCM : Boolean := False;
-- no description available
TGFM : 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 MMCTIMR_Register use record
Reserved_0_13 at 0 range 0 .. 13;
TGFSCM at 0 range 14 .. 14;
TGFMSCM at 0 range 15 .. 15;
TGFM at 0 range 16 .. 16;
Reserved_17_31 at 0 range 17 .. 31;
end record;
----------------------
-- PTPTSCR_Register --
----------------------
subtype PTPTSCR_TSCNT_Field is HAL.UInt2;
-- Ethernet PTP time stamp control register
type PTPTSCR_Register is record
-- no description available
TSE : Boolean := False;
-- no description available
TSFCU : Boolean := False;
-- no description available
TSSTI : Boolean := False;
-- no description available
TSSTU : Boolean := False;
-- no description available
TSITE : Boolean := False;
-- no description available
TTSARU : Boolean := False;
-- unspecified
Reserved_6_7 : HAL.UInt2 := 16#0#;
-- no description available
TSSARFE : Boolean := False;
-- no description available
TSSSR : Boolean := False;
-- no description available
TSPTPPSV2E : Boolean := False;
-- no description available
TSSPTPOEFE : Boolean := False;
-- no description available
TSSIPV6FE : Boolean := False;
-- no description available
TSSIPV4FE : Boolean := True;
-- no description available
TSSEME : Boolean := False;
-- no description available
TSSMRME : Boolean := False;
-- no description available
TSCNT : PTPTSCR_TSCNT_Field := 16#0#;
-- no description available
TSPFFMAE : Boolean := False;
-- unspecified
Reserved_19_31 : HAL.UInt13 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PTPTSCR_Register use record
TSE at 0 range 0 .. 0;
TSFCU at 0 range 1 .. 1;
TSSTI at 0 range 2 .. 2;
TSSTU at 0 range 3 .. 3;
TSITE at 0 range 4 .. 4;
TTSARU at 0 range 5 .. 5;
Reserved_6_7 at 0 range 6 .. 7;
TSSARFE at 0 range 8 .. 8;
TSSSR at 0 range 9 .. 9;
TSPTPPSV2E at 0 range 10 .. 10;
TSSPTPOEFE at 0 range 11 .. 11;
TSSIPV6FE at 0 range 12 .. 12;
TSSIPV4FE at 0 range 13 .. 13;
TSSEME at 0 range 14 .. 14;
TSSMRME at 0 range 15 .. 15;
TSCNT at 0 range 16 .. 17;
TSPFFMAE at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
----------------------
-- PTPSSIR_Register --
----------------------
subtype PTPSSIR_STSSI_Field is HAL.Byte;
-- Ethernet PTP subsecond increment register
type PTPSSIR_Register is record
-- no description available
STSSI : PTPSSIR_STSSI_Field := 16#0#;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PTPSSIR_Register use record
STSSI at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
----------------------
-- PTPTSLR_Register --
----------------------
subtype PTPTSLR_STSS_Field is HAL.UInt31;
-- Ethernet PTP time stamp low register
type PTPTSLR_Register is record
-- Read-only. no description available
STSS : PTPTSLR_STSS_Field;
-- Read-only. no description available
STPNS : Boolean;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PTPTSLR_Register use record
STSS at 0 range 0 .. 30;
STPNS at 0 range 31 .. 31;
end record;
-----------------------
-- PTPTSLUR_Register --
-----------------------
subtype PTPTSLUR_TSUSS_Field is HAL.UInt31;
-- Ethernet PTP time stamp low update register
type PTPTSLUR_Register is record
-- no description available
TSUSS : PTPTSLUR_TSUSS_Field := 16#0#;
-- no description available
TSUPNS : Boolean := False;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PTPTSLUR_Register use record
TSUSS at 0 range 0 .. 30;
TSUPNS at 0 range 31 .. 31;
end record;
----------------------
-- PTPTSSR_Register --
----------------------
-- Ethernet PTP time stamp status register
type PTPTSSR_Register is record
-- Read-only. no description available
TSSO : Boolean;
-- Read-only. no description available
TSTTR : Boolean;
-- unspecified
Reserved_2_31 : HAL.UInt30;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PTPTSSR_Register use record
TSSO at 0 range 0 .. 0;
TSTTR at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
-----------------------
-- PTPPPSCR_Register --
-----------------------
-- Ethernet PTP PPS control register
type PTPPPSCR_Register is record
-- Read-only. TSSO
TSSO : Boolean;
-- Read-only. TSTTR
TSTTR : Boolean;
-- unspecified
Reserved_2_31 : HAL.UInt30;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PTPPPSCR_Register use record
TSSO at 0 range 0 .. 0;
TSTTR at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
---------------------
-- DMABMR_Register --
---------------------
subtype DMABMR_DSL_Field is HAL.UInt5;
subtype DMABMR_PBL_Field is HAL.UInt6;
subtype DMABMR_RTPR_Field is HAL.UInt2;
subtype DMABMR_RDP_Field is HAL.UInt6;
-- Ethernet DMA bus mode register
type DMABMR_Register is record
-- no description available
SR : Boolean := True;
-- no description available
DA : Boolean := False;
-- no description available
DSL : DMABMR_DSL_Field := 16#0#;
-- no description available
EDFE : Boolean := False;
-- no description available
PBL : DMABMR_PBL_Field := 16#21#;
-- no description available
RTPR : DMABMR_RTPR_Field := 16#0#;
-- no description available
FB : Boolean := False;
-- no description available
RDP : DMABMR_RDP_Field := 16#0#;
-- no description available
USP : Boolean := False;
-- no description available
FPM : Boolean := False;
-- no description available
AAB : Boolean := False;
-- no description available
MB : Boolean := False;
-- unspecified
Reserved_27_31 : HAL.UInt5 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DMABMR_Register use record
SR at 0 range 0 .. 0;
DA at 0 range 1 .. 1;
DSL at 0 range 2 .. 6;
EDFE at 0 range 7 .. 7;
PBL at 0 range 8 .. 13;
RTPR at 0 range 14 .. 15;
FB at 0 range 16 .. 16;
RDP at 0 range 17 .. 22;
USP at 0 range 23 .. 23;
FPM at 0 range 24 .. 24;
AAB at 0 range 25 .. 25;
MB at 0 range 26 .. 26;
Reserved_27_31 at 0 range 27 .. 31;
end record;
--------------------
-- DMASR_Register --
--------------------
subtype DMASR_RPS_Field is HAL.UInt3;
subtype DMASR_TPS_Field is HAL.UInt3;
subtype DMASR_EBS_Field is HAL.UInt3;
-- Ethernet DMA status register
type DMASR_Register is record
-- no description available
TS : Boolean := False;
-- no description available
TPSS : Boolean := False;
-- no description available
TBUS : Boolean := False;
-- no description available
TJTS : Boolean := False;
-- no description available
ROS : Boolean := False;
-- no description available
TUS : Boolean := False;
-- no description available
RS : Boolean := False;
-- no description available
RBUS : Boolean := False;
-- no description available
RPSS : Boolean := False;
-- no description available
PWTS : Boolean := False;
-- no description available
ETS : Boolean := False;
-- unspecified
Reserved_11_12 : HAL.UInt2 := 16#0#;
-- no description available
FBES : Boolean := False;
-- no description available
ERS : Boolean := False;
-- no description available
AIS : Boolean := False;
-- no description available
NIS : Boolean := False;
-- Read-only. no description available
RPS : DMASR_RPS_Field := 16#0#;
-- Read-only. no description available
TPS : DMASR_TPS_Field := 16#0#;
-- Read-only. no description available
EBS : DMASR_EBS_Field := 16#0#;
-- unspecified
Reserved_26_26 : HAL.Bit := 16#0#;
-- Read-only. no description available
MMCS : Boolean := False;
-- Read-only. no description available
PMTS : Boolean := False;
-- Read-only. no description available
TSTS : Boolean := False;
-- unspecified
Reserved_30_31 : HAL.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DMASR_Register use record
TS at 0 range 0 .. 0;
TPSS at 0 range 1 .. 1;
TBUS at 0 range 2 .. 2;
TJTS at 0 range 3 .. 3;
ROS at 0 range 4 .. 4;
TUS at 0 range 5 .. 5;
RS at 0 range 6 .. 6;
RBUS at 0 range 7 .. 7;
RPSS at 0 range 8 .. 8;
PWTS at 0 range 9 .. 9;
ETS at 0 range 10 .. 10;
Reserved_11_12 at 0 range 11 .. 12;
FBES at 0 range 13 .. 13;
ERS at 0 range 14 .. 14;
AIS at 0 range 15 .. 15;
NIS at 0 range 16 .. 16;
RPS at 0 range 17 .. 19;
TPS at 0 range 20 .. 22;
EBS at 0 range 23 .. 25;
Reserved_26_26 at 0 range 26 .. 26;
MMCS at 0 range 27 .. 27;
PMTS at 0 range 28 .. 28;
TSTS at 0 range 29 .. 29;
Reserved_30_31 at 0 range 30 .. 31;
end record;
---------------------
-- DMAOMR_Register --
---------------------
subtype DMAOMR_RTC_Field is HAL.UInt2;
subtype DMAOMR_TTC_Field is HAL.UInt3;
-- Ethernet DMA operation mode register
type DMAOMR_Register is record
-- unspecified
Reserved_0_0 : HAL.Bit := 16#0#;
-- SR
SR : Boolean := False;
-- OSF
OSF : Boolean := False;
-- RTC
RTC : DMAOMR_RTC_Field := 16#0#;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- FUGF
FUGF : Boolean := False;
-- FEF
FEF : Boolean := False;
-- unspecified
Reserved_8_12 : HAL.UInt5 := 16#0#;
-- ST
ST : Boolean := False;
-- TTC
TTC : DMAOMR_TTC_Field := 16#0#;
-- unspecified
Reserved_17_19 : HAL.UInt3 := 16#0#;
-- FTF
FTF : Boolean := False;
-- TSF
TSF : Boolean := False;
-- unspecified
Reserved_22_23 : HAL.UInt2 := 16#0#;
-- DFRF
DFRF : Boolean := False;
-- RSF
RSF : Boolean := False;
-- DTCEFD
DTCEFD : Boolean := False;
-- unspecified
Reserved_27_31 : HAL.UInt5 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DMAOMR_Register use record
Reserved_0_0 at 0 range 0 .. 0;
SR at 0 range 1 .. 1;
OSF at 0 range 2 .. 2;
RTC at 0 range 3 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
FUGF at 0 range 6 .. 6;
FEF at 0 range 7 .. 7;
Reserved_8_12 at 0 range 8 .. 12;
ST at 0 range 13 .. 13;
TTC at 0 range 14 .. 16;
Reserved_17_19 at 0 range 17 .. 19;
FTF at 0 range 20 .. 20;
TSF at 0 range 21 .. 21;
Reserved_22_23 at 0 range 22 .. 23;
DFRF at 0 range 24 .. 24;
RSF at 0 range 25 .. 25;
DTCEFD at 0 range 26 .. 26;
Reserved_27_31 at 0 range 27 .. 31;
end record;
---------------------
-- DMAIER_Register --
---------------------
-- Ethernet DMA interrupt enable register
type DMAIER_Register is record
-- no description available
TIE : Boolean := False;
-- no description available
TPSIE : Boolean := False;
-- no description available
TBUIE : Boolean := False;
-- no description available
TJTIE : Boolean := False;
-- no description available
ROIE : Boolean := False;
-- no description available
TUIE : Boolean := False;
-- no description available
RIE : Boolean := False;
-- no description available
RBUIE : Boolean := False;
-- no description available
RPSIE : Boolean := False;
-- no description available
RWTIE : Boolean := False;
-- no description available
ETIE : Boolean := False;
-- unspecified
Reserved_11_12 : HAL.UInt2 := 16#0#;
-- no description available
FBEIE : Boolean := False;
-- no description available
ERIE : Boolean := False;
-- no description available
AISE : Boolean := False;
-- no description available
NISE : 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 DMAIER_Register use record
TIE at 0 range 0 .. 0;
TPSIE at 0 range 1 .. 1;
TBUIE at 0 range 2 .. 2;
TJTIE at 0 range 3 .. 3;
ROIE at 0 range 4 .. 4;
TUIE at 0 range 5 .. 5;
RIE at 0 range 6 .. 6;
RBUIE at 0 range 7 .. 7;
RPSIE at 0 range 8 .. 8;
RWTIE at 0 range 9 .. 9;
ETIE at 0 range 10 .. 10;
Reserved_11_12 at 0 range 11 .. 12;
FBEIE at 0 range 13 .. 13;
ERIE at 0 range 14 .. 14;
AISE at 0 range 15 .. 15;
NISE at 0 range 16 .. 16;
Reserved_17_31 at 0 range 17 .. 31;
end record;
------------------------
-- DMAMFBOCR_Register --
------------------------
subtype DMAMFBOCR_MFC_Field is HAL.Short;
subtype DMAMFBOCR_MFA_Field is HAL.UInt11;
-- Ethernet DMA missed frame and buffer overflow counter register
type DMAMFBOCR_Register is record
-- no description available
MFC : DMAMFBOCR_MFC_Field := 16#0#;
-- no description available
OMFC : Boolean := False;
-- no description available
MFA : DMAMFBOCR_MFA_Field := 16#0#;
-- no description available
OFOC : Boolean := False;
-- unspecified
Reserved_29_31 : HAL.UInt3 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DMAMFBOCR_Register use record
MFC at 0 range 0 .. 15;
OMFC at 0 range 16 .. 16;
MFA at 0 range 17 .. 27;
OFOC at 0 range 28 .. 28;
Reserved_29_31 at 0 range 29 .. 31;
end record;
-----------------------
-- DMARSWTR_Register --
-----------------------
subtype DMARSWTR_RSWTC_Field is HAL.Byte;
-- Ethernet DMA receive status watchdog timer register
type DMARSWTR_Register is record
-- RSWTC
RSWTC : DMARSWTR_RSWTC_Field := 16#0#;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DMARSWTR_Register use record
RSWTC at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Ethernet: media access control (MAC)
type Ethernet_MAC_Peripheral is record
-- Ethernet MAC configuration register
MACCR : MACCR_Register;
-- Ethernet MAC frame filter register
MACFFR : MACFFR_Register;
-- Ethernet MAC hash table high register
MACHTHR : HAL.Word;
-- Ethernet MAC hash table low register
MACHTLR : HAL.Word;
-- Ethernet MAC MII address register
MACMIIAR : MACMIIAR_Register;
-- Ethernet MAC MII data register
MACMIIDR : MACMIIDR_Register;
-- Ethernet MAC flow control register
MACFCR : MACFCR_Register;
-- Ethernet MAC VLAN tag register
MACVLANTR : MACVLANTR_Register;
-- Ethernet MAC PMT control and status register
MACPMTCSR : MACPMTCSR_Register;
-- Ethernet MAC debug register
MACDBGR : MACDBGR_Register;
-- Ethernet MAC interrupt status register
MACSR : MACSR_Register;
-- Ethernet MAC interrupt mask register
MACIMR : MACIMR_Register;
-- Ethernet MAC address 0 high register
MACA0HR : MACA0HR_Register;
-- Ethernet MAC address 0 low register
MACA0LR : HAL.Word;
-- Ethernet MAC address 1 high register
MACA1HR : MACA1HR_Register;
-- Ethernet MAC address1 low register
MACA1LR : HAL.Word;
-- Ethernet MAC address 2 high register
MACA2HR : MACA2HR_Register;
-- Ethernet MAC address 2 low register
MACA2LR : MACA2LR_Register;
-- Ethernet MAC address 3 high register
MACA3HR : MACA3HR_Register;
-- Ethernet MAC address 3 low register
MACA3LR : HAL.Word;
end record
with Volatile;
for Ethernet_MAC_Peripheral use record
MACCR at 0 range 0 .. 31;
MACFFR at 4 range 0 .. 31;
MACHTHR at 8 range 0 .. 31;
MACHTLR at 12 range 0 .. 31;
MACMIIAR at 16 range 0 .. 31;
MACMIIDR at 20 range 0 .. 31;
MACFCR at 24 range 0 .. 31;
MACVLANTR at 28 range 0 .. 31;
MACPMTCSR at 44 range 0 .. 31;
MACDBGR at 52 range 0 .. 31;
MACSR at 56 range 0 .. 31;
MACIMR at 60 range 0 .. 31;
MACA0HR at 64 range 0 .. 31;
MACA0LR at 68 range 0 .. 31;
MACA1HR at 72 range 0 .. 31;
MACA1LR at 76 range 0 .. 31;
MACA2HR at 80 range 0 .. 31;
MACA2LR at 84 range 0 .. 31;
MACA3HR at 88 range 0 .. 31;
MACA3LR at 92 range 0 .. 31;
end record;
-- Ethernet: media access control (MAC)
Ethernet_MAC_Periph : aliased Ethernet_MAC_Peripheral
with Import, Address => Ethernet_MAC_Base;
-- Ethernet: MAC management counters
type Ethernet_MMC_Peripheral is record
-- Ethernet MMC control register
MMCCR : MMCCR_Register;
-- Ethernet MMC receive interrupt register
MMCRIR : MMCRIR_Register;
-- Ethernet MMC transmit interrupt register
MMCTIR : MMCTIR_Register;
-- Ethernet MMC receive interrupt mask register
MMCRIMR : MMCRIMR_Register;
-- Ethernet MMC transmit interrupt mask register
MMCTIMR : MMCTIMR_Register;
-- Ethernet MMC transmitted good frames after a single collision counter
MMCTGFSCCR : HAL.Word;
-- Ethernet MMC transmitted good frames after more than a single
-- collision
MMCTGFMSCCR : HAL.Word;
-- Ethernet MMC transmitted good frames counter register
MMCTGFCR : HAL.Word;
-- Ethernet MMC received frames with CRC error counter register
MMCRFCECR : HAL.Word;
-- Ethernet MMC received frames with alignment error counter register
MMCRFAECR : HAL.Word;
-- MMC received good unicast frames counter register
MMCRGUFCR : HAL.Word;
end record
with Volatile;
for Ethernet_MMC_Peripheral use record
MMCCR at 0 range 0 .. 31;
MMCRIR at 4 range 0 .. 31;
MMCTIR at 8 range 0 .. 31;
MMCRIMR at 12 range 0 .. 31;
MMCTIMR at 16 range 0 .. 31;
MMCTGFSCCR at 76 range 0 .. 31;
MMCTGFMSCCR at 80 range 0 .. 31;
MMCTGFCR at 104 range 0 .. 31;
MMCRFCECR at 148 range 0 .. 31;
MMCRFAECR at 152 range 0 .. 31;
MMCRGUFCR at 196 range 0 .. 31;
end record;
-- Ethernet: MAC management counters
Ethernet_MMC_Periph : aliased Ethernet_MMC_Peripheral
with Import, Address => Ethernet_MMC_Base;
-- Ethernet: Precision time protocol
type Ethernet_PTP_Peripheral is record
-- Ethernet PTP time stamp control register
PTPTSCR : PTPTSCR_Register;
-- Ethernet PTP subsecond increment register
PTPSSIR : PTPSSIR_Register;
-- Ethernet PTP time stamp high register
PTPTSHR : HAL.Word;
-- Ethernet PTP time stamp low register
PTPTSLR : PTPTSLR_Register;
-- Ethernet PTP time stamp high update register
PTPTSHUR : HAL.Word;
-- Ethernet PTP time stamp low update register
PTPTSLUR : PTPTSLUR_Register;
-- Ethernet PTP time stamp addend register
PTPTSAR : HAL.Word;
-- Ethernet PTP target time high register
PTPTTHR : HAL.Word;
-- Ethernet PTP target time low register
PTPTTLR : HAL.Word;
-- Ethernet PTP time stamp status register
PTPTSSR : PTPTSSR_Register;
-- Ethernet PTP PPS control register
PTPPPSCR : PTPPPSCR_Register;
end record
with Volatile;
for Ethernet_PTP_Peripheral use record
PTPTSCR at 0 range 0 .. 31;
PTPSSIR at 4 range 0 .. 31;
PTPTSHR at 8 range 0 .. 31;
PTPTSLR at 12 range 0 .. 31;
PTPTSHUR at 16 range 0 .. 31;
PTPTSLUR at 20 range 0 .. 31;
PTPTSAR at 24 range 0 .. 31;
PTPTTHR at 28 range 0 .. 31;
PTPTTLR at 32 range 0 .. 31;
PTPTSSR at 40 range 0 .. 31;
PTPPPSCR at 44 range 0 .. 31;
end record;
-- Ethernet: Precision time protocol
Ethernet_PTP_Periph : aliased Ethernet_PTP_Peripheral
with Import, Address => Ethernet_PTP_Base;
-- Ethernet: DMA controller operation
type Ethernet_DMA_Peripheral is record
-- Ethernet DMA bus mode register
DMABMR : DMABMR_Register;
-- Ethernet DMA transmit poll demand register
DMATPDR : HAL.Word;
-- EHERNET DMA receive poll demand register
DMARPDR : HAL.Word;
-- Ethernet DMA receive descriptor list address register
DMARDLAR : HAL.Word;
-- Ethernet DMA transmit descriptor list address register
DMATDLAR : HAL.Word;
-- Ethernet DMA status register
DMASR : DMASR_Register;
-- Ethernet DMA operation mode register
DMAOMR : DMAOMR_Register;
-- Ethernet DMA interrupt enable register
DMAIER : DMAIER_Register;
-- Ethernet DMA missed frame and buffer overflow counter register
DMAMFBOCR : DMAMFBOCR_Register;
-- Ethernet DMA receive status watchdog timer register
DMARSWTR : DMARSWTR_Register;
-- Ethernet DMA current host transmit descriptor register
DMACHTDR : HAL.Word;
-- Ethernet DMA current host receive descriptor register
DMACHRDR : HAL.Word;
-- Ethernet DMA current host transmit buffer address register
DMACHTBAR : HAL.Word;
-- Ethernet DMA current host receive buffer address register
DMACHRBAR : HAL.Word;
end record
with Volatile;
for Ethernet_DMA_Peripheral use record
DMABMR at 0 range 0 .. 31;
DMATPDR at 4 range 0 .. 31;
DMARPDR at 8 range 0 .. 31;
DMARDLAR at 12 range 0 .. 31;
DMATDLAR at 16 range 0 .. 31;
DMASR at 20 range 0 .. 31;
DMAOMR at 24 range 0 .. 31;
DMAIER at 28 range 0 .. 31;
DMAMFBOCR at 32 range 0 .. 31;
DMARSWTR at 36 range 0 .. 31;
DMACHTDR at 72 range 0 .. 31;
DMACHRDR at 76 range 0 .. 31;
DMACHTBAR at 80 range 0 .. 31;
DMACHRBAR at 84 range 0 .. 31;
end record;
-- Ethernet: DMA controller operation
Ethernet_DMA_Periph : aliased Ethernet_DMA_Peripheral
with Import, Address => Ethernet_DMA_Base;
end STM32_SVD.Ethernet;
| 33.038248 | 79 | 0.532615 |
4dbac8f599b6b680e05f515f9ebf51fc2d1f35e3 | 2,725 | ads | Ada | src/event_device-input_dev.ads | onox/evdev-ada | f275b3001c9ece1639ac787e157bdd9192aea9ec | [
"Apache-2.0"
] | 2 | 2021-04-26T17:17:25.000Z | 2021-04-29T05:54:42.000Z | src/event_device-input_dev.ads | onox/evdev-ada | f275b3001c9ece1639ac787e157bdd9192aea9ec | [
"Apache-2.0"
] | 1 | 2021-06-27T16:38:06.000Z | 2021-06-28T12:27:04.000Z | src/event_device-input_dev.ads | onox/evdev-ada | f275b3001c9ece1639ac787e157bdd9192aea9ec | [
"Apache-2.0"
] | null | null | null | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 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.
with System;
private with Ada.Unchecked_Conversion;
private package Event_Device.Input_Dev is
pragma Pure;
type Error_Kind is (Device, End_Of_File, Data, Would_Block);
type Result (Is_Success : Boolean := False) is record
case Is_Success is
when True => FD : File_Descriptor;
when False => Error : Error_Kind;
end case;
end record;
use Interfaces.C;
type Timeval is record
Seconds : long;
Microseconds : long;
end record;
type Input_Event is record
Time : Timeval;
Event : Event_Kind;
Code : unsigned_short;
Value : int;
end record
with Convention => C;
type Access_Mode is (None, Write, Read, Read_Write);
type Unsigned_14 is mod 2 ** 14
with Size => 14;
type IOCTL_Command is record
Mode : Access_Mode;
Letter : Character;
Number : Unsigned_8;
Size : Unsigned_14;
end record;
function IO_Control
(FD : File_Descriptor;
Command : IOCTL_Command;
Value : System.Address) return Integer;
function IO_Control
(FD : File_Descriptor;
Command : IOCTL_Command;
Value : Integer) return Integer;
function Read
(FD : File_Descriptor;
Event : out Input_Dev.Input_Event) return Result;
function Write
(FD : File_Descriptor;
Event : Input_Dev.Input_Event) return Result;
function Open (File_Path : String; Blocking : Boolean) return Result;
function Close (FD : File_Descriptor) return Result;
private
for Access_Mode use
(None => 0,
Write => 1,
Read => 2,
Read_Write => 3);
for Access_Mode'Size use 2;
for Timeval'Size use 2 * long'Size;
for Input_Event'Size use 2 * long'Size + 2 * unsigned_short'Size + int'Size;
for IOCTL_Command use record
Number at 0 range 0 .. 7;
Letter at 0 range 8 .. 15;
Size at 0 range 16 .. 29;
Mode at 0 range 30 .. 31;
end record;
for IOCTL_Command'Size use 32;
end Event_Device.Input_Dev;
| 26.456311 | 79 | 0.65211 |
0b84705d11e6c04c296f03c610feafd238c136c2 | 1,395 | adb | Ada | orka/src/orka/implementation/orka-resources.adb | onox/orka | 9edf99559a16ffa96dfdb208322f4d18efbcbac6 | [
"Apache-2.0"
] | 52 | 2016-07-30T23:00:28.000Z | 2022-02-05T11:54:55.000Z | orka/src/orka/implementation/orka-resources.adb | onox/orka | 9edf99559a16ffa96dfdb208322f4d18efbcbac6 | [
"Apache-2.0"
] | 79 | 2016-08-01T18:36:48.000Z | 2022-02-27T12:14:20.000Z | orka/src/orka/implementation/orka-resources.adb | onox/orka | 9edf99559a16ffa96dfdb208322f4d18efbcbac6 | [
"Apache-2.0"
] | 4 | 2018-04-28T22:36:26.000Z | 2020-11-14T23:00:29.000Z | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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.
with Ada.Unchecked_Conversion;
package body Orka.Resources is
function Convert (Bytes : Byte_Array) return String is
subtype Bytes_String is String (1 .. Bytes'Length);
function Convert is new Ada.Unchecked_Conversion
(Source => Resources.Byte_Array, Target => Bytes_String);
begin
return Convert (Bytes);
end Convert;
function Convert (Text : String) return Byte_Array is
subtype Bytes_String is String (1 .. Text'Length);
subtype Bytes_String_Array is Byte_Array (1 .. Text'Length);
function Convert is new Ada.Unchecked_Conversion
(Source => Bytes_String, Target => Bytes_String_Array);
begin
return Convert (Text);
end Convert;
end Orka.Resources;
| 34.02439 | 76 | 0.714695 |
0e191d88d70b8e872ea1527bdcda42431ecc903d | 246 | ads | Ada | src/lab-code/cpu-affinity/src/dispatch.ads | hannesb0/rtpl18 | 6cd1ff776b98695713de88586391139447edb320 | [
"MIT"
] | null | null | null | src/lab-code/cpu-affinity/src/dispatch.ads | hannesb0/rtpl18 | 6cd1ff776b98695713de88586391139447edb320 | [
"MIT"
] | null | null | null | src/lab-code/cpu-affinity/src/dispatch.ads | hannesb0/rtpl18 | 6cd1ff776b98695713de88586391139447edb320 | [
"MIT"
] | null | null | null | with System.Multiprocessors.Dispatching_Domains;
use System.Multiprocessors.Dispatching_Domains;
package Dispatch is
My_Domain : Dispatching_Domain :=
Create(2,2);
task My_Task
with Dispatching_Domain => My_Domain;
end Dispatch;
| 24.6 | 48 | 0.780488 |
fba66e239b5e1262283a97e835f31248bd273e18 | 2,598 | adb | Ada | src/botstate.adb | Robert-Tice/AdaRoombot | 3fd24658ec075f5b0cc22fe1c29205f901b731cd | [
"MIT"
] | 10 | 2017-08-09T15:00:28.000Z | 2021-08-13T01:25:30.000Z | src/botstate.adb | Robert-Tice/AdaRoombot | 3fd24658ec075f5b0cc22fe1c29205f901b731cd | [
"MIT"
] | null | null | null | src/botstate.adb | Robert-Tice/AdaRoombot | 3fd24658ec075f5b0cc22fe1c29205f901b731cd | [
"MIT"
] | 3 | 2021-04-10T15:33:05.000Z | 2021-05-03T15:55:06.000Z | with Ada.Exceptions; use Ada.Exceptions;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Communication; use Communication;
package body Botstate is
procedure Start (Self : in Bot)
is
Raw_RX : UByte_Array (1 .. Sensor_Collection'Size / 8);
Sensors : Sensor_Collection
with Address => Raw_RX'Address;
Next_Read : Time := Clock;
Period : constant Time_Span := Milliseconds (15);
begin
loop
Send_Command (Port => Self.Port,
Rec => Comm_Rec'(Op => Sensors_List,
Num_Query_Packets => 1),
Data => (1 => 100));
Read_Sensors (Port => Self.Port,
Buffer => Raw_RX);
Self.Algo.Safety_Check (Sensors => Sensors);
Self.Algo.Process (Port => Self.Port,
Sensors => Sensors);
Next_Read := Next_Read + Period;
delay until Next_Read;
end loop;
exception
when Safety_Exception =>
Put_Line ("Unhandled safety exception. Killing Control thread.");
when Error : others =>
Put ("Unexpected exception: ");
Put_Line (Exception_Information (Error));
end Start;
procedure Init (Self : in out Bot;
TTY_Name : in String;
Algo_Type : in Algorithm_Type)
is
begin
case Algo_Type is
when Pong =>
Self.Algo := new Pong_Algorithm;
Self.Port := Communication_Init (Data_Rate => B115200,
Name => TTY_Name);
Send_Command (Port => Self.Port,
Rec => Comm_Rec'(Op => Reset));
delay 5.0;
Send_Command (Port => Self.Port,
Rec => Comm_Rec'(Op => Start));
Clear_Comm_Buffer (Port => Self.Port);
Send_Command (Port => Self.Port,
Rec => Comm_Rec'(Op => Mode_Safe));
when others =>
null;
end case;
end Init;
procedure Free_Algo is new Ada.Unchecked_Deallocation
(Object => Abstract_Algorithm'Class, Name => Algorithm_Ptr);
procedure Kill (Self : in out Bot)
is
begin
Communications_Close (Port => Self.Port);
Free_Algo (Self.Algo);
end Kill;
end Botstate;
| 32.475 | 81 | 0.503849 |
0bf979ba5e8dee1e0a1ed04fbe88342d6b46ee3c | 5,801 | adb | Ada | middleware/src/bitmap/bitmap_file_output.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | 2 | 2018-05-16T03:56:39.000Z | 2019-07-31T13:53:56.000Z | middleware/src/bitmap/bitmap_file_output.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | middleware/src/bitmap/bitmap_file_output.adb | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"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 Interfaces; use Interfaces;
with HAL; use HAL;
package body Bitmap_File_Output is
type Header (As_Array : Boolean := True) is record
case As_Array is
when True =>
Arr : UInt8_Array (1 .. 14);
when False =>
Signature : Integer_16;
Size : Integer_32; -- File size
Reserved1 : Integer_16;
Reserved2 : Integer_16;
Offset : Integer_32; -- Data offset
end case;
end record with Unchecked_Union, Pack, Size => 14 * 8;
type Info (As_Array : Boolean := True) is record
case As_Array is
when True =>
Arr : UInt8_Array (1 .. 40);
when False =>
Struct_Size : Integer_32;
Width : Integer_32; -- Image width in pixels
Height : Integer_32; -- Image hieght in pixels
Planes : Integer_16;
Pixel_Size : Integer_16; -- Bits per pixel
Compression : Integer_32; -- Zero means no compression
Image_Size : Integer_32; -- Size of the image data in UInt8s
PPMX : Integer_32; -- Pixels per meter in x led
PPMY : Integer_32; -- Pixels per meter in y led
Palette_Size : Integer_32; -- Number of colors
Important : Integer_32;
end case;
end record with Unchecked_Union, Pack, Size => 40 * 8;
--------------------
-- Write_BMP_File --
--------------------
procedure Write_BMP_File (File : in out File_Handle'Class;
Bitmap : Bitmap_Buffer'Class)
is
Hdr : Header;
Inf : Info;
Status : Status_Kind;
Row_Size : constant Integer_32 := Integer_32 (Bitmap.Width * 24);
Row_Padding : constant Integer_32 := (32 - (Row_Size mod 32)) mod 32 / 8;
Data_Size : constant Integer_32 := (Row_Size + Row_Padding) * Integer_32 (Bitmap.Height);
RGB_Pix : Bitmap_Color;
Pix_Out : UInt8_Array (1 .. 3);
Padding : constant UInt8_Array (1 .. Integer (Row_Padding)) := (others => 0);
begin
Hdr.Signature := 16#4D42#;
Hdr.Size := (Data_Size + 54) / 4;
Hdr.Offset := 54;
Inf.Struct_Size := 40;
Inf.Width := Integer_32 (Bitmap.Width);
Inf.Height := Integer_32 (Bitmap.Height);
Inf.Planes := 1;
Inf.Pixel_Size := 24;
Inf.Compression := 0;
Inf.Image_Size := Data_Size / 4;
Inf.PPMX := 2835;
Inf.PPMY := 2835;
Inf.Palette_Size := 0;
Inf.Important := 0;
Status := File.Write (Hdr.Arr);
if Status /= Status_Ok then
raise Program_Error;
end if;
Status := File.Write (Inf.Arr);
if Status /= Status_Ok then
raise Program_Error;
end if;
for Y in reverse 0 .. Bitmap.Height - 1 loop
for X in 0 .. Bitmap.Width - 1 loop
RGB_Pix := Bitmap.Pixel ((X, Y));
Pix_Out (1) := RGB_Pix.Blue;
Pix_Out (2) := RGB_Pix.Green;
Pix_Out (3) := RGB_Pix.Red;
Status := File.Write (Pix_Out);
if Status /= Status_Ok then
raise Program_Error;
end if;
end loop;
Status := File.Write (Padding);
if Status /= Status_Ok then
raise Program_Error;
end if;
end loop;
end Write_BMP_File;
end Bitmap_File_Output;
| 41.435714 | 97 | 0.524565 |
503fb7eaa3d0469f5e4ab13bc000693e6840f28d | 381 | adb | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/interface_conv.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/interface_conv.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/interface_conv.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- { dg-do run }
procedure Interface_Conv is
package Pkg is
type I1 is interface;
procedure Prim (X : I1) is null;
type I2 is interface;
procedure Prim (X : I2) is null;
type DT is new I1 and I2 with null record;
end Pkg;
use Pkg;
Obj : DT;
CW_3 : I2'Class := Obj;
CW_5 : I1'Class := I1'Class (CW_3); -- test
begin
null;
end;
| 21.166667 | 48 | 0.585302 |
0bab10d4ae378dee193c5f3c1a2321fd7bdf47f3 | 1,430 | ads | Ada | tier-1/xcb/source/thin/xcb-xcb_glx_context_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_glx_context_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_glx_context_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_glx_context_iterator_t is
-- Item
--
type Item is record
data : access xcb.xcb_glx_context_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_glx_context_iterator_t
.Item;
-- Pointer
--
package C_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_context_iterator_t.Item,
Element_Array => xcb.xcb_glx_context_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_glx_context_iterator_t
.Pointer;
-- Pointer_Pointer
--
package C_Pointer_Pointers is new Interfaces.C.Pointers
(Index => Interfaces.C.size_t,
Element => xcb.xcb_glx_context_iterator_t.Pointer,
Element_Array => xcb.xcb_glx_context_iterator_t.Pointer_Array,
Default_Terminator => null);
subtype Pointer_Pointer is C_Pointer_Pointers.Pointer;
end xcb.xcb_glx_context_iterator_t;
| 26.981132 | 79 | 0.669231 |
dfa3748a9494a429f38cd303162965e41b874b77 | 4,132 | ada | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37310a.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/c37310a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37310a.ada | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | -- C37310A.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.
--*
-- CHECK THAT IF A DISCRIMINANT HAS A DYNAMIC SUBTYPE, AN OTHERS
-- CHOICE CAN BE OMITTED IF ALL VALUES IN THE BASE
-- TYPE'S RANGE ARE COVERED.
-- ASL 7/10/81
-- SPS 10/25/82
-- PWN 01/31/95 REMOVED INCONSISTENCIES WITH ADA 9X.
WITH REPORT;
PROCEDURE C37310A IS
USE REPORT;
BEGIN
TEST ("C37310A", "CHECK DYNAMIC DISCRIMINANT SUBTYPES " &
"IN VARIANT RECORD DECLARATIONS");
DECLARE
ACHAR : CHARACTER := IDENT_CHAR('A');
ECHAR : CHARACTER := IDENT_CHAR('E');
JCHAR : CHARACTER := IDENT_CHAR('J');
MCHAR : CHARACTER := IDENT_CHAR('M');
SUBTYPE STATCHAR IS CHARACTER RANGE 'I'..'N';
SUBTYPE DYNCHAR IS CHARACTER RANGE ACHAR..ECHAR;
SUBTYPE SSTAT IS STATCHAR RANGE JCHAR..MCHAR;
TYPE LETTER IS NEW CHARACTER RANGE 'A'..'Z';
SUBTYPE DYNLETTER IS
LETTER RANGE LETTER(ECHAR)..LETTER(JCHAR);
TYPE REC1(DISC : SSTAT := 'K') IS
RECORD
CASE DISC IS
WHEN ASCII.NUL..CHARACTER'LAST => NULL;
END CASE;
END RECORD;
TYPE REC2(DISC : DYNCHAR := 'C') IS
RECORD
CASE DISC IS
WHEN ASCII.NUL..CHARACTER'LAST => NULL;
END CASE;
END RECORD;
TYPE REC3(DISC: DYNCHAR := 'D') IS
RECORD
CASE DISC IS
WHEN CHARACTER'FIRST..CHARACTER'LAST => NULL;
END CASE;
END RECORD;
TYPE REC4(DISC : DYNLETTER := 'F') IS
RECORD
CASE DISC IS
WHEN LETTER'BASE'FIRST..
LETTER'BASE'LAST => NULL;
END CASE;
END RECORD;
R1 : REC1;
R2 : REC2;
R3 : REC3;
R4 : REC4;
BEGIN
IF EQUAL(3,3) THEN
R1 := (DISC => 'L');
END IF;
IF R1.DISC /= 'L' THEN
FAILED ("ASSIGNMENT FAILED - 1");
END IF;
IF EQUAL(3,3) THEN
R2 := (DISC => 'B');
END IF;
IF R2.DISC /= 'B' THEN
FAILED ("ASSIGNMENT FAILED - 2");
END IF;
IF EQUAL(3,3) THEN
R3 := (DISC => 'B');
END IF;
IF R3.DISC /= 'B' THEN
FAILED ("ASSIGNMENT FAILED - 3");
END IF;
IF EQUAL(3,3) THEN
R4 := (DISC => 'H');
END IF;
IF R4.DISC /= 'H' THEN
FAILED ("ASSIGNMENT FAILED - 4");
END IF;
EXCEPTION
WHEN OTHERS =>
FAILED ("EXCEPTION RAISED");
END;
RESULT;
END C37310A;
| 33.056 | 79 | 0.514763 |
125eceac74225ab56afddd9dae322614f8142a41 | 2,903 | adb | Ada | src/ado-drivers.adb | Letractively/ada-ado | f0863c6975ae1a2c5349daee1e98a04fe11ba11e | [
"Apache-2.0"
] | null | null | null | src/ado-drivers.adb | Letractively/ada-ado | f0863c6975ae1a2c5349daee1e98a04fe11ba11e | [
"Apache-2.0"
] | null | null | null | src/ado-drivers.adb | Letractively/ada-ado | f0863c6975ae1a2c5349daee1e98a04fe11ba11e | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- ADO Drivers -- Database Drivers
-- Copyright (C) 2010, 2011, 2012, 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 Util.Log.Loggers;
with Ada.IO_Exceptions;
with ADO.Queries.Loaders;
package body ADO.Drivers is
use Util.Log;
Log : constant Loggers.Logger := Loggers.Create ("ADO.Drivers");
-- Global configuration properties (loaded by Initialize).
Global_Config : Util.Properties.Manager;
-- ------------------------------
-- Initialize the drivers and the library by reading the property file
-- and configure the runtime with it.
-- ------------------------------
procedure Initialize (Config : in String) is
begin
Log.Info ("Initialize using property file {0}", Config);
begin
Util.Properties.Load_Properties (Global_Config, Config);
exception
when Ada.IO_Exceptions.Name_Error =>
Log.Error ("Configuration file '{0}' does not exist", Config);
end;
Initialize (Global_Config);
end Initialize;
-- ------------------------------
-- Initialize the drivers and the library and configure the runtime with the given properties.
-- ------------------------------
procedure Initialize (Config : in Util.Properties.Manager'Class) is
begin
Global_Config := Util.Properties.Manager (Config);
-- Configure the XML query loader.
ADO.Queries.Loaders.Initialize (Global_Config.Get ("ado.queries.paths", ".;db"),
Global_Config.Get ("ado.queries.load", "false") = "true");
-- Initialize the drivers.
ADO.Drivers.Initialize;
end Initialize;
-- ------------------------------
-- Get the global configuration property identified by the name.
-- If the configuration property does not exist, returns the default value.
-- ------------------------------
function Get_Config (Name : in String;
Default : in String := "") return String is
begin
return Global_Config.Get (Name, Default);
end Get_Config;
-- Initialize the drivers which are available.
procedure Initialize is separate;
end ADO.Drivers;
| 36.2875 | 98 | 0.600413 |
4dfe3c3715638586094e1c7d463e7565fcee7e67 | 4,898 | ads | Ada | source/amf/mof/cmof/amf-cmof-comments-collections.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-comments-collections.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-comments-collections.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.Generic_Collections;
package AMF.CMOF.Comments.Collections is
pragma Preelaborate;
package CMOF_Comment_Collections is
new AMF.Generic_Collections
(CMOF_Comment,
CMOF_Comment_Access);
type Set_Of_CMOF_Comment is
new CMOF_Comment_Collections.Set with null record;
Empty_Set_Of_CMOF_Comment : constant Set_Of_CMOF_Comment;
type Ordered_Set_Of_CMOF_Comment is
new CMOF_Comment_Collections.Ordered_Set with null record;
Empty_Ordered_Set_Of_CMOF_Comment : constant Ordered_Set_Of_CMOF_Comment;
type Bag_Of_CMOF_Comment is
new CMOF_Comment_Collections.Bag with null record;
Empty_Bag_Of_CMOF_Comment : constant Bag_Of_CMOF_Comment;
type Sequence_Of_CMOF_Comment is
new CMOF_Comment_Collections.Sequence with null record;
Empty_Sequence_Of_CMOF_Comment : constant Sequence_Of_CMOF_Comment;
private
Empty_Set_Of_CMOF_Comment : constant Set_Of_CMOF_Comment
:= (CMOF_Comment_Collections.Set with null record);
Empty_Ordered_Set_Of_CMOF_Comment : constant Ordered_Set_Of_CMOF_Comment
:= (CMOF_Comment_Collections.Ordered_Set with null record);
Empty_Bag_Of_CMOF_Comment : constant Bag_Of_CMOF_Comment
:= (CMOF_Comment_Collections.Bag with null record);
Empty_Sequence_Of_CMOF_Comment : constant Sequence_Of_CMOF_Comment
:= (CMOF_Comment_Collections.Sequence with null record);
end AMF.CMOF.Comments.Collections;
| 53.23913 | 78 | 0.506125 |
12550f2fd5cebca897ecfb0d0dabd75d751e73c0 | 9,440 | ads | Ada | source/asis/spec/ada-containers-indefinite_vectors.ads | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | 4 | 2016-02-05T15:51:56.000Z | 2022-03-25T20:38:32.000Z | source/asis/spec/ada-containers-indefinite_vectors.ads | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | source/asis/spec/ada-containers-indefinite_vectors.ads | faelys/gela-asis | 48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253 | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of ada.ads file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
generic
type Index_Type is range <>;
type Element_Type (<>) is private;
with function "=" (Left : in Element_Type;
Right : in Element_Type)
return Boolean is <>;
package Ada.Containers.Indefinite_Vectors is
pragma Preelaborate (Indefinite_Vectors);
subtype Extended_Index is Index_Type'Base
range Index_Type'First - 1
.. Index_Type'Min (Index_Type'Base'Last - 1, Index_Type'Last) + 1;
No_Index : constant Extended_Index := Extended_Index'First;
type Vector is tagged private;
pragma Preelaborable_Initialization (Vector);
type Cursor is private;
pragma Preelaborable_Initialization (Cursor);
Empty_Vector : constant Vector;
No_Element : constant Cursor;
function "=" (Left : in Vector;
Right : in Vector)
return Boolean;
function To_Vector (Length : in Count_Type) return Vector;
function To_Vector (New_Item : in Element_Type;
Length : in Count_Type)
return Vector;
function "&" (Left : in Vector;
Right : in Vector)
return Vector;
function "&" (Left : in Vector;
Right : in Element_Type)
return Vector;
function "&" (Left : in Element_Type;
Right : in Vector)
return Vector;
function "&" (Left : in Element_Type;
Right : in Element_Type)
return Vector;
function Capacity (Container : in Vector) return Count_Type;
procedure Reserve_Capacity (Container : in out Vector;
Capacity : in Count_Type);
function Length (Container : in Vector) return Count_Type;
procedure Set_Length (Container : in out Vector;
Length : in Count_Type);
function Is_Empty (Container : in Vector) return Boolean;
procedure Clear (Container : in out Vector);
function To_Cursor (Container : Vector;
Index : Extended_Index)
return Cursor;
function To_Index (Position : in Cursor) return Extended_Index;
function Element (Container : in Vector;
Index : in Index_Type)
return Element_Type;
function Element (Position : in Cursor) return Element_Type;
procedure Replace_Element (Container : in out Vector;
Index : in Index_Type;
New_Item : in Element_Type);
procedure Replace_Element (Container : in out Vector;
Position : in Cursor;
New_item : in Element_Type);
procedure Query_Element
(Container : in Vector;
Index : in Index_Type;
Process : not null access procedure (Element : in Element_Type));
procedure Query_Element
(Position : in Cursor;
Process : not null access procedure (Element : in Element_Type));
procedure Update_Element
(Container : in out Vector;
Index : in Index_Type;
Process : not null access procedure (Element : in out Element_Type));
procedure Update_Element
(Container : in out Vector;
Position : in Cursor;
Process : not null access procedure (Element : in out Element_Type));
procedure Move (Target : in out Vector;
Source : in out Vector);
procedure Insert (Container : in out Vector;
Before : in Extended_Index;
New_Item : in Vector);
procedure Insert (Container : in out Vector;
Before : in Cursor;
New_Item : in Vector);
procedure Insert (Container : in out Vector;
Before : in Cursor;
New_Item : in Vector;
Position : out Cursor);
procedure Insert (Container : in out Vector;
Before : in Extended_Index;
New_Item : in Element_Type;
Count : in Count_Type := 1);
procedure Insert (Container : in out Vector;
Before : in Cursor;
New_Item : in Element_Type;
Count : in Count_Type := 1);
procedure Insert (Container : in out Vector;
Before : in Cursor;
New_Item : in Element_Type;
Position : out Cursor;
Count : in Count_Type := 1);
procedure Prepend (Container : in out Vector;
New_Item : in Vector);
procedure Prepend (Container : in out Vector;
New_Item : in Element_Type;
Count : in Count_Type := 1);
procedure Append (Container : in out Vector;
New_Item : in Vector);
procedure Append (Container : in out Vector;
New_Item : in Element_Type;
Count : in Count_Type := 1);
procedure Insert_Space (Container : in out Vector;
Before : in Extended_Index;
Count : in Count_Type := 1);
procedure Insert_Space (Container : in out Vector;
Before : in Cursor;
Position : out Cursor;
Count : in Count_Type := 1);
procedure Delete (Container : in out Vector;
Index : in Extended_Index;
Count : in Count_Type := 1);
procedure Delete (Container : in out Vector;
Position : in out Cursor;
Count : in Count_Type := 1);
procedure Delete_First (Container : in out Vector;
Count : in Count_Type := 1);
procedure Delete_Last (Container : in out Vector;
Count : in Count_Type := 1);
procedure Reverse_Elements (Container : in out Vector);
procedure Swap (Container : in out Vector;
I : in Index_Type;
J : in Index_Type);
procedure Swap (Container : in out Vector;
I : in Cursor;
J : in Cursor);
function First_Index (Container : in Vector) return Index_Type;
function First (Container : in Vector) return Cursor;
function First_Element (Container : in Vector) return Element_Type;
function Last_Index (Container : in Vector) return Extended_Index;
function Last (Container : in Vector) return Cursor;
function Last_Element (Container : in Vector) return Element_Type;
function Next (Position : in Cursor) return Cursor;
procedure Next (Position : in out Cursor);
function Previous (Position : in Cursor) return Cursor;
procedure Previous (Position : in out Cursor);
function Find_Index (Container : in Vector;
Item : in Element_Type;
Index : in Index_Type := Index_Type'First)
return Extended_Index;
function Find (Container : in Vector;
Item : in Element_Type;
Position : in Cursor := No_Element)
return Cursor;
function Reverse_Find_Index (Container : in Vector;
Item : in Element_Type;
Index : in Index_Type := Index_Type'Last)
return Extended_Index;
function Reverse_Find (Container : in Vector;
Item : in Element_Type;
Position : in Cursor := No_Element)
return Cursor;
function Contains (Container : in Vector;
Item : in Element_Type)
return Boolean;
function Has_Element (Position : in Cursor) return Boolean;
procedure Iterate
(Container : in Vector;
Process : not null access procedure (Position : in Cursor));
procedure Reverse_Iterate
(Container : in Vector;
Process : not null access procedure (Position : in Cursor));
generic
with function "<" (Left : in Element_Type;
Right : in Element_Type)
return Boolean is <>;
package Generic_Sorting is
function Is_Sorted (Container : in Vector) return Boolean;
procedure Sort (Container : in out Vector);
procedure Merge (Target : in out Vector;
Source : in out Vector);
end Generic_Sorting;
private
type Vector is tagged null record;
Empty_Vector : constant Vector := (null record);
type Cursor is null record;
No_Element : constant Cursor := (null record);
end Ada.Containers.Indefinite_Vectors;
| 34.079422 | 79 | 0.540996 |
4daa25832ec24d26a8e332d9723657cab533360b | 2,928 | adb | Ada | 1-base/lace/applet/demo/event/simple/deferred/launch_simple_deferred_events_demo.adb | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 20 | 2015-11-04T09:23:59.000Z | 2022-01-14T10:21:42.000Z | 1-base/lace/applet/demo/event/simple/deferred/launch_simple_deferred_events_demo.adb | charlie5/lace-alire | 9ace9682cf4daac7adb9f980c2868d6225b8111c | [
"0BSD"
] | 2 | 2015-11-04T17:05:56.000Z | 2015-12-08T03:16:13.000Z | 1-base/lace/applet/demo/event/simple/deferred/launch_simple_deferred_events_demo.adb | charlie5/lace-alire | 9ace9682cf4daac7adb9f980c2868d6225b8111c | [
"0BSD"
] | 1 | 2015-12-07T12:53:52.000Z | 2015-12-07T12:53:52.000Z | with
lace_demo_Events,
lace_demo_Keyboard,
lace.Observer.deferred,
lace.Subject .local,
lace.Response,
lace.Event.utility,
ada.Text_IO,
ada.Strings.unbounded,
ada.real_Time;
procedure launch_simple_deferred_events_Demo
--
-- A simple demonstration of the Lace deferred event system.
--
is
use lace_demo_Events,
lace.Event,
lace.event.Utility,
Lace,
ada.text_IO,
ada.Strings.unbounded,
ada.real_Time;
-- Key Response
--
type key_Map_of_message is array (Character) of unbounded_String;
type key_Response is new Response.item with
record
key_to_message_Map : key_Map_of_message;
end record;
overriding
procedure respond (Self : in out key_Response; to_Event : in Event.item'Class)
is
the_Event : keyboard_Event renames keyboard_Event (to_Event);
begin
put_Line ( "Message is: " -- Our response is to display the message associated
& to_String (Self.key_to_message_Map (the_Event.Key))); -- with the keyboard event key on the console.
end respond;
--- Globals
--
the_Subject : Subject.local.view;
the_Observer : constant Observer.deferred.view := Observer.deferred.forge.new_Observer ("demo.Observer");
the_Response : aliased key_Response := (Response.item with
key_to_message_Map => ('a' => to_unbounded_String ("'a' was received from demo keyboard."),
'b' => to_unbounded_String ("'b' was received from demo keyboard."),
others => to_unbounded_String ("Unhandled key was received from demo keyboard.")));
Now : ada.real_Time.Time := ada.real_Time.Clock;
begin
Event.utility.use_text_Logger (log_filename => "events_demo"); -- Enable 'simple text file' event logging.
the_Subject := lace_demo_Keyboard.as_event_Subject; -- Get a reference to the keyboard as an event subject.
Event.utility.connect (the_observer => Observer.view (the_Observer), -- Setup out response to a keyboard event.
to_subject => Subject .view (the_Subject),
with_response => the_Response'unchecked_Access,
to_event_kind => to_Kind (keyboard_Event'Tag));
lace_demo_Keyboard.start;
for Each in 1 .. 5
loop -- Our main loop.
the_Observer.respond; -- Response to any queued events occur here.
Now := Now + to_time_Span (1.0);
delay until Now;
end loop;
lace_demo_Keyboard.stop;
Event.utility.close; -- Ensures event logging is closed (ie saved to log file).
end launch_simple_deferred_events_Demo;
| 35.707317 | 159 | 0.604167 |
df8984ea143feeb3385b32bc2f92ca805549d89c | 3,126 | ads | Ada | src/nso-json-gnoga_object.ads | SSOCsoft/Log_Reporter | 9351ce0b5bda6909d7b9fac3436a702393188fc9 | [
"MIT"
] | null | null | null | src/nso-json-gnoga_object.ads | SSOCsoft/Log_Reporter | 9351ce0b5bda6909d7b9fac3436a702393188fc9 | [
"MIT"
] | null | null | null | src/nso-json-gnoga_object.ads | SSOCsoft/Log_Reporter | 9351ce0b5bda6909d7b9fac3436a702393188fc9 | [
"MIT"
] | null | null | null | Pragma Ada_2012;
With
Gnoga.Gui.Base
;
Package NSO.JSON.Gnoga_Object is --with Elaborate_Body is
Use Gnoga.Gui.Base;
Subtype JSON_Class is NSO.JSON.Instance'Class;
-- Returns the JSON format of the form parameters from the given object.
-- NOTE: This method does NOT work with multi-select selections; when
-- such is attempted, later values overwrite the former values.
Function Get_JSON( Object : Base_Type'Class ) return JSON_Class;
Type Form_Object is new Base_Type with private;
Function As_Form (Object : Base_Type'Class) return Form_Object;
Function Parameters (Object : Form_Object) return JSON_Class;
-- REPORT_VIEW
-- This function ties together four types:
-- (1) A Form-type, which is the ultimate data-source;
-- (2) The Params-type, which represents the data submitted by the form;
-- (3) The Report-type, which is the filtered/processed Params; and
-- (4) The View-type, which is the rendering-media for the report.
--
-- As an example, consider the situation of the daily-log, within this setup
-- the form has Weather-reports which must be processed (filtered/colated)
-- into an actual report. After this, the report is processed into HTML and
-- sent in an email.
--
-- Process: [HTML_FORM] -> [PARAMETERS] -> [REPORT_OBJECT] -> [HTML_VIEW].
Generic
Type Form (<>) is new Form_Object with private;
Type Params(<>) is limited private;
Type Report(<>) is limited private;
Type View (<>) is limited private;
-- Retrieve the submitted form data.
with Function Submission(Object : Form ) return Params is <>;
-- Filter data and [re]construct the report.
with Function Parameters(Object : Params) return Report is <>;
-- Transform the report-data into some viewable data.
with Function Processing(Object : Report) return View is <>;
Function Report_View (Object : Form_Object'Class) Return View;
-- GENERIC_REPORTER
--
Generic
Type Form (<>) is new Form_Object with private;
Type Params(<>) is limited private;
-- Retrieve the submitted form data.
with Function Parameters(Object : Form) return Params is <>;
This : in Form_Object'Class;
Package Generic_Reporter is
Original_Parameters : Constant Params := Parameters( Form(This) );
Generic
-- The particular report we are getting.
Type Report(<>) is limited private;
-- The type for the final display.
Type View (<>) is limited private;
-- Filter the data and [re]construct the report.
with Function Get_Report(Object : Params:= Original_Parameters) return Report is <>;
-- Transform the report-data into some viewable data.
with Function Processing(Object : Report:= Get_Report) return View is <>;
Function Generate_Report return View;
End Generic_Reporter;
Private
Type Form_Object is new Base_Type with null record;
End NSO.JSON.Gnoga_Object;
| 33.978261 | 98 | 0.660589 |
fbaf15418a2af6e3c42a489e634e1428bee3632f | 2,178 | adb | Ada | day18-ada/src/calculate2.adb | xclemence/adventofcode2020 | 4cbd2c5325a2a2a85f0644613790703aa784e2b1 | [
"MIT"
] | 1 | 2021-02-12T09:07:51.000Z | 2021-02-12T09:07:51.000Z | day18-ada/src/calculate2.adb | xclemence/adventofcode2020 | 4cbd2c5325a2a2a85f0644613790703aa784e2b1 | [
"MIT"
] | null | null | null | day18-ada/src/calculate2.adb | xclemence/adventofcode2020 | 4cbd2c5325a2a2a85f0644613790703aa784e2b1 | [
"MIT"
] | null | null | null | with Operation; use Operation;
package body Calculate2 is
procedure Update_Result(Value: NaturalDouble;
Result: in out NaturalDouble;
Operation: OperationMethod) is
begin
if Result = -1 then
Result := Value;
else
Result := Operation(Result, Value);
end if;
end Update_Result;
function Execute(Value: String;
Current_Index: in out Integer;
Priority_Mode: Boolean := False) return NaturalDouble is
Current_Element: Character;
Result: NaturalDouble;
Value_String : string(1..1);
Current_Operation: OperationMethod;
begin
Result := -1;
Current_Operation := Add'Access;
if Current_Index > Value'Length then
return Result;
end if;
while Current_Index <= Value'Length loop
Current_Element := Value(Current_Index);
Current_Index := Current_Index + 1;
if Current_Element /= ' ' then
case Current_Element is
when '(' =>
Update_Result(Execute(Value, Current_Index, False), Result, Current_Operation);
when ')' =>
if Priority_Mode then
Current_Index := Current_Index - 1;
end if;
return Result;
when '+' =>
Current_Operation := Add'Access;
when '*' =>
if Priority_Mode then
Current_Index := Current_Index - 1;
return Result;
else
Update_Result(Execute(Value, Current_Index, True), Result, Multiple'Access);
end if;
when others =>
Value_String(1) := Current_Element;
Update_Result(NaturalDouble'Value (Value_String), Result, Add'Access);
end case;
end if;
end loop;
return Result;
end Execute;
end Calculate2;
| 29.835616 | 97 | 0.495868 |
0bc5797ad590da255b566f10374626c9eb979a7d | 164 | ads | Ada | src/demo.ads | onox/orka-demo | 937d6ead1853065983d9eefb57b23d6c3515e5e3 | [
"Zlib"
] | 3 | 2021-04-26T17:06:55.000Z | 2021-11-11T13:49:16.000Z | src/demo.ads | onox/orka-demo | 937d6ead1853065983d9eefb57b23d6c3515e5e3 | [
"Zlib"
] | 1 | 2021-04-28T21:47:17.000Z | 2021-04-28T21:47:17.000Z | src/demo.ads | onox/orka-demo | 937d6ead1853065983d9eefb57b23d6c3515e5e3 | [
"Zlib"
] | null | null | null | with Orka.Jobs.System;
package Demo is
package Job_System is new Orka.Jobs.System
(Maximum_Queued_Jobs => 16,
Maximum_Job_Graphs => 4);
end Demo;
| 16.4 | 45 | 0.695122 |
101517321786543f8b742bcbbbbf04ffba4a6188 | 1,002 | ads | Ada | src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/disc_arr_bound/pck.ads | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 31 | 2018-08-01T21:25:24.000Z | 2022-02-14T07:52:34.000Z | src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/disc_arr_bound/pck.ads | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 40 | 2018-12-03T19:48:52.000Z | 2021-03-10T06:34:26.000Z | src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/disc_arr_bound/pck.ads | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 20 | 2018-11-16T21:19:22.000Z | 2021-10-18T23:08:24.000Z | -- Copyright 2015-2016 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- 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
type Array_Type is array (Integer range <>) of Integer;
type Record_Type (N : Integer) is record
A : Array_Type (1 .. N);
end record;
function Get (N : Integer) return Record_Type;
procedure Do_Nothing (A : System.Address);
end Pck;
| 33.4 | 73 | 0.718563 |
fb129993496ab896d0e590a7b5882e0d41cc34a2 | 4,129 | ada | Ada | Task/Brownian-tree/Ada/brownian-tree.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2021-05-05T13:42:20.000Z | 2021-05-05T13:42:20.000Z | Task/Brownian-tree/Ada/brownian-tree.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | null | null | null | Task/Brownian-tree/Ada/brownian-tree.ada | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | null | null | null | with Ada.Numerics.Discrete_Random;
with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Events.Events;
procedure Brownian_Tree is
Width : constant := 800;
Height : constant := 600;
Points : constant := 50_000;
subtype Width_Range is Integer range 1 .. Width;
subtype Height_Range is Integer range 1 .. Height;
type Direction is (N, NE, E, SE, S, SW, W, NW);
package Random_Width is new Ada.Numerics.Discrete_Random (Width_Range);
package Random_Height is new Ada.Numerics.Discrete_Random (Height_Range);
package Random_Direc is new Ada.Numerics.Discrete_Random (Direction);
Window : SDL.Video.Windows.Window;
Renderer : SDL.Video.Renderers.Renderer;
Event : SDL.Events.Events.Events;
Width_Gen : Random_Width.Generator;
Height_Gen : Random_Height.Generator;
Direc_Gen : Random_Direc.Generator;
function Poll_Quit return Boolean is
use type SDL.Events.Event_Types;
begin
while SDL.Events.Events.Poll (Event) loop
if Event.Common.Event_Type = SDL.Events.Quit then
return True;
end if;
end loop;
return False;
end Poll_Quit;
procedure Draw_Brownian_Tree is
Field : array (Width_Range, Height_Range) of Boolean := (others => (others => False));
X : Width_Range;
Y : Height_Range;
Direc : Direction;
procedure Random_Free (X : out Width_Range; Y : out Height_Range) is
begin
-- Find free random spot
loop
X := Random_Width.Random (Width_Gen);
Y := Random_Height.Random (Height_Gen);
exit when Field (X, Y) = False;
end loop;
end Random_Free;
begin
-- Seed
Field (Random_Width.Random (Width_Gen),
Random_Height.Random (Height_Gen)) := True;
for I in 0 .. Points loop
Random_Free (X, Y);
loop
-- If collide with wall then new random start
while
X = Width_Range'First or X = Width_Range'Last or
Y = Height_Range'First or Y = Height_Range'Last
loop
Random_Free (X, Y);
end loop;
exit when Field (X - 1, Y - 1) or Field (X, Y - 1) or Field (X + 1, Y - 1);
exit when Field (X - 1, Y) or Field (X + 1, Y);
exit when Field (X - 1, Y + 1) or Field (X, Y + 1) or Field (X + 1, Y + 1);
Direc := Random_Direc.Random (Direc_Gen);
case Direc is
when NW | N | NE => Y := Y - 1;
when SW | S | SE => Y := Y + 1;
when others => null;
end case;
case Direc is
when NW | W | SW => X := X - 1;
when SE | E | NE => X := X + 1;
when others => null;
end case;
end loop;
Field (X, Y) := True;
Renderer.Draw (Point => (SDL.C.int (X), SDL.C.int (Y)));
if I mod 100 = 0 then
if Poll_Quit then
return;
end if;
Window.Update_Surface;
end if;
end loop;
end Draw_Brownian_Tree;
begin
Random_Width.Reset (Width_Gen);
Random_Height.Reset (Height_Gen);
Random_Direc.Reset (Direc_Gen);
if not SDL.Initialise (Flags => SDL.Enable_Screen) then
return;
end if;
SDL.Video.Windows.Makers.Create (Win => Window,
Title => "Brownian tree",
Position => SDL.Natural_Coordinates'(X => 10, Y => 10),
Size => SDL.Positive_Sizes'(Width, Height),
Flags => 0);
SDL.Video.Renderers.Makers.Create (Renderer, Window.Get_Surface);
Renderer.Set_Draw_Colour ((0, 0, 0, 255));
Renderer.Fill (Rectangle => (0, 0, Width, Height));
Renderer.Set_Draw_Colour ((200, 200, 200, 255));
Draw_Brownian_Tree;
Window.Update_Surface;
loop
exit when Poll_Quit;
delay 0.050;
end loop;
Window.Finalize;
SDL.Finalise;
end Brownian_Tree;
| 32.769841 | 92 | 0.55752 |
234f26c6af9dc3412aedce5d21d6ee570ffdedca | 13,985 | ads | Ada | generated-sources/ada-server/mojang-api/src/model/com-github-asyncmc-mojang-api-ada-server-model-models.ads | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/ada-server/mojang-api/src/model/com-github-asyncmc-mojang-api-ada-server-model-models.ads | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/ada-server/mojang-api/src/model/com-github-asyncmc-mojang-api-ada-server-model-models.ads | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | -- Mojang API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-generator.tech
-- Do not edit the class manually.
with Swagger.Streams;
with Ada.Containers.Vectors;
package com.github.asyncmc.mojang.api.ada.server.model.Models is
type SecurityQuestion_Type is
record
Id : Integer;
Question : Swagger.UString;
end record;
package SecurityQuestion_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => SecurityQuestion_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityQuestion_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityQuestion_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityQuestion_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityQuestion_Type_Vectors.Vector);
type SecurityAnswerId_Type is
record
Id : Integer;
end record;
package SecurityAnswerId_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => SecurityAnswerId_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityAnswerId_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityAnswerId_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityAnswerId_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityAnswerId_Type_Vectors.Vector);
type SecurityChallenge_Type is
record
Question : com.github.asyncmc.mojang.api.ada.server.model.Models.SecurityQuestion_Type;
Answer : com.github.asyncmc.mojang.api.ada.server.model.Models.SecurityAnswerId_Type;
end record;
package SecurityChallenge_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => SecurityChallenge_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityChallenge_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityChallenge_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityChallenge_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityChallenge_Type_Vectors.Vector);
type Error_Type is
record
Error : Swagger.Nullable_UString;
Error_Message : Swagger.Nullable_UString;
end record;
package Error_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Error_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in Error_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in Error_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out Error_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out Error_Type_Vectors.Vector);
type CurrentPlayerIDs_Type is
record
Id : Swagger.UString;
Name : Swagger.UString;
Legacy : Swagger.Nullable_Boolean;
Demo : Swagger.Nullable_Boolean;
end record;
package CurrentPlayerIDs_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => CurrentPlayerIDs_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in CurrentPlayerIDs_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in CurrentPlayerIDs_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out CurrentPlayerIDs_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out CurrentPlayerIDs_Type_Vectors.Vector);
type NameChange_Type is
record
Name : Swagger.UString;
Changed_To_At : Swagger.Nullable_Long;
end record;
package NameChange_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => NameChange_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in NameChange_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in NameChange_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out NameChange_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out NameChange_Type_Vectors.Vector);
type SkinModel_Type is
record
end record;
package SkinModel_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => SkinModel_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SkinModel_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SkinModel_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SkinModel_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SkinModel_Type_Vectors.Vector);
type ChangeSkinRequest_Type is
record
Model : com.github.asyncmc.mojang.api.ada.server.model.Models.SkinModel_Type;
Url : Swagger.UString;
end record;
package ChangeSkinRequest_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => ChangeSkinRequest_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in ChangeSkinRequest_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in ChangeSkinRequest_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out ChangeSkinRequest_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out ChangeSkinRequest_Type_Vectors.Vector);
type SecurityAnswer_Type is
record
Id : Integer;
end record;
package SecurityAnswer_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => SecurityAnswer_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityAnswer_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in SecurityAnswer_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityAnswer_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out SecurityAnswer_Type_Vectors.Vector);
type OrderStatisticsResponse_Type is
record
Total : Swagger.Long;
Last24h : Swagger.Long;
Sale_Velocity_Per_Seconds : double;
end record;
package OrderStatisticsResponse_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => OrderStatisticsResponse_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in OrderStatisticsResponse_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in OrderStatisticsResponse_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out OrderStatisticsResponse_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out OrderStatisticsResponse_Type_Vectors.Vector);
type OrderStatistic_Type is
record
end record;
package OrderStatistic_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => OrderStatistic_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in OrderStatistic_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in OrderStatistic_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out OrderStatistic_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out OrderStatistic_Type_Vectors.Vector);
type OrderStatisticsRequest_Type is
record
Metric_Keys : com.github.asyncmc.mojang.api.ada.server.model.Models.OrderStatistic_Type_Vectors.Vector;
end record;
package OrderStatisticsRequest_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => OrderStatisticsRequest_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in OrderStatisticsRequest_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in OrderStatisticsRequest_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out OrderStatisticsRequest_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out OrderStatisticsRequest_Type_Vectors.Vector);
type UploadSkinRequest_Type is
record
Model : com.github.asyncmc.mojang.api.ada.server.model.Models.SkinModel_Type;
File : Swagger.Http_Content_Type;
end record;
package UploadSkinRequest_Type_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => UploadSkinRequest_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in UploadSkinRequest_Type);
procedure Serialize (Into : in out Swagger.Streams.Output_Stream'Class;
Name : in String;
Value : in UploadSkinRequest_Type_Vectors.Vector);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out UploadSkinRequest_Type);
procedure Deserialize (From : in Swagger.Value_Type;
Name : in String;
Value : out UploadSkinRequest_Type_Vectors.Vector);
end com.github.asyncmc.mojang.api.ada.server.model.Models;
| 35.951157 | 110 | 0.582481 |
235d6026a496151f64fa2facb2c4d650fe959b60 | 1,460 | ads | Ada | src/tests/aunit/util-assertions.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 60 | 2015-01-18T23:05:34.000Z | 2022-03-20T18:56:30.000Z | src/tests/aunit/util-assertions.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 20 | 2016-09-15T16:41:30.000Z | 2022-03-29T22:02:32.000Z | src/tests/aunit/util-assertions.ads | yrashk/ada-util | 2aaa1d87e92a7137e1c63dce90f0722c549dfafd | [
"Apache-2.0"
] | 10 | 2015-02-13T04:00:45.000Z | 2022-03-20T18:57:54.000Z | -----------------------------------------------------------------------
-- AUnit utils - Helper for writing unit tests
-- Copyright (C) 2009, 2010 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 AUnit.Assertions;
with GNAT.Source_Info;
package Util.Assertions is
-- Check that the value matches what we expect.
generic
type Value_Type is (<>);
procedure Assert_Equals_T (T : in AUnit.Assertions.Test'Class;
Expect : in Value_Type;
Value : in Value_Type;
Message : in String := "Test failed";
Source : in String := GNAT.Source_Info.File;
Line : in Natural := GNAT.Source_Info.Line);
end Util.Assertions;
| 40.555556 | 77 | 0.576027 |
50d1d5178509ddbfffc5028970f8c1d30fc11f7c | 4,021 | adb | Ada | thirdparty/glut/progs/ada/scenebamb_procs.adb | ShiroixD/pag_zad_2 | cdb6ccf48402cf4dbf1284827a4e281d3b12a64b | [
"MIT"
] | 1 | 2019-01-11T13:55:53.000Z | 2019-01-11T13:55:53.000Z | thirdparty/glut/progs/ada/scenebamb_procs.adb | ShiroixD/pag_zad_2 | cdb6ccf48402cf4dbf1284827a4e281d3b12a64b | [
"MIT"
] | 1 | 2018-08-10T19:11:58.000Z | 2018-08-10T19:12:17.000Z | thirdparty/glut/progs/ada/scenebamb_procs.adb | ShiroixD/pag_zad_2 | cdb6ccf48402cf4dbf1284827a4e281d3b12a64b | [
"MIT"
] | null | null | null | --
-- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc.
-- ALL RIGHTS RESERVED
-- Permission to use, copy, modify, and distribute this software for
-- any purpose and without fee is hereby granted, provided that the above
-- copyright notice appear in all copies and that both the copyright notice
-- and this permission notice appear in supporting documentation, and that
-- the name of Silicon Graphics, Inc. not be used in advertising
-- or publicity pertaining to distribution of the software without specific,
-- written prior permission.
--
-- THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
-- AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
-- INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
-- FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
-- GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
-- SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
-- KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
-- LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
-- THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
-- ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
-- ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
-- POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
--
-- US Government Users Restricted Rights
-- Use, duplication, or disclosure by the Government is subject to
-- restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
-- (c)(1)(ii) of the Rights in Technical Data and Computer Software
-- clause at DFARS 252.227-7013 and/or in similar or successor
-- clauses in the FAR or the DOD or NASA FAR Supplement.
-- Unpublished-- rights reserved under the copyright laws of the
-- United States. Contractor/manufacturer is Silicon Graphics,
-- Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
--
-- OpenGL(TM) is a trademark of Silicon Graphics, Inc.
--
with GL; use GL;
with Glut; use Glut;
package body Scenebamb_Procs is
procedure DoInit is
ambient : array (0 .. 3) of aliased GLfloat :=
(0.0, 0.0, 1.0, 1.0);
diffuse : array (0 .. 3) of aliased GLfloat :=
(1.0, 1.0, 1.0, 1.0);
specular : array (0 .. 3) of aliased GLfloat :=
(1.0, 1.0, 1.0, 1.0);
position : array (0 .. 3) of aliased GLfloat :=
(1.0, 1.0, 1.0, 0.0);
begin
glLightfv (GL_LIGHT0, GL_AMBIENT, ambient (0)'access);
glLightfv (GL_LIGHT0, GL_DIFFUSE, diffuse (0)'access);
glLightfv (GL_LIGHT0, GL_POSITION, position (0)'access);
glEnable (GL_LIGHTING);
glEnable (GL_LIGHT0);
glEnable (GL_DEPTH_TEST);
glDepthFunc (GL_LESS);
end DoInit;
procedure DoDisplay is
begin
-- 16#4100# = GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT
glClear (GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT);
glPushMatrix;
glRotatef (20.0, 1.0, 0.0, 0.0);
glPushMatrix;
glTranslatef (-0.75, 0.5, 0.0);
glRotatef (90.0, 1.0, 0.0, 0.0);
glutSolidTorus (0.275, 0.85, 15, 15);
glPopMatrix;
glPushMatrix;
glTranslatef (-0.75, -0.5, 0.0);
glRotatef (270.0, 1.0, 0.0, 0.0);
glutSolidCone (1.0, 2.0, 15, 15);
glPopMatrix;
glPushMatrix;
glTranslatef (0.75, 0.0, -1.0);
glutSolidSphere (1.0, 15, 15);
glPopMatrix;
glPopMatrix;
glFlush;
end DoDisplay;
procedure ReshapeCallback (w : Integer; h : Integer) is
begin
glViewport (0, 0, GLsizei(w), GLsizei(h));
glMatrixMode (GL_PROJECTION);
glLoadIdentity;
if w <= h then
glOrtho (-2.5, 2.5, GLdouble (-2.5*Float (h)/ Float (w)),
GLdouble (2.5*Float (h)/Float (w)), -10.0, 10.0);
else
glOrtho (GLdouble (-2.5*Float (w)/Float (h)),
GLdouble (2.5*Float (w)/Float (h)), -2.5, 2.5, -10.0, 10.0);
end if;
glMatrixMode (GL_MODELVIEW);
end ReshapeCallback;
end Scenebamb_Procs;
| 36.554545 | 77 | 0.659289 |
127dff067de014704b867462fe7b8e308548210e | 274 | ads | Ada | examples/stm32f0/rfm69_moter/modem/controller.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 1 | 2021-04-06T07:57:56.000Z | 2021-04-06T07:57:56.000Z | examples/stm32f0/rfm69_moter/modem/controller.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | null | null | null | examples/stm32f0/rfm69_moter/modem/controller.ads | ekoeppen/STM32_Generic_Ada_Drivers | 4ff29c3026c4b24280baf22a5b81ea9969375466 | [
"MIT"
] | 2 | 2018-05-29T13:59:31.000Z | 2019-02-03T19:48:08.000Z | with Ada.Real_Time; use Ada.Real_Time;
package Controller is
Period : constant Time_Span := Milliseconds (200);
procedure Periodic_Tasks;
procedure Handle_Host_Data;
procedure Handle_RF_Data;
procedure Send_Log_Message (Message : String);
end Controller;
| 21.076923 | 53 | 0.766423 |
4d450fe04b921a33fcf71960f5a0e06c25011992 | 5,224 | adb | Ada | awa/src/awa-events-queues.adb | fuzzysloth/ada-awa | f9b921eeea29841667a028f2fc4528e4385d247a | [
"Apache-2.0"
] | null | null | null | awa/src/awa-events-queues.adb | fuzzysloth/ada-awa | f9b921eeea29841667a028f2fc4528e4385d247a | [
"Apache-2.0"
] | null | null | null | awa/src/awa-events-queues.adb | fuzzysloth/ada-awa | f9b921eeea29841667a028f2fc4528e4385d247a | [
"Apache-2.0"
] | null | null | null | -----------------------------------------------------------------------
-- awa-events-queues -- AWA Event Queues
-- Copyright (C) 2012 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 Util.Serialize.Mappers;
with AWA.Events.Queues.Fifos;
with AWA.Events.Queues.Persistents;
package body AWA.Events.Queues is
-- ------------------------------
-- Queue the event.
-- ------------------------------
procedure Enqueue (Into : in Queue_Ref;
Event : in AWA.Events.Module_Event'Class) is
Q : constant Queue_Info_Access := Into.Value;
begin
if Q = null or else Q.Queue = null then
return;
end if;
Q.Queue.Enqueue (Event);
end Enqueue;
-- ------------------------------
-- Dequeue an event and process it with the <b>Process</b> procedure.
-- ------------------------------
procedure Dequeue (From : in Queue_Ref;
Process : access procedure (Event : in Module_Event'Class)) is
Q : constant Queue_Info_Access := From.Value;
begin
if Q = null or else Q.Queue = null then
return;
end if;
Q.Queue.Dequeue (Process);
end Dequeue;
-- ------------------------------
-- Returns true if the reference does not contain any element.
-- ------------------------------
function Is_Null (Queue : in Queue_Ref'Class) return Boolean is
Q : constant Queue_Info_Access := Queue.Value;
begin
return Q = null or else Q.Queue = null;
end Is_Null;
-- ------------------------------
-- Returns the queue name.
-- ------------------------------
function Get_Name (Queue : in Queue_Ref'Class) return String is
Q : constant Queue_Info_Access := Queue.Value;
begin
if Q = null then
return "";
else
return Q.Name;
end if;
end Get_Name;
-- ------------------------------
-- Get the model queue reference object.
-- Returns a null object if the queue is not persistent.
-- ------------------------------
function Get_Queue (Queue : in Queue_Ref'Class) return AWA.Events.Models.Queue_Ref is
Q : constant Queue_Info_Access := Queue.Value;
begin
if Q = null or else Q.Queue = null then
return AWA.Events.Models.Null_Queue;
else
return Q.Queue.Get_Queue;
end if;
end Get_Queue;
FIFO_QUEUE_TYPE : constant String := "fifo";
PERSISTENT_QUEUE_TYPE : constant String := "persist";
-- ------------------------------
-- Create the event queue identified by the name <b>Name</b>. The queue factory
-- identified by <b>Kind</b> is called to create the event queue instance.
-- Returns a reference to the queue.
-- ------------------------------
function Create_Queue (Name : in String;
Kind : in String;
Props : in EL.Beans.Param_Vectors.Vector;
Context : in EL.Contexts.ELContext'Class)
return Queue_Ref is
Result : Queue_Ref;
Q : constant Queue_Info_Access := new Queue_Info '(Util.Refs.Ref_Entity with
Length => Name'Length,
Name => Name,
others => <>);
begin
Queue_Refs.Ref (Result) := Queue_Refs.Create (Q);
if Kind = FIFO_QUEUE_TYPE then
Q.Queue := AWA.Events.Queues.Fifos.Create_Queue (Name, Props, Context);
elsif Kind = PERSISTENT_QUEUE_TYPE then
Q.Queue := AWA.Events.Queues.Persistents.Create_Queue (Name, Props, Context);
else
raise Util.Serialize.Mappers.Field_Error with "Invalid queue type: " & Kind;
end if;
return Result;
end Create_Queue;
function Null_Queue return Queue_Ref is
Result : Queue_Ref;
begin
return Result;
end Null_Queue;
-- ------------------------------
-- Finalize the referenced object. This is called before the object is freed.
-- ------------------------------
overriding
procedure Finalize (Object : in out Queue_Info) is
procedure Free is
new Ada.Unchecked_Deallocation (Object => Queue'Class,
Name => Queue_Access);
begin
if Object.Queue /= null then
Object.Queue.Finalize;
Free (Object.Queue);
end if;
end Finalize;
end AWA.Events.Queues;
| 37.049645 | 88 | 0.539242 |
0b7988bfa9c11d3b4685bd10b3035968ec31a4ee | 6,002 | ads | Ada | arch/ARM/STM32/driversL4x3/stm32-crc-dma.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/driversWB55x/stm32-crc-dma.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | arch/ARM/STM32/driversWB55x/stm32-crc-dma.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"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. --
-- --
------------------------------------------------------------------------------
-- A driver for the Cyclic Redundancy Check CRC-32 calculation processor,
-- using DMA to transfer the data to the CRC unit (instead of the CPU).
-- Note this API is for the STM32 F4x family. Other STM MCUs have additional
-- CRC capabilities.
-- See also app note AN4187 "Using CRC through DMA"
-- Example usage, assuming prior clock enabling for the CRC unit:
-- Checksum_DMA : UInt32 := 0;
--
-- Data : constant Block_32 := ( .... );
--
-- ...
--
-- Enable_Clock (Controller);
--
-- Reset (Controller);
--
-- Reset_Calculator (CRC_Unit); -- if need be
--
-- Update_CRC (CRC_Unit, Controller'Access, Stream, Input => Data);
--
-- DMA_IRQ_Handler.Await_Event (Next_DMA_Interrupt);
--
-- if Next_DMA_Interrupt /= Transfer_Complete_Interrupt then
-- Panic;
-- end if;
--
-- Checksum_DMA := Value (CRC_Unit);
with STM32.DMA; use STM32.DMA;
with System;
package STM32.CRC.DMA is
pragma Elaborate_Body;
-- These routines use the specified controller and stream to transfer
-- all of the Input data components to This CRC unit, updating the
-- CRC value accordingly. At the end of the transfer the DMA interrupt
-- Transfer_Complete_Interrupt is triggered. Clients are expected to have
-- an application-defined handler for that interrupt, in order to await
-- completion of the transfer.
-- These routines can be called multiple times, back-to-back, presumably
-- with different input blocks, in order to update the value of the
-- calculated CRC checksum within the CRC processor. Each call will
-- result in a Transfer_Complete_Interrupt event.
-- Note that you can use a slice if the entire block is not intended for
-- transfer, but beware alignment boundaries to prevent copying of the
-- actual parameter into a temporary.
procedure Update_CRC
(This : in out CRC_32;
Controller : access DMA_Controller;
Channel : DMA_Channel_Selector;
Input : Block_32);
-- Update the calculated CRC value based on all of the 32-bit components
-- of Input. Triggers the Transfer_Complete_Interrupt on completion.
procedure Update_CRC
(This : in out CRC_32;
Controller : access DMA_Controller;
Channel : DMA_Channel_Selector;
Input : Block_16);
-- Update the calculated CRC value based on all of the 16-bit components
-- of Input. Triggers the Transfer_Complete_Interrupt on completion.
procedure Update_CRC
(This : in out CRC_32;
Controller : access DMA_Controller;
Channel : DMA_Channel_Selector;
Input : Block_8);
-- Update the calculated CRC value based on all of the 8-bit components
-- of Input. Triggers the Transfer_Complete_Interrupt on completion.
private
procedure Transfer_Input_To_CRC
(This : in out CRC_32;
Controller : access DMA_Controller;
Channel : DMA_Channel_Selector;
Input_Address : System.Address;
Input_Length : UInt16;
Data_Width : DMA_Data_Transfer_Widths);
-- Configures the DMA controller and stream for transfering memory blocks,
-- of the width specified by Data_Width, to This CRC processor. Then uses
-- the controller and stream to transfer the data starting at Input_Address
-- to This CRC unit, updating the CRC value accordingly. The number of
-- Input memory items (of Data_Width size) to be transferred is specified
-- by Input_Length. At the end of the transfer the DMA interrupt
-- Transfer_Complete_Interrupt is triggered.
end STM32.CRC.DMA;
| 46.890625 | 79 | 0.617794 |
4d14c68cadbfed1c6991ba08a552258ccfd58e0e | 22,482 | adb | Ada | source/numerics/a-numsfm.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | source/numerics/a-numsfm.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | source/numerics/a-numsfm.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | with Ada.Numerics.SFMT.Generating;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Random_Initiators;
with System.Storage_Elements;
package body Ada.Numerics.SFMT is
pragma Check_Policy (Validate => Ignore);
use type Unsigned_32;
use type Unsigned_64;
use type System.Bit_Order;
use type System.Storage_Elements.Storage_Count;
subtype Word_Unsigned is System.Long_Long_Integer_Types.Word_Unsigned;
package Impl is new Generating;
function idxof (i : Integer) return Integer
with Convention => Intrinsic;
pragma Inline_Always (idxof);
function func1 (x : Unsigned_32) return Unsigned_32
with Convention => Intrinsic;
function func2 (x : Unsigned_32) return Unsigned_32
with Convention => Intrinsic;
pragma Inline_Always (func1);
pragma Inline_Always (func2);
procedure period_certification (
psfmt32 : in out Unsigned_32_Array_N32);
-- This function simulate a 64-bit index of LITTLE ENDIAN
-- in BIG ENDIAN machine.
-- Note: This Ada version is always 32-bit.
function idxof (i : Integer) return Integer
renames "+";
-- This function represents a function used in the initialization
-- by init_by_array
function func1 (x : Unsigned_32) return Unsigned_32 is
begin
return (x xor Interfaces.Shift_Right (x, 27)) * 1664525;
end func1;
-- This function represents a function used in the initialization
-- by init_by_array
function func2 (x : Unsigned_32) return Unsigned_32 is
begin
return (x xor Interfaces.Shift_Right (x, 27)) * 1566083941;
end func2;
-- This function certificate the period of 2^{MEXP}
procedure period_certification (
psfmt32 : in out Unsigned_32_Array_N32)
is
inner : Unsigned_32 := 0;
work : Unsigned_32;
parity : constant Unsigned_32_Array (0 .. 3) :=
(PARITY1, PARITY2, PARITY3, PARITY4);
begin
for i in 0 .. 3 loop
inner := inner xor (psfmt32 (idxof (i)) and parity (i));
end loop;
for i in reverse 0 .. 4 loop
inner := inner xor Interfaces.Shift_Right (inner, 2 ** i);
end loop;
inner := inner and 1;
-- check OK
if inner = 1 then
return;
end if;
-- check NG, and modification
for i in 0 .. 3 loop
work := 1;
for j in 0 .. 31 loop
if (work and parity (i)) /= 0 then
declare
Index : constant Natural := idxof (i);
begin
psfmt32 (Index) := psfmt32 (Index) xor work;
end;
return;
end if;
work := Interfaces.Shift_Left (work, 1);
end loop;
end loop;
end period_certification;
-- implementation
-- This function returns the identification string.
-- The string shows the word size, the Mersenne exponent,
-- and all parameters of this generator.
-- e.g. "SFMT-19937:122-18-1-11-1:dfffffef-ddfecb7f-bffaffff-bffffff6"
function Id return String is
Result : String (
1 ..
4 + 1 -- "SFMT-"
+ 6 + 1 -- "216091:"
+ 3 + 1 + 2 + 1 + 1 + 1 + 2 + 1 + 1 + 1 -- "627-11-3-10-1:"
+ 8 + 1 + 8 + 1 + 8 + 1 + 8); -- "%.8x-%.8x-%.8x-%.8x"
Last : Natural := 0;
Error : Boolean;
begin
Result (Last + 1 .. Last + 5) := "SFMT-";
Last := Last + 5;
System.Formatting.Image (
Word_Unsigned (MEXP),
Result (Last + 1 .. Result'Last),
Last,
Error => Error);
Result (Last + 1) := ':';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (POS1),
Result (Last + 1 .. Result'Last),
Last,
Error => Error);
Result (Last + 1) := '-';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (SL1),
Result (Last + 1 .. Result'Last),
Last,
Error => Error);
Result (Last + 1) := '-';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (SL2),
Result (Last + 1 .. Result'Last),
Last,
Error => Error);
Result (Last + 1) := '-';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (SR1),
Result (Last + 1 .. Result'Last),
Last,
Error => Error);
Result (Last + 1) := '-';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (SR2),
Result (Last + 1 .. Result'Last),
Last,
Error => Error);
Result (Last + 1) := ':';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (MSK1),
Result (Last + 1 .. Result'Last),
Last,
Base => 16,
Set => System.Formatting.Lower_Case,
Width => 8,
Error => Error);
Result (Last + 1) := '-';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (MSK2),
Result (Last + 1 .. Result'Last),
Last,
Base => 16,
Set => System.Formatting.Lower_Case,
Width => 8,
Error => Error);
Result (Last + 1) := '-';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (MSK3),
Result (Last + 1 .. Result'Last),
Last,
Base => 16,
Set => System.Formatting.Lower_Case,
Width => 8,
Error => Error);
Result (Last + 1) := '-';
Last := Last + 1;
System.Formatting.Image (
Word_Unsigned (MSK4),
Result (Last + 1 .. Result'Last),
Last,
Base => 16,
Set => System.Formatting.Lower_Case,
Width => 8,
Error => Error);
return Result (1 .. Last);
end Id;
-- This function generates and returns 32-bit pseudorandom number.
-- init_gen_rand or init_by_array must be called before this function.
function Random_32 (Gen : aliased in out Generator)
return Unsigned_32
is
pragma Suppress (Index_Check);
psfmt32 : Unsigned_32_Array_N32;
for psfmt32'Address use Gen.sfmt.state'Address;
r : Unsigned_32;
begin
if Gen.sfmt.idx >= N32 then
Impl.gen_rand_all (Gen.sfmt.state);
Gen.sfmt.idx := 0;
end if;
r := psfmt32 (Gen.sfmt.idx);
Gen.sfmt.idx := Gen.sfmt.idx + 1;
return r;
end Random_32;
-- This function generates and returns 64-bit pseudorandom number.
-- init_gen_rand or init_by_array must be called before this function.
-- The function gen_rand64 should not be called after gen_rand32,
-- unless an initialization is again executed.
-- Note: This Ada version supports mixed callings with Random_32 (still).
function Random_64 (Gen : aliased in out Generator)
return Unsigned_64
is
pragma Suppress (Index_Check);
psfmt32 : Unsigned_32_Array_N32;
for psfmt32'Address use Gen.sfmt.state'Address;
psfmt64 : Unsigned_64_Array_N64;
for psfmt64'Address use Gen.sfmt.state'Address;
r : Unsigned_64;
begin
if Gen.sfmt.idx rem 2 /= 0 then
declare
r1 : constant Unsigned_32 := Random_32 (Gen);
r2 : constant Unsigned_32 := Random_32 (Gen);
begin
r := Interfaces.Shift_Left (Unsigned_64 (r2), 32)
or Unsigned_64 (r1);
end;
else
pragma Check (Validate, Gen.sfmt.idx rem 2 = 0);
if Gen.sfmt.idx >= N32 then
Impl.gen_rand_all (Gen.sfmt.state);
Gen.sfmt.idx := 0;
end if;
if System.Default_Bit_Order /= System.Low_Order_First then
declare
r1 : constant Unsigned_32 := psfmt32 (Gen.sfmt.idx);
r2 : constant Unsigned_32 := psfmt32 (Gen.sfmt.idx + 1);
begin
Gen.sfmt.idx := Gen.sfmt.idx + 2;
r := Interfaces.Shift_Left (Unsigned_64 (r2), 32)
or Unsigned_64 (r1);
end;
else
r := psfmt64 (Gen.sfmt.idx / 2);
Gen.sfmt.idx := Gen.sfmt.idx + 2;
end if;
end if;
return r;
end Random_64;
-- This function generates pseudorandom 32-bit integers in the
-- specified array[] by one call. The number of pseudorandom integers
-- is specified by the argument size, which must be at least 624 and a
-- multiple of four. The generation by this function is much faster
-- than the following gen_rand function.
procedure Fill_Random_32 (
Gen : aliased in out Generator;
Item : out Unsigned_32_Array)
is
pragma Suppress (Range_Check);
size : constant Integer := Item'Length;
begin
if Gen.sfmt.idx /= N32 or else size rem 4 /= 0 or else size < N32 then
for I in Item'Range loop
Item (I) := Random_32 (Gen);
end loop;
else
declare
the_array : w128_t_Array (0 .. 0); -- size / 2 - 1
for the_array'Address use Item'Address;
begin
Impl.gen_rand_array (Gen.sfmt.state, the_array (0 .. 0), size / 4);
end;
Gen.sfmt.idx := N32;
end if;
end Fill_Random_32;
-- This function generates pseudorandom 64-bit integers in the
-- specified array[] by one call. The number of pseudorandom integers
-- is specified by the argument size, which must be at least 312 and a
-- multiple of two. The generation by this function is much faster
-- than the following gen_rand function.
procedure Fill_Random_64 (
Gen : aliased in out Generator;
Item : out Unsigned_64_Array)
is
pragma Suppress (Range_Check);
size : constant Integer := Item'Length;
begin
if Gen.sfmt.idx /= N32 or else size rem 2 /= 0 or else size < N64 then
for I in Item'Range loop
Item (I) := Random_64 (Gen);
end loop;
else
declare
the_array : w128_t_Array (0 .. size / 2 - 1);
for the_array'Address use Item'Address;
begin
Impl.gen_rand_array (Gen.sfmt.state, the_array (0 .. 0), size / 2);
if System.Default_Bit_Order /= System.Low_Order_First then
-- swap
for I in the_array'Range loop
declare
a : w128_t renames the_array (I);
x : constant Unsigned_32 := a (0);
y : constant Unsigned_32 := a (2);
begin
a (0) := a (1);
a (2) := a (3);
a (1) := x;
a (3) := y;
end;
end loop;
end if;
end;
Gen.sfmt.idx := N32;
end if;
end Fill_Random_64;
function Initialize return Generator is
begin
return (sfmt => Initialize);
end Initialize;
function Initialize (Initiator : Unsigned_32) return Generator is
begin
return (sfmt => Initialize (Initiator));
end Initialize;
function Initialize (Initiator : Unsigned_32_Array) return Generator is
begin
return (sfmt => Initialize (Initiator));
end Initialize;
procedure Reset (Gen : in out Generator) is
begin
Gen.sfmt := Initialize;
end Reset;
procedure Reset (Gen : in out Generator; Initiator : Integer) is
begin
Gen.sfmt := Initialize (Unsigned_32'Mod (Initiator));
end Reset;
function Initialize return State is
Init : aliased Unsigned_32_Array (0 .. N32 - 1);
begin
System.Random_Initiators.Get (
Init'Address,
Init'Size / Standard'Storage_Unit);
return Initialize (Init);
end Initialize;
-- This function initializes the internal state array with a 32-bit
-- integer seed.
function Initialize (Initiator : Unsigned_32) return State is
begin
return Result : State := (state => <>, idx => N32) do
declare
psfmt32 : Unsigned_32_Array_N32;
for psfmt32'Address use Result.state'Address;
begin
psfmt32 (idxof (0)) := Initiator;
for i in 1 .. N32 - 1 loop
psfmt32 (idxof (i)) :=
1812433253
* (
psfmt32 (idxof (i - 1))
xor Interfaces.Shift_Right (
psfmt32 (idxof (i - 1)),
30))
+ Unsigned_32 (i);
end loop;
period_certification (psfmt32);
end;
end return;
end Initialize;
-- This function initializes the internal state array,
-- with an array of 32-bit integers used as the seeds
function Initialize (Initiator : Unsigned_32_Array) return State is
key_length : constant Natural := Initiator'Length;
i, j, count : Integer;
r : Unsigned_32;
lag : Integer;
mid : Integer;
size : constant Natural := N * 4;
begin
if size >= 623 then
lag := 11;
elsif size >= 68 then
lag := 7;
elsif size >= 39 then
lag := 5;
else
lag := 3;
end if;
mid := (size - lag) / 2;
return Result : State :=
(state => (others => (others => 16#8b8b8b8b#)), idx => N32)
do
declare
psfmt32 : Unsigned_32_Array_N32;
for psfmt32'Address use Result.state'Address;
begin
if key_length + 1 > N32 then
count := key_length + 1;
else
count := N32;
end if;
r := func1 (
psfmt32 (idxof (0))
xor psfmt32 (idxof (mid))
xor psfmt32 (idxof (N32 - 1)));
declare
Index : constant Natural := idxof (mid);
begin
psfmt32 (Index) := psfmt32 (Index) + r;
end;
r := r + Unsigned_32 (key_length);
declare
Index : constant Natural := idxof (mid + lag);
begin
psfmt32 (Index) := psfmt32 (Index) + r;
end;
psfmt32 (idxof (0)) := r;
count := count - 1;
i := 1;
j := 0;
while j < count and then j < key_length loop
r := func1 (
psfmt32 (idxof (i))
xor psfmt32 (idxof ((i + mid) rem N32))
xor psfmt32 (idxof ((i + N32 - 1) rem N32)));
declare
Index : constant Natural := idxof ((i + mid) rem N32);
begin
psfmt32 (Index) := psfmt32 (Index) + r;
end;
r := r + Initiator (Initiator'First + j) + Unsigned_32 (i);
declare
Index : constant Natural := idxof ((i + mid + lag) rem N32);
begin
psfmt32 (Index) := psfmt32 (Index) + r;
end;
psfmt32 (idxof (i)) := r;
i := (i + 1) rem N32;
j := j + 1;
end loop;
while j < count loop
r := func1 (
psfmt32 (idxof (i))
xor psfmt32 (idxof ((i + mid) rem N32))
xor psfmt32 (idxof ((i + N32 - 1) rem N32)));
declare
Index : constant Natural := idxof ((i + mid) rem N32);
begin
psfmt32 (Index) := psfmt32 (Index) + r;
end;
r := r + Unsigned_32 (i);
declare
Index : constant Natural := idxof ((i + mid + lag) rem N32);
begin
psfmt32 (Index) := psfmt32 (Index) + r;
end;
psfmt32 (idxof (i)) := r;
i := (i + 1) rem N32;
j := j + 1;
end loop;
j := 0;
while j < N32 loop
r := func2 (
psfmt32 (idxof (i))
+ psfmt32 (idxof ((i + mid) rem N32))
+ psfmt32 (idxof ((i + N32 - 1) rem N32)));
declare
Index : constant Natural := idxof ((i + mid) rem N32);
begin
psfmt32 (Index) := psfmt32 (Index) xor r;
end;
r := r - Unsigned_32 (i);
declare
Index : constant Natural := idxof ((i + mid + lag) rem N32);
begin
psfmt32 (Index) := psfmt32 (Index) xor r;
end;
psfmt32 (idxof (i)) := r;
i := (i + 1) rem N32;
j := j + 1;
end loop;
period_certification (psfmt32);
end;
end return;
end Initialize;
procedure Save (Gen : Generator; To_State : out State) is
begin
To_State := Gen.sfmt;
end Save;
procedure Reset (Gen : in out Generator; From_State : State) is
begin
Gen.sfmt := From_State;
end Reset;
function Reset (From_State : State) return Generator is
begin
return (sfmt => From_State);
end Reset;
function Image (Of_State : State) return String is
procedure Hex_Put (To : out String; Item : Unsigned_32);
procedure Hex_Put (To : out String; Item : Unsigned_32) is
Error : Boolean;
Last : Natural;
begin
pragma Compile_Time_Error (Standard'Word_Size < 32, "word size < 32");
System.Formatting.Image (
Word_Unsigned (Item),
To,
Last,
Base => 16,
Width => 32 / 4,
Error => Error);
pragma Check (Validate, not Error and then Last = To'Last);
end Hex_Put;
psfmt32 : Unsigned_32_Array_N32;
for psfmt32'Address use Of_State.state'Address;
Last : Natural := 0;
begin
return Result : String (1 .. Max_Image_Width) do
for I in 0 .. N32 - 1 loop
declare
Previous_Last : constant Natural := Last;
begin
Last := Last + 32 / 4;
Hex_Put (Result (Previous_Last + 1 .. Last), psfmt32 (I));
Last := Last + 1;
Result (Last) := ':';
end;
end loop;
Hex_Put (
Result (Last + 1 .. Result'Last),
Unsigned_32 (Of_State.idx));
end return;
end Image;
function Value (Coded_State : String) return State is
procedure Hex_Get (From : String; Item : out Unsigned_32);
procedure Hex_Get (From : String; Item : out Unsigned_32) is
Last : Positive;
Error : Boolean;
begin
System.Formatting.Value (
From,
Last,
Word_Unsigned (Item),
Base => 16,
Error => Error);
if Error or else Last /= From'Last then
raise Constraint_Error;
end if;
end Hex_Get;
Last : Natural := Coded_State'First - 1;
idx : Unsigned_32;
begin
if Coded_State'Length /= Max_Image_Width then
raise Constraint_Error;
end if;
return Result : State do
declare
psfmt32 : Unsigned_32_Array_N32;
for psfmt32'Address use Result.state'Address;
begin
for I in 0 .. N32 - 1 loop
declare
Previous_Last : constant Natural := Last;
begin
Last := Last + 32 / 4;
Hex_Get (
Coded_State (Previous_Last + 1 .. Last),
psfmt32 (I));
Last := Last + 1;
if Coded_State (Last) /= ':' then
raise Constraint_Error;
end if;
end;
end loop;
end;
Hex_Get (Coded_State (Last + 1 .. Coded_State'Last), idx);
Result.idx := Integer (idx);
end return;
end Value;
-- The following real versions are due to Isaku Wada
-- converts an unsigned 32-bit number to a double on [0,1]-real-interval.
function To_0_To_1 (v : Unsigned_32)
return Uniformly_Distributed is
begin
return Long_Long_Float (v) * (1.0 / (2.0 ** 32 - 1.0));
-- divided by 2^32-1
end To_0_To_1;
-- generates a random number on [0,1]-real-interval
function Random_0_To_1 (Gen : aliased in out Generator)
return Uniformly_Distributed is
begin
return To_0_To_1 (Random_32 (Gen));
end Random_0_To_1;
-- converts an unsigned 32-bit integer to a double on [0,1)-real-interval.
function To_0_To_Less_Than_1 (v : Unsigned_32)
return Uniformly_Distributed is
begin
return Long_Long_Float (v) * (1.0 / 2.0 ** 32);
-- divided by 2^32
end To_0_To_Less_Than_1;
-- generates a random number on [0,1)-real-interval
function Random_0_To_Less_Than_1 (Gen : aliased in out Generator)
return Uniformly_Distributed is
begin
return To_0_To_Less_Than_1 (Random_32 (Gen));
end Random_0_To_Less_Than_1;
-- converts an unsigned 32-bit integer to a double on (0,1)-real-interval.
function To_Greater_Than_0_To_Less_Than_1 (v : Unsigned_32)
return Uniformly_Distributed is
begin
return (Long_Long_Float (v) + 0.5) * (1.0 / 2.0 ** 32);
-- divided by 2^32
end To_Greater_Than_0_To_Less_Than_1;
-- generates a random number on (0,1)-real-interval
function Random_Greater_Than_0_To_Less_Than_1 (
Gen : aliased in out Generator)
return Uniformly_Distributed is
begin
return To_Greater_Than_0_To_Less_Than_1 (Random_32 (Gen));
end Random_Greater_Than_0_To_Less_Than_1;
-- converts an unsigned 32-bit integer to double on [0,1)
-- with 53-bit resolution.
-- Note: This Ada version is implemented with extended float,
-- it has 64-bit resolution on x86 (32bit mode).
function To_53_0_To_Less_Than_1 (v : Unsigned_64)
return Uniformly_Distributed is
begin
return Long_Long_Float (
Interfaces.Shift_Right (v, 11)) * (1.0 / 2.0 ** 53);
end To_53_0_To_Less_Than_1;
-- generates a random number on [0,1) with 53-bit resolution
function Random_53_0_To_Less_Than_1 (Gen : aliased in out Generator)
return Uniformly_Distributed is
begin
return To_53_0_To_Less_Than_1 (Random_64 (Gen));
end Random_53_0_To_Less_Than_1;
-- Note: to_res53_mix and genrand_res53_mix are unimplemented.
end Ada.Numerics.SFMT;
| 33.655689 | 79 | 0.54319 |
234ce42049e11965c658b2a0c6e7a5157ff689da | 4,847 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-mmosin__unix.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-mmosin__unix.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-mmosin__unix.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . M M A P . O S _ I N T E R F A C E --
-- --
-- S p e c --
-- --
-- Copyright (C) 2007-2020, AdaCore --
-- --
-- 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. --
-- --
-- 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 System.OS_Lib;
-- OS pecularities abstraction package for Unix systems.
package System.Mmap.OS_Interface is
type System_File is record
Fd : System.OS_Lib.File_Descriptor;
Mapped : Boolean;
-- Whether mapping is requested by the user and available on the system
Write : Boolean;
-- Whether this file can be written to
Length : File_Size;
-- Length of the file. Used to know what can be mapped in the file
end record;
type System_Mapping is record
Address : Standard.System.Address;
Length : File_Size;
end record;
Invalid_System_File : constant System_File :=
(System.OS_Lib.Invalid_FD, False, False, 0);
Invalid_System_Mapping : constant System_Mapping :=
(Standard.System.Null_Address, 0);
function Open_Read
(Filename : String;
Use_Mmap_If_Available : Boolean := True) return System_File;
-- Open a file for reading and return the corresponding System_File. Return
-- Invalid_System_File if unsuccessful.
function Open_Write
(Filename : String;
Use_Mmap_If_Available : Boolean := True) return System_File;
-- Likewise for writing to a file
procedure Close (File : in out System_File);
-- Close a system file
function Read_From_Disk
(File : System_File;
Offset, Length : File_Size) return System.Strings.String_Access;
-- Read a fragment of a file. It is up to the caller to free the result
-- when done with it.
procedure Write_To_Disk
(File : System_File;
Offset, Length : File_Size;
Buffer : System.Strings.String_Access);
-- Write some content to a fragment of a file
procedure Create_Mapping
(File : System_File;
Offset, Length : in out File_Size;
Mutable : Boolean;
Mapping : out System_Mapping);
-- Create a memory mapping for the given File, for the area starting at
-- Offset and containing Length bytes. Store it to Mapping.
-- Note that Offset and Length may be modified according to the system
-- needs (for boudaries, for instance). The caller must cope with actually
-- wider mapped areas.
procedure Dispose_Mapping
(Mapping : in out System_Mapping);
-- Unmap a previously-created mapping
function Get_Page_Size return File_Size;
-- Return the number of bytes in a system page.
end System.Mmap.OS_Interface;
| 45.726415 | 79 | 0.52321 |
dfc1fbac58a9cf95725ad3d7bf1652dcb7bdf8d5 | 26,051 | ads | Ada | SVD2ada/svd/stm32_svd-sai.ads | JCGobbi/Nucleo-STM32G474RE | 8dc1c4948ffeb11841eed10f1c3708f00fa1d832 | [
"BSD-3-Clause"
] | null | null | null | SVD2ada/svd/stm32_svd-sai.ads | JCGobbi/Nucleo-STM32G474RE | 8dc1c4948ffeb11841eed10f1c3708f00fa1d832 | [
"BSD-3-Clause"
] | null | null | null | SVD2ada/svd/stm32_svd-sai.ads | JCGobbi/Nucleo-STM32G474RE | 8dc1c4948ffeb11841eed10f1c3708f00fa1d832 | [
"BSD-3-Clause"
] | null | null | null | pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.SAI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ACR1_MODE_Field is HAL.UInt2;
subtype ACR1_PRTCFG_Field is HAL.UInt2;
subtype ACR1_DS_Field is HAL.UInt3;
subtype ACR1_SYNCEN_Field is HAL.UInt2;
subtype ACR1_MCKDIV_Field is HAL.UInt6;
-- AConfiguration register 1
type ACR1_Register is record
-- Audio block mode
MODE : ACR1_MODE_Field := 16#0#;
-- Protocol configuration
PRTCFG : ACR1_PRTCFG_Field := 16#0#;
-- unspecified
Reserved_4_4 : HAL.Bit := 16#0#;
-- Data size
DS : ACR1_DS_Field := 16#2#;
-- Least significant bit first
LSBFIRST : Boolean := False;
-- Clock strobing edge
CKSTR : Boolean := False;
-- Synchronization enable
SYNCEN : ACR1_SYNCEN_Field := 16#0#;
-- Mono mode
MONO : Boolean := False;
-- Output drive
OutDri : Boolean := False;
-- unspecified
Reserved_14_15 : HAL.UInt2 := 16#0#;
-- Audio block A enable
SAIAEN : Boolean := False;
-- DMA enable
DMAEN : Boolean := False;
-- unspecified
Reserved_18_18 : HAL.Bit := 16#0#;
-- No divider
NODIV : Boolean := False;
-- Master clock divider
MCKDIV : ACR1_MCKDIV_Field := 16#0#;
-- OSR
OSR : Boolean := False;
-- MCKEN
MCKEN : Boolean := False;
-- unspecified
Reserved_28_31 : HAL.UInt4 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for ACR1_Register use record
MODE at 0 range 0 .. 1;
PRTCFG at 0 range 2 .. 3;
Reserved_4_4 at 0 range 4 .. 4;
DS at 0 range 5 .. 7;
LSBFIRST at 0 range 8 .. 8;
CKSTR at 0 range 9 .. 9;
SYNCEN at 0 range 10 .. 11;
MONO at 0 range 12 .. 12;
OutDri at 0 range 13 .. 13;
Reserved_14_15 at 0 range 14 .. 15;
SAIAEN at 0 range 16 .. 16;
DMAEN at 0 range 17 .. 17;
Reserved_18_18 at 0 range 18 .. 18;
NODIV at 0 range 19 .. 19;
MCKDIV at 0 range 20 .. 25;
OSR at 0 range 26 .. 26;
MCKEN at 0 range 27 .. 27;
Reserved_28_31 at 0 range 28 .. 31;
end record;
subtype ACR2_FTH_Field is HAL.UInt3;
subtype ACR2_MUTECN_Field is HAL.UInt6;
subtype ACR2_COMP_Field is HAL.UInt2;
-- AConfiguration register 2
type ACR2_Register is record
-- FIFO threshold
FTH : ACR2_FTH_Field := 16#0#;
-- FIFO flush
FFLUS : Boolean := False;
-- Tristate management on data line
TRIS : Boolean := False;
-- Mute
MUTE : Boolean := False;
-- Mute value
MUTEVAL : Boolean := False;
-- Mute counter
MUTECN : ACR2_MUTECN_Field := 16#0#;
-- Complement bit
CPL : Boolean := False;
-- Companding mode
COMP : ACR2_COMP_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for ACR2_Register use record
FTH at 0 range 0 .. 2;
FFLUS at 0 range 3 .. 3;
TRIS at 0 range 4 .. 4;
MUTE at 0 range 5 .. 5;
MUTEVAL at 0 range 6 .. 6;
MUTECN at 0 range 7 .. 12;
CPL at 0 range 13 .. 13;
COMP at 0 range 14 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype AFRCR_FRL_Field is HAL.UInt8;
subtype AFRCR_FSALL_Field is HAL.UInt7;
-- AFRCR
type AFRCR_Register is record
-- Frame length
FRL : AFRCR_FRL_Field := 16#7#;
-- Frame synchronization active level length
FSALL : AFRCR_FSALL_Field := 16#0#;
-- unspecified
Reserved_15_15 : HAL.Bit := 16#0#;
-- Frame synchronization definition
FSDEF : Boolean := False;
-- Frame synchronization polarity
FSPOL : Boolean := False;
-- Frame synchronization offset
FSOFF : Boolean := False;
-- unspecified
Reserved_19_31 : HAL.UInt13 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for AFRCR_Register use record
FRL at 0 range 0 .. 7;
FSALL at 0 range 8 .. 14;
Reserved_15_15 at 0 range 15 .. 15;
FSDEF at 0 range 16 .. 16;
FSPOL at 0 range 17 .. 17;
FSOFF at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
subtype ASLOTR_FBOFF_Field is HAL.UInt5;
subtype ASLOTR_SLOTSZ_Field is HAL.UInt2;
subtype ASLOTR_NBSLOT_Field is HAL.UInt4;
subtype ASLOTR_SLOTEN_Field is HAL.UInt16;
-- ASlot register
type ASLOTR_Register is record
-- First bit offset
FBOFF : ASLOTR_FBOFF_Field := 16#0#;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Slot size
SLOTSZ : ASLOTR_SLOTSZ_Field := 16#0#;
-- Number of slots in an audio frame
NBSLOT : ASLOTR_NBSLOT_Field := 16#0#;
-- unspecified
Reserved_12_15 : HAL.UInt4 := 16#0#;
-- Slot enable
SLOTEN : ASLOTR_SLOTEN_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for ASLOTR_Register use record
FBOFF at 0 range 0 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
SLOTSZ at 0 range 6 .. 7;
NBSLOT at 0 range 8 .. 11;
Reserved_12_15 at 0 range 12 .. 15;
SLOTEN at 0 range 16 .. 31;
end record;
-- AInterrupt mask register2
type AIM_Register is record
-- Overrun/underrun interrupt enable
OVRUDRIE : Boolean := False;
-- Mute detection interrupt enable
MUTEDET : Boolean := False;
-- Wrong clock configuration interrupt enable
WCKCFG : Boolean := False;
-- FIFO request interrupt enable
FREQIE : Boolean := False;
-- Codec not ready interrupt enable
CNRDYIE : Boolean := False;
-- Anticipated frame synchronization detection interrupt enable
AFSDETIE : Boolean := False;
-- Late frame synchronization detection interrupt enable
LFSDET : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for AIM_Register use record
OVRUDRIE at 0 range 0 .. 0;
MUTEDET at 0 range 1 .. 1;
WCKCFG at 0 range 2 .. 2;
FREQIE at 0 range 3 .. 3;
CNRDYIE at 0 range 4 .. 4;
AFSDETIE at 0 range 5 .. 5;
LFSDET at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
subtype ASR_FLVL_Field is HAL.UInt3;
-- AStatus register
type ASR_Register is record
-- Overrun / underrun
OVRUDR : Boolean := False;
-- Mute detection
MUTEDET : Boolean := False;
-- Wrong clock configuration flag. This bit is read only
WCKCFG : Boolean := False;
-- FIFO request
FREQ : Boolean := False;
-- Codec not ready
CNRDY : Boolean := False;
-- Anticipated frame synchronization detection
AFSDET : Boolean := False;
-- Late frame synchronization detection
LFSDET : Boolean := False;
-- unspecified
Reserved_7_15 : HAL.UInt9 := 16#0#;
-- FIFO level threshold
FLVL : ASR_FLVL_Field := 16#0#;
-- unspecified
Reserved_19_31 : HAL.UInt13 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for ASR_Register use record
OVRUDR at 0 range 0 .. 0;
MUTEDET at 0 range 1 .. 1;
WCKCFG at 0 range 2 .. 2;
FREQ at 0 range 3 .. 3;
CNRDY at 0 range 4 .. 4;
AFSDET at 0 range 5 .. 5;
LFSDET at 0 range 6 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
FLVL at 0 range 16 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
-- AClear flag register
type ACLRFR_Register is record
-- Clear overrun / underrun
OVRUDR : Boolean := False;
-- Mute detection flag
MUTEDET : Boolean := False;
-- Clear wrong clock configuration flag
WCKCFG : Boolean := False;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Clear codec not ready flag
CNRDY : Boolean := False;
-- Clear anticipated frame synchronization detection flag
CAFSDET : Boolean := False;
-- Clear late frame synchronization detection flag
LFSDET : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for ACLRFR_Register use record
OVRUDR at 0 range 0 .. 0;
MUTEDET at 0 range 1 .. 1;
WCKCFG at 0 range 2 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
CNRDY at 0 range 4 .. 4;
CAFSDET at 0 range 5 .. 5;
LFSDET at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
subtype BCR1_MODE_Field is HAL.UInt2;
subtype BCR1_PRTCFG_Field is HAL.UInt2;
subtype BCR1_DS_Field is HAL.UInt3;
subtype BCR1_SYNCEN_Field is HAL.UInt2;
subtype BCR1_MCKDIV_Field is HAL.UInt6;
-- BConfiguration register 1
type BCR1_Register is record
-- Audio block mode
MODE : BCR1_MODE_Field := 16#0#;
-- Protocol configuration
PRTCFG : BCR1_PRTCFG_Field := 16#0#;
-- unspecified
Reserved_4_4 : HAL.Bit := 16#0#;
-- Data size
DS : BCR1_DS_Field := 16#2#;
-- Least significant bit first
LSBFIRST : Boolean := False;
-- Clock strobing edge
CKSTR : Boolean := False;
-- Synchronization enable
SYNCEN : BCR1_SYNCEN_Field := 16#0#;
-- Mono mode
MONO : Boolean := False;
-- Output drive
OutDri : Boolean := False;
-- unspecified
Reserved_14_15 : HAL.UInt2 := 16#0#;
-- Audio block B enable
SAIBEN : Boolean := False;
-- DMA enable
DMAEN : Boolean := False;
-- unspecified
Reserved_18_18 : HAL.Bit := 16#0#;
-- No divider
NODIV : Boolean := False;
-- Master clock divider
MCKDIV : BCR1_MCKDIV_Field := 16#0#;
-- OSR
OSR : Boolean := False;
-- MCKEN
MCKEN : Boolean := False;
-- unspecified
Reserved_28_31 : HAL.UInt4 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for BCR1_Register use record
MODE at 0 range 0 .. 1;
PRTCFG at 0 range 2 .. 3;
Reserved_4_4 at 0 range 4 .. 4;
DS at 0 range 5 .. 7;
LSBFIRST at 0 range 8 .. 8;
CKSTR at 0 range 9 .. 9;
SYNCEN at 0 range 10 .. 11;
MONO at 0 range 12 .. 12;
OutDri at 0 range 13 .. 13;
Reserved_14_15 at 0 range 14 .. 15;
SAIBEN at 0 range 16 .. 16;
DMAEN at 0 range 17 .. 17;
Reserved_18_18 at 0 range 18 .. 18;
NODIV at 0 range 19 .. 19;
MCKDIV at 0 range 20 .. 25;
OSR at 0 range 26 .. 26;
MCKEN at 0 range 27 .. 27;
Reserved_28_31 at 0 range 28 .. 31;
end record;
subtype BCR2_FTH_Field is HAL.UInt3;
subtype BCR2_MUTECN_Field is HAL.UInt6;
subtype BCR2_COMP_Field is HAL.UInt2;
-- BConfiguration register 2
type BCR2_Register is record
-- FIFO threshold
FTH : BCR2_FTH_Field := 16#0#;
-- FIFO flush
FFLUS : Boolean := False;
-- Tristate management on data line
TRIS : Boolean := False;
-- Mute
MUTE : Boolean := False;
-- Mute value
MUTEVAL : Boolean := False;
-- Mute counter
MUTECN : BCR2_MUTECN_Field := 16#0#;
-- Complement bit
CPL : Boolean := False;
-- Companding mode
COMP : BCR2_COMP_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for BCR2_Register use record
FTH at 0 range 0 .. 2;
FFLUS at 0 range 3 .. 3;
TRIS at 0 range 4 .. 4;
MUTE at 0 range 5 .. 5;
MUTEVAL at 0 range 6 .. 6;
MUTECN at 0 range 7 .. 12;
CPL at 0 range 13 .. 13;
COMP at 0 range 14 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
subtype BFRCR_FRL_Field is HAL.UInt8;
subtype BFRCR_FSALL_Field is HAL.UInt7;
-- BFRCR
type BFRCR_Register is record
-- Frame length
FRL : BFRCR_FRL_Field := 16#7#;
-- Frame synchronization active level length
FSALL : BFRCR_FSALL_Field := 16#0#;
-- unspecified
Reserved_15_15 : HAL.Bit := 16#0#;
-- Frame synchronization definition
FSDEF : Boolean := False;
-- Frame synchronization polarity
FSPOL : Boolean := False;
-- Frame synchronization offset
FSOFF : Boolean := False;
-- unspecified
Reserved_19_31 : HAL.UInt13 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for BFRCR_Register use record
FRL at 0 range 0 .. 7;
FSALL at 0 range 8 .. 14;
Reserved_15_15 at 0 range 15 .. 15;
FSDEF at 0 range 16 .. 16;
FSPOL at 0 range 17 .. 17;
FSOFF at 0 range 18 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
subtype BSLOTR_FBOFF_Field is HAL.UInt5;
subtype BSLOTR_SLOTSZ_Field is HAL.UInt2;
subtype BSLOTR_NBSLOT_Field is HAL.UInt4;
subtype BSLOTR_SLOTEN_Field is HAL.UInt16;
-- BSlot register
type BSLOTR_Register is record
-- First bit offset
FBOFF : BSLOTR_FBOFF_Field := 16#0#;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Slot size
SLOTSZ : BSLOTR_SLOTSZ_Field := 16#0#;
-- Number of slots in an audio frame
NBSLOT : BSLOTR_NBSLOT_Field := 16#0#;
-- unspecified
Reserved_12_15 : HAL.UInt4 := 16#0#;
-- Slot enable
SLOTEN : BSLOTR_SLOTEN_Field := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for BSLOTR_Register use record
FBOFF at 0 range 0 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
SLOTSZ at 0 range 6 .. 7;
NBSLOT at 0 range 8 .. 11;
Reserved_12_15 at 0 range 12 .. 15;
SLOTEN at 0 range 16 .. 31;
end record;
-- BInterrupt mask register2
type BIM_Register is record
-- Overrun/underrun interrupt enable
OVRUDRIE : Boolean := False;
-- Mute detection interrupt enable
MUTEDET : Boolean := False;
-- Wrong clock configuration interrupt enable
WCKCFG : Boolean := False;
-- FIFO request interrupt enable
FREQIE : Boolean := False;
-- Codec not ready interrupt enable
CNRDYIE : Boolean := False;
-- Anticipated frame synchronization detection interrupt enable
AFSDETIE : Boolean := False;
-- Late frame synchronization detection interrupt enable
LFSDETIE : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for BIM_Register use record
OVRUDRIE at 0 range 0 .. 0;
MUTEDET at 0 range 1 .. 1;
WCKCFG at 0 range 2 .. 2;
FREQIE at 0 range 3 .. 3;
CNRDYIE at 0 range 4 .. 4;
AFSDETIE at 0 range 5 .. 5;
LFSDETIE at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
subtype BSR_FLVL_Field is HAL.UInt3;
-- BStatus register
type BSR_Register is record
-- Read-only. Overrun / underrun
OVRUDR : Boolean;
-- Read-only. Mute detection
MUTEDET : Boolean;
-- Read-only. Wrong clock configuration flag
WCKCFG : Boolean;
-- Read-only. FIFO request
FREQ : Boolean;
-- Read-only. Codec not ready
CNRDY : Boolean;
-- Read-only. Anticipated frame synchronization detection
AFSDET : Boolean;
-- Read-only. Late frame synchronization detection
LFSDET : Boolean;
-- unspecified
Reserved_7_15 : HAL.UInt9;
-- Read-only. FIFO level threshold
FLVL : BSR_FLVL_Field;
-- unspecified
Reserved_19_31 : HAL.UInt13;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for BSR_Register use record
OVRUDR at 0 range 0 .. 0;
MUTEDET at 0 range 1 .. 1;
WCKCFG at 0 range 2 .. 2;
FREQ at 0 range 3 .. 3;
CNRDY at 0 range 4 .. 4;
AFSDET at 0 range 5 .. 5;
LFSDET at 0 range 6 .. 6;
Reserved_7_15 at 0 range 7 .. 15;
FLVL at 0 range 16 .. 18;
Reserved_19_31 at 0 range 19 .. 31;
end record;
-- BClear flag register
type BCLRFR_Register is record
-- Write-only. Clear overrun / underrun
OVRUDR : Boolean := False;
-- Write-only. Mute detection flag
MUTEDET : Boolean := False;
-- Write-only. Clear wrong clock configuration flag
WCKCFG : Boolean := False;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Write-only. Clear codec not ready flag
CNRDY : Boolean := False;
-- Write-only. Clear anticipated frame synchronization detection flag
CAFSDET : Boolean := False;
-- Write-only. Clear late frame synchronization detection flag
LFSDET : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for BCLRFR_Register use record
OVRUDR at 0 range 0 .. 0;
MUTEDET at 0 range 1 .. 1;
WCKCFG at 0 range 2 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
CNRDY at 0 range 4 .. 4;
CAFSDET at 0 range 5 .. 5;
LFSDET at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
subtype PDMCR_MICNBR_Field is HAL.UInt2;
-- PDMCR_CKEN array
type PDMCR_CKEN_Field_Array is array (1 .. 4) of Boolean
with Component_Size => 1, Size => 4;
-- Type definition for PDMCR_CKEN
type PDMCR_CKEN_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- CKEN as a value
Val : HAL.UInt4;
when True =>
-- CKEN as an array
Arr : PDMCR_CKEN_Field_Array;
end case;
end record
with Unchecked_Union, Size => 4;
for PDMCR_CKEN_Field use record
Val at 0 range 0 .. 3;
Arr at 0 range 0 .. 3;
end record;
-- PDM control register
type PDMCR_Register is record
-- PDMEN
PDMEN : Boolean := False;
-- unspecified
Reserved_1_3 : HAL.UInt3 := 16#0#;
-- MICNBR
MICNBR : PDMCR_MICNBR_Field := 16#0#;
-- unspecified
Reserved_6_7 : HAL.UInt2 := 16#0#;
-- CKEN1
CKEN : PDMCR_CKEN_Field := (As_Array => False, Val => 16#0#);
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDMCR_Register use record
PDMEN at 0 range 0 .. 0;
Reserved_1_3 at 0 range 1 .. 3;
MICNBR at 0 range 4 .. 5;
Reserved_6_7 at 0 range 6 .. 7;
CKEN at 0 range 8 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
subtype PDMDLY_DLYM1L_Field is HAL.UInt3;
subtype PDMDLY_DLYM1R_Field is HAL.UInt3;
subtype PDMDLY_DLYM2L_Field is HAL.UInt3;
subtype PDMDLY_DLYM2R_Field is HAL.UInt3;
subtype PDMDLY_DLYM3L_Field is HAL.UInt3;
subtype PDMDLY_DLYM3R_Field is HAL.UInt3;
subtype PDMDLY_DLYM4L_Field is HAL.UInt3;
subtype PDMDLY_DLYM4R_Field is HAL.UInt3;
-- PDM delay register
type PDMDLY_Register is record
-- DLYM1L
DLYM1L : PDMDLY_DLYM1L_Field := 16#0#;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- DLYM1R
DLYM1R : PDMDLY_DLYM1R_Field := 16#0#;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- DLYM2L
DLYM2L : PDMDLY_DLYM2L_Field := 16#0#;
-- unspecified
Reserved_11_11 : HAL.Bit := 16#0#;
-- DLYM2R
DLYM2R : PDMDLY_DLYM2R_Field := 16#0#;
-- unspecified
Reserved_15_15 : HAL.Bit := 16#0#;
-- DLYM3L
DLYM3L : PDMDLY_DLYM3L_Field := 16#0#;
-- unspecified
Reserved_19_19 : HAL.Bit := 16#0#;
-- DLYM3R
DLYM3R : PDMDLY_DLYM3R_Field := 16#0#;
-- unspecified
Reserved_23_23 : HAL.Bit := 16#0#;
-- DLYM4L
DLYM4L : PDMDLY_DLYM4L_Field := 16#0#;
-- unspecified
Reserved_27_27 : HAL.Bit := 16#0#;
-- DLYM4R
DLYM4R : PDMDLY_DLYM4R_Field := 16#0#;
-- unspecified
Reserved_31_31 : HAL.Bit := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDMDLY_Register use record
DLYM1L at 0 range 0 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
DLYM1R at 0 range 4 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
DLYM2L at 0 range 8 .. 10;
Reserved_11_11 at 0 range 11 .. 11;
DLYM2R at 0 range 12 .. 14;
Reserved_15_15 at 0 range 15 .. 15;
DLYM3L at 0 range 16 .. 18;
Reserved_19_19 at 0 range 19 .. 19;
DLYM3R at 0 range 20 .. 22;
Reserved_23_23 at 0 range 23 .. 23;
DLYM4L at 0 range 24 .. 26;
Reserved_27_27 at 0 range 27 .. 27;
DLYM4R at 0 range 28 .. 30;
Reserved_31_31 at 0 range 31 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Serial audio interface
type SAI_Peripheral is record
-- AConfiguration register 1
ACR1 : aliased ACR1_Register;
-- AConfiguration register 2
ACR2 : aliased ACR2_Register;
-- AFRCR
AFRCR : aliased AFRCR_Register;
-- ASlot register
ASLOTR : aliased ASLOTR_Register;
-- AInterrupt mask register2
AIM : aliased AIM_Register;
-- AStatus register
ASR : aliased ASR_Register;
-- AClear flag register
ACLRFR : aliased ACLRFR_Register;
-- AData register
ADR : aliased HAL.UInt32;
-- BConfiguration register 1
BCR1 : aliased BCR1_Register;
-- BConfiguration register 2
BCR2 : aliased BCR2_Register;
-- BFRCR
BFRCR : aliased BFRCR_Register;
-- BSlot register
BSLOTR : aliased BSLOTR_Register;
-- BInterrupt mask register2
BIM : aliased BIM_Register;
-- BStatus register
BSR : aliased BSR_Register;
-- BClear flag register
BCLRFR : aliased BCLRFR_Register;
-- BData register
BDR : aliased HAL.UInt32;
-- PDM control register
PDMCR : aliased PDMCR_Register;
-- PDM delay register
PDMDLY : aliased PDMDLY_Register;
end record
with Volatile;
for SAI_Peripheral use record
ACR1 at 16#4# range 0 .. 31;
ACR2 at 16#8# range 0 .. 31;
AFRCR at 16#C# range 0 .. 31;
ASLOTR at 16#10# range 0 .. 31;
AIM at 16#14# range 0 .. 31;
ASR at 16#18# range 0 .. 31;
ACLRFR at 16#1C# range 0 .. 31;
ADR at 16#20# range 0 .. 31;
BCR1 at 16#24# range 0 .. 31;
BCR2 at 16#28# range 0 .. 31;
BFRCR at 16#2C# range 0 .. 31;
BSLOTR at 16#30# range 0 .. 31;
BIM at 16#34# range 0 .. 31;
BSR at 16#38# range 0 .. 31;
BCLRFR at 16#3C# range 0 .. 31;
BDR at 16#40# range 0 .. 31;
PDMCR at 16#44# range 0 .. 31;
PDMDLY at 16#48# range 0 .. 31;
end record;
-- Serial audio interface
SAI_Periph : aliased SAI_Peripheral
with Import, Address => SAI_Base;
end STM32_SVD.SAI;
| 33.876463 | 77 | 0.55353 |
fb1f1d0c00b60a03b777f5f989da7c183abffdcb | 1,574 | ads | Ada | src/gen/pixtend-wiringserial_h.ads | persan/a-piextend | 2b8ffe9ce1735789088e51f6321685759f269cf4 | [
"MIT"
] | null | null | null | src/gen/pixtend-wiringserial_h.ads | persan/a-piextend | 2b8ffe9ce1735789088e51f6321685759f269cf4 | [
"MIT"
] | null | null | null | src/gen/pixtend-wiringserial_h.ads | persan/a-piextend | 2b8ffe9ce1735789088e51f6321685759f269cf4 | [
"MIT"
] | null | null | null | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
package Pixtend.wiringSerial_h is
function serialOpen (device : Interfaces.C.Strings.chars_ptr; baud : int) return int -- wiringSerial.h:27
with Import => True,
Convention => C,
External_Name => "serialOpen";
procedure serialClose (fd : int) -- wiringSerial.h:28
with Import => True,
Convention => C,
External_Name => "serialClose";
procedure serialFlush (fd : int) -- wiringSerial.h:29
with Import => True,
Convention => C,
External_Name => "serialFlush";
procedure serialPutchar (fd : int; c : unsigned_char) -- wiringSerial.h:30
with Import => True,
Convention => C,
External_Name => "serialPutchar";
procedure serialPuts (fd : int; s : Interfaces.C.Strings.chars_ptr) -- wiringSerial.h:31
with Import => True,
Convention => C,
External_Name => "serialPuts";
procedure serialPrintf (fd : int; message : Interfaces.C.Strings.chars_ptr -- , ...
) -- wiringSerial.h:32
with Import => True,
Convention => C,
External_Name => "serialPrintf";
function serialDataAvail (fd : int) return int -- wiringSerial.h:33
with Import => True,
Convention => C,
External_Name => "serialDataAvail";
function serialGetchar (fd : int) return int -- wiringSerial.h:34
with Import => True,
Convention => C,
External_Name => "serialGetchar";
end Pixtend.wiringSerial_h;
| 30.862745 | 109 | 0.635959 |
1cf1cbc9cc48e6102da0bcbf4e50e729d653586b | 8,090 | ads | Ada | gcc-gcc-7_3_0-release/gcc/ada/a-rbtgbk.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/a-rbtgbk.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/a-rbtgbk.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ADA.CONTAINERS.RED_BLACK_TREES.GENERIC_BOUNDED_KEYS --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-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/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
-- Tree_Type is used to implement ordered containers. This package declares
-- the tree operations that depend on keys.
with Ada.Containers.Red_Black_Trees.Generic_Bounded_Operations;
generic
with package Tree_Operations is new Generic_Bounded_Operations (<>);
use Tree_Operations.Tree_Types, Tree_Operations.Tree_Types.Implementation;
type Key_Type (<>) is limited private;
with function Is_Less_Key_Node
(L : Key_Type;
R : Node_Type) return Boolean;
with function Is_Greater_Key_Node
(L : Key_Type;
R : Node_Type) return Boolean;
package Ada.Containers.Red_Black_Trees.Generic_Bounded_Keys is
pragma Pure;
generic
with function New_Node return Count_Type;
procedure Generic_Insert_Post
(Tree : in out Tree_Type'Class;
Y : Count_Type;
Before : Boolean;
Z : out Count_Type);
-- Completes an insertion after the insertion position has been
-- determined. On output Z contains the index of the newly inserted
-- node, allocated using Allocate. If Tree is busy then
-- Program_Error is raised. If Y is 0, then Tree must be empty.
-- Otherwise Y denotes the insertion position, and Before specifies
-- whether the new node is Y's left (True) or right (False) child.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
procedure Generic_Conditional_Insert
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type;
Inserted : out Boolean);
-- Inserts a new node in Tree, but only if the tree does not already
-- contain Key. Generic_Conditional_Insert first searches for a key
-- equivalent to Key in Tree. If an equivalent key is found, then on
-- output Node designates the node with that key and Inserted is
-- False; there is no allocation and Tree is not modified. Otherwise
-- Node designates a new node allocated using Insert_Post, and
-- Inserted is True.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
procedure Generic_Unconditional_Insert
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type);
-- Inserts a new node in Tree. On output Node designates the new
-- node, which is allocated using Insert_Post. The node is inserted
-- immediately after already-existing equivalent keys.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
with procedure Unconditional_Insert_Sans_Hint
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type);
procedure Generic_Unconditional_Insert_With_Hint
(Tree : in out Tree_Type'Class;
Hint : Count_Type;
Key : Key_Type;
Node : out Count_Type);
-- Inserts a new node in Tree near position Hint, to avoid having to
-- search from the root for the insertion position. If Hint is 0
-- then Generic_Unconditional_Insert_With_Hint attempts to insert
-- the new node after Tree.Last. If Hint is non-zero then if Key is
-- less than Hint, it attempts to insert the new node immediately
-- prior to Hint. Otherwise it attempts to insert the node
-- immediately following Hint. We say "attempts" above to emphasize
-- that insertions always preserve invariants with respect to key
-- order, even when there's a hint. So if Key can't be inserted
-- immediately near Hint, then the new node is inserted in the
-- normal way, by searching for the correct position starting from
-- the root.
generic
with procedure Insert_Post
(T : in out Tree_Type'Class;
Y : Count_Type;
B : Boolean;
Z : out Count_Type);
with procedure Conditional_Insert_Sans_Hint
(Tree : in out Tree_Type'Class;
Key : Key_Type;
Node : out Count_Type;
Inserted : out Boolean);
procedure Generic_Conditional_Insert_With_Hint
(Tree : in out Tree_Type'Class;
Position : Count_Type; -- the hint
Key : Key_Type;
Node : out Count_Type;
Inserted : out Boolean);
-- Inserts a new node in Tree if the tree does not already contain
-- Key, using Position as a hint about where to insert the new node.
-- See Generic_Unconditional_Insert_With_Hint for more details about
-- hint semantics.
function Find
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the smallest node equivalent to Key
function Ceiling
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the smallest node equal to or greater than Key
function Floor
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the largest node less than or equal to Key
function Upper_Bound
(Tree : Tree_Type'Class;
Key : Key_Type) return Count_Type;
-- Searches Tree for the smallest node greater than Key
generic
with procedure Process (Index : Count_Type);
procedure Generic_Iteration
(Tree : Tree_Type'Class;
Key : Key_Type);
-- Calls Process for each node in Tree equivalent to Key, in order
-- from earliest in range to latest.
generic
with procedure Process (Index : Count_Type);
procedure Generic_Reverse_Iteration
(Tree : Tree_Type'Class;
Key : Key_Type);
-- Calls Process for each node in Tree equivalent to Key, but in
-- order from largest in range to earliest.
end Ada.Containers.Red_Black_Trees.Generic_Bounded_Keys;
| 41.701031 | 78 | 0.592707 |
0b52c0c548dfe7e58e802b273a7f167e5e215ead | 17,155 | ads | Ada | source/amf/uml/amf-internals-uml_string_expressions.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-uml_string_expressions.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-uml_string_expressions.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$
------------------------------------------------------------------------------
with AMF.Internals.UML_Packageable_Elements;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Named_Elements;
with AMF.UML.Namespaces;
with AMF.UML.Packages.Collections;
with AMF.UML.Parameterable_Elements.Collections;
with AMF.UML.String_Expressions.Collections;
with AMF.UML.Template_Bindings.Collections;
with AMF.UML.Template_Parameters;
with AMF.UML.Template_Signatures;
with AMF.UML.Types;
with AMF.UML.Value_Specifications.Collections;
with AMF.Visitors;
package AMF.Internals.UML_String_Expressions is
type UML_String_Expression_Proxy is
limited new AMF.Internals.UML_Packageable_Elements.UML_Packageable_Element_Proxy
and AMF.UML.String_Expressions.UML_String_Expression with null record;
overriding function Get_Owning_Expression
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of StringExpression::owningExpression.
--
-- The string expression of which this expression is a substring.
overriding procedure Set_Owning_Expression
(Self : not null access UML_String_Expression_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of StringExpression::owningExpression.
--
-- The string expression of which this expression is a substring.
overriding function Get_Sub_Expression
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.String_Expressions.Collections.Set_Of_UML_String_Expression;
-- Getter of StringExpression::subExpression.
--
-- The StringExpressions that constitute this StringExpression.
overriding function Get_Operand
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Value_Specifications.Collections.Ordered_Set_Of_UML_Value_Specification;
-- Getter of Expression::operand.
--
-- Specifies a sequence of operands.
overriding function Get_Symbol
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.Optional_String;
-- Getter of Expression::symbol.
--
-- The symbol associated with the node in the expression tree.
overriding procedure Set_Symbol
(Self : not null access UML_String_Expression_Proxy;
To : AMF.Optional_String);
-- Setter of Expression::symbol.
--
-- The symbol associated with the node in the expression tree.
overriding function Get_Type
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Types.UML_Type_Access;
-- Getter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding procedure Set_Type
(Self : not null access UML_String_Expression_Proxy;
To : AMF.UML.Types.UML_Type_Access);
-- Setter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding function Get_Client_Dependency
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
-- Getter of NamedElement::clientDependency.
--
-- Indicates the dependencies that reference the client.
overriding function Get_Name_Expression
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding procedure Set_Name_Expression
(Self : not null access UML_String_Expression_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding function Get_Namespace
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
overriding function Get_Qualified_Name
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
overriding function Get_Owning_Template_Parameter
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding procedure Set_Owning_Template_Parameter
(Self : not null access UML_String_Expression_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding function Get_Template_Parameter
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding procedure Set_Template_Parameter
(Self : not null access UML_String_Expression_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding function Get_Owned_Template_Signature
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Template_Signatures.UML_Template_Signature_Access;
-- Getter of TemplateableElement::ownedTemplateSignature.
--
-- The optional template signature specifying the formal template
-- parameters.
overriding procedure Set_Owned_Template_Signature
(Self : not null access UML_String_Expression_Proxy;
To : AMF.UML.Template_Signatures.UML_Template_Signature_Access);
-- Setter of TemplateableElement::ownedTemplateSignature.
--
-- The optional template signature specifying the formal template
-- parameters.
overriding function Get_Template_Binding
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Template_Bindings.Collections.Set_Of_UML_Template_Binding;
-- Getter of TemplateableElement::templateBinding.
--
-- The optional bindings from this element to templates.
overriding function String_Value
(Self : not null access constant UML_String_Expression_Proxy)
return League.Strings.Universal_String;
-- Operation StringExpression::stringValue.
--
-- The query stringValue() returns the string that concatenates, in order,
-- all the component string literals of all the subexpressions that are
-- part of the StringExpression.
overriding function Boolean_Value
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.Optional_Boolean;
-- Operation ValueSpecification::booleanValue.
--
-- The query booleanValue() gives a single Boolean value when one can be
-- computed.
overriding function Integer_Value
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.Optional_Integer;
-- Operation ValueSpecification::integerValue.
--
-- The query integerValue() gives a single Integer value when one can be
-- computed.
overriding function Is_Compatible_With
(Self : not null access constant UML_String_Expression_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean;
-- Operation ValueSpecification::isCompatibleWith.
--
-- The query isCompatibleWith() determines if this parameterable element
-- is compatible with the specified parameterable element. By default
-- parameterable element P is compatible with parameterable element Q if
-- the kind of P is the same or a subtype as the kind of Q. In addition,
-- for ValueSpecification, the type must be conformant with the type of
-- the specified parameterable element.
overriding function Is_Computable
(Self : not null access constant UML_String_Expression_Proxy)
return Boolean;
-- Operation ValueSpecification::isComputable.
--
-- The query isComputable() determines whether a value specification can
-- be computed in a model. This operation cannot be fully defined in OCL.
-- A conforming implementation is expected to deliver true for this
-- operation for all value specifications that it can compute, and to
-- compute all of those for which the operation is true. A conforming
-- implementation is expected to be able to compute the value of all
-- literals.
overriding function Is_Null
(Self : not null access constant UML_String_Expression_Proxy)
return Boolean;
-- Operation ValueSpecification::isNull.
--
-- The query isNull() returns true when it can be computed that the value
-- is null.
overriding function Real_Value
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.Optional_Real;
-- Operation ValueSpecification::realValue.
--
-- The query realValue() gives a single Real value when one can be
-- computed.
overriding function String_Value
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.Optional_String;
-- Operation ValueSpecification::stringValue.
--
-- The query stringValue() gives a single String value when one can be
-- computed.
overriding function Unlimited_Value
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.Optional_Unlimited_Natural;
-- Operation ValueSpecification::unlimitedValue.
--
-- The query unlimitedValue() gives a single UnlimitedNatural value when
-- one can be computed.
overriding function All_Owning_Packages
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation NamedElement::allOwningPackages.
--
-- The query allOwningPackages() returns all the directly or indirectly
-- owning packages.
overriding function Is_Distinguishable_From
(Self : not null access constant UML_String_Expression_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
overriding function Namespace
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Operation NamedElement::namespace.
--
-- Missing derivation for NamedElement::/namespace : Namespace
overriding function Is_Template_Parameter
(Self : not null access constant UML_String_Expression_Proxy)
return Boolean;
-- Operation ParameterableElement::isTemplateParameter.
--
-- The query isTemplateParameter() determines if this parameterable
-- element is exposed as a formal template parameter.
overriding function Is_Template
(Self : not null access constant UML_String_Expression_Proxy)
return Boolean;
-- Operation TemplateableElement::isTemplate.
--
-- The query isTemplate() returns whether this templateable element is
-- actually a template.
overriding function Parameterable_Elements
(Self : not null access constant UML_String_Expression_Proxy)
return AMF.UML.Parameterable_Elements.Collections.Set_Of_UML_Parameterable_Element;
-- Operation TemplateableElement::parameterableElements.
--
-- The query parameterableElements() returns the set of elements that may
-- be used as the parametered elements for a template parameter of this
-- templateable element. By default, this set includes all the owned
-- elements. Subclasses may override this operation if they choose to
-- restrict the set of parameterable elements.
overriding procedure Enter_Element
(Self : not null access constant UML_String_Expression_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Leave_Element
(Self : not null access constant UML_String_Expression_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Visit_Element
(Self : not null access constant UML_String_Expression_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of iterator interface.
end AMF.Internals.UML_String_Expressions;
| 46.616848 | 94 | 0.684057 |
125b903ece80c9995cd4d0e2f4ccdc7cc715d27c | 927 | ads | Ada | gdb/testsuite/gdb.ada/sym_print_name/pck.ads | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | 1 | 2020-10-14T03:24:35.000Z | 2020-10-14T03:24:35.000Z | gdb/testsuite/gdb.ada/sym_print_name/pck.ads | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | gdb/testsuite/gdb.ada/sym_print_name/pck.ads | greyblue9/binutils-gdb | 05377632b124fe7600eea7f4ee0e9a35d1b0cbdc | [
"BSD-3-Clause"
] | null | null | null | -- Copyright 2008-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/>.
package Pck is
package First is
IntegerVar : Integer := 48;
end First;
package Second is
IntegerVar : Integer := 74;
end Second;
procedure Do_Nothing (Val : in out Integer);
end Pck;
| 34.333333 | 73 | 0.716289 |
0b56b782ae3ffe07723db673acf71aecc24a5123 | 3,784 | ads | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-comver.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-comver.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-comver.ads | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"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-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. --
-- --
------------------------------------------------------------------------------
-- 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;
| 61.032258 | 78 | 0.500529 |
0e869f05350333ae41206b874ed17c1e7f9bfff8 | 8,376 | ads | Ada | llvm-gcc-4.2-2.9/gcc/ada/sprint.ads | 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/sprint.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/sprint.ads | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S P R I N T --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-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 (source print) contains routines for printing the source
-- program corresponding to a specified syntax tree. These routines are
-- intended for debugging use in the compiler (not as a user level pretty
-- print tool). Only information present in the tree is output (e.g. no
-- comments are present in the output), and as far as possible we avoid
-- making any assumptions about the correctness of the tree, so a bad
-- tree may either blow up on a debugging check, or list incorrect source.
with Types; use Types;
package Sprint is
-----------------------
-- Syntax Extensions --
-----------------------
-- When the generated tree is printed, it contains constructs that are not
-- pure Ada. For convenience, syntactic extensions to Ada have been defined
-- purely for the purposes of this printout (they are not recognized by the
-- parser)
-- Allocator new xxx [storage_pool = xxx]
-- Cleanup action at end procedure name;
-- Conditional expression (if expr then expr else expr)
-- Conversion wi Float_Truncate target^(source)
-- Convert wi Conversion_OK target?(source)
-- Convert wi Rounded_Result target@(source)
-- Divide wi Treat_Fixed_As_Integer x #/ y
-- Divide wi Rounded_Result x @/ y
-- Expression with range check {expression}
-- Operator with range check {operator} (e.g. {+})
-- Free statement free expr [storage_pool = xxx]
-- Freeze entity with freeze actions freeze entityname [ actions ]
-- Implicit call to run time routine $routine-name
-- Interpretation interpretation type [, entity]
-- Intrinsic calls function-name!(arg, arg, arg)
-- Itype declaration [(sub)type declaration without ;]
-- Itype reference reference itype
-- Label declaration labelname : label
-- Mod wi Treat_Fixed_As_Integer x #mod y
-- Multiple concatenation expr && expr && expr ... && expr
-- Multiply wi Treat_Fixed_As_Integer x #* y
-- Multiply wi Rounded_Result x @* y
-- Others choice for cleanup when all others
-- Raise xxx error [xxx_error [when cond]]
-- Raise xxx error with msg [xxx_error [when cond], "msg"]
-- Rational literal See UR_Write for details
-- Rem wi Treat_Fixed_As_Integer x #rem y
-- Reference expression'reference
-- Shift nodes shift_name!(expr, count)
-- Subprogram_Info subprog'Subprogram_Info
-- Unchecked conversion target_type!(source_expression)
-- Unchecked expression `(expression)
-- Validate_Unchecked_Conversion validate unchecked_conversion
-- (src-type, target-typ);
-- Note: the storage_pool parameters for allocators and the free node
-- are omitted if the Storage_Pool field is Empty, indicating use of
-- the standard default pool.
-----------------
-- Subprograms --
-----------------
procedure Source_Dump;
-- This routine is called from the GNAT main program to dump source as
-- requested by debug options. The relevant debug options are:
-- -ds print source from tree, both original and generated code
-- -dg print source from tree, including only the generated code
-- -do print source from tree, including only the original code
-- -df modify the above to include all units, not just the main unit
-- -sz print source from tree for package Standard
procedure Sprint_Comma_List (List : List_Id);
-- Prints the nodes in a list, with separating commas. If the list
-- is empty then no output is generated.
procedure Sprint_Paren_Comma_List (List : List_Id);
-- Prints the nodes in a list, surrounded by parentheses, and separated
-- by comas. If the list is empty, then no output is generated. A blank
-- is output before the initial left parenthesis.
procedure Sprint_Opt_Paren_Comma_List (List : List_Id);
-- Same as normal Sprint_Paren_Comma_List procedure, except that
-- an extra blank is output if List is non-empty, and nothing at all is
-- printed it the argument is No_List.
procedure Sprint_Node_List (List : List_Id);
-- Prints the nodes in a list with no separating characters. This is used
-- in the case of lists of items which are printed on separate lines using
-- the current indentation amount. Note that Sprint_Node_List itself
-- does not generate any New_Line calls.
procedure Sprint_Opt_Node_List (List : List_Id);
-- Like Sprint_Node_List, but prints nothing if List = No_List
procedure Sprint_Indented_List (List : List_Id);
-- Like Sprint_Line_List, except that the indentation level is
-- increased before outputting the list of items, and then decremented
-- (back to its original level) before returning to the caller.
procedure Sprint_Node (Node : Node_Id);
-- Prints a single node. No new lines are output, except as required for
-- splitting lines that are too long to fit on a single physical line.
-- No output is generated at all if Node is Empty. No trailing or leading
-- blank characters are generated.
procedure Sprint_Opt_Node (Node : Node_Id);
-- Same as normal Sprint_Node procedure, except that one leading
-- blank is output before the node if it is non-empty.
procedure pg (Node : Node_Id);
pragma Export (Ada, pg);
-- Print generated source for node N (like -gnatdg output). This is
-- intended only for use from gdb for debugging purposes.
procedure po (Node : Node_Id);
pragma Export (Ada, po);
-- Print original source for node N (like -gnatdo output). This is
-- intended only for use from gdb for debugging purposes.
procedure ps (Node : Node_Id);
pragma Export (Ada, ps);
-- Print generated and original source for node N (like -gnatds output).
-- This is intended only for use from gdb for debugging purposes.
end Sprint;
| 54.745098 | 79 | 0.573543 |
12a8cf155337e6d688a74db07c568cb236c9ff72 | 756 | adb | Ada | src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/fun_addr/foo.adb | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 31 | 2018-08-01T21:25:24.000Z | 2022-02-14T07:52:34.000Z | src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/fun_addr/foo.adb | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 40 | 2018-12-03T19:48:52.000Z | 2021-03-10T06:34:26.000Z | src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/fun_addr/foo.adb | alrooney/unum-sdk | bbccb10b0cd3500feccbbef22e27ea111c3d18eb | [
"Apache-2.0"
] | 20 | 2018-11-16T21:19:22.000Z | 2021-10-18T23:08:24.000Z | -- Copyright 2008-2019 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- 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 Foo is
begin
null;
end Foo;
| 37.8 | 73 | 0.736772 |
4a76bd1a5ade48613f9e5b9f1643c06bfed00a68 | 312,951 | adb | Ada | code-HLS/16_16/.autopilot/db/sigmoid_top.sched.adb | Pz1996/HLS-Sigmoid | 319f418a71d3dd10b68f5eede68e8153d86c8d70 | [
"Apache-2.0"
] | null | null | null | code-HLS/16_16/.autopilot/db/sigmoid_top.sched.adb | Pz1996/HLS-Sigmoid | 319f418a71d3dd10b68f5eede68e8153d86c8d70 | [
"Apache-2.0"
] | null | null | null | code-HLS/16_16/.autopilot/db/sigmoid_top.sched.adb | Pz1996/HLS-Sigmoid | 319f418a71d3dd10b68f5eede68e8153d86c8d70 | [
"Apache-2.0"
] | null | null | null | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="17">
<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>sigmoid_top</name>
<module_structure>Pipeline</module_structure>
<ret_bitwidth>16</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>1</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_r</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>in.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953394531</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<direction>0</direction>
<if_type>0</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>
</ports>
<nodes class_id="8" tracking_level="0" version="0">
<count>109</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_2">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>in_read</name>
<fileName>Sigmoid.cpp</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>3</lineNumber>
<contextFuncName>sigmoid_top</contextFuncName>
<contextNormFuncName>sigmoid_top</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item class_id="10" tracking_level="0" version="0">
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</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>Sigmoid.cpp</first>
<second>sigmoid_top</second>
</first>
<second>3</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741613612</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>119</item>
<item>120</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>1</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_3">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>icmp_ln1549</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1549</lineNumber>
<contextFuncName>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_ge_32_32_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1549</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741487420</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>121</item>
<item>123</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.28</m_delay>
<m_topoIndex>2</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>icmp_ln938</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>938</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>938</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1013281633</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>124</item>
<item>126</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.28</m_delay>
<m_topoIndex>57</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>p_Result_s</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1227</lineNumber>
<contextFuncName>countLeadingZeros</contextFuncName>
<contextNormFuncName>countLeadingZeros</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</first>
<second>countLeadingZeros</second>
</first>
<second>1227</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741487420</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>128</item>
<item>129</item>
<item>131</item>
<item>133</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>3</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>p_Result_6</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1228</lineNumber>
<contextFuncName>countLeadingZeros</contextFuncName>
<contextNormFuncName>countLeadingZeros</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</first>
<second>countLeadingZeros</second>
</first>
<second>1228</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741947196</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>135</item>
<item>137</item>
<item>138</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>4</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>13</id>
<name>l</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1229</lineNumber>
<contextFuncName>countLeadingZeros</contextFuncName>
<contextNormFuncName>countLeadingZeros</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</first>
<second>countLeadingZeros</second>
</first>
<second>1229</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>l</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741482540</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>140</item>
<item>141</item>
<item>143</item>
</oprand_edges>
<opcode>cttz</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>5</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>14</id>
<name>sub_ln947</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>947</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>947</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741487420</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>145</item>
<item>146</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.51</m_delay>
<m_topoIndex>6</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>15</id>
<name>trunc_ln947</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>947</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>947</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>892543020</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>147</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>7</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_10">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>lsb_index</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>947</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>947</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>lsb_index</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741482540</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>148</item>
<item>150</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.51</m_delay>
<m_topoIndex>8</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>tmp_5</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>949</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>949</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741482540</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>31</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>152</item>
<item>153</item>
<item>155</item>
<item>157</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>9</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>icmp_ln949</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>949</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>949</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741613612</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>158</item>
<item>160</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.28</m_delay>
<m_topoIndex>10</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>trunc_ln950</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>950</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>950</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>892543020</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>161</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>11</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>sub_ln950</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>950</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>950</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741875756</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>163</item>
<item>164</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.10</m_delay>
<m_topoIndex>12</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>zext_ln950</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>950</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>950</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>165</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>13</m_topoIndex>
<m_clusterGroupNumber>1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>lshr_ln950</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>950</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>950</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741875756</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>166</item>
<item>167</item>
</oprand_edges>
<opcode>lshr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>14</m_topoIndex>
<m_clusterGroupNumber>1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>23</id>
<name>p_Result_2</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>950</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>950</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741482540</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>168</item>
<item>169</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>15</m_topoIndex>
<m_clusterGroupNumber>1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>24</id>
<name>icmp_ln950</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>950</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>950</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741482540</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>170</item>
<item>171</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.58</m_delay>
<m_topoIndex>16</m_topoIndex>
<m_clusterGroupNumber>1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>tmp_7</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>173</item>
<item>174</item>
<item>175</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>17</m_topoIndex>
<m_clusterGroupNumber>2</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>xor_ln952</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741487420</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>176</item>
<item>177</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>18</m_topoIndex>
<m_clusterGroupNumber>2</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>and_ln949</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>949</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>949</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741487420</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>178</item>
<item>179</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>19</m_topoIndex>
<m_clusterGroupNumber>2</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>add_ln952</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741947196</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>180</item>
<item>182</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.34</m_delay>
<m_topoIndex>20</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name>shl_ln952</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741482540</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>184</item>
<item>185</item>
</oprand_edges>
<opcode>shl</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>21</m_topoIndex>
<m_clusterGroupNumber>3</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>and_ln952</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741482540</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>186</item>
<item>187</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>22</m_topoIndex>
<m_clusterGroupNumber>3</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name>p_Result_3</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>188</item>
<item>189</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.21</m_delay>
<m_topoIndex>23</m_topoIndex>
<m_clusterGroupNumber>3</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>a</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>a</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>190</item>
<item>191</item>
</oprand_edges>
<opcode>or</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>24</m_topoIndex>
<m_clusterGroupNumber>2</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>zext_ln960</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>960</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>960</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>192</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>36</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>icmp_ln961</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>961</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>961</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>193</item>
<item>194</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.28</m_delay>
<m_topoIndex>25</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>add_ln961</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>961</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>961</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>195</item>
<item>197</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.51</m_delay>
<m_topoIndex>26</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>zext_ln961</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>961</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>961</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>942874668</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>198</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>37</m_topoIndex>
<m_clusterGroupNumber>4</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>lshr_ln961</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>961</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>961</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1013281633</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>199</item>
<item>200</item>
</oprand_edges>
<opcode>lshr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>38</m_topoIndex>
<m_clusterGroupNumber>4</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>sub_ln962</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>962</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>962</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741749052</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>202</item>
<item>203</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.51</m_delay>
<m_topoIndex>27</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>zext_ln962</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>962</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>962</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1768713801</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>204</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>39</m_topoIndex>
<m_clusterGroupNumber>4</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name>shl_ln962</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>962</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>962</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4294967295</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>205</item>
<item>206</item>
</oprand_edges>
<opcode>shl</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>40</m_topoIndex>
<m_clusterGroupNumber>4</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>tobool29_i_i647</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>952</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>952</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1631205950</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>207</item>
<item>208</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.47</m_delay>
<m_topoIndex>28</m_topoIndex>
<m_clusterGroupNumber>2</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name>m</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>961</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>961</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>m</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1948265526</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>209</item>
<item>210</item>
<item>211</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>41</m_topoIndex>
<m_clusterGroupNumber>4</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>zext_ln964</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>964</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>964</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1747871091</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>212</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>42</m_topoIndex>
<m_clusterGroupNumber>4</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>m_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>964</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>964</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>m</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4294967295</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>213</item>
<item>214</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.00</m_delay>
<m_topoIndex>43</m_topoIndex>
<m_clusterGroupNumber>4</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>m_5</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>965</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>965</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>m</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>544175214</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>63</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>216</item>
<item>217</item>
<item>218</item>
<item>220</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>44</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>zext_ln965</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>965</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>965</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1701080941</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>221</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>45</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name>p_Result_4</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>968</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>968</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4294967295</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>223</item>
<item>224</item>
<item>225</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>46</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name>select_ln946</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>946</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>946</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1629954158</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>226</item>
<item>228</item>
<item>230</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.49</m_delay>
<m_topoIndex>47</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>49</id>
<name>trunc_ln946</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>946</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>946</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601134448</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>231</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>29</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>50</id>
<name>sub_ln968</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>968</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>968</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953060399</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>233</item>
<item>234</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>48</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>add_ln968</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>968</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>968</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1551134572</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>235</item>
<item>236</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.98</m_delay>
<m_topoIndex>49</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>52</id>
<name>tmp</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>974</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>974</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>825898033</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>12</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>238</item>
<item>240</item>
<item>241</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>50</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name>p_Result_7</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>974</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>974</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>__Result__</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1663057509</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>243</item>
<item>244</item>
<item>245</item>
<item>247</item>
<item>248</item>
</oprand_edges>
<opcode>partset</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>51</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>54</id>
<name>bitcast_ln741</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_common.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>741</lineNumber>
<contextFuncName>rawBitsToDouble</contextFuncName>
<contextNormFuncName>rawBitsToDouble</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_common.h</first>
<second>rawBitsToDouble</second>
</first>
<second>741</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1701080941</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>249</item>
</oprand_edges>
<opcode>bitcast</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>52</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>55</id>
<name>trunc_ln3</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1868771121</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>52</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>251</item>
<item>252</item>
<item>253</item>
<item>254</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>53</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>56</id>
<name>icmp_ln1560</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1902080097</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>255</item>
<item>257</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.07</m_delay>
<m_topoIndex>54</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_51">
<Value>
<Obj>
<type>0</type>
<id>57</id>
<name>icmp_ln1560_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>858350948</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>258</item>
<item>260</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.36</m_delay>
<m_topoIndex>55</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_52">
<Value>
<Obj>
<type>0</type>
<id>58</id>
<name>or_ln1560</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>673197109</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>261</item>
<item>262</item>
</oprand_edges>
<opcode>or</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>58</m_topoIndex>
<m_clusterGroupNumber>5</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_53">
<Value>
<Obj>
<type>0</type>
<id>59</id>
<name>tmp_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601265520</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>263</item>
<item>265</item>
</oprand_edges>
<opcode>dcmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>2.81</m_delay>
<m_topoIndex>56</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_54">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name>and_ln1560</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1768713801</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>266</item>
<item>267</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>59</m_topoIndex>
<m_clusterGroupNumber>5</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_55">
<Value>
<Obj>
<type>0</type>
<id>61</id>
<name>xor_ln1560</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1767057440</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>268</item>
<item>269</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.47</m_delay>
<m_topoIndex>60</m_topoIndex>
<m_clusterGroupNumber>5</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_56">
<Value>
<Obj>
<type>0</type>
<id>62</id>
<name>tmp_9</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1549</lineNumber>
<contextFuncName>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_ge_32_32_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1549</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1631205950</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>271</item>
<item>272</item>
<item>274</item>
<item>275</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>30</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_57">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name>icmp_ln1549_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1549</lineNumber>
<contextFuncName>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_ge_32_32_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1549</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>544175214</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>276</item>
<item>278</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.86</m_delay>
<m_topoIndex>31</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_58">
<Value>
<Obj>
<type>0</type>
<id>64</id>
<name>tmp_2</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1629954158</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>280</item>
<item>281</item>
<item>283</item>
<item>284</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>32</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_59">
<Value>
<Obj>
<type>0</type>
<id>65</id>
<name>and_ln</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1868767294</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>13</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>286</item>
<item>287</item>
<item>289</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>61</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_60">
<Value>
<Obj>
<type>0</type>
<id>66</id>
<name>zext_ln712</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601200476</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>290</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>62</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_61">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>x0_V</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>x0.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601200476</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>291</item>
<item>293</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.34</m_delay>
<m_topoIndex>63</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_62">
<Value>
<Obj>
<type>0</type>
<id>68</id>
<name>zext_ln6</name>
<fileName>Sigmoid.cpp</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>6</lineNumber>
<contextFuncName>sigmoid_top</contextFuncName>
<contextNormFuncName>sigmoid_top</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>Sigmoid.cpp</first>
<second>sigmoid_top</second>
</first>
<second>6</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702060386</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>294</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>64</m_topoIndex>
<m_clusterGroupNumber>6</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_63">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name>tmp_3</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702060386</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>13</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>296</item>
<item>297</item>
<item>299</item>
<item>300</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>33</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_64">
<Value>
<Obj>
<type>0</type>
<id>70</id>
<name>and_ln712_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702060386</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>302</item>
<item>303</item>
<item>304</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>65</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_65">
<Value>
<Obj>
<type>0</type>
<id>71</id>
<name>zext_ln712_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702060386</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>305</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>66</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_66">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name>x0_V_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>x0.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1633449071</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>306</item>
<item>308</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.34</m_delay>
<m_topoIndex>67</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_67">
<Value>
<Obj>
<type>0</type>
<id>73</id>
<name>add_ln712</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1769239916</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>309</item>
<item>311</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.34</m_delay>
<m_topoIndex>68</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_68">
<Value>
<Obj>
<type>0</type>
<id>74</id>
<name>tmp_4</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>691761261</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>14</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>313</item>
<item>314</item>
<item>316</item>
<item>317</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>69</m_topoIndex>
<m_clusterGroupNumber>6</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_69">
<Value>
<Obj>
<type>0</type>
<id>75</id>
<name>x0_V_2</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>712</lineNumber>
<contextFuncName>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_20_6_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;20, 6, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>712</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>x0.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601200476</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>319</item>
<item>320</item>
<item>321</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>70</m_topoIndex>
<m_clusterGroupNumber>6</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_70">
<Value>
<Obj>
<type>0</type>
<id>76</id>
<name>or_ln938</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>938</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>938</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1834970975</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>322</item>
<item>323</item>
</oprand_edges>
<opcode>or</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.47</m_delay>
<m_topoIndex>71</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_71">
<Value>
<Obj>
<type>0</type>
<id>77</id>
<name>or_ln1560_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601465961</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>324</item>
<item>325</item>
</oprand_edges>
<opcode>or</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>72</m_topoIndex>
<m_clusterGroupNumber>6</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_72">
<Value>
<Obj>
<type>0</type>
<id>78</id>
<name>x0_V_3</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1560</lineNumber>
<contextFuncName>operator&gt;=</contextFuncName>
<contextNormFuncName>operator_ge</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=</second>
</first>
<second>1560</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>x0.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741749052</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>326</item>
<item>327</item>
<item>328</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>73</m_topoIndex>
<m_clusterGroupNumber>6</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_73">
<Value>
<Obj>
<type>0</type>
<id>79</id>
<name>xor_ln938</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>938</lineNumber>
<contextFuncName>to_double</contextFuncName>
<contextNormFuncName>to_double</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>to_double</second>
</first>
<second>938</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>926170213</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>329</item>
<item>330</item>
</oprand_edges>
<opcode>xor</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>74</m_topoIndex>
<m_clusterGroupNumber>7</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_74">
<Value>
<Obj>
<type>0</type>
<id>80</id>
<name>and_ln1549</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1549</lineNumber>
<contextFuncName>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_ge_32_32_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1549</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1834970975</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>331</item>
<item>332</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>75</m_topoIndex>
<m_clusterGroupNumber>7</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_75">
<Value>
<Obj>
<type>0</type>
<id>81</id>
<name>and_ln1549_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1549</lineNumber>
<contextFuncName>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_ge_32_32_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1549</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1869438831</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>333</item>
<item>334</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.47</m_delay>
<m_topoIndex>76</m_topoIndex>
<m_clusterGroupNumber>7</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_76">
<Value>
<Obj>
<type>0</type>
<id>82</id>
<name>x0_V_4</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1549</lineNumber>
<contextFuncName>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_ge_32_32_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1549</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>x0.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>539766834</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>335</item>
<item>336</item>
<item>337</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.47</m_delay>
<m_topoIndex>77</m_topoIndex>
<m_clusterGroupNumber>6</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_77">
<Value>
<Obj>
<type>0</type>
<id>83</id>
<name>x0_V_6</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1549</lineNumber>
<contextFuncName>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_ge_32_32_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;=&lt;32, 32, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1549</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>x0.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1834970975</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>338</item>
<item>340</item>
<item>341</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.39</m_delay>
<m_topoIndex>85</m_topoIndex>
<m_clusterGroupNumber>8</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_78">
<Value>
<Obj>
<type>0</type>
<id>84</id>
<name>zext_ln1168</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1168</lineNumber>
<contextFuncName>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_16_4_false_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1168</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1869438831</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>29</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>342</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>34</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_79">
<Value>
<Obj>
<type>0</type>
<id>85</id>
<name>r_V</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1171</lineNumber>
<contextFuncName>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_16_4_false_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1171</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741749052</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>29</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>343</item>
<item>345</item>
</oprand_edges>
<opcode>mul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.54</m_delay>
<m_topoIndex>35</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_80">
<Value>
<Obj>
<type>0</type>
<id>86</id>
<name>m_4</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_ref.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>640</lineNumber>
<contextFuncName>get</contextFuncName>
<contextNormFuncName>get</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_ref.h</first>
<second>get</second>
</first>
<second>640</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>m</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>826041715</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>347</item>
<item>348</item>
<item>350</item>
<item>352</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>95</m_topoIndex>
<m_clusterGroupNumber>9</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_81">
<Value>
<Obj>
<type>0</type>
<id>87</id>
<name>n</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_ref.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>640</lineNumber>
<contextFuncName>get</contextFuncName>
<contextNormFuncName>get</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_ref.h</first>
<second>get</second>
</first>
<second>640</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>n</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2020173407</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>353</item>
<item>354</item>
<item>356</item>
<item>358</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>78</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_82">
<Value>
<Obj>
<type>0</type>
<id>88</id>
<name>r_V_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_ref.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>566</lineNumber>
<contextFuncName>operator unsigned long long</contextFuncName>
<contextNormFuncName>operator_unsigned_long_long</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_ref.h</first>
<second>operator unsigned long long</second>
</first>
<second>566</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741749052</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>8</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>360</item>
<item>361</item>
<item>362</item>
<item>364</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>79</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_83">
<Value>
<Obj>
<type>0</type>
<id>89</id>
<name>zext_ln1168_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1168</lineNumber>
<contextFuncName>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_16_4_false_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1168</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>826041715</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>20</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>365</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>80</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_84">
<Value>
<Obj>
<type>0</type>
<id>90</id>
<name>r_V_2</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1171</lineNumber>
<contextFuncName>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_16_4_false_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;16, 4, false, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1171</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1869438831</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>20</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>366</item>
<item>368</item>
</oprand_edges>
<opcode>mul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.54</m_delay>
<m_topoIndex>81</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_85">
<Value>
<Obj>
<type>0</type>
<id>91</id>
<name>zext_ln573</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>573</lineNumber>
<contextFuncName>operator unsigned long long</contextFuncName>
<contextNormFuncName>operator_unsigned_long_long</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_int_base.h</first>
<second>operator unsigned long long</second>
</first>
<second>573</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741749052</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>369</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>82</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_86">
<Value>
<Obj>
<type>0</type>
<id>92</id>
<name>trunc_ln4</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1246</lineNumber>
<contextFuncName>operator-&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_sub_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator-&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1246</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1717530721</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>10</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>371</item>
<item>372</item>
<item>374</item>
<item>375</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>86</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_87">
<Value>
<Obj>
<type>0</type>
<id>93</id>
<name>zext_ln1246</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1246</lineNumber>
<contextFuncName>operator-&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_sub_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator-&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1246</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1633449071</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>376</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>87</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_88">
<Value>
<Obj>
<type>0</type>
<id>94</id>
<name>ret_V</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1246</lineNumber>
<contextFuncName>operator-&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_sub_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator-&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1246</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>ret.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702060386</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>378</item>
<item>379</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.34</m_delay>
<m_topoIndex>88</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_89">
<Value>
<Obj>
<type>0</type>
<id>95</id>
<name>ROM_EXP_V_addr</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1169</lineNumber>
<contextFuncName>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_47_33_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1169</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4294967295</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>380</item>
<item>382</item>
<item>383</item>
</oprand_edges>
<opcode>getelementptr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>83</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_90">
<Value>
<Obj>
<type>0</type>
<id>96</id>
<name>r_V_3</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1169</lineNumber>
<contextFuncName>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_47_33_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1169</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>384</item>
</oprand_edges>
<opcode>load</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.14</m_delay>
<m_topoIndex>84</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_91">
<Value>
<Obj>
<type>0</type>
<id>97</id>
<name>zext_ln1168_2</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1168</lineNumber>
<contextFuncName>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_47_33_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1168</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>385</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>89</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_92">
<Value>
<Obj>
<type>0</type>
<id>98</id>
<name>zext_ln1171</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1171</lineNumber>
<contextFuncName>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_47_33_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1171</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>621029840</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>386</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>90</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_93">
<Value>
<Obj>
<type>0</type>
<id>99</id>
<name>r_V_4</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1171</lineNumber>
<contextFuncName>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_47_33_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1171</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1834970975</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>387</item>
<item>388</item>
</oprand_edges>
<opcode>mul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.54</m_delay>
<m_topoIndex>91</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_94">
<Value>
<Obj>
<type>0</type>
<id>100</id>
<name>zext_ln1168_3</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1168</lineNumber>
<contextFuncName>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_47_33_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;47, 33, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1168</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4294967295</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>63</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>389</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>96</m_topoIndex>
<m_clusterGroupNumber>9</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_95">
<Value>
<Obj>
<type>0</type>
<id>101</id>
<name>zext_ln1386</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1386</lineNumber>
<contextFuncName>operator&gt;&gt;</contextFuncName>
<contextNormFuncName>operator_rs</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;&gt;</second>
</first>
<second>1386</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>63</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>390</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>97</m_topoIndex>
<m_clusterGroupNumber>9</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_96">
<Value>
<Obj>
<type>0</type>
<id>102</id>
<name>r</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1386</lineNumber>
<contextFuncName>operator&gt;&gt;</contextFuncName>
<contextNormFuncName>operator_rs</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&gt;&gt;</second>
</first>
<second>1386</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>556558544</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>63</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>391</item>
<item>392</item>
</oprand_edges>
<opcode>lshr</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>98</m_topoIndex>
<m_clusterGroupNumber>9</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_97">
<Value>
<Obj>
<type>0</type>
<id>103</id>
<name>exp_negx_V</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>717</lineNumber>
<contextFuncName>operator=&lt;63, 35, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_63_35_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;63, 35, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>717</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>exp_negx.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4294967295</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>394</item>
<item>395</item>
<item>397</item>
<item>399</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>99</m_topoIndex>
<m_clusterGroupNumber>9</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_98">
<Value>
<Obj>
<type>0</type>
<id>104</id>
<name>zext_ln1352</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1352</lineNumber>
<contextFuncName>operator&lt;&lt;</contextFuncName>
<contextNormFuncName>operator_ls</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&lt;&lt;</second>
</first>
<second>1352</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>400</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>92</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_99">
<Value>
<Obj>
<type>0</type>
<id>105</id>
<name>trunc_ln1352</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1352</lineNumber>
<contextFuncName>operator&lt;&lt;</contextFuncName>
<contextNormFuncName>operator_ls</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator&lt;&lt;</second>
</first>
<second>1352</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>4294967295</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>14</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>401</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>93</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_100">
<Value>
<Obj>
<type>0</type>
<id>106</id>
<name>r_V_6</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1171</lineNumber>
<contextFuncName>operator*&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_mul_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator*&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1171</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>r.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>402</item>
<item>403</item>
</oprand_edges>
<opcode>mul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.54</m_delay>
<m_topoIndex>94</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_101">
<Value>
<Obj>
<type>0</type>
<id>107</id>
<name>sext_ln1245</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1245</lineNumber>
<contextFuncName>operator+&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_add_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator+&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1245</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>0</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>17</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>404</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>100</m_topoIndex>
<m_clusterGroupNumber>9</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_102">
<Value>
<Obj>
<type>0</type>
<id>108</id>
<name>ret_V_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1245</lineNumber>
<contextFuncName>operator+&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_add_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator+&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1245</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>ret.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2996679736</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>17</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>405</item>
<item>407</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.96</m_delay>
<m_topoIndex>101</m_topoIndex>
<m_clusterGroupNumber>9</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_103">
<Value>
<Obj>
<type>0</type>
<id>109</id>
<name>zext_ln1246_1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1246</lineNumber>
<contextFuncName>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_sub_79_37_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1246</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1797268061</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>43</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>408</item>
</oprand_edges>
<opcode>zext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>102</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_104">
<Value>
<Obj>
<type>0</type>
<id>110</id>
<name>sext_ln1246</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1246</lineNumber>
<contextFuncName>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_sub_79_37_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1246</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1769239916</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>43</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>409</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>103</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_105">
<Value>
<Obj>
<type>0</type>
<id>111</id>
<name>mul_ln1246</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1246</lineNumber>
<contextFuncName>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_sub_79_37_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1246</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1869182069</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>43</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>410</item>
<item>411</item>
</oprand_edges>
<opcode>mul</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>5.49</m_delay>
<m_topoIndex>104</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_106">
<Value>
<Obj>
<type>0</type>
<id>112</id>
<name>lhs_V</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>737</lineNumber>
<contextFuncName>operator=&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>737</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>lhs.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>539767861</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>43</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>413</item>
<item>414</item>
<item>416</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>105</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_107">
<Value>
<Obj>
<type>0</type>
<id>113</id>
<name>ret_V_2</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>1246</lineNumber>
<contextFuncName>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_sub_79_37_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator-&lt;79, 37, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>1246</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>ret.V</originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>874523702</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>43</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>417</item>
<item>418</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>1.62</m_delay>
<m_topoIndex>106</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_108">
<Value>
<Obj>
<type>0</type>
<id>114</id>
<name>tmp_6</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>740</lineNumber>
<contextFuncName>operator=&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>740</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>694510703</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>420</item>
<item>421</item>
<item>423</item>
<item>425</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>107</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_109">
<Value>
<Obj>
<type>0</type>
<id>115</id>
<name>and_ln1</name>
<fileName>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>740</lineNumber>
<contextFuncName>operator=&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</contextFuncName>
<contextNormFuncName>operator_assign_16_2_true_AP_TRN_AP_WRAP_0</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>C:/Xilinx/Vitis_HLS/2021.1/common/technology/autopilot\ap_fixed_base.h</first>
<second>operator=&lt;16, 2, true, AP_TRN, AP_WRAP, 0&gt;</second>
</first>
<second>740</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1600415096</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>427</item>
<item>428</item>
<item>429</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>108</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
<item class_id_reference="9" object_id="_110">
<Value>
<Obj>
<type>0</type>
<id>116</id>
<name>_ln35</name>
<fileName>Sigmoid.cpp</fileName>
<fileDirectory>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</fileDirectory>
<lineNumber>35</lineNumber>
<contextFuncName>sigmoid_top</contextFuncName>
<contextNormFuncName>sigmoid_top</contextNormFuncName>
<inlineStackInfo>
<count>1</count>
<item_version>0</item_version>
<item>
<first>C:\Users\Sunnyday\AppData\Roaming\Xilinx\Vitis</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>Sigmoid.cpp</first>
<second>sigmoid_top</second>
</first>
<second>35</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1600415096</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>430</item>
</oprand_edges>
<opcode>ret</opcode>
<m_Display>0</m_Display>
<m_isOnCriticalPath>0</m_isOnCriticalPath>
<m_isLCDNode>0</m_isLCDNode>
<m_isStartOfPath>0</m_isStartOfPath>
<m_delay>0.00</m_delay>
<m_topoIndex>109</m_topoIndex>
<m_clusterGroupNumber>-1</m_clusterGroupNumber>
</item>
</nodes>
<consts class_id="15" tracking_level="0" version="0">
<count>51</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_111">
<Value>
<Obj>
<type>2</type>
<id>122</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953394531</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>20479</content>
</item>
<item class_id_reference="16" object_id="_112">
<Value>
<Obj>
<type>2</type>
<id>125</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953394531</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_113">
<Value>
<Obj>
<type>2</type>
<id>130</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953394531</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>15</content>
</item>
<item class_id_reference="16" object_id="_114">
<Value>
<Obj>
<type>2</type>
<id>132</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953394531</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_115">
<Value>
<Obj>
<type>2</type>
<id>136</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953394531</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>65535</content>
</item>
<item class_id_reference="16" object_id="_116">
<Value>
<Obj>
<type>2</type>
<id>142</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>572669287</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_117">
<Value>
<Obj>
<type>2</type>
<id>144</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>2020173407</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>16</content>
</item>
<item class_id_reference="16" object_id="_118">
<Value>
<Obj>
<type>2</type>
<id>149</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1397508187</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>4294967243</content>
</item>
<item class_id_reference="16" object_id="_119">
<Value>
<Obj>
<type>2</type>
<id>154</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>893020206</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_120">
<Value>
<Obj>
<type>2</type>
<id>156</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1886352501</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>31</content>
</item>
<item class_id_reference="16" object_id="_121">
<Value>
<Obj>
<type>2</type>
<id>159</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1818391919</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>31</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_122">
<Value>
<Obj>
<type>2</type>
<id>162</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741749051</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>5</bitwidth>
</Value>
<const_type>0</const_type>
<content>6</content>
</item>
<item class_id_reference="16" object_id="_123">
<Value>
<Obj>
<type>2</type>
<id>181</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1717924464</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>65483</content>
</item>
<item class_id_reference="16" object_id="_124">
<Value>
<Obj>
<type>2</type>
<id>183</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1818322464</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_125">
<Value>
<Obj>
<type>2</type>
<id>196</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601200442</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>4294967242</content>
</item>
<item class_id_reference="16" object_id="_126">
<Value>
<Obj>
<type>2</type>
<id>201</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>741550437</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>54</content>
</item>
<item class_id_reference="16" object_id="_127">
<Value>
<Obj>
<type>2</type>
<id>219</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702043749</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>63</content>
</item>
<item class_id_reference="16" object_id="_128">
<Value>
<Obj>
<type>2</type>
<id>227</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601265520</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1023</content>
</item>
<item class_id_reference="16" object_id="_129">
<Value>
<Obj>
<type>2</type>
<id>229</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>673197109</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1022</content>
</item>
<item class_id_reference="16" object_id="_130">
<Value>
<Obj>
<type>2</type>
<id>232</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1650418789</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>4</content>
</item>
<item class_id_reference="16" object_id="_131">
<Value>
<Obj>
<type>2</type>
<id>239</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1630019628</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_132">
<Value>
<Obj>
<type>2</type>
<id>246</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>539768105</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>52</content>
</item>
<item class_id_reference="16" object_id="_133">
<Value>
<Obj>
<type>2</type>
<id>256</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1330007625</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>2047</content>
</item>
<item class_id_reference="16" object_id="_134">
<Value>
<Obj>
<type>2</type>
<id>259</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1685024095</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>52</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_135">
<Value>
<Obj>
<type>2</type>
<id>264</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>694510703</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>1</const_type>
<content>2.375</content>
</item>
<item class_id_reference="16" object_id="_136">
<Value>
<Obj>
<type>2</type>
<id>273</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>644182881</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>12</content>
</item>
<item class_id_reference="16" object_id="_137">
<Value>
<Obj>
<type>2</type>
<id>277</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>539767840</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>4</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_138">
<Value>
<Obj>
<type>2</type>
<id>282</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1953721967</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>5</content>
</item>
<item class_id_reference="16" object_id="_139">
<Value>
<Obj>
<type>2</type>
<id>288</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1918854503</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>2</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_140">
<Value>
<Obj>
<type>2</type>
<id>292</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1701080941</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<const_type>0</const_type>
<content>13824</content>
</item>
<item class_id_reference="16" object_id="_141">
<Value>
<Obj>
<type>2</type>
<id>298</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1701080941</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>3</content>
</item>
<item class_id_reference="16" object_id="_142">
<Value>
<Obj>
<type>2</type>
<id>307</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1226980729</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>10240</content>
</item>
<item class_id_reference="16" object_id="_143">
<Value>
<Obj>
<type>2</type>
<id>310</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1629910131</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>8192</content>
</item>
<item class_id_reference="16" object_id="_144">
<Value>
<Obj>
<type>2</type>
<id>315</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1701080941</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>2</content>
</item>
<item class_id_reference="16" object_id="_145">
<Value>
<Obj>
<type>2</type>
<id>339</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601200424</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>16</bitwidth>
</Value>
<const_type>0</const_type>
<content>16384</content>
</item>
<item class_id_reference="16" object_id="_146">
<Value>
<Obj>
<type>2</type>
<id>344</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1853187616</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>29</bitwidth>
</Value>
<const_type>0</const_type>
<content>5909</content>
</item>
<item class_id_reference="16" object_id="_147">
<Value>
<Obj>
<type>2</type>
<id>349</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>543516513</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>24</content>
</item>
<item class_id_reference="16" object_id="_148">
<Value>
<Obj>
<type>2</type>
<id>351</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>539587694</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>27</content>
</item>
<item class_id_reference="16" object_id="_149">
<Value>
<Obj>
<type>2</type>
<id>355</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>795766637</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>20</content>
</item>
<item class_id_reference="16" object_id="_150">
<Value>
<Obj>
<type>2</type>
<id>357</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>694510703</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>23</content>
</item>
<item class_id_reference="16" object_id="_151">
<Value>
<Obj>
<type>2</type>
<id>363</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1768316784</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>19</content>
</item>
<item class_id_reference="16" object_id="_152">
<Value>
<Obj>
<type>2</type>
<id>367</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>543649385</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>20</bitwidth>
</Value>
<const_type>0</const_type>
<content>2839</content>
</item>
<item class_id_reference="16" object_id="_153">
<Value>
<Obj>
<type>2</type>
<id>373</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>644182881</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>10</content>
</item>
<item class_id_reference="16" object_id="_154">
<Value>
<Obj>
<type>2</type>
<id>377</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1919250543</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>15</bitwidth>
</Value>
<const_type>0</const_type>
<content>16384</content>
</item>
<item class_id_reference="16" object_id="_155">
<Value>
<Obj>
<type>2</type>
<id>381</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1701080941</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>64</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_156">
<Value>
<Obj>
<type>2</type>
<id>396</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1702390118</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>14</content>
</item>
<item class_id_reference="16" object_id="_157">
<Value>
<Obj>
<type>2</type>
<id>398</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1601200424</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>29</content>
</item>
<item class_id_reference="16" object_id="_158">
<Value>
<Obj>
<type>2</type>
<id>406</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>539780469</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>17</bitwidth>
</Value>
<const_type>0</const_type>
<content>16384</content>
</item>
<item class_id_reference="16" object_id="_159">
<Value>
<Obj>
<type>2</type>
<id>415</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1920213036</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>29</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_160">
<Value>
<Obj>
<type>2</type>
<id>422</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1701978146</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>28</content>
</item>
<item class_id_reference="16" object_id="_161">
<Value>
<Obj>
<type>2</type>
<id>424</id>
<name>empty</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>1919250543</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>42</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="_162">
<Obj>
<type>3</type>
<id>117</id>
<name>sigmoid_top</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<contextNormFuncName></contextNormFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<control></control>
<opType></opType>
<implIndex></implIndex>
<coreName></coreName>
<isStorage>0</isStorage>
<storageDepth>0</storageDepth>
<coreId>825110834</coreId>
<rtlModuleName></rtlModuleName>
</Obj>
<node_objs>
<count>109</count>
<item_version>0</item_version>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
<item>21</item>
<item>22</item>
<item>23</item>
<item>24</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
<item>49</item>
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
<item>54</item>
<item>55</item>
<item>56</item>
<item>57</item>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
<item>64</item>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
<item>70</item>
<item>71</item>
<item>72</item>
<item>73</item>
<item>74</item>
<item>75</item>
<item>76</item>
<item>77</item>
<item>78</item>
<item>79</item>
<item>80</item>
<item>81</item>
<item>82</item>
<item>83</item>
<item>84</item>
<item>85</item>
<item>86</item>
<item>87</item>
<item>88</item>
<item>89</item>
<item>90</item>
<item>91</item>
<item>92</item>
<item>93</item>
<item>94</item>
<item>95</item>
<item>96</item>
<item>97</item>
<item>98</item>
<item>99</item>
<item>100</item>
<item>101</item>
<item>102</item>
<item>103</item>
<item>104</item>
<item>105</item>
<item>106</item>
<item>107</item>
<item>108</item>
<item>109</item>
<item>110</item>
<item>111</item>
<item>112</item>
<item>113</item>
<item>114</item>
<item>115</item>
<item>116</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>211</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_163">
<id>120</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>8</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_164">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_165">
<id>123</id>
<edge_type>1</edge_type>
<source_obj>122</source_obj>
<sink_obj>9</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_166">
<id>124</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_167">
<id>126</id>
<edge_type>1</edge_type>
<source_obj>125</source_obj>
<sink_obj>10</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_168">
<id>129</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_169">
<id>131</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_170">
<id>133</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>11</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_171">
<id>137</id>
<edge_type>1</edge_type>
<source_obj>136</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_172">
<id>138</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>12</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_173">
<id>141</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_174">
<id>143</id>
<edge_type>1</edge_type>
<source_obj>142</source_obj>
<sink_obj>13</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_175">
<id>145</id>
<edge_type>1</edge_type>
<source_obj>144</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_176">
<id>146</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>14</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_177">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>15</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_178">
<id>148</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_179">
<id>150</id>
<edge_type>1</edge_type>
<source_obj>149</source_obj>
<sink_obj>16</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_180">
<id>153</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_181">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>154</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_182">
<id>157</id>
<edge_type>1</edge_type>
<source_obj>156</source_obj>
<sink_obj>17</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_183">
<id>158</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_184">
<id>160</id>
<edge_type>1</edge_type>
<source_obj>159</source_obj>
<sink_obj>18</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_185">
<id>161</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>19</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_186">
<id>163</id>
<edge_type>1</edge_type>
<source_obj>162</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_187">
<id>164</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>20</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_188">
<id>165</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_189">
<id>166</id>
<edge_type>1</edge_type>
<source_obj>136</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_190">
<id>167</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>22</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_191">
<id>168</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_192">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>23</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_193">
<id>170</id>
<edge_type>1</edge_type>
<source_obj>23</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_194">
<id>171</id>
<edge_type>1</edge_type>
<source_obj>125</source_obj>
<sink_obj>24</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_195">
<id>174</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_196">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>156</source_obj>
<sink_obj>25</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_197">
<id>176</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_198">
<id>177</id>
<edge_type>1</edge_type>
<source_obj>142</source_obj>
<sink_obj>26</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_199">
<id>178</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_200">
<id>179</id>
<edge_type>1</edge_type>
<source_obj>24</source_obj>
<sink_obj>27</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_201">
<id>180</id>
<edge_type>1</edge_type>
<source_obj>15</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_202">
<id>182</id>
<edge_type>1</edge_type>
<source_obj>181</source_obj>
<sink_obj>28</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_203">
<id>184</id>
<edge_type>1</edge_type>
<source_obj>183</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_204">
<id>185</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>29</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_205">
<id>186</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_206">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>30</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_207">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_208">
<id>189</id>
<edge_type>1</edge_type>
<source_obj>125</source_obj>
<sink_obj>31</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_209">
<id>190</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_210">
<id>191</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>32</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_211">
<id>192</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>33</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_212">
<id>193</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_213">
<id>194</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>34</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_214">
<id>195</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_215">
<id>197</id>
<edge_type>1</edge_type>
<source_obj>196</source_obj>
<sink_obj>35</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_216">
<id>198</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_217">
<id>199</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_218">
<id>200</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_219">
<id>202</id>
<edge_type>1</edge_type>
<source_obj>201</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_220">
<id>203</id>
<edge_type>1</edge_type>
<source_obj>14</source_obj>
<sink_obj>38</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_221">
<id>204</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>39</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_222">
<id>205</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_223">
<id>206</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>40</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_224">
<id>207</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_225">
<id>208</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>41</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_226">
<id>209</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_227">
<id>210</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_228">
<id>211</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>42</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_229">
<id>212</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>43</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_230">
<id>213</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_231">
<id>214</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>44</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_232">
<id>217</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_233">
<id>218</id>
<edge_type>1</edge_type>
<source_obj>154</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_234">
<id>220</id>
<edge_type>1</edge_type>
<source_obj>219</source_obj>
<sink_obj>45</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_235">
<id>221</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>46</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_236">
<id>224</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>47</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_237">
<id>225</id>
<edge_type>1</edge_type>
<source_obj>201</source_obj>
<sink_obj>47</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_238">
<id>226</id>
<edge_type>1</edge_type>
<source_obj>47</source_obj>
<sink_obj>48</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_239">
<id>228</id>
<edge_type>1</edge_type>
<source_obj>227</source_obj>
<sink_obj>48</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_240">
<id>230</id>
<edge_type>1</edge_type>
<source_obj>229</source_obj>
<sink_obj>48</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_241">
<id>231</id>
<edge_type>1</edge_type>
<source_obj>13</source_obj>
<sink_obj>49</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_242">
<id>233</id>
<edge_type>1</edge_type>
<source_obj>232</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_243">
<id>234</id>
<edge_type>1</edge_type>
<source_obj>49</source_obj>
<sink_obj>50</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_244">
<id>235</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_245">
<id>236</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>51</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_246">
<id>240</id>
<edge_type>1</edge_type>
<source_obj>239</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_247">
<id>241</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>52</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_248">
<id>244</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_249">
<id>245</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_250">
<id>247</id>
<edge_type>1</edge_type>
<source_obj>246</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_251">
<id>248</id>
<edge_type>1</edge_type>
<source_obj>219</source_obj>
<sink_obj>53</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_252">
<id>249</id>
<edge_type>1</edge_type>
<source_obj>53</source_obj>
<sink_obj>54</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_253">
<id>252</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>55</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_254">
<id>253</id>
<edge_type>1</edge_type>
<source_obj>154</source_obj>
<sink_obj>55</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_255">
<id>254</id>
<edge_type>1</edge_type>
<source_obj>246</source_obj>
<sink_obj>55</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_256">
<id>255</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_257">
<id>257</id>
<edge_type>1</edge_type>
<source_obj>256</source_obj>
<sink_obj>56</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_258">
<id>258</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_259">
<id>260</id>
<edge_type>1</edge_type>
<source_obj>259</source_obj>
<sink_obj>57</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_260">
<id>261</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>58</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_261">
<id>262</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>58</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_262">
<id>263</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>59</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_263">
<id>265</id>
<edge_type>1</edge_type>
<source_obj>264</source_obj>
<sink_obj>59</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_264">
<id>266</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_265">
<id>267</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>60</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_266">
<id>268</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>61</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_267">
<id>269</id>
<edge_type>1</edge_type>
<source_obj>142</source_obj>
<sink_obj>61</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_268">
<id>272</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>62</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_269">
<id>274</id>
<edge_type>1</edge_type>
<source_obj>273</source_obj>
<sink_obj>62</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_270">
<id>275</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>62</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_271">
<id>276</id>
<edge_type>1</edge_type>
<source_obj>62</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_272">
<id>278</id>
<edge_type>1</edge_type>
<source_obj>277</source_obj>
<sink_obj>63</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_273">
<id>281</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_274">
<id>283</id>
<edge_type>1</edge_type>
<source_obj>282</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_275">
<id>284</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>64</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_276">
<id>287</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>65</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_277">
<id>289</id>
<edge_type>1</edge_type>
<source_obj>288</source_obj>
<sink_obj>65</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_278">
<id>290</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>66</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_279">
<id>291</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_280">
<id>293</id>
<edge_type>1</edge_type>
<source_obj>292</source_obj>
<sink_obj>67</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_281">
<id>294</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>68</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_282">
<id>297</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_283">
<id>299</id>
<edge_type>1</edge_type>
<source_obj>298</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_284">
<id>300</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>69</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_285">
<id>303</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>70</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_286">
<id>304</id>
<edge_type>1</edge_type>
<source_obj>288</source_obj>
<sink_obj>70</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_287">
<id>305</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>71</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_288">
<id>306</id>
<edge_type>1</edge_type>
<source_obj>71</source_obj>
<sink_obj>72</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_289">
<id>308</id>
<edge_type>1</edge_type>
<source_obj>307</source_obj>
<sink_obj>72</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_290">
<id>309</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>73</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_291">
<id>311</id>
<edge_type>1</edge_type>
<source_obj>310</source_obj>
<sink_obj>73</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_292">
<id>314</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>74</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_293">
<id>316</id>
<edge_type>1</edge_type>
<source_obj>315</source_obj>
<sink_obj>74</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_294">
<id>317</id>
<edge_type>1</edge_type>
<source_obj>130</source_obj>
<sink_obj>74</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_295">
<id>320</id>
<edge_type>1</edge_type>
<source_obj>74</source_obj>
<sink_obj>75</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_296">
<id>321</id>
<edge_type>1</edge_type>
<source_obj>288</source_obj>
<sink_obj>75</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_297">
<id>322</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>76</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_298">
<id>323</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>76</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_299">
<id>324</id>
<edge_type>1</edge_type>
<source_obj>76</source_obj>
<sink_obj>77</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_300">
<id>325</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>77</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_301">
<id>326</id>
<edge_type>1</edge_type>
<source_obj>77</source_obj>
<sink_obj>78</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_302">
<id>327</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>78</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_303">
<id>328</id>
<edge_type>1</edge_type>
<source_obj>68</source_obj>
<sink_obj>78</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_304">
<id>329</id>
<edge_type>1</edge_type>
<source_obj>76</source_obj>
<sink_obj>79</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_305">
<id>330</id>
<edge_type>1</edge_type>
<source_obj>142</source_obj>
<sink_obj>79</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_306">
<id>331</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>80</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_307">
<id>332</id>
<edge_type>1</edge_type>
<source_obj>79</source_obj>
<sink_obj>80</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_308">
<id>333</id>
<edge_type>1</edge_type>
<source_obj>80</source_obj>
<sink_obj>81</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_309">
<id>334</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>81</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_310">
<id>335</id>
<edge_type>1</edge_type>
<source_obj>81</source_obj>
<sink_obj>82</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_311">
<id>336</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>82</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_312">
<id>337</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>82</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_313">
<id>338</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>83</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_314">
<id>340</id>
<edge_type>1</edge_type>
<source_obj>339</source_obj>
<sink_obj>83</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_315">
<id>341</id>
<edge_type>1</edge_type>
<source_obj>82</source_obj>
<sink_obj>83</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_316">
<id>342</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>84</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_317">
<id>343</id>
<edge_type>1</edge_type>
<source_obj>84</source_obj>
<sink_obj>85</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_318">
<id>345</id>
<edge_type>1</edge_type>
<source_obj>344</source_obj>
<sink_obj>85</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_319">
<id>348</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>86</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_320">
<id>350</id>
<edge_type>1</edge_type>
<source_obj>349</source_obj>
<sink_obj>86</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_321">
<id>352</id>
<edge_type>1</edge_type>
<source_obj>351</source_obj>
<sink_obj>86</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_322">
<id>354</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>87</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_323">
<id>356</id>
<edge_type>1</edge_type>
<source_obj>355</source_obj>
<sink_obj>87</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_324">
<id>358</id>
<edge_type>1</edge_type>
<source_obj>357</source_obj>
<sink_obj>87</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_325">
<id>361</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>88</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_326">
<id>362</id>
<edge_type>1</edge_type>
<source_obj>273</source_obj>
<sink_obj>88</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_327">
<id>364</id>
<edge_type>1</edge_type>
<source_obj>363</source_obj>
<sink_obj>88</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_328">
<id>365</id>
<edge_type>1</edge_type>
<source_obj>88</source_obj>
<sink_obj>89</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_329">
<id>366</id>
<edge_type>1</edge_type>
<source_obj>89</source_obj>
<sink_obj>90</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_330">
<id>368</id>
<edge_type>1</edge_type>
<source_obj>367</source_obj>
<sink_obj>90</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_331">
<id>369</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>91</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_332">
<id>372</id>
<edge_type>1</edge_type>
<source_obj>90</source_obj>
<sink_obj>92</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_333">
<id>374</id>
<edge_type>1</edge_type>
<source_obj>373</source_obj>
<sink_obj>92</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_334">
<id>375</id>
<edge_type>1</edge_type>
<source_obj>363</source_obj>
<sink_obj>92</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_335">
<id>376</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>93</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_336">
<id>378</id>
<edge_type>1</edge_type>
<source_obj>377</source_obj>
<sink_obj>94</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_337">
<id>379</id>
<edge_type>1</edge_type>
<source_obj>93</source_obj>
<sink_obj>94</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_338">
<id>380</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>95</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_339">
<id>382</id>
<edge_type>1</edge_type>
<source_obj>381</source_obj>
<sink_obj>95</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_340">
<id>383</id>
<edge_type>1</edge_type>
<source_obj>91</source_obj>
<sink_obj>95</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_341">
<id>384</id>
<edge_type>1</edge_type>
<source_obj>95</source_obj>
<sink_obj>96</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_342">
<id>385</id>
<edge_type>1</edge_type>
<source_obj>96</source_obj>
<sink_obj>97</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_343">
<id>386</id>
<edge_type>1</edge_type>
<source_obj>94</source_obj>
<sink_obj>98</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_344">
<id>387</id>
<edge_type>1</edge_type>
<source_obj>98</source_obj>
<sink_obj>99</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_345">
<id>388</id>
<edge_type>1</edge_type>
<source_obj>97</source_obj>
<sink_obj>99</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_346">
<id>389</id>
<edge_type>1</edge_type>
<source_obj>99</source_obj>
<sink_obj>100</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_347">
<id>390</id>
<edge_type>1</edge_type>
<source_obj>86</source_obj>
<sink_obj>101</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_348">
<id>391</id>
<edge_type>1</edge_type>
<source_obj>100</source_obj>
<sink_obj>102</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_349">
<id>392</id>
<edge_type>1</edge_type>
<source_obj>101</source_obj>
<sink_obj>102</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_350">
<id>395</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>103</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_351">
<id>397</id>
<edge_type>1</edge_type>
<source_obj>396</source_obj>
<sink_obj>103</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_352">
<id>399</id>
<edge_type>1</edge_type>
<source_obj>398</source_obj>
<sink_obj>103</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_353">
<id>400</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>104</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_354">
<id>401</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>105</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_355">
<id>402</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>106</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_356">
<id>403</id>
<edge_type>1</edge_type>
<source_obj>104</source_obj>
<sink_obj>106</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_357">
<id>404</id>
<edge_type>1</edge_type>
<source_obj>103</source_obj>
<sink_obj>107</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_358">
<id>405</id>
<edge_type>1</edge_type>
<source_obj>107</source_obj>
<sink_obj>108</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_359">
<id>407</id>
<edge_type>1</edge_type>
<source_obj>406</source_obj>
<sink_obj>108</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_360">
<id>408</id>
<edge_type>1</edge_type>
<source_obj>106</source_obj>
<sink_obj>109</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_361">
<id>409</id>
<edge_type>1</edge_type>
<source_obj>108</source_obj>
<sink_obj>110</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_362">
<id>410</id>
<edge_type>1</edge_type>
<source_obj>110</source_obj>
<sink_obj>111</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_363">
<id>411</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>111</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_364">
<id>414</id>
<edge_type>1</edge_type>
<source_obj>105</source_obj>
<sink_obj>112</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_365">
<id>416</id>
<edge_type>1</edge_type>
<source_obj>415</source_obj>
<sink_obj>112</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_366">
<id>417</id>
<edge_type>1</edge_type>
<source_obj>112</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_367">
<id>418</id>
<edge_type>1</edge_type>
<source_obj>111</source_obj>
<sink_obj>113</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_368">
<id>421</id>
<edge_type>1</edge_type>
<source_obj>113</source_obj>
<sink_obj>114</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_369">
<id>423</id>
<edge_type>1</edge_type>
<source_obj>422</source_obj>
<sink_obj>114</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_370">
<id>425</id>
<edge_type>1</edge_type>
<source_obj>424</source_obj>
<sink_obj>114</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_371">
<id>428</id>
<edge_type>1</edge_type>
<source_obj>114</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_372">
<id>429</id>
<edge_type>1</edge_type>
<source_obj>239</source_obj>
<sink_obj>115</sink_obj>
<is_back_edge>0</is_back_edge>
</item>
<item class_id_reference="20" object_id="_373">
<id>430</id>
<edge_type>1</edge_type>
<source_obj>115</source_obj>
<sink_obj>116</sink_obj>
<is_back_edge>0</is_back_edge>
</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="_374">
<mId>1</mId>
<mTag>sigmoid_top</mTag>
<mNormTag>sigmoid_top</mNormTag>
<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>117</item>
</basic_blocks>
<mII>1</mII>
<mDepth>11</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>10</mMinLatency>
<mMaxLatency>10</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="26" tracking_level="0" version="0">
<count>109</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>8</first>
<second class_id="28" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>15</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>23</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>24</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>55</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>56</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>58</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>59</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>61</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>62</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>64</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>68</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>70</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>71</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>76</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>77</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>78</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>79</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>80</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>81</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>82</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>83</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>84</first>
<second>
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>85</first>
<second>
<first>0</first>
<second>3</second>
</second>
</item>
<item>
<first>86</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>87</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>88</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>89</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>90</first>
<second>
<first>3</first>
<second>3</second>
</second>
</item>
<item>
<first>91</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
<item>
<first>92</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>93</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>94</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>95</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
<item>
<first>96</first>
<second>
<first>5</first>
<second>1</second>
</second>
</item>
<item>
<first>97</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>98</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>99</first>
<second>
<first>6</first>
<second>3</second>
</second>
</item>
<item>
<first>100</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>101</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>102</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>103</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>104</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>105</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>106</first>
<second>
<first>6</first>
<second>3</second>
</second>
</item>
<item>
<first>107</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>108</first>
<second>
<first>9</first>
<second>0</second>
</second>
</item>
<item>
<first>109</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>110</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>111</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>112</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>113</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>114</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>115</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
<item>
<first>116</first>
<second>
<first>10</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="29" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="0" version="0">
<first>117</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>10</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="1" version="0" object_id="_375">
<region_name>sigmoid_top</region_name>
<basic_blocks>
<count>1</count>
<item_version>0</item_version>
<item>117</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>11</pipe_depth>
<mDBIIViolationVec class_id="34" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</mDBIIViolationVec>
</item>
</regions>
<dp_fu_nodes class_id="35" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="36" 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="37" 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="38" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core>
<count>0</count>
<item_version>0</item_version>
</port2core>
<node2core>
<count>0</count>
<item_version>0</item_version>
</node2core>
</syndb>
</boost_serialization>
| 30.140711 | 106 | 0.620618 |
0b4c1365260af8fa94ee7c2020f26c84c9b83ab0 | 6,180 | adb | Ada | Ada95/src/terminal_interface-curses-forms-field_types-user.adb | mvaisakh/android_external_libncurses | d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f | [
"DOC",
"Unlicense"
] | 35 | 2015-03-07T13:26:22.000Z | 2021-11-06T16:18:59.000Z | Ada95/src/terminal_interface-curses-forms-field_types-user.adb | mvaisakh/android_external_libncurses | d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f | [
"DOC",
"Unlicense"
] | 3 | 2017-04-07T21:02:48.000Z | 2017-04-08T17:59:35.000Z | Ada95/src/terminal_interface-curses-forms-field_types-user.adb | mvaisakh/android_external_libncurses | d44c8a16d7f1ed276d0de0b3f6f1a5596c5f556f | [
"DOC",
"Unlicense"
] | 19 | 2015-06-16T06:13:44.000Z | 2021-07-24T02:37:45.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- Terminal_Interface.Curses.Forms.Field_Types.User --
-- --
-- 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.15 $
-- $Date: 2008/07/26 18:49:28 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
with Terminal_Interface.Curses.Aux; use Terminal_Interface.Curses.Aux;
package body Terminal_Interface.Curses.Forms.Field_Types.User is
procedure Set_Field_Type (Fld : in Field;
Typ : in User_Defined_Field_Type)
is
function Allocate_Arg (T : User_Defined_Field_Type'Class)
return Argument_Access;
function Set_Fld_Type (F : Field := Fld;
Cft : C_Field_Type := C_Generic_Type;
Arg1 : Argument_Access)
return C_Int;
pragma Import (C, Set_Fld_Type, "set_field_type");
Res : Eti_Error;
function Allocate_Arg (T : User_Defined_Field_Type'Class)
return Argument_Access
is
Ptr : constant Field_Type_Access
:= new User_Defined_Field_Type'Class'(T);
begin
return new Argument'(Usr => System.Null_Address,
Typ => Ptr,
Cft => Null_Field_Type);
end Allocate_Arg;
begin
Res := Set_Fld_Type (Arg1 => Allocate_Arg (Typ));
if Res /= E_Ok then
Eti_Exception (Res);
end if;
end Set_Field_Type;
pragma Warnings (Off);
function To_Argument_Access is new Ada.Unchecked_Conversion
(System.Address, Argument_Access);
pragma Warnings (On);
function Generic_Field_Check (Fld : Field;
Usr : System.Address) return C_Int
is
Result : Boolean;
Udf : constant User_Defined_Field_Type_Access :=
User_Defined_Field_Type_Access (To_Argument_Access (Usr).Typ);
begin
Result := Field_Check (Fld, Udf.all);
return C_Int (Boolean'Pos (Result));
end Generic_Field_Check;
function Generic_Char_Check (Ch : C_Int;
Usr : System.Address) return C_Int
is
Result : Boolean;
Udf : constant User_Defined_Field_Type_Access :=
User_Defined_Field_Type_Access (To_Argument_Access (Usr).Typ);
begin
Result := Character_Check (Character'Val (Ch), Udf.all);
return C_Int (Boolean'Pos (Result));
end Generic_Char_Check;
-- -----------------------------------------------------------------------
--
function C_Generic_Type return C_Field_Type
is
Res : Eti_Error;
T : C_Field_Type;
begin
if M_Generic_Type = Null_Field_Type then
T := New_Fieldtype (Generic_Field_Check'Access,
Generic_Char_Check'Access);
if T = Null_Field_Type then
raise Form_Exception;
else
Res := Set_Fieldtype_Arg (T,
Make_Arg'Access,
Copy_Arg'Access,
Free_Arg'Access);
if Res /= E_Ok then
Eti_Exception (Res);
end if;
end if;
M_Generic_Type := T;
end if;
pragma Assert (M_Generic_Type /= Null_Field_Type);
return M_Generic_Type;
end C_Generic_Type;
end Terminal_Interface.Curses.Forms.Field_Types.User;
| 46.119403 | 78 | 0.492233 |
cb7cc50dea43437f20509ff500fba14960af2465 | 6,318 | ads | Ada | tools-src/gnu/gcc/gcc/ada/inline.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/gcc/gcc/ada/inline.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/gcc/gcc/ada/inline.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- I N L I N E --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2001 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. --
-- --
------------------------------------------------------------------------------
-- This module handles two kinds of inlining activity:
-- a) Instantiation of generic bodies. This is done unconditionally, after
-- analysis and expansion of the main unit.
-- b) Compilation of unit bodies that contain the bodies of inlined sub-
-- programs. This is done only if inlining is enabled (-gnatn). Full inlining
-- requires that a) an b) be mutually recursive, because each step may
-- generate another generic expansion and further inlined calls. For now each
-- of them uses a workpile algorithm, but they are called independently from
-- Frontend, and thus are not mutually recursive.
with Alloc;
with Table;
with Types; use Types;
package Inline is
--------------------------------
-- Generic Body Instantiation --
--------------------------------
-- The bodies of generic instantiations are built after semantic analysis
-- of the main unit is complete. Generic instantiations are saved in a
-- global data structure, and the bodies constructed by means of a separate
-- analysis and expansion step.
-- See full description in body of Sem_Ch12 for details
type Pending_Body_Info is record
Inst_Node : Node_Id;
-- Node for instantiation that requires the body
Act_Decl : Node_Id;
-- Declaration for package or subprogram spec for instantiation
Expander_Status : Boolean;
-- If the body is instantiated only for semantic checking, expansion
-- must be inhibited.
Current_Sem_Unit : Unit_Number_Type;
-- The semantic unit within which the instantiation is found. Must
-- be restored when compiling the body, to insure that internal enti-
-- ties use the same counter and are unique over spec and body.
end record;
package Pending_Instantiations is new Table.Table (
Table_Component_Type => Pending_Body_Info,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => Alloc.Pending_Instantiations_Initial,
Table_Increment => Alloc.Pending_Instantiations_Increment,
Table_Name => "Pending_Instantiations");
-- The following table records subprograms and packages for which
-- generation of subprogram descriptors must be delayed.
package Pending_Descriptor is new Table.Table (
Table_Component_Type => Entity_Id,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => Alloc.Pending_Instantiations_Initial,
Table_Increment => Alloc.Pending_Instantiations_Increment,
Table_Name => "Pending_Descriptor");
Analyzing_Inlined_Bodies : Boolean;
-- This flag is set False by the call to Initialize, and then is set
-- True by the call to Analyze_Inlined_Bodies. It is used to suppress
-- generation of subprogram descriptors for inlined bodies.
-----------------
-- Subprograms --
-----------------
procedure Initialize;
-- Initialize internal tables
procedure Lock;
-- Lock internal tables before calling backend
procedure Instantiate_Bodies;
-- This procedure is called after semantic analysis is complete, to
-- instantiate the bodies of generic instantiations that appear in the
-- compilation unit.
procedure Add_Inlined_Body (E : Entity_Id);
-- E is an inlined subprogram appearing in a call, either explicitly, or
-- a discriminant check for which gigi builds a call. Add E's enclosing
-- unit to Inlined_Bodies so that body of E can be subsequently retrieved
-- and analyzed.
procedure Analyze_Inlined_Bodies;
-- At end of compilation, analyze the bodies of all units that contain
-- inlined subprograms that are actually called.
procedure Check_Body_For_Inlining (N : Node_Id; P : Entity_Id);
-- If front-end inlining is enabled and a package declaration contains
-- inlined subprograms, load and compile the package body to collect the
-- bodies of these subprograms, so they are available to inline calls.
-- N is the compilation unit for the package.
procedure Remove_Dead_Instance (N : Node_Id);
-- If an instantiation appears in unreachable code, delete the pending
-- body instance.
end Inline;
| 46.8 | 79 | 0.581671 |
0bd4b0061ed2492450da8bcefb500055b9164968 | 43,499 | adb | Ada | test/main_si_units_test.adb | HeisenbugLtd/si_units | 39de6478ba6d63c24dd34dd7205a6ce2cb971703 | [
"WTFPL"
] | 6 | 2020-05-17T18:50:22.000Z | 2021-05-12T21:27:25.000Z | test/main_si_units_test.adb | HeisenbugLtd/si_units | 39de6478ba6d63c24dd34dd7205a6ce2cb971703 | [
"WTFPL"
] | 6 | 2020-02-19T16:34:43.000Z | 2020-10-14T10:25:59.000Z | test/main_si_units_test.adb | HeisenbugLtd/si_units | 39de6478ba6d63c24dd34dd7205a6ce2cb971703 | [
"WTFPL"
] | 2 | 2020-06-12T12:30:29.000Z | 2020-07-10T16:03:32.000Z | --------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
with Ada.Command_Line;
with Ada.Text_IO;
with SI_Units.Binary.Scaling;
pragma Unreferenced (SI_Units.Binary.Scaling);
with SI_Units.Metric.Scaling;
with SI_Units.Names;
--------------------------------------------------------------------------------
-- SI_Units - Test run.
--------------------------------------------------------------------------------
procedure Main_SI_Units_Test is
type Scalar is delta 1.0 / 2 ** 32 range
-2.0 ** 31 .. 2.0 ** 31 - 1.0 / 2 ** 32;
type Modular is mod 2 ** 64;
function Modular_BI is new SI_Units.Binary.Image (Item => Modular,
Default_Aft => 3,
Unit => "Mod");
function Modular_MI is new SI_Units.Metric.Mod_Image (Item => Modular,
Default_Aft => 3,
Unit => "Mod");
function Fixed_MI is
new SI_Units.Metric.Fixed_Image (Item => Scalar,
Default_Aft => 6,
Unit => SI_Units.Names.Ampere);
function Float_MI is
new SI_Units.Metric.Float_Image (Item => Long_Float,
Default_Aft => 3,
Unit => SI_Units.Names.Volt);
function Scale_Float is
new SI_Units.Metric.Scaling.Float_Scale (Item => Long_Float);
package Test_Cases is
procedure Add (Passed : in Boolean;
Message : in String);
function Num_Total return Natural;
function Num_Passed return Natural;
end Test_Cases;
package body Test_Cases is
Num_Test_Cases : Natural := 0;
Num_Succeeded : Natural := 0;
procedure Add (Passed : in Boolean;
Message : in String) is
begin
Num_Test_Cases := Num_Test_Cases + 1;
if Passed then
Num_Succeeded := Num_Succeeded + 1;
else
Ada.Text_IO.Put_Line
(Item =>
"Test_Case" & Num_Test_Cases'Image & " failed: " & Message);
end if;
end Add;
function Num_Passed return Natural is (Num_Succeeded);
function Num_Total return Natural is (Num_Test_Cases);
end Test_Cases;
Micro_Sign : constant String :=
Character'Val (16#C2#) & Character'Val (16#B5#);
No_Break_Space : constant String :=
Character'Val (16#C2#) & Character'Val (16#A0#);
type String_Access is not null access String;
begin
Test_Cases.Add
(Passed => Modular_BI (-1) = "16.000" & No_Break_Space & "EiMod",
Message => "Modular_BI (-1)");
Test_Cases.Add
(Passed => Modular_MI (-1) = "18.447" & No_Break_Space & "EMod",
Message => "Modular_MI (-1)");
Test_Cases.Add
(Passed => Modular_BI (1023) = "1023.000" & No_Break_Space & "Mod",
Message => "Modular_BI (1023)");
Test_Cases.Add
(Passed => Modular_MI (1023) = "1.023" & No_Break_Space & "kMod",
Message => "Modular_MI (1023)");
Test_Cases.Add
(Passed => Modular_BI (1024) = "1.000" & No_Break_Space & "KiMod",
Message => "Modular_BI (1024)");
Test_Cases.Add
(Passed => Modular_MI (1024) = "1.024" & No_Break_Space & "kMod",
Message => "Modular_MI (1024)");
Test_Cases.Add
(Passed => Modular_BI (1025) = "1.001" & No_Break_Space & "KiMod",
Message => "Modular_BI (1025)");
Test_Cases.Add
(Passed => Modular_MI (1025) = "1.025" & No_Break_Space & "kMod",
Message => "Modular_MI (1025)");
Test_Cases.Add
(Passed =>
Fixed_MI (0.0) = "0.000000" & No_Break_Space & SI_Units.Names.Ampere,
Message => "Fixed_MI (0.0)");
Test_Cases.Add
(Passed =>
Fixed_MI (Scalar'Small) = "232.830644" & No_Break_Space & "p" &
SI_Units.Names.Ampere,
Message => "Fixed_MI (Scalar'Small)");
Test_Cases.Add
(Passed =>
Fixed_MI (Scalar'First) = "-2.147484" & No_Break_Space & "G" &
SI_Units.Names.Ampere,
Message => "Fixed_MI (Scalar'First)");
Test_Cases.Add
(Passed =>
Fixed_MI (Scalar'Last) = "2.147484" & No_Break_Space & "G" &
SI_Units.Names.Ampere,
Message => "Fixed_MI (Scalar'Last)");
declare
Normal_Suffix : constant String := No_Break_Space & SI_Units.Names.Ampere;
Kilo_Suffix : constant String :=
No_Break_Space & "k" & SI_Units.Names.Ampere;
type Loop_Iteration is range 1 .. 32;
type Expected_List is array (Loop_Iteration) of String_Access;
Median : constant Scalar := 1000.0;
Operand : Scalar := 1.0;
begin
declare
-- Known memory leak due to string creation. As this is a test program
-- only run once we don't care.
Expected_Results : constant Expected_List :=
(32 => new String'("999.000000" & Normal_Suffix),
31 => new String'("999.500000" & Normal_Suffix),
30 => new String'("999.750000" & Normal_Suffix),
29 => new String'("999.875000" & Normal_Suffix),
28 => new String'("999.937500" & Normal_Suffix),
27 => new String'("999.968750" & Normal_Suffix),
26 => new String'("999.984375" & Normal_Suffix),
25 => new String'("999.992188" & Normal_Suffix),
24 => new String'("999.996094" & Normal_Suffix),
23 => new String'("999.998047" & Normal_Suffix),
22 => new String'("999.999023" & Normal_Suffix),
21 => new String'("999.999512" & Normal_Suffix),
20 => new String'("999.999756" & Normal_Suffix),
19 => new String'("999.999878" & Normal_Suffix),
18 => new String'("999.999939" & Normal_Suffix),
17 => new String'("999.999969" & Normal_Suffix),
16 => new String'("999.999985" & Normal_Suffix),
15 => new String'("999.999992" & Normal_Suffix),
14 => new String'("999.999996" & Normal_Suffix),
13 => new String'("999.999998" & Normal_Suffix),
12 => new String'("999.999999" & Normal_Suffix),
1 .. 11 => new String'("1.000000" & Kilo_Suffix));
begin
for Exponent in reverse Loop_Iteration loop
Test_Cases.Add
(Passed =>
Fixed_MI (Median - Operand) = Expected_Results (Exponent).all,
Message => "Fixed_MI (Median - Operand)/" & Exponent'Image);
Operand := Operand / 2.0;
end loop;
end;
Test_Cases.Add
(Passed =>
Fixed_MI (Median) = "1.000000" & No_Break_Space & "k" &
SI_Units.Names.Ampere,
Message => "Fixed_MI (Median)");
declare
-- Known memory leak due to string creation. As this is a test program
-- only run once we don't care.
Expected_Results : constant Expected_List :=
(1 .. 22 => new String'("1.000000" & Kilo_Suffix),
23 => new String'("1.000001" & Kilo_Suffix),
24 => new String'("1.000002" & Kilo_Suffix),
25 => new String'("1.000004" & Kilo_Suffix),
26 => new String'("1.000008" & Kilo_Suffix),
27 => new String'("1.000016" & Kilo_Suffix),
28 => new String'("1.000031" & Kilo_Suffix),
29 => new String'("1.000062" & Kilo_Suffix),
30 => new String'("1.000125" & Kilo_Suffix),
31 => new String'("1.000250" & Kilo_Suffix),
32 => new String'("1.000500" & Kilo_Suffix));
begin
for Exponent in Loop_Iteration loop
Test_Cases.Add
(Passed =>
Fixed_MI (Median + Operand) = Expected_Results (Exponent).all,
Message => "Fixed_MI (Median + Operand)/" & Exponent'Image);
Operand := Operand * 2.0;
end loop;
end;
end;
declare
subtype Loop_Iteration is Natural range 1 .. 18;
type Less_Equal_Greater is (LT, EQ, GT);
type Expected_List is array (Loop_Iteration,
Less_Equal_Greater) of String_Access;
Median : constant Scalar := 1000.0;
LT_Median : constant Scalar := Median - Scalar'Small;
GT_Median : constant Scalar := Median + Scalar'Small;
Normal_Suffix : constant String := No_Break_Space & SI_Units.Names.Ampere;
Kilo_Suffix : constant String :=
No_Break_Space & "k" & SI_Units.Names.Ampere;
Expected_Results : constant Expected_List :=
(01 => (LT => new String'("1.0" & Kilo_Suffix),
EQ => new String'("1.0" & Kilo_Suffix),
GT => new String'("1.0" & Kilo_Suffix)),
02 => (LT => new String'("1.00" & Kilo_Suffix),
EQ => new String'("1.00" & Kilo_Suffix),
GT => new String'("1.00" & Kilo_Suffix)),
03 => (LT => new String'("1.000" & Kilo_Suffix),
EQ => new String'("1.000" & Kilo_Suffix),
GT => new String'("1.000" & Kilo_Suffix)),
04 => (LT => new String'("1.0000" & Kilo_Suffix),
EQ => new String'("1.0000" & Kilo_Suffix),
GT => new String'("1.0000" & Kilo_Suffix)),
05 => (LT => new String'("1.00000" & Kilo_Suffix),
EQ => new String'("1.00000" & Kilo_Suffix),
GT => new String'("1.00000" & Kilo_Suffix)),
06 => (LT => new String'("1.000000" & Kilo_Suffix),
EQ => new String'("1.000000" & Kilo_Suffix),
GT => new String'("1.000000" & Kilo_Suffix)),
07 => (LT => new String'("1.0000000" & Kilo_Suffix),
EQ => new String'("1.0000000" & Kilo_Suffix),
GT => new String'("1.0000000" & Kilo_Suffix)),
08 => (LT => new String'("1.00000000" & Kilo_Suffix),
EQ => new String'("1.00000000" & Kilo_Suffix),
GT => new String'("1.00000000" & Kilo_Suffix)),
09 => (LT => new String'("1.000000000" & Kilo_Suffix),
EQ => new String'("1.000000000" & Kilo_Suffix),
GT => new String'("1.000000000" & Kilo_Suffix)),
10 => (LT => new String'("999.9999999998" & Normal_Suffix),
EQ => new String'("1.0000000000" & Kilo_Suffix),
GT => new String'("1.0000000000" & Kilo_Suffix)),
11 => (LT => new String'("999.99999999977" & Normal_Suffix),
EQ => new String'("1.00000000000" & Kilo_Suffix),
GT => new String'("1.00000000000" & Kilo_Suffix)),
12 => (LT => new String'("999.999999999767" & Normal_Suffix),
EQ => new String'("1.000000000000" & Kilo_Suffix),
GT => new String'("1.000000000000" & Kilo_Suffix)),
13 => (LT => new String'("999.9999999997672" & Normal_Suffix),
EQ => new String'("1.0000000000000" & Kilo_Suffix),
GT => new String'("1.0000000000002" & Kilo_Suffix)),
14 => (LT => new String'("999.99999999976717" & Normal_Suffix),
EQ => new String'("1.00000000000000" & Kilo_Suffix),
GT => new String'("1.00000000000023" & Kilo_Suffix)),
15 => (LT => new String'("999.999999999767169" & Normal_Suffix),
EQ => new String'("1.000000000000000" & Kilo_Suffix),
GT => new String'("1.000000000000233" & Kilo_Suffix)),
16 => (LT => new String'("999.9999999997671690" & Normal_Suffix),
EQ => new String'("1.0000000000000000" & Kilo_Suffix),
GT => new String'("1.0000000000002328" & Kilo_Suffix)),
17 => (LT => new String'("999.99999999976716900" & Normal_Suffix),
EQ => new String'("1.00000000000000000" & Kilo_Suffix),
GT => new String'("1.00000000000023283" & Kilo_Suffix)),
18 => (LT => new String'("999.999999999767169000" & Normal_Suffix),
EQ => new String'("1.000000000000000000" & Kilo_Suffix),
GT => new String'("1.000000000000232830" & Kilo_Suffix)));
begin
for Aft in Loop_Iteration loop
Test_Cases.Add
(Passed => Fixed_MI (Value => LT_Median,
Aft => Aft) = Expected_Results (Aft, LT).all,
Message =>
"Fixed_MI (Value => LT_Median, Aft =>" & Aft'Image & ")");
Test_Cases.Add
(Passed => Fixed_MI (Value => Median,
Aft => Aft) = Expected_Results (Aft, EQ).all,
Message => "Fixed_MI (Value => Median, Aft =>" & Aft'Image & ")");
Test_Cases.Add
(Passed => Fixed_MI (Value => GT_Median,
Aft => Aft) = Expected_Results (Aft, GT).all,
Message =>
"Fixed_MI (Value => GT_Median, Aft =>" & Aft'Image & ")");
end loop;
end;
Test_Cases.Add
(Passed =>
Float_MI (0.0) = "0.000" & No_Break_Space & SI_Units.Names.Volt,
Message => "Float_MI (0.0)");
Test_Cases.Add
(Passed =>
Float_MI (Long_Float'Safe_Small) = "0.000" &
No_Break_Space & SI_Units.Names.Volt,
Message => "Float_MI (Long_Float'Safe_Small)");
Test_Cases.Add
(Passed =>
Float_MI (Long_Float'Safe_First) = "-inf " & No_Break_Space &
SI_Units.Names.Volt,
Message => "Float_MI (Long_Float'Safe_First)");
Test_Cases.Add
(Passed =>
Float_MI (Long_Float'Safe_Last) = "+inf " &
No_Break_Space & SI_Units.Names.Volt,
Message => "Float_MI (Long_Float'Safe_Last)");
Test_Cases.Add
(Passed =>
Float_MI (-9.999_999_49E27) = "-inf " & No_Break_Space &
SI_Units.Names.Volt,
Message => "Float_MI (-9.999_999_49E27)");
Test_Cases.Add
(Passed =>
Float_MI (9.999_999_49E27) = "9999.999" & No_Break_Space & "Y" &
SI_Units.Names.Volt,
Message => "Float_MI (9.999_999_49E27)");
-- "infinity"
Test_Cases.Add
(Passed =>
Float_MI (-1.0E27) = "-inf " & No_Break_Space & SI_Units.Names.Volt,
Message => "Float_MI (-1.0E27)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E27) = "1000.000" & No_Break_Space & "Y" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E27)");
-- Yotta
Test_Cases.Add
(Passed =>
Float_MI (-1.0E24) = "-1.000" & No_Break_Space & "Y" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E24)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E24) = "1.000" & No_Break_Space & "Y" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E24)");
-- Zeta
Test_Cases.Add
(Passed =>
Float_MI (-1.0E21) = "-1.000" & No_Break_Space & "Z" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E21)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E21) = "1.000" & No_Break_Space & "Z" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E21)");
-- Exa
Test_Cases.Add
(Passed =>
Float_MI (-1.0E18) = "-1.000" & No_Break_Space & "E" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E18)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E18) = "1.000" & No_Break_Space & "E" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E18)");
-- Peta
Test_Cases.Add
(Passed =>
Float_MI (-1.0E15) = "-1.000" & No_Break_Space & "P" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E15)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E15) = "1.000" & No_Break_Space & "P" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E15)");
-- Tera
Test_Cases.Add
(Passed =>
Float_MI (-1.0E12) = "-1.000" & No_Break_Space & "T" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E12)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E12) = "1.000" & No_Break_Space & "T" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E12)");
-- Giga
Test_Cases.Add
(Passed =>
Float_MI (-1.0E9) = "-1.000" & No_Break_Space & "G" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E9)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E9) = "1.000" & No_Break_Space & "G" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E9)");
-- Mega
Test_Cases.Add
(Passed =>
Float_MI (-1.0E6) = "-1.000" & No_Break_Space & "M" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E6)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E6) = "1.000" & No_Break_Space & "M" & SI_Units.Names.Volt,
Message => "Float_MI (1.0E6)");
-- kilo
Test_Cases.Add
(Passed =>
Float_MI (-1.0E3) = "-1.000" & No_Break_Space & "k" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E3)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E3) = "1.000" & No_Break_Space & "k" & SI_Units.Names.Volt,
Message => "Float_MI (1.0E3)");
-- None
Test_Cases.Add
(Passed =>
Float_MI (-1.0E0) = "-1.000" & No_Break_Space & SI_Units.Names.Volt,
Message => "Float_MI (-1.0E0)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E0) = "1.000" & No_Break_Space & SI_Units.Names.Volt,
Message => "Float_MI (1.0E0)");
-- milli
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-3) = "-1.000" & No_Break_Space & "m" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-3)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-3) = "1.000" & No_Break_Space & "m" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-3)");
-- micro
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-6) = "-1.000" & No_Break_Space & Micro_Sign &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-6)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-6) = "1.000" & No_Break_Space & Micro_Sign &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-6)");
-- nano
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-9) = "-1.000" & No_Break_Space & "n" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-9)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-9) = "1.000" & No_Break_Space & "n" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-9)");
-- pico
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-12) = "-1.000" & No_Break_Space & "p" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-12)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-12) = "1.000" & No_Break_Space & "p" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-12)");
-- femto
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-15) = "-1.000" & No_Break_Space & "f" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-15)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-15) = "1.000" & No_Break_Space & "f" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-15)");
-- atto
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-18) = "-1.000" & No_Break_Space & "a" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-18)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-18) = "1.000" & No_Break_Space & "a" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-18)");
-- zepto
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-21) = "-1.000" & No_Break_Space & "z" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-21)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-21) = "1.000" & No_Break_Space & "z" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-21)");
-- yocto
Test_Cases.Add
(Passed =>
Float_MI (-1.0E-24) = "-1.000" & No_Break_Space & "y" &
SI_Units.Names.Volt,
Message => "Float_MI (-1.0E-24)");
Test_Cases.Add
(Passed =>
Float_MI (1.0E-24) = "1.000" & No_Break_Space & "y" &
SI_Units.Names.Volt,
Message => "Float_MI (1.0E-24)");
-- almost zero, still with (smallest) prefix
Test_Cases.Add
(Passed =>
Float_MI (-5.0E-28) = "-0.001" & No_Break_Space & "y" &
SI_Units.Names.Volt,
Message => "Float_MI (-5.0E-28)");
Test_Cases.Add
(Passed =>
Float_MI (5.0E-28) = "0.001" & No_Break_Space & "y" &
SI_Units.Names.Volt,
Message => "Float_MI (5.0E-28)");
-- virtually zero, no prefix
Test_Cases.Add
(Passed =>
Float_MI (-4.999_999_999_999_999E-28) = "-0.000" & No_Break_Space &
SI_Units.Names.Volt,
Message => "Float_MI (-4.999_999_999_999_999E-28)");
Test_Cases.Add
(Passed =>
Float_MI (4.999_999_999_999_999E-28) = "0.000" & No_Break_Space &
SI_Units.Names.Volt,
Message => "Float_MI (4.999_999_999_999_999E-28)");
-- Scaling tests
for From_Prefix in SI_Units.Metric.Scaling.Prefixes loop
for To_Prefix in SI_Units.Metric.Scaling.Prefixes loop
Build_Lookup : -- Calculate expected value by hand.
declare
type Prefix_Matrix is
array (SI_Units.Metric.Scaling.Prefixes,
SI_Units.Metric.Scaling.Prefixes) of Long_Float;
use all type SI_Units.Metric.Scaling.Prefixes;
Scale_Lookup : constant Prefix_Matrix :=
(yocto => (yocto => 1.0E0,
zepto => 1.0E-3,
atto => 1.0E-6,
femto => 1.0E-9,
pico => 1.0E-12,
nano => 1.0E-15,
micro => 1.0E-18,
milli => 1.0E-21,
centi => 1.0E-22,
deci => 1.0E-23,
None => 1.0E-24,
Deka => 1.0E-25,
Hecto => 1.0E-26,
kilo => 1.0E-27,
Mega => 1.0E-30,
Giga => 1.0E-33,
Tera => 1.0E-36,
Peta => 1.0E-39,
Exa => 1.0E-42,
Zetta => 1.0E-45,
Yotta => 1.0E-48),
zepto => (yocto => 1.0E3,
zepto => 1.0E0,
atto => 1.0E-3,
femto => 1.0E-6,
pico => 1.0E-9,
nano => 1.0E-12,
micro => 1.0E-15,
milli => 1.0E-18,
centi => 1.0E-19,
deci => 1.0E-20,
None => 1.0E-21,
Deka => 1.0E-22,
Hecto => 1.0E-23,
kilo => 1.0E-24,
Mega => 1.0E-27,
Giga => 1.0E-30,
Tera => 1.0E-33,
Peta => 1.0E-36,
Exa => 1.0E-39,
Zetta => 1.0E-42,
Yotta => 1.0E-45),
atto => (yocto => 1.0E6,
zepto => 1.0E3,
atto => 1.0E0,
femto => 1.0E-3,
pico => 1.0E-6,
nano => 1.0E-9,
micro => 1.0E-12,
milli => 1.0E-15,
centi => 1.0E-16,
deci => 1.0E-17,
None => 1.0E-18,
Deka => 1.0E-19,
Hecto => 1.0E-20,
kilo => 1.0E-21,
Mega => 1.0E-24,
Giga => 1.0E-27,
Tera => 1.0E-30,
Peta => 1.0E-33,
Exa => 1.0E-36,
Zetta => 1.0E-39,
Yotta => 1.0E-42),
femto => (yocto => 1.0E9,
zepto => 1.0E6,
atto => 1.0E3,
femto => 1.0E0,
pico => 1.0E-3,
nano => 1.0E-6,
micro => 1.0E-9,
milli => 1.0E-12,
centi => 1.0E-13,
deci => 1.0E-14,
None => 1.0E-15,
Deka => 1.0E-16,
Hecto => 1.0E-17,
kilo => 1.0E-18,
Mega => 1.0E-21,
Giga => 1.0E-24,
Tera => 1.0E-27,
Peta => 1.0E-30,
Exa => 1.0E-33,
Zetta => 1.0E-36,
Yotta => 1.0E-39),
pico => (yocto => 1.0E12,
zepto => 1.0E9,
atto => 1.0E6,
femto => 1.0E3,
pico => 1.0E0,
nano => 1.0E-3,
micro => 1.0E-6,
milli => 1.0E-9,
centi => 1.0E-10,
deci => 1.0E-11,
None => 1.0E-12,
Deka => 1.0E-13,
Hecto => 1.0E-14,
kilo => 1.0E-15,
Mega => 1.0E-18,
Giga => 1.0E-21,
Tera => 1.0E-24,
Peta => 1.0E-27,
Exa => 1.0E-30,
Zetta => 1.0E-33,
Yotta => 1.0E-36),
nano => (yocto => 1.0E15,
zepto => 1.0E12,
atto => 1.0E9,
femto => 1.0E6,
pico => 1.0E3,
nano => 1.0E0,
micro => 1.0E-3,
milli => 1.0E-6,
centi => 1.0E-7,
deci => 1.0E-8,
None => 1.0E-9,
Deka => 1.0E-10,
Hecto => 1.0E-11,
kilo => 1.0E-12,
Mega => 1.0E-15,
Giga => 1.0E-18,
Tera => 1.0E-21,
Peta => 1.0E-24,
Exa => 1.0E-27,
Zetta => 1.0E-30,
Yotta => 1.0E-33),
micro => (yocto => 1.0E18,
zepto => 1.0E15,
atto => 1.0E12,
femto => 1.0E9,
pico => 1.0E6,
nano => 1.0E3,
micro => 1.0E0,
milli => 1.0E-3,
centi => 1.0E-4,
deci => 1.0E-5,
None => 1.0E-6,
Deka => 1.0E-7,
Hecto => 1.0E-8,
kilo => 1.0E-9,
Mega => 1.0E-12,
Giga => 1.0E-15,
Tera => 1.0E-18,
Peta => 1.0E-21,
Exa => 1.0E-24,
Zetta => 1.0E-27,
Yotta => 1.0E-30),
milli => (yocto => 1.0E21,
zepto => 1.0E18,
atto => 1.0E15,
femto => 1.0E12,
pico => 1.0E9,
nano => 1.0E6,
micro => 1.0E3,
milli => 1.0E0,
centi => 1.0E-1,
deci => 1.0E-2,
None => 1.0E-3,
Deka => 1.0E-4,
Hecto => 1.0E-5,
kilo => 1.0E-6,
Mega => 1.0E-9,
Giga => 1.0E-12,
Tera => 1.0E-15,
Peta => 1.0E-18,
Exa => 1.0E-21,
Zetta => 1.0E-24,
Yotta => 1.0E-27),
centi => (yocto => 1.0E22,
zepto => 1.0E19,
atto => 1.0E16,
femto => 1.0E13,
pico => 1.0E10,
nano => 1.0E7,
micro => 1.0E4,
milli => 1.0E1,
centi => 1.0E0,
deci => 1.0E-1,
None => 1.0E-2,
Deka => 1.0E-3,
Hecto => 1.0E-4,
kilo => 1.0E-5,
Mega => 1.0E-8,
Giga => 1.0E-11,
Tera => 1.0E-14,
Peta => 1.0E-17,
Exa => 1.0E-20,
Zetta => 1.0E-23,
Yotta => 1.0E-26),
deci => (yocto => 1.0E23,
zepto => 1.0E20,
atto => 1.0E17,
femto => 1.0E14,
pico => 1.0E11,
nano => 1.0E8,
micro => 1.0E5,
milli => 1.0E2,
centi => 1.0E1,
deci => 1.0E0,
None => 1.0E-1,
Deka => 1.0E-2,
Hecto => 1.0E-3,
kilo => 1.0E-4,
Mega => 1.0E-7,
Giga => 1.0E-10,
Tera => 1.0E-13,
Peta => 1.0E-16,
Exa => 1.0E-19,
Zetta => 1.0E-22,
Yotta => 1.0E-25),
None => (yocto => 1.0E24,
zepto => 1.0E21,
atto => 1.0E18,
femto => 1.0E15,
pico => 1.0E12,
nano => 1.0E9,
micro => 1.0E6,
milli => 1.0E3,
centi => 1.0E2,
deci => 1.0E1,
None => 1.0E0,
Deka => 1.0E-1,
Hecto => 1.0E-2,
kilo => 1.0E-3,
Mega => 1.0E-6,
Giga => 1.0E-9,
Tera => 1.0E-12,
Peta => 1.0E-15,
Exa => 1.0E-18,
Zetta => 1.0E-21,
Yotta => 1.0E-24),
Deka => (yocto => 1.0E25,
zepto => 1.0E22,
atto => 1.0E19,
femto => 1.0E16,
pico => 1.0E13,
nano => 1.0E10,
micro => 1.0E7,
milli => 1.0E4,
centi => 1.0E3,
deci => 1.0E2,
None => 1.0E1,
Deka => 1.0E0,
Hecto => 1.0E-1,
kilo => 1.0E-2,
Mega => 1.0E-5,
Giga => 1.0E-8,
Tera => 1.0E-11,
Peta => 1.0E-14,
Exa => 1.0E-17,
Zetta => 1.0E-20,
Yotta => 1.0E-23),
Hecto => (yocto => 1.0E26,
zepto => 1.0E23,
atto => 1.0E20,
femto => 1.0E17,
pico => 1.0E14,
nano => 1.0E11,
micro => 1.0E8,
milli => 1.0E5,
centi => 1.0E4,
deci => 1.0E3,
None => 1.0E2,
Deka => 1.0E1,
Hecto => 1.0E0,
kilo => 1.0E-1,
Mega => 1.0E-4,
Giga => 1.0E-7,
Tera => 1.0E-10,
Peta => 1.0E-13,
Exa => 1.0E-16,
Zetta => 1.0E-19,
Yotta => 1.0E-22),
kilo => (yocto => 1.0E27,
zepto => 1.0E24,
atto => 1.0E21,
femto => 1.0E18,
pico => 1.0E15,
nano => 1.0E12,
micro => 1.0E9,
milli => 1.0E6,
centi => 1.0E5,
deci => 1.0E4,
None => 1.0E3,
Deka => 1.0E2,
Hecto => 1.0E1,
kilo => 1.0E0,
Mega => 1.0E-3,
Giga => 1.0E-6,
Tera => 1.0E-9,
Peta => 1.0E-12,
Exa => 1.0E-15,
Zetta => 1.0E-18,
Yotta => 1.0E-21),
Mega => (yocto => 1.0E30,
zepto => 1.0E27,
atto => 1.0E24,
femto => 1.0E21,
pico => 1.0E18,
nano => 1.0E15,
micro => 1.0E12,
milli => 1.0E9,
centi => 1.0E8,
deci => 1.0E7,
None => 1.0E6,
Deka => 1.0E5,
Hecto => 1.0E4,
kilo => 1.0E3,
Mega => 1.0E0,
Giga => 1.0E-3,
Tera => 1.0E-6,
Peta => 1.0E-9,
Exa => 1.0E-12,
Zetta => 1.0E-15,
Yotta => 1.0E-18),
Giga => (yocto => 1.0E33,
zepto => 1.0E30,
atto => 1.0E27,
femto => 1.0E24,
pico => 1.0E21,
nano => 1.0E18,
micro => 1.0E15,
milli => 1.0E12,
centi => 1.0E11,
deci => 1.0E10,
None => 1.0E9,
Deka => 1.0E8,
Hecto => 1.0E7,
kilo => 1.0E6,
Mega => 1.0E3,
Giga => 1.0E0,
Tera => 1.0E-3,
Peta => 1.0E-6,
Exa => 1.0E-9,
Zetta => 1.0E-12,
Yotta => 1.0E-15),
Tera => (yocto => 1.0E36,
zepto => 1.0E33,
atto => 1.0E30,
femto => 1.0E27,
pico => 1.0E24,
nano => 1.0E21,
micro => 1.0E18,
milli => 1.0E15,
centi => 1.0E14,
deci => 1.0E13,
None => 1.0E12,
Deka => 1.0E11,
Hecto => 1.0E10,
kilo => 1.0E9,
Mega => 1.0E6,
Giga => 1.0E3,
Tera => 1.0E0,
Peta => 1.0E-3,
Exa => 1.0E-6,
Zetta => 1.0E-9,
Yotta => 1.0E-12),
Peta => (yocto => 1.0E39,
zepto => 1.0E36,
atto => 1.0E33,
femto => 1.0E30,
pico => 1.0E27,
nano => 1.0E24,
micro => 1.0E21,
milli => 1.0E18,
centi => 1.0E17,
deci => 1.0E16,
None => 1.0E15,
Deka => 1.0E14,
Hecto => 1.0E13,
kilo => 1.0E12,
Mega => 1.0E9,
Giga => 1.0E6,
Tera => 1.0E3,
Peta => 1.0E0,
Exa => 1.0E-3,
Zetta => 1.0E-6,
Yotta => 1.0E-9),
Exa => (yocto => 1.0E42,
zepto => 1.0E39,
atto => 1.0E36,
femto => 1.0E33,
pico => 1.0E30,
nano => 1.0E27,
micro => 1.0E24,
milli => 1.0E21,
centi => 1.0E20,
deci => 1.0E19,
None => 1.0E18,
Deka => 1.0E17,
Hecto => 1.0E16,
kilo => 1.0E15,
Mega => 1.0E12,
Giga => 1.0E9,
Tera => 1.0E6,
Peta => 1.0E3,
Exa => 1.0E0,
Zetta => 1.0E-3,
Yotta => 1.0E-6),
Zetta => (yocto => 1.0E45,
zepto => 1.0E42,
atto => 1.0E39,
femto => 1.0E36,
pico => 1.0E33,
nano => 1.0E30,
micro => 1.0E27,
milli => 1.0E24,
centi => 1.0E23,
deci => 1.0E22,
None => 1.0E21,
Deka => 1.0E20,
Hecto => 1.0E19,
kilo => 1.0E18,
Mega => 1.0E15,
Giga => 1.0E12,
Tera => 1.0E9,
Peta => 1.0E6,
Exa => 1.0E3,
Zetta => 1.0E0,
Yotta => 1.0E-3),
Yotta => (yocto => 1.0E48,
zepto => 1.0E45,
atto => 1.0E42,
femto => 1.0E39,
pico => 1.0E36,
nano => 1.0E33,
micro => 1.0E30,
milli => 1.0E27,
centi => 1.0E26,
deci => 1.0E25,
None => 1.0E24,
Deka => 1.0E23,
Hecto => 1.0E22,
kilo => 1.0E21,
Mega => 1.0E18,
Giga => 1.0E15,
Tera => 1.0E12,
Peta => 1.0E9,
Exa => 1.0E6,
Zetta => 1.0E3,
Yotta => 1.0E0));
begin
for X in -10 .. 10 loop
Calculate_Expected :
declare
Origin_Value : constant Long_Float := 2.0 ** X;
Expected : constant Long_Float :=
Origin_Value * Scale_Lookup (From_Prefix, To_Prefix);
begin
if Expected /= 0.0 then
Test_Cases.Add
(Passed =>
Scale_Float (Value => Origin_Value,
From_Prefix => From_Prefix,
To_Prefix => To_Prefix) = Expected,
Message =>
"Scale_Float (Value => " & Origin_Value'Image &
", From_Prefix => " & From_Prefix'Image &
", To_Prefix => " & To_Prefix'Image & ")");
end if;
end Calculate_Expected;
end loop;
end Build_Lookup;
end loop;
end loop;
pragma Warnings (Off, "static fixed-point value is not a multiple of Small");
Test_Cases.Add
(Passed =>
Fixed_MI (Value => 0.55, Aft => 0) = "550.0" & No_Break_Space & "m" &
SI_Units.Names.Ampere,
Message => "Fixed_MI (0.55)");
Test_Cases.Add
(Passed =>
Fixed_MI (Value => 0.55, Aft => 1) = "550.0" & No_Break_Space & "m" &
SI_Units.Names.Ampere,
Message => "Fixed_MI (0.55)");
pragma Warnings (On, "static fixed-point value is not a multiple of Small");
Print_Test_Summary :
declare
Total : constant Natural := Test_Cases.Num_Total;
Passed : constant Natural := Test_Cases.Num_Passed;
begin
Ada.Text_IO.Put_Line
(Item =>
"Test results:" & Passed'Image & " out of" & Total'Image &
" succeeded.");
Ada.Text_IO.Put_Line
(Item => (if Passed = Total then "<OK>" else "<FAILED>"));
Ada.Command_Line.Set_Exit_Status
(Code => (if Passed = Total
then Ada.Command_Line.Success
else Ada.Command_Line.Failure));
end Print_Test_Summary;
end Main_SI_Units_Test;
| 39.29449 | 80 | 0.389664 |
4d9fe6919e4689ef3f865fa25f6fb253e62ce7a1 | 98,081 | adb | Ada | gcc-gcc-7_3_0-release/gcc/ada/lib-xref.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/lib-xref.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/ada/lib-xref.adb | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- L I B . X R E F --
-- --
-- B o d y --
-- --
-- Copyright (C) 1998-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 Csets; use Csets;
with Elists; use Elists;
with Errout; use Errout;
with Nlists; use Nlists;
with Opt; use Opt;
with Restrict; use Restrict;
with Rident; use Rident;
with Sem; use Sem;
with Sem_Aux; use Sem_Aux;
with Sem_Prag; use Sem_Prag;
with Sem_Util; use Sem_Util;
with Sem_Warn; use Sem_Warn;
with Sinfo; use Sinfo;
with Sinput; use Sinput;
with Snames; use Snames;
with Stringt; use Stringt;
with Stand; use Stand;
with Table; use Table;
with GNAT.Heap_Sort_G;
with GNAT.HTable;
package body Lib.Xref is
------------------
-- Declarations --
------------------
-- The Xref table is used to record references. The Loc field is set
-- to No_Location for a definition entry.
subtype Xref_Entry_Number is Int;
type Xref_Key is record
-- These are the components of Xref_Entry that participate in hash
-- lookups.
Ent : Entity_Id;
-- Entity referenced (E parameter to Generate_Reference)
Loc : Source_Ptr;
-- Location of reference (Original_Location (Sloc field of N parameter
-- to Generate_Reference)). Set to No_Location for the case of a
-- defining occurrence.
Typ : Character;
-- Reference type (Typ param to Generate_Reference)
Eun : Unit_Number_Type;
-- Unit number corresponding to Ent
Lun : Unit_Number_Type;
-- Unit number corresponding to Loc. Value is undefined and not
-- referenced if Loc is set to No_Location.
-- The following components are only used for SPARK cross-references
Ref_Scope : Entity_Id;
-- Entity of the closest subprogram or package enclosing the reference
Ent_Scope : Entity_Id;
-- Entity of the closest subprogram or package enclosing the definition,
-- which should be located in the same file as the definition itself.
end record;
type Xref_Entry is record
Key : Xref_Key;
Ent_Scope_File : Unit_Number_Type;
-- File for entity Ent_Scope
Def : Source_Ptr;
-- Original source location for entity being referenced. Note that these
-- values are used only during the output process, they are not set when
-- the entries are originally built. This is because private entities
-- can be swapped when the initial call is made.
HTable_Next : Xref_Entry_Number;
-- For use only by Static_HTable
end record;
package Xrefs is new Table.Table (
Table_Component_Type => Xref_Entry,
Table_Index_Type => Xref_Entry_Number,
Table_Low_Bound => 1,
Table_Initial => Alloc.Xrefs_Initial,
Table_Increment => Alloc.Xrefs_Increment,
Table_Name => "Xrefs");
--------------
-- Xref_Set --
--------------
-- We keep a set of xref entries, in order to avoid inserting duplicate
-- entries into the above Xrefs table. An entry is in Xref_Set if and only
-- if it is in Xrefs.
Num_Buckets : constant := 2**16;
subtype Header_Num is Integer range 0 .. Num_Buckets - 1;
type Null_Type is null record;
pragma Unreferenced (Null_Type);
function Hash (F : Xref_Entry_Number) return Header_Num;
function Equal (F1, F2 : Xref_Entry_Number) return Boolean;
procedure HT_Set_Next (E : Xref_Entry_Number; Next : Xref_Entry_Number);
function HT_Next (E : Xref_Entry_Number) return Xref_Entry_Number;
function Get_Key (E : Xref_Entry_Number) return Xref_Entry_Number;
pragma Inline (Hash, Equal, HT_Set_Next, HT_Next, Get_Key);
package Xref_Set is new GNAT.HTable.Static_HTable (
Header_Num,
Element => Xref_Entry,
Elmt_Ptr => Xref_Entry_Number,
Null_Ptr => 0,
Set_Next => HT_Set_Next,
Next => HT_Next,
Key => Xref_Entry_Number,
Get_Key => Get_Key,
Hash => Hash,
Equal => Equal);
-----------------------------
-- SPARK Xrefs Information --
-----------------------------
package body SPARK_Specific is separate;
------------------------
-- Local Subprograms --
------------------------
procedure Add_Entry (Key : Xref_Key; Ent_Scope_File : Unit_Number_Type);
-- Add an entry to the tables of Xref_Entries, avoiding duplicates
procedure Generate_Prim_Op_References (Typ : Entity_Id);
-- For a tagged type, generate implicit references to its primitive
-- operations, for source navigation. This is done right before emitting
-- cross-reference information rather than at the freeze point of the type
-- in order to handle late bodies that are primitive operations.
function Lt (T1, T2 : Xref_Entry) return Boolean;
-- Order cross-references
---------------
-- Add_Entry --
---------------
procedure Add_Entry (Key : Xref_Key; Ent_Scope_File : Unit_Number_Type) is
begin
Xrefs.Increment_Last; -- tentative
Xrefs.Table (Xrefs.Last).Key := Key;
-- Set the entry in Xref_Set, and if newly set, keep the above
-- tentative increment.
if Xref_Set.Set_If_Not_Present (Xrefs.Last) then
Xrefs.Table (Xrefs.Last).Ent_Scope_File := Ent_Scope_File;
-- Leave Def and HTable_Next uninitialized
Set_Has_Xref_Entry (Key.Ent);
-- It was already in Xref_Set, so throw away the tentatively-added entry
else
Xrefs.Decrement_Last;
end if;
end Add_Entry;
-----------
-- Equal --
-----------
function Equal (F1, F2 : Xref_Entry_Number) return Boolean is
Result : constant Boolean :=
Xrefs.Table (F1).Key = Xrefs.Table (F2).Key;
begin
return Result;
end Equal;
-------------------------
-- Generate_Definition --
-------------------------
procedure Generate_Definition (E : Entity_Id) is
begin
pragma Assert (Nkind (E) in N_Entity);
-- Note that we do not test Xref_Entity_Letters here. It is too early
-- to do so, since we are often called before the entity is fully
-- constructed, so that the Ekind is still E_Void.
if Opt.Xref_Active
-- Definition must come from source
-- We make an exception for subprogram child units that have no spec.
-- For these we generate a subprogram declaration for library use,
-- and the corresponding entity does not come from source.
-- Nevertheless, all references will be attached to it and we have
-- to treat is as coming from user code.
and then (Comes_From_Source (E) or else Is_Child_Unit (E))
-- And must have a reasonable source location that is not
-- within an instance (all entities in instances are ignored)
and then Sloc (E) > No_Location
and then Instantiation_Location (Sloc (E)) = No_Location
-- And must be a non-internal name from the main source unit
and then In_Extended_Main_Source_Unit (E)
and then not Is_Internal_Name (Chars (E))
then
Add_Entry
((Ent => E,
Loc => No_Location,
Typ => ' ',
Eun => Get_Source_Unit (Original_Location (Sloc (E))),
Lun => No_Unit,
Ref_Scope => Empty,
Ent_Scope => Empty),
Ent_Scope_File => No_Unit);
if In_Inlined_Body then
Set_Referenced (E);
end if;
end if;
end Generate_Definition;
---------------------------------
-- Generate_Operator_Reference --
---------------------------------
procedure Generate_Operator_Reference
(N : Node_Id;
T : Entity_Id)
is
begin
if not In_Extended_Main_Source_Unit (N) then
return;
end if;
-- If the operator is not a Standard operator, then we generate a real
-- reference to the user defined operator.
if Sloc (Entity (N)) /= Standard_Location then
Generate_Reference (Entity (N), N);
-- A reference to an implicit inequality operator is also a reference
-- to the user-defined equality.
if Nkind (N) = N_Op_Ne
and then not Comes_From_Source (Entity (N))
and then Present (Corresponding_Equality (Entity (N)))
then
Generate_Reference (Corresponding_Equality (Entity (N)), N);
end if;
-- For the case of Standard operators, we mark the result type as
-- referenced. This ensures that in the case where we are using a
-- derived operator, we mark an entity of the unit that implicitly
-- defines this operator as used. Otherwise we may think that no entity
-- of the unit is used. The actual entity marked as referenced is the
-- first subtype, which is the relevant user defined entity.
-- Note: we only do this for operators that come from source. The
-- generated code sometimes reaches for entities that do not need to be
-- explicitly visible (for example, when we expand the code for
-- comparing two record objects, the fields of the record may not be
-- visible).
elsif Comes_From_Source (N) then
Set_Referenced (First_Subtype (T));
end if;
end Generate_Operator_Reference;
---------------------------------
-- Generate_Prim_Op_References --
---------------------------------
procedure Generate_Prim_Op_References (Typ : Entity_Id) is
Base_T : Entity_Id;
Prim : Elmt_Id;
Prim_List : Elist_Id;
begin
-- Handle subtypes of synchronized types
if Ekind (Typ) = E_Protected_Subtype
or else Ekind (Typ) = E_Task_Subtype
then
Base_T := Etype (Typ);
else
Base_T := Typ;
end if;
-- References to primitive operations are only relevant for tagged types
if not Is_Tagged_Type (Base_T)
or else Is_Class_Wide_Type (Base_T)
then
return;
end if;
-- Ada 2005 (AI-345): For synchronized types generate reference to the
-- wrapper that allow us to dispatch calls through their implemented
-- abstract interface types.
-- The check for Present here is to protect against previously reported
-- critical errors.
Prim_List := Primitive_Operations (Base_T);
if No (Prim_List) then
return;
end if;
Prim := First_Elmt (Prim_List);
while Present (Prim) loop
-- If the operation is derived, get the original for cross-reference
-- reference purposes (it is the original for which we want the xref
-- and for which the comes_from_source test must be performed).
Generate_Reference
(Typ, Ultimate_Alias (Node (Prim)), 'p', Set_Ref => False);
Next_Elmt (Prim);
end loop;
end Generate_Prim_Op_References;
------------------------
-- Generate_Reference --
------------------------
procedure Generate_Reference
(E : Entity_Id;
N : Node_Id;
Typ : Character := 'r';
Set_Ref : Boolean := True;
Force : Boolean := False)
is
Actual_Typ : Character := Typ;
Call : Node_Id;
Def : Source_Ptr;
Ent : Entity_Id;
Ent_Scope : Entity_Id;
Formal : Entity_Id;
Kind : Entity_Kind;
Nod : Node_Id;
Ref : Source_Ptr;
Ref_Scope : Entity_Id;
function Get_Through_Renamings (E : Entity_Id) return Entity_Id;
-- Get the enclosing entity through renamings, which may come from
-- source or from the translation of generic instantiations.
function Is_On_LHS (Node : Node_Id) return Boolean;
-- Used to check if a node is on the left hand side of an assignment.
-- The following cases are handled:
--
-- Variable Node is a direct descendant of left hand side of an
-- assignment statement.
--
-- Prefix Of an indexed or selected component that is present in
-- a subtree rooted by an assignment statement. There is
-- no restriction of nesting of components, thus cases
-- such as A.B (C).D are handled properly. However a prefix
-- of a dereference (either implicit or explicit) is never
-- considered as on a LHS.
--
-- Out param Same as above cases, but OUT parameter
function OK_To_Set_Referenced return Boolean;
-- Returns True if the Referenced flag can be set. There are a few
-- exceptions where we do not want to set this flag, see body for
-- details of these exceptional cases.
---------------------------
-- Get_Through_Renamings --
---------------------------
function Get_Through_Renamings (E : Entity_Id) return Entity_Id is
Result : Entity_Id := E;
begin
while Present (Result)
and then Is_Object (Result)
and then Present (Renamed_Object (Result))
loop
Result := Get_Enclosing_Object (Renamed_Object (Result));
end loop;
return Result;
end Get_Through_Renamings;
---------------
-- Is_On_LHS --
---------------
-- ??? There are several routines here and there that perform a similar
-- (but subtly different) computation, which should be factored:
-- Sem_Util.Is_LHS
-- Sem_Util.May_Be_Lvalue
-- Sem_Util.Known_To_Be_Assigned
-- Exp_Ch2.Expand_Entry_Parameter.In_Assignment_Context
-- Exp_Smem.Is_Out_Actual
function Is_On_LHS (Node : Node_Id) return Boolean is
N : Node_Id;
P : Node_Id;
K : Node_Kind;
begin
-- Only identifiers are considered, is this necessary???
if Nkind (Node) /= N_Identifier then
return False;
end if;
-- Immediate return if appeared as OUT parameter
if Kind = E_Out_Parameter then
return True;
end if;
-- Search for assignment statement subtree root
N := Node;
loop
P := Parent (N);
K := Nkind (P);
if K = N_Assignment_Statement then
return Name (P) = N;
-- Check whether the parent is a component and the current node is
-- its prefix, but return False if the current node has an access
-- type, as in that case the selected or indexed component is an
-- implicit dereference, and the LHS is the designated object, not
-- the access object.
-- ??? case of a slice assignment?
elsif (K = N_Selected_Component or else K = N_Indexed_Component)
and then Prefix (P) = N
then
-- Check for access type. First a special test, In some cases
-- this is called too early (see comments in Find_Direct_Name),
-- at a point where the tree is not fully typed yet. In that
-- case we may lack an Etype for N, and we can't check the
-- Etype. For now, we always return False in such a case,
-- but this is clearly not right in all cases ???
if No (Etype (N)) then
return False;
elsif Is_Access_Type (Etype (N)) then
return False;
-- Access type case dealt with, keep going
else
N := P;
end if;
-- All other cases, definitely not on left side
else
return False;
end if;
end loop;
end Is_On_LHS;
---------------------------
-- OK_To_Set_Referenced --
---------------------------
function OK_To_Set_Referenced return Boolean is
P : Node_Id;
begin
-- A reference from a pragma Unreferenced or pragma Unmodified or
-- pragma Warnings does not cause the Referenced flag to be set.
-- This avoids silly warnings about things being referenced and
-- not assigned when the only reference is from the pragma.
if Nkind (N) = N_Identifier then
P := Parent (N);
if Nkind (P) = N_Pragma_Argument_Association then
P := Parent (P);
if Nkind (P) = N_Pragma then
if Nam_In (Pragma_Name_Unmapped (P),
Name_Warnings,
Name_Unmodified,
Name_Unreferenced)
then
return False;
end if;
end if;
-- A reference to a formal in a named parameter association does
-- not make the formal referenced. Formals that are unused in the
-- subprogram body are properly flagged as such, even if calls
-- elsewhere use named notation.
elsif Nkind (P) = N_Parameter_Association
and then N = Selector_Name (P)
then
return False;
end if;
end if;
return True;
end OK_To_Set_Referenced;
-- Start of processing for Generate_Reference
begin
pragma Assert (Nkind (E) in N_Entity);
Find_Actual (N, Formal, Call);
if Present (Formal) then
Kind := Ekind (Formal);
else
Kind := E_Void;
end if;
-- Check for obsolescent reference to package ASCII. GNAT treats this
-- element of annex J specially since in practice, programs make a lot
-- of use of this feature, so we don't include it in the set of features
-- diagnosed when Warn_On_Obsolescent_Features mode is set. However we
-- are required to note it as a violation of the RM defined restriction.
if E = Standard_ASCII then
Check_Restriction (No_Obsolescent_Features, N);
end if;
-- Check for reference to entity marked with Is_Obsolescent
-- Note that we always allow obsolescent references in the compiler
-- itself and the run time, since we assume that we know what we are
-- doing in such cases. For example the calls in Ada.Characters.Handling
-- to its own obsolescent subprograms are just fine.
-- In any case we only generate warnings if we are in the extended main
-- source unit, and the entity itself is not in the extended main source
-- unit, since we assume the source unit itself knows what is going on
-- (and for sure we do not want silly warnings, e.g. on the end line of
-- an obsolescent procedure body).
if Is_Obsolescent (E)
and then not GNAT_Mode
and then not In_Extended_Main_Source_Unit (E)
and then In_Extended_Main_Source_Unit (N)
then
Check_Restriction (No_Obsolescent_Features, N);
if Warn_On_Obsolescent_Feature then
Output_Obsolescent_Entity_Warnings (N, E);
end if;
end if;
-- Warn if reference to Ada 2005 entity not in Ada 2005 mode. We only
-- detect real explicit references (modifications and references).
if Comes_From_Source (N)
and then Is_Ada_2005_Only (E)
and then Ada_Version < Ada_2005
and then Warn_On_Ada_2005_Compatibility
and then (Typ = 'm' or else Typ = 'r' or else Typ = 's')
then
Error_Msg_NE ("& is only defined in Ada 2005?y?", N, E);
end if;
-- Warn if reference to Ada 2012 entity not in Ada 2012 mode. We only
-- detect real explicit references (modifications and references).
if Comes_From_Source (N)
and then Is_Ada_2012_Only (E)
and then Ada_Version < Ada_2012
and then Warn_On_Ada_2012_Compatibility
and then (Typ = 'm' or else Typ = 'r')
then
Error_Msg_NE ("& is only defined in Ada 2012?y?", N, E);
end if;
-- Do not generate references if we are within a postcondition sub-
-- program, because the reference does not comes from source, and the
-- pre-analysis of the aspect has already created an entry for the ALI
-- file at the proper source location.
if Chars (Current_Scope) = Name_uPostconditions then
return;
end if;
-- Never collect references if not in main source unit. However, we omit
-- this test if Typ is 'e' or 'k', since these entries are structural,
-- and it is useful to have them in units that reference packages as
-- well as units that define packages. We also omit the test for the
-- case of 'p' since we want to include inherited primitive operations
-- from other packages.
-- We also omit this test is this is a body reference for a subprogram
-- instantiation. In this case the reference is to the generic body,
-- which clearly need not be in the main unit containing the instance.
-- For the same reason we accept an implicit reference generated for
-- a default in an instance.
-- We also set the referenced flag in a generic package that is not in
-- then main source unit, when the variable is of a formal private type,
-- to warn in the instance if the corresponding type is not a fully
-- initialized type.
if not In_Extended_Main_Source_Unit (N) then
if Typ = 'e' or else
Typ = 'I' or else
Typ = 'p' or else
Typ = 'i' or else
Typ = 'k'
or else (Typ = 'b' and then Is_Generic_Instance (E))
-- Allow the generation of references to reads, writes and calls
-- in SPARK mode when the related context comes from an instance.
or else
(GNATprove_Mode
and then In_Extended_Main_Code_Unit (N)
and then (Typ = 'm' or else Typ = 'r' or else Typ = 's'))
then
null;
elsif In_Instance_Body
and then In_Extended_Main_Code_Unit (N)
and then Is_Generic_Type (Etype (E))
then
Set_Referenced (E);
return;
elsif Inside_A_Generic
and then Is_Generic_Type (Etype (E))
then
Set_Referenced (E);
return;
else
return;
end if;
end if;
-- For reference type p, the entity must be in main source unit
if Typ = 'p' and then not In_Extended_Main_Source_Unit (E) then
return;
end if;
-- Unless the reference is forced, we ignore references where the
-- reference itself does not come from source.
if not Force and then not Comes_From_Source (N) then
return;
end if;
-- Deal with setting entity as referenced, unless suppressed. Note that
-- we still do Set_Referenced on entities that do not come from source.
-- This situation arises when we have a source reference to a derived
-- operation, where the derived operation itself does not come from
-- source, but we still want to mark it as referenced, since we really
-- are referencing an entity in the corresponding package (this avoids
-- wrong complaints that the package contains no referenced entities).
if Set_Ref then
-- Assignable object appearing on left side of assignment or as
-- an out parameter.
if Is_Assignable (E)
and then Is_On_LHS (N)
and then Ekind (E) /= E_In_Out_Parameter
then
-- For objects that are renamings, just set as simply referenced
-- we do not try to do assignment type tracking in this case.
if Present (Renamed_Object (E)) then
Set_Referenced (E);
-- Out parameter case
elsif Kind = E_Out_Parameter then
-- If warning mode for all out parameters is set, or this is
-- the only warning parameter, then we want to mark this for
-- later warning logic by setting Referenced_As_Out_Parameter
if Warn_On_Modified_As_Out_Parameter (Formal) then
Set_Referenced_As_Out_Parameter (E, True);
Set_Referenced_As_LHS (E, False);
-- For OUT parameter not covered by the above cases, we simply
-- regard it as a normal reference (in this case we do not
-- want any of the warning machinery for out parameters).
else
Set_Referenced (E);
end if;
-- For the left hand of an assignment case, we do nothing here.
-- The processing for Analyze_Assignment_Statement will set the
-- Referenced_As_LHS flag.
else
null;
end if;
-- Check for a reference in a pragma that should not count as a
-- making the variable referenced for warning purposes.
elsif Is_Non_Significant_Pragma_Reference (N) then
null;
-- A reference in an attribute definition clause does not count as a
-- reference except for the case of Address. The reason that 'Address
-- is an exception is that it creates an alias through which the
-- variable may be referenced.
elsif Nkind (Parent (N)) = N_Attribute_Definition_Clause
and then Chars (Parent (N)) /= Name_Address
and then N = Name (Parent (N))
then
null;
-- Constant completion does not count as a reference
elsif Typ = 'c'
and then Ekind (E) = E_Constant
then
null;
-- Record representation clause does not count as a reference
elsif Nkind (N) = N_Identifier
and then Nkind (Parent (N)) = N_Record_Representation_Clause
then
null;
-- Discriminants do not need to produce a reference to record type
elsif Typ = 'd'
and then Nkind (Parent (N)) = N_Discriminant_Specification
then
null;
-- All other cases
else
-- Special processing for IN OUT parameters, where we have an
-- implicit assignment to a simple variable.
if Kind = E_In_Out_Parameter
and then Is_Assignable (E)
then
-- For sure this counts as a normal read reference
Set_Referenced (E);
Set_Last_Assignment (E, Empty);
-- We count it as being referenced as an out parameter if the
-- option is set to warn on all out parameters, except that we
-- have a special exclusion for an intrinsic subprogram, which
-- is most likely an instantiation of Unchecked_Deallocation
-- which we do not want to consider as an assignment since it
-- generates false positives. We also exclude the case of an
-- IN OUT parameter if the name of the procedure is Free,
-- since we suspect similar semantics.
if Warn_On_All_Unread_Out_Parameters
and then Is_Entity_Name (Name (Call))
and then not Is_Intrinsic_Subprogram (Entity (Name (Call)))
and then Chars (Name (Call)) /= Name_Free
then
Set_Referenced_As_Out_Parameter (E, True);
Set_Referenced_As_LHS (E, False);
end if;
-- Don't count a recursive reference within a subprogram as a
-- reference (that allows detection of a recursive subprogram
-- whose only references are recursive calls as unreferenced).
elsif Is_Subprogram (E)
and then E = Nearest_Dynamic_Scope (Current_Scope)
then
null;
-- Any other occurrence counts as referencing the entity
elsif OK_To_Set_Referenced then
Set_Referenced (E);
-- If variable, this is an OK reference after an assignment
-- so we can clear the Last_Assignment indication.
if Is_Assignable (E) then
Set_Last_Assignment (E, Empty);
end if;
end if;
end if;
-- Check for pragma Unreferenced given and reference is within
-- this source unit (occasion for possible warning to be issued).
-- Note that the entity may be marked as unreferenced by pragma
-- Unused.
if Has_Unreferenced (E)
and then In_Same_Extended_Unit (E, N)
then
-- A reference as a named parameter in a call does not count
-- as a violation of pragma Unreferenced for this purpose...
if Nkind (N) = N_Identifier
and then Nkind (Parent (N)) = N_Parameter_Association
and then Selector_Name (Parent (N)) = N
then
null;
-- ... Neither does a reference to a variable on the left side
-- of an assignment.
elsif Is_On_LHS (N) then
null;
-- No warning if the reference is in a call that does not come
-- from source (e.g. a call to a controlled type primitive).
elsif not Comes_From_Source (Parent (N))
and then Nkind (Parent (N)) = N_Procedure_Call_Statement
then
null;
-- For entry formals, we want to place the warning message on the
-- corresponding entity in the accept statement. The current scope
-- is the body of the accept, so we find the formal whose name
-- matches that of the entry formal (there is no link between the
-- two entities, and the one in the accept statement is only used
-- for conformance checking).
elsif Ekind (Scope (E)) = E_Entry then
declare
BE : Entity_Id;
begin
BE := First_Entity (Current_Scope);
while Present (BE) loop
if Chars (BE) = Chars (E) then
if Has_Pragma_Unused (E) then
Error_Msg_NE -- CODEFIX
("??pragma Unused given for&!", N, BE);
else
Error_Msg_NE -- CODEFIX
("??pragma Unreferenced given for&!", N, BE);
end if;
exit;
end if;
Next_Entity (BE);
end loop;
end;
-- Here we issue the warning, since this is a real reference
elsif Has_Pragma_Unused (E) then
Error_Msg_NE -- CODEFIX
("??pragma Unused given for&!", N, E);
else
Error_Msg_NE -- CODEFIX
("??pragma Unreferenced given for&!", N, E);
end if;
end if;
-- If this is a subprogram instance, mark as well the internal
-- subprogram in the wrapper package, which may be a visible
-- compilation unit.
if Is_Overloadable (E)
and then Is_Generic_Instance (E)
and then Present (Alias (E))
then
Set_Referenced (Alias (E));
end if;
end if;
-- Generate reference if all conditions are met:
if
-- Cross referencing must be active
Opt.Xref_Active
-- The entity must be one for which we collect references
and then Xref_Entity_Letters (Ekind (E)) /= ' '
-- Both Sloc values must be set to something sensible
and then Sloc (E) > No_Location
and then Sloc (N) > No_Location
-- Ignore references from within an instance. The only exceptions to
-- this are default subprograms, for which we generate an implicit
-- reference and compilations in SPARK mode.
and then
(Instantiation_Location (Sloc (N)) = No_Location
or else Typ = 'i'
or else GNATprove_Mode)
-- Ignore dummy references
and then Typ /= ' '
then
if Nkind_In (N, N_Identifier,
N_Defining_Identifier,
N_Defining_Operator_Symbol,
N_Operator_Symbol,
N_Defining_Character_Literal)
or else Nkind (N) in N_Op
or else (Nkind (N) = N_Character_Literal
and then Sloc (Entity (N)) /= Standard_Location)
then
Nod := N;
elsif Nkind_In (N, N_Expanded_Name, N_Selected_Component) then
Nod := Selector_Name (N);
else
return;
end if;
-- Normal case of source entity comes from source
if Comes_From_Source (E) then
Ent := E;
-- Because a declaration may be generated for a subprogram body
-- without declaration in GNATprove mode, for inlining, some
-- parameters may end up being marked as not coming from source
-- although they are. Take these into account specially.
elsif GNATprove_Mode and then Ekind (E) in Formal_Kind then
Ent := E;
-- Entity does not come from source, but is a derived subprogram and
-- the derived subprogram comes from source (after one or more
-- derivations) in which case the reference is to parent subprogram.
elsif Is_Overloadable (E)
and then Present (Alias (E))
then
Ent := Alias (E);
while not Comes_From_Source (Ent) loop
if No (Alias (Ent)) then
return;
end if;
Ent := Alias (Ent);
end loop;
-- The internally created defining entity for a child subprogram
-- that has no previous spec has valid references.
elsif Is_Overloadable (E)
and then Is_Child_Unit (E)
then
Ent := E;
-- Ditto for the formals of such a subprogram
elsif Is_Overloadable (Scope (E))
and then Is_Child_Unit (Scope (E))
then
Ent := E;
-- Record components of discriminated subtypes or derived types must
-- be treated as references to the original component.
elsif Ekind (E) = E_Component
and then Comes_From_Source (Original_Record_Component (E))
then
Ent := Original_Record_Component (E);
-- If this is an expanded reference to a discriminant, recover the
-- original discriminant, which gets the reference.
elsif Ekind (E) = E_In_Parameter
and then Present (Discriminal_Link (E))
then
Ent := Discriminal_Link (E);
Set_Referenced (Ent);
-- Ignore reference to any other entity that is not from source
else
return;
end if;
-- In SPARK mode, consider the underlying entity renamed instead of
-- the renaming, which is needed to compute a valid set of effects
-- (reads, writes) for the enclosing subprogram.
if GNATprove_Mode then
Ent := Get_Through_Renamings (Ent);
-- If no enclosing object, then it could be a reference to any
-- location not tracked individually, like heap-allocated data.
-- Conservatively approximate this possibility by generating a
-- dereference, and return.
if No (Ent) then
if Actual_Typ = 'w' then
SPARK_Specific.Generate_Dereference (Nod, 'r');
SPARK_Specific.Generate_Dereference (Nod, 'w');
else
SPARK_Specific.Generate_Dereference (Nod, 'r');
end if;
return;
end if;
end if;
-- Record reference to entity
if Actual_Typ = 'p'
and then Is_Subprogram (Nod)
and then Present (Overridden_Operation (Nod))
then
Actual_Typ := 'P';
end if;
-- Comment needed here for special SPARK code ???
if GNATprove_Mode then
Ref := Sloc (Nod);
Def := Sloc (Ent);
Ref_Scope :=
SPARK_Specific.Enclosing_Subprogram_Or_Library_Package (Nod);
Ent_Scope :=
SPARK_Specific.Enclosing_Subprogram_Or_Library_Package (Ent);
-- Since we are reaching through renamings in SPARK mode, we may
-- end up with standard constants. Ignore those.
if Sloc (Ent_Scope) <= Standard_Location
or else Def <= Standard_Location
then
return;
end if;
Add_Entry
((Ent => Ent,
Loc => Ref,
Typ => Actual_Typ,
Eun => Get_Top_Level_Code_Unit (Def),
Lun => Get_Top_Level_Code_Unit (Ref),
Ref_Scope => Ref_Scope,
Ent_Scope => Ent_Scope),
Ent_Scope_File => Get_Top_Level_Code_Unit (Ent));
else
Ref := Original_Location (Sloc (Nod));
Def := Original_Location (Sloc (Ent));
-- If this is an operator symbol, skip the initial quote for
-- navigation purposes. This is not done for the end label,
-- where we want the actual position after the closing quote.
if Typ = 't' then
null;
elsif Nkind (N) = N_Defining_Operator_Symbol
or else Nkind (Nod) = N_Operator_Symbol
then
Ref := Ref + 1;
end if;
Add_Entry
((Ent => Ent,
Loc => Ref,
Typ => Actual_Typ,
Eun => Get_Source_Unit (Def),
Lun => Get_Source_Unit (Ref),
Ref_Scope => Empty,
Ent_Scope => Empty),
Ent_Scope_File => No_Unit);
-- Generate reference to the first private entity
if Typ = 'e'
and then Comes_From_Source (E)
and then Nkind (Ent) = N_Defining_Identifier
and then (Is_Package_Or_Generic_Package (Ent)
or else Is_Concurrent_Type (Ent))
and then Present (First_Private_Entity (E))
and then In_Extended_Main_Source_Unit (N)
then
-- Handle case in which the full-view and partial-view of the
-- first private entity are swapped.
declare
First_Private : Entity_Id := First_Private_Entity (E);
begin
if Is_Private_Type (First_Private)
and then Present (Full_View (First_Private))
then
First_Private := Full_View (First_Private);
end if;
Add_Entry
((Ent => Ent,
Loc => Sloc (First_Private),
Typ => 'E',
Eun => Get_Source_Unit (Def),
Lun => Get_Source_Unit (Ref),
Ref_Scope => Empty,
Ent_Scope => Empty),
Ent_Scope_File => No_Unit);
end;
end if;
end if;
end if;
end Generate_Reference;
-----------------------------------
-- Generate_Reference_To_Formals --
-----------------------------------
procedure Generate_Reference_To_Formals (E : Entity_Id) is
Formal : Entity_Id;
begin
if Is_Generic_Subprogram (E) then
Formal := First_Entity (E);
while Present (Formal)
and then not Is_Formal (Formal)
loop
Next_Entity (Formal);
end loop;
elsif Ekind (E) in Access_Subprogram_Kind then
Formal := First_Formal (Designated_Type (E));
else
Formal := First_Formal (E);
end if;
while Present (Formal) loop
if Ekind (Formal) = E_In_Parameter then
if Nkind (Parameter_Type (Parent (Formal))) = N_Access_Definition
then
Generate_Reference (E, Formal, '^', False);
else
Generate_Reference (E, Formal, '>', False);
end if;
elsif Ekind (Formal) = E_In_Out_Parameter then
Generate_Reference (E, Formal, '=', False);
else
Generate_Reference (E, Formal, '<', False);
end if;
Next_Formal (Formal);
end loop;
end Generate_Reference_To_Formals;
-------------------------------------------
-- Generate_Reference_To_Generic_Formals --
-------------------------------------------
procedure Generate_Reference_To_Generic_Formals (E : Entity_Id) is
Formal : Entity_Id;
begin
Formal := First_Entity (E);
while Present (Formal) loop
if Comes_From_Source (Formal) then
Generate_Reference (E, Formal, 'z', False);
end if;
Next_Entity (Formal);
end loop;
end Generate_Reference_To_Generic_Formals;
-------------
-- Get_Key --
-------------
function Get_Key (E : Xref_Entry_Number) return Xref_Entry_Number is
begin
return E;
end Get_Key;
----------------------------
-- Has_Deferred_Reference --
----------------------------
function Has_Deferred_Reference (Ent : Entity_Id) return Boolean is
begin
for J in Deferred_References.First .. Deferred_References.Last loop
if Deferred_References.Table (J).E = Ent then
return True;
end if;
end loop;
return False;
end Has_Deferred_Reference;
----------
-- Hash --
----------
function Hash (F : Xref_Entry_Number) return Header_Num is
-- It is unlikely to have two references to the same entity at the same
-- source location, so the hash function depends only on the Ent and Loc
-- fields.
XE : Xref_Entry renames Xrefs.Table (F);
type M is mod 2**32;
H : constant M := M (XE.Key.Ent) + 2 ** 7 * M (abs XE.Key.Loc);
-- It would be more natural to write:
--
-- H : constant M := M'Mod (XE.Key.Ent) + 2**7 * M'Mod (XE.Key.Loc);
--
-- But we can't use M'Mod, because it prevents bootstrapping with older
-- compilers. Loc can be negative, so we do "abs" before converting.
-- One day this can be cleaned up ???
begin
return Header_Num (H mod Num_Buckets);
end Hash;
-----------------
-- HT_Set_Next --
-----------------
procedure HT_Set_Next (E : Xref_Entry_Number; Next : Xref_Entry_Number) is
begin
Xrefs.Table (E).HTable_Next := Next;
end HT_Set_Next;
-------------
-- HT_Next --
-------------
function HT_Next (E : Xref_Entry_Number) return Xref_Entry_Number is
begin
return Xrefs.Table (E).HTable_Next;
end HT_Next;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Xrefs.Init;
end Initialize;
--------
-- Lt --
--------
function Lt (T1, T2 : Xref_Entry) return Boolean is
begin
-- First test: if entity is in different unit, sort by unit
if T1.Key.Eun /= T2.Key.Eun then
return Dependency_Num (T1.Key.Eun) < Dependency_Num (T2.Key.Eun);
-- Second test: within same unit, sort by entity Sloc
elsif T1.Def /= T2.Def then
return T1.Def < T2.Def;
-- Third test: sort definitions ahead of references
elsif T1.Key.Loc = No_Location then
return True;
elsif T2.Key.Loc = No_Location then
return False;
-- Fourth test: for same entity, sort by reference location unit
elsif T1.Key.Lun /= T2.Key.Lun then
return Dependency_Num (T1.Key.Lun) < Dependency_Num (T2.Key.Lun);
-- Fifth test: order of location within referencing unit
elsif T1.Key.Loc /= T2.Key.Loc then
return T1.Key.Loc < T2.Key.Loc;
-- Finally, for two locations at the same address, we prefer
-- the one that does NOT have the type 'r' so that a modification
-- or extension takes preference, when there are more than one
-- reference at the same location. As a result, in the case of
-- entities that are in-out actuals, the read reference follows
-- the modify reference.
else
return T2.Key.Typ = 'r';
end if;
end Lt;
-----------------------
-- Output_References --
-----------------------
procedure Output_References is
procedure Get_Type_Reference
(Ent : Entity_Id;
Tref : out Entity_Id;
Left : out Character;
Right : out Character);
-- Given an Entity_Id Ent, determines whether a type reference is
-- required. If so, Tref is set to the entity for the type reference
-- and Left and Right are set to the left/right brackets to be output
-- for the reference. If no type reference is required, then Tref is
-- set to Empty, and Left/Right are set to space.
procedure Output_Import_Export_Info (Ent : Entity_Id);
-- Output language and external name information for an interfaced
-- entity, using the format <language, external_name>.
------------------------
-- Get_Type_Reference --
------------------------
procedure Get_Type_Reference
(Ent : Entity_Id;
Tref : out Entity_Id;
Left : out Character;
Right : out Character)
is
Sav : Entity_Id;
begin
-- See if we have a type reference
Tref := Ent;
Left := '{';
Right := '}';
loop
Sav := Tref;
-- Processing for types
if Is_Type (Tref) then
-- Case of base type
if Base_Type (Tref) = Tref then
-- If derived, then get first subtype
if Tref /= Etype (Tref) then
Tref := First_Subtype (Etype (Tref));
-- Set brackets for derived type, but don't override
-- pointer case since the fact that something is a
-- pointer is more important.
if Left /= '(' then
Left := '<';
Right := '>';
end if;
-- If the completion of a private type is itself a derived
-- type, we need the parent of the full view.
elsif Is_Private_Type (Tref)
and then Present (Full_View (Tref))
and then Etype (Full_View (Tref)) /= Full_View (Tref)
then
Tref := Etype (Full_View (Tref));
if Left /= '(' then
Left := '<';
Right := '>';
end if;
-- If non-derived pointer, get directly designated type.
-- If the type has a full view, all references are on the
-- partial view that is seen first.
elsif Is_Access_Type (Tref) then
Tref := Directly_Designated_Type (Tref);
Left := '(';
Right := ')';
elsif Is_Private_Type (Tref)
and then Present (Full_View (Tref))
then
if Is_Access_Type (Full_View (Tref)) then
Tref := Directly_Designated_Type (Full_View (Tref));
Left := '(';
Right := ')';
-- If the full view is an array type, we also retrieve
-- the corresponding component type, because the ali
-- entry already indicates that this is an array.
elsif Is_Array_Type (Full_View (Tref)) then
Tref := Component_Type (Full_View (Tref));
Left := '(';
Right := ')';
end if;
-- If non-derived array, get component type. Skip component
-- type for case of String or Wide_String, saves worthwhile
-- space.
elsif Is_Array_Type (Tref)
and then Tref /= Standard_String
and then Tref /= Standard_Wide_String
then
Tref := Component_Type (Tref);
Left := '(';
Right := ')';
-- For other non-derived base types, nothing
else
exit;
end if;
-- For a subtype, go to ancestor subtype
else
Tref := Ancestor_Subtype (Tref);
-- If no ancestor subtype, go to base type
if No (Tref) then
Tref := Base_Type (Sav);
end if;
end if;
-- For objects, functions, enum literals, just get type from
-- Etype field.
elsif Is_Object (Tref)
or else Ekind (Tref) = E_Enumeration_Literal
or else Ekind (Tref) = E_Function
or else Ekind (Tref) = E_Operator
then
Tref := Etype (Tref);
-- Another special case: an object of a classwide type
-- initialized with a tag-indeterminate call gets a subtype
-- of the classwide type during expansion. See if the original
-- type in the declaration is named, and return it instead
-- of going to the root type. The expression may be a class-
-- wide function call whose result is on the secondary stack,
-- which forces the declaration to be rewritten as a renaming,
-- so examine the source declaration.
if Ekind (Tref) = E_Class_Wide_Subtype then
declare
Decl : constant Node_Id := Original_Node (Parent (Ent));
begin
if Nkind (Decl) = N_Object_Declaration
and then Is_Entity_Name
(Original_Node (Object_Definition (Decl)))
then
Tref :=
Entity (Original_Node (Object_Definition (Decl)));
end if;
end;
-- For a function that returns a class-wide type, Tref is
-- already correct.
elsif Is_Overloadable (Ent)
and then Is_Class_Wide_Type (Tref)
then
return;
end if;
-- For anything else, exit
else
exit;
end if;
-- Exit if no type reference, or we are stuck in some loop trying
-- to find the type reference, or if the type is standard void
-- type (the latter is an implementation artifact that should not
-- show up in the generated cross-references).
exit when No (Tref)
or else Tref = Sav
or else Tref = Standard_Void_Type;
-- If we have a usable type reference, return, otherwise keep
-- looking for something useful (we are looking for something
-- that either comes from source or standard)
if Sloc (Tref) = Standard_Location
or else Comes_From_Source (Tref)
then
-- If the reference is a subtype created for a generic actual,
-- go actual directly, the inner subtype is not user visible.
if Nkind (Parent (Tref)) = N_Subtype_Declaration
and then not Comes_From_Source (Parent (Tref))
and then
(Is_Wrapper_Package (Scope (Tref))
or else Is_Generic_Instance (Scope (Tref)))
then
Tref := First_Subtype (Base_Type (Tref));
end if;
return;
end if;
end loop;
-- If we fall through the loop, no type reference
Tref := Empty;
Left := ' ';
Right := ' ';
end Get_Type_Reference;
-------------------------------
-- Output_Import_Export_Info --
-------------------------------
procedure Output_Import_Export_Info (Ent : Entity_Id) is
Language_Name : Name_Id;
Conv : constant Convention_Id := Convention (Ent);
begin
-- Generate language name from convention
if Conv = Convention_C then
Language_Name := Name_C;
elsif Conv = Convention_CPP then
Language_Name := Name_CPP;
elsif Conv = Convention_Ada then
Language_Name := Name_Ada;
else
-- For the moment we ignore all other cases ???
return;
end if;
Write_Info_Char ('<');
Get_Unqualified_Name_String (Language_Name);
for J in 1 .. Name_Len loop
Write_Info_Char (Name_Buffer (J));
end loop;
if Present (Interface_Name (Ent)) then
Write_Info_Char (',');
String_To_Name_Buffer (Strval (Interface_Name (Ent)));
for J in 1 .. Name_Len loop
Write_Info_Char (Name_Buffer (J));
end loop;
end if;
Write_Info_Char ('>');
end Output_Import_Export_Info;
-- Start of processing for Output_References
begin
-- First we add references to the primitive operations of tagged types
-- declared in the main unit.
Handle_Prim_Ops : declare
Ent : Entity_Id;
begin
for J in 1 .. Xrefs.Last loop
Ent := Xrefs.Table (J).Key.Ent;
if Is_Type (Ent)
and then Is_Tagged_Type (Ent)
and then Is_Base_Type (Ent)
and then In_Extended_Main_Source_Unit (Ent)
then
Generate_Prim_Op_References (Ent);
end if;
end loop;
end Handle_Prim_Ops;
-- Before we go ahead and output the references we have a problem
-- that needs dealing with. So far we have captured things that are
-- definitely referenced by the main unit, or defined in the main
-- unit. That's because we don't want to clutter up the ali file
-- for this unit with definition lines for entities in other units
-- that are not referenced.
-- But there is a glitch. We may reference an entity in another unit,
-- and it may have a type reference to an entity that is not directly
-- referenced in the main unit, which may mean that there is no xref
-- entry for this entity yet in the list of references.
-- If we don't do something about this, we will end with an orphan type
-- reference, i.e. it will point to an entity that does not appear
-- within the generated references in the ali file. That is not good for
-- tools using the xref information.
-- To fix this, we go through the references adding definition entries
-- for any unreferenced entities that can be referenced in a type
-- reference. There is a recursion problem here, and that is dealt with
-- by making sure that this traversal also traverses any entries that
-- get added by the traversal.
Handle_Orphan_Type_References : declare
J : Nat;
Tref : Entity_Id;
Ent : Entity_Id;
L, R : Character;
pragma Warnings (Off, L);
pragma Warnings (Off, R);
procedure New_Entry (E : Entity_Id);
-- Make an additional entry into the Xref table for a type entity
-- that is related to the current entity (parent, type ancestor,
-- progenitor, etc.).
----------------
-- New_Entry --
----------------
procedure New_Entry (E : Entity_Id) is
begin
pragma Assert (Present (E));
if not Has_Xref_Entry (Implementation_Base_Type (E))
and then Sloc (E) > No_Location
then
Add_Entry
((Ent => E,
Loc => No_Location,
Typ => Character'First,
Eun => Get_Source_Unit (Original_Location (Sloc (E))),
Lun => No_Unit,
Ref_Scope => Empty,
Ent_Scope => Empty),
Ent_Scope_File => No_Unit);
end if;
end New_Entry;
-- Start of processing for Handle_Orphan_Type_References
begin
-- Note that this is not a for loop for a very good reason. The
-- processing of items in the table can add new items to the table,
-- and they must be processed as well.
J := 1;
while J <= Xrefs.Last loop
Ent := Xrefs.Table (J).Key.Ent;
-- Do not generate reference information for an ignored Ghost
-- entity because neither the entity nor its references will
-- appear in the final tree.
if Is_Ignored_Ghost_Entity (Ent) then
goto Orphan_Continue;
end if;
Get_Type_Reference (Ent, Tref, L, R);
if Present (Tref)
and then not Has_Xref_Entry (Tref)
and then Sloc (Tref) > No_Location
then
New_Entry (Tref);
if Is_Record_Type (Ent)
and then Present (Interfaces (Ent))
then
-- Add an entry for each one of the given interfaces
-- implemented by type Ent.
declare
Elmt : Elmt_Id := First_Elmt (Interfaces (Ent));
begin
while Present (Elmt) loop
New_Entry (Node (Elmt));
Next_Elmt (Elmt);
end loop;
end;
end if;
end if;
-- Collect inherited primitive operations that may be declared in
-- another unit and have no visible reference in the current one.
if Is_Type (Ent)
and then Is_Tagged_Type (Ent)
and then Is_Derived_Type (Ent)
and then Is_Base_Type (Ent)
and then In_Extended_Main_Source_Unit (Ent)
then
declare
Op_List : constant Elist_Id := Primitive_Operations (Ent);
Op : Elmt_Id;
Prim : Entity_Id;
function Parent_Op (E : Entity_Id) return Entity_Id;
-- Find original operation, which may be inherited through
-- several derivations.
function Parent_Op (E : Entity_Id) return Entity_Id is
Orig_Op : constant Entity_Id := Alias (E);
begin
if No (Orig_Op) then
return Empty;
elsif not Comes_From_Source (E)
and then not Has_Xref_Entry (Orig_Op)
and then Comes_From_Source (Orig_Op)
then
return Orig_Op;
else
return Parent_Op (Orig_Op);
end if;
end Parent_Op;
begin
Op := First_Elmt (Op_List);
while Present (Op) loop
Prim := Parent_Op (Node (Op));
if Present (Prim) then
Add_Entry
((Ent => Prim,
Loc => No_Location,
Typ => Character'First,
Eun => Get_Source_Unit (Sloc (Prim)),
Lun => No_Unit,
Ref_Scope => Empty,
Ent_Scope => Empty),
Ent_Scope_File => No_Unit);
end if;
Next_Elmt (Op);
end loop;
end;
end if;
<<Orphan_Continue>>
J := J + 1;
end loop;
end Handle_Orphan_Type_References;
-- Now we have all the references, including those for any embedded type
-- references, so we can sort them, and output them.
Output_Refs : declare
Nrefs : constant Nat := Xrefs.Last;
-- Number of references in table
Rnums : array (0 .. Nrefs) of Nat;
-- This array contains numbers of references in the Xrefs table.
-- This list is sorted in output order. The extra 0'th entry is
-- convenient for the call to sort. When we sort the table, we
-- move the entries in Rnums around, but we do not move the
-- original table entries.
Curxu : Unit_Number_Type;
-- Current xref unit
Curru : Unit_Number_Type;
-- Current reference unit for one entity
Curent : Entity_Id;
-- Current entity
Curnam : String (1 .. Name_Buffer'Length);
Curlen : Natural;
-- Simple name and length of current entity
Curdef : Source_Ptr;
-- Original source location for current entity
Crloc : Source_Ptr;
-- Current reference location
Ctyp : Character;
-- Entity type character
Prevt : Character;
-- reference kind of previous reference
Tref : Entity_Id;
-- Type reference
Rref : Node_Id;
-- Renaming reference
Trunit : Unit_Number_Type;
-- Unit number for type reference
function Lt (Op1, Op2 : Natural) return Boolean;
-- Comparison function for Sort call
function Name_Change (X : Entity_Id) return Boolean;
-- Determines if entity X has a different simple name from Curent
procedure Move (From : Natural; To : Natural);
-- Move procedure for Sort call
package Sorting is new GNAT.Heap_Sort_G (Move, Lt);
--------
-- Lt --
--------
function Lt (Op1, Op2 : Natural) return Boolean is
T1 : Xref_Entry renames Xrefs.Table (Rnums (Nat (Op1)));
T2 : Xref_Entry renames Xrefs.Table (Rnums (Nat (Op2)));
begin
return Lt (T1, T2);
end Lt;
----------
-- Move --
----------
procedure Move (From : Natural; To : Natural) is
begin
Rnums (Nat (To)) := Rnums (Nat (From));
end Move;
-----------------
-- Name_Change --
-----------------
-- Why a string comparison here??? Why not compare Name_Id values???
function Name_Change (X : Entity_Id) return Boolean is
begin
Get_Unqualified_Name_String (Chars (X));
if Name_Len /= Curlen then
return True;
else
return Name_Buffer (1 .. Curlen) /= Curnam (1 .. Curlen);
end if;
end Name_Change;
-- Start of processing for Output_Refs
begin
-- Capture the definition Sloc values. We delay doing this till now,
-- since at the time the reference or definition is made, private
-- types may be swapped, and the Sloc value may be incorrect. We
-- also set up the pointer vector for the sort.
-- For user-defined operators we need to skip the initial quote and
-- point to the first character of the name, for navigation purposes.
for J in 1 .. Nrefs loop
declare
E : constant Entity_Id := Xrefs.Table (J).Key.Ent;
Loc : constant Source_Ptr := Original_Location (Sloc (E));
begin
Rnums (J) := J;
if Nkind (E) = N_Defining_Operator_Symbol then
Xrefs.Table (J).Def := Loc + 1;
else
Xrefs.Table (J).Def := Loc;
end if;
end;
end loop;
-- Sort the references
Sorting.Sort (Integer (Nrefs));
-- Initialize loop through references
Curxu := No_Unit;
Curent := Empty;
Curdef := No_Location;
Curru := No_Unit;
Crloc := No_Location;
Prevt := 'm';
-- Loop to output references
for Refno in 1 .. Nrefs loop
Output_One_Ref : declare
Ent : Entity_Id;
XE : Xref_Entry renames Xrefs.Table (Rnums (Refno));
-- The current entry to be accessed
Left : Character;
Right : Character;
-- Used for {} or <> or () for type reference
procedure Check_Type_Reference
(Ent : Entity_Id;
List_Interface : Boolean;
Is_Component : Boolean := False);
-- Find whether there is a meaningful type reference for
-- Ent, and display it accordingly. If List_Interface is
-- true, then Ent is a progenitor interface of the current
-- type entity being listed. In that case list it as is,
-- without looking for a type reference for it. Flag is also
-- used for index types of an array type, where the caller
-- supplies the intended type reference. Is_Component serves
-- the same purpose, to display the component type of a
-- derived array type, for which only the parent type has
-- ben displayed so far.
procedure Output_Instantiation_Refs (Loc : Source_Ptr);
-- Recursive procedure to output instantiation references for
-- the given source ptr in [file|line[...]] form. No output
-- if the given location is not a generic template reference.
procedure Output_Overridden_Op (Old_E : Entity_Id);
-- For a subprogram that is overriding, display information
-- about the inherited operation that it overrides.
--------------------------
-- Check_Type_Reference --
--------------------------
procedure Check_Type_Reference
(Ent : Entity_Id;
List_Interface : Boolean;
Is_Component : Boolean := False)
is
begin
if List_Interface then
-- This is a progenitor interface of the type for which
-- xref information is being generated.
Tref := Ent;
Left := '<';
Right := '>';
-- The following is not documented in lib-xref.ads ???
elsif Is_Component then
Tref := Ent;
Left := '(';
Right := ')';
else
Get_Type_Reference (Ent, Tref, Left, Right);
end if;
if Present (Tref) then
-- Case of standard entity, output name
if Sloc (Tref) = Standard_Location then
Write_Info_Char (Left);
Write_Info_Name (Chars (Tref));
Write_Info_Char (Right);
-- Case of source entity, output location
else
Write_Info_Char (Left);
Trunit := Get_Source_Unit (Sloc (Tref));
if Trunit /= Curxu then
Write_Info_Nat (Dependency_Num (Trunit));
Write_Info_Char ('|');
end if;
Write_Info_Nat
(Int (Get_Logical_Line_Number (Sloc (Tref))));
declare
Ent : Entity_Id;
Ctyp : Character;
begin
Ent := Tref;
Ctyp := Xref_Entity_Letters (Ekind (Ent));
if Ctyp = '+'
and then Present (Full_View (Ent))
then
Ent := Underlying_Type (Ent);
if Present (Ent) then
Ctyp := Xref_Entity_Letters (Ekind (Ent));
end if;
end if;
Write_Info_Char (Ctyp);
end;
Write_Info_Nat
(Int (Get_Column_Number (Sloc (Tref))));
-- If the type comes from an instantiation, add the
-- corresponding info.
Output_Instantiation_Refs (Sloc (Tref));
Write_Info_Char (Right);
end if;
end if;
end Check_Type_Reference;
-------------------------------
-- Output_Instantiation_Refs --
-------------------------------
procedure Output_Instantiation_Refs (Loc : Source_Ptr) is
Iloc : constant Source_Ptr := Instantiation_Location (Loc);
Lun : Unit_Number_Type;
Cu : constant Unit_Number_Type := Curru;
begin
-- Nothing to do if this is not an instantiation
if Iloc = No_Location then
return;
end if;
-- Output instantiation reference
Write_Info_Char ('[');
Lun := Get_Source_Unit (Iloc);
if Lun /= Curru then
Curru := Lun;
Write_Info_Nat (Dependency_Num (Curru));
Write_Info_Char ('|');
end if;
Write_Info_Nat (Int (Get_Logical_Line_Number (Iloc)));
-- Recursive call to get nested instantiations
Output_Instantiation_Refs (Iloc);
-- Output final ] after call to get proper nesting
Write_Info_Char (']');
Curru := Cu;
return;
end Output_Instantiation_Refs;
--------------------------
-- Output_Overridden_Op --
--------------------------
procedure Output_Overridden_Op (Old_E : Entity_Id) is
Op : Entity_Id;
begin
-- The overridden operation has an implicit declaration
-- at the point of derivation. What we want to display
-- is the original operation, which has the actual body
-- (or abstract declaration) that is being overridden.
-- The overridden operation is not always set, e.g. when
-- it is a predefined operator.
if No (Old_E) then
return;
-- Follow alias chain if one is present
elsif Present (Alias (Old_E)) then
-- The subprogram may have been implicitly inherited
-- through several levels of derivation, so find the
-- ultimate (source) ancestor.
Op := Ultimate_Alias (Old_E);
-- Normal case of no alias present. We omit generated
-- primitives like tagged equality, that have no source
-- representation.
else
Op := Old_E;
end if;
if Present (Op)
and then Sloc (Op) /= Standard_Location
and then Comes_From_Source (Op)
then
declare
Loc : constant Source_Ptr := Sloc (Op);
Par_Unit : constant Unit_Number_Type :=
Get_Source_Unit (Loc);
begin
Write_Info_Char ('<');
if Par_Unit /= Curxu then
Write_Info_Nat (Dependency_Num (Par_Unit));
Write_Info_Char ('|');
end if;
Write_Info_Nat (Int (Get_Logical_Line_Number (Loc)));
Write_Info_Char ('p');
Write_Info_Nat (Int (Get_Column_Number (Loc)));
Write_Info_Char ('>');
end;
end if;
end Output_Overridden_Op;
-- Start of processing for Output_One_Ref
begin
Ent := XE.Key.Ent;
-- Do not generate reference information for an ignored Ghost
-- entity because neither the entity nor its references will
-- appear in the final tree.
if Is_Ignored_Ghost_Entity (Ent) then
goto Continue;
end if;
Ctyp := Xref_Entity_Letters (Ekind (Ent));
-- Skip reference if it is the only reference to an entity,
-- and it is an END line reference, and the entity is not in
-- the current extended source. This prevents junk entries
-- consisting only of packages with END lines, where no
-- entity from the package is actually referenced.
if XE.Key.Typ = 'e'
and then Ent /= Curent
and then (Refno = Nrefs
or else
Ent /= Xrefs.Table (Rnums (Refno + 1)).Key.Ent)
and then not In_Extended_Main_Source_Unit (Ent)
then
goto Continue;
end if;
-- For private type, get full view type
if Ctyp = '+'
and then Present (Full_View (XE.Key.Ent))
then
Ent := Underlying_Type (Ent);
if Present (Ent) then
Ctyp := Xref_Entity_Letters (Ekind (Ent));
end if;
end if;
-- Special exception for Boolean
if Ctyp = 'E' and then Is_Boolean_Type (Ent) then
Ctyp := 'B';
end if;
-- For variable reference, get corresponding type
if Ctyp = '*' then
Ent := Etype (XE.Key.Ent);
Ctyp := Fold_Lower (Xref_Entity_Letters (Ekind (Ent)));
-- If variable is private type, get full view type
if Ctyp = '+'
and then Present (Full_View (Etype (XE.Key.Ent)))
then
Ent := Underlying_Type (Etype (XE.Key.Ent));
if Present (Ent) then
Ctyp := Fold_Lower (Xref_Entity_Letters (Ekind (Ent)));
end if;
elsif Is_Generic_Type (Ent) then
-- If the type of the entity is a generic private type,
-- there is no usable full view, so retain the indication
-- that this is an object.
Ctyp := '*';
end if;
-- Special handling for access parameters and objects and
-- components of an anonymous access type.
if Ekind_In (Etype (XE.Key.Ent),
E_Anonymous_Access_Type,
E_Anonymous_Access_Subprogram_Type,
E_Anonymous_Access_Protected_Subprogram_Type)
then
if Is_Formal (XE.Key.Ent)
or else
Ekind_In
(XE.Key.Ent, E_Variable, E_Constant, E_Component)
then
Ctyp := 'p';
end if;
-- Special handling for Boolean
elsif Ctyp = 'e' and then Is_Boolean_Type (Ent) then
Ctyp := 'b';
end if;
end if;
-- Special handling for abstract types and operations
if Is_Overloadable (XE.Key.Ent)
and then Is_Abstract_Subprogram (XE.Key.Ent)
then
if Ctyp = 'U' then
Ctyp := 'x'; -- Abstract procedure
elsif Ctyp = 'V' then
Ctyp := 'y'; -- Abstract function
end if;
elsif Is_Type (XE.Key.Ent)
and then Is_Abstract_Type (XE.Key.Ent)
then
if Is_Interface (XE.Key.Ent) then
Ctyp := 'h';
elsif Ctyp = 'R' then
Ctyp := 'H'; -- Abstract type
end if;
end if;
-- Only output reference if interesting type of entity
if Ctyp = ' '
-- Suppress references to object definitions, used for local
-- references.
or else XE.Key.Typ = 'D'
or else XE.Key.Typ = 'I'
-- Suppress self references, except for bodies that act as
-- specs.
or else (XE.Key.Loc = XE.Def
and then
(XE.Key.Typ /= 'b'
or else not Is_Subprogram (XE.Key.Ent)))
-- Also suppress definitions of body formals (we only
-- treat these as references, and the references were
-- separately recorded).
or else (Is_Formal (XE.Key.Ent)
and then Present (Spec_Entity (XE.Key.Ent)))
then
null;
else
-- Start new Xref section if new xref unit
if XE.Key.Eun /= Curxu then
if Write_Info_Col > 1 then
Write_Info_EOL;
end if;
Curxu := XE.Key.Eun;
Write_Info_Initiate ('X');
Write_Info_Char (' ');
Write_Info_Nat (Dependency_Num (XE.Key.Eun));
Write_Info_Char (' ');
Write_Info_Name
(Reference_Name (Source_Index (XE.Key.Eun)));
end if;
-- Start new Entity line if new entity. Note that we
-- consider two entities the same if they have the same
-- name and source location. This causes entities in
-- instantiations to be treated as though they referred
-- to the template.
if No (Curent)
or else
(XE.Key.Ent /= Curent
and then
(Name_Change (XE.Key.Ent) or else XE.Def /= Curdef))
then
Curent := XE.Key.Ent;
Curdef := XE.Def;
Get_Unqualified_Name_String (Chars (XE.Key.Ent));
Curlen := Name_Len;
Curnam (1 .. Curlen) := Name_Buffer (1 .. Curlen);
if Write_Info_Col > 1 then
Write_Info_EOL;
end if;
-- Write column number information
Write_Info_Nat (Int (Get_Logical_Line_Number (XE.Def)));
Write_Info_Char (Ctyp);
Write_Info_Nat (Int (Get_Column_Number (XE.Def)));
-- Write level information
Write_Level_Info : declare
function Is_Visible_Generic_Entity
(E : Entity_Id) return Boolean;
-- Check whether E is declared in the visible part
-- of a generic package. For source navigation
-- purposes, treat this as a visible entity.
function Is_Private_Record_Component
(E : Entity_Id) return Boolean;
-- Check whether E is a non-inherited component of a
-- private extension. Even if the enclosing record is
-- public, we want to treat the component as private
-- for navigation purposes.
---------------------------------
-- Is_Private_Record_Component --
---------------------------------
function Is_Private_Record_Component
(E : Entity_Id) return Boolean
is
S : constant Entity_Id := Scope (E);
begin
return
Ekind (E) = E_Component
and then Nkind (Declaration_Node (S)) =
N_Private_Extension_Declaration
and then Original_Record_Component (E) = E;
end Is_Private_Record_Component;
-------------------------------
-- Is_Visible_Generic_Entity --
-------------------------------
function Is_Visible_Generic_Entity
(E : Entity_Id) return Boolean
is
Par : Node_Id;
begin
-- The Present check here is an error defense
if Present (Scope (E))
and then Ekind (Scope (E)) /= E_Generic_Package
then
return False;
end if;
Par := Parent (E);
while Present (Par) loop
if
Nkind (Par) = N_Generic_Package_Declaration
then
-- Entity is a generic formal
return False;
elsif
Nkind (Parent (Par)) = N_Package_Specification
then
return
Is_List_Member (Par)
and then List_Containing (Par) =
Visible_Declarations (Parent (Par));
else
Par := Parent (Par);
end if;
end loop;
return False;
end Is_Visible_Generic_Entity;
-- Start of processing for Write_Level_Info
begin
if Is_Hidden (Curent)
or else Is_Private_Record_Component (Curent)
then
Write_Info_Char (' ');
elsif
Is_Public (Curent)
or else Is_Visible_Generic_Entity (Curent)
then
Write_Info_Char ('*');
else
Write_Info_Char (' ');
end if;
end Write_Level_Info;
-- Output entity name. We use the occurrence from the
-- actual source program at the definition point.
declare
Ent_Name : constant String :=
Exact_Source_Name (Sloc (XE.Key.Ent));
begin
for C in Ent_Name'Range loop
Write_Info_Char (Ent_Name (C));
end loop;
end;
-- See if we have a renaming reference
if Is_Object (XE.Key.Ent)
and then Present (Renamed_Object (XE.Key.Ent))
then
Rref := Renamed_Object (XE.Key.Ent);
elsif Is_Overloadable (XE.Key.Ent)
and then Nkind (Parent (Declaration_Node (XE.Key.Ent)))
= N_Subprogram_Renaming_Declaration
then
Rref := Name (Parent (Declaration_Node (XE.Key.Ent)));
elsif Ekind (XE.Key.Ent) = E_Package
and then Nkind (Declaration_Node (XE.Key.Ent)) =
N_Package_Renaming_Declaration
then
Rref := Name (Declaration_Node (XE.Key.Ent));
else
Rref := Empty;
end if;
if Present (Rref) then
if Nkind (Rref) = N_Expanded_Name then
Rref := Selector_Name (Rref);
end if;
if Nkind (Rref) = N_Identifier
or else Nkind (Rref) = N_Operator_Symbol
then
null;
-- For renamed array components, use the array name
-- for the renamed entity, which reflect the fact that
-- in general the whole array is aliased.
elsif Nkind (Rref) = N_Indexed_Component then
if Nkind (Prefix (Rref)) = N_Identifier then
Rref := Prefix (Rref);
elsif Nkind (Prefix (Rref)) = N_Expanded_Name then
Rref := Selector_Name (Prefix (Rref));
else
Rref := Empty;
end if;
else
Rref := Empty;
end if;
end if;
-- Write out renaming reference if we have one
if Present (Rref) then
Write_Info_Char ('=');
Write_Info_Nat
(Int (Get_Logical_Line_Number (Sloc (Rref))));
Write_Info_Char (':');
Write_Info_Nat
(Int (Get_Column_Number (Sloc (Rref))));
end if;
-- Indicate that the entity is in the unit of the current
-- xref section.
Curru := Curxu;
-- Write out information about generic parent, if entity
-- is an instance.
if Is_Generic_Instance (XE.Key.Ent) then
declare
Gen_Par : constant Entity_Id :=
Generic_Parent
(Specification
(Unit_Declaration_Node
(XE.Key.Ent)));
Loc : constant Source_Ptr := Sloc (Gen_Par);
Gen_U : constant Unit_Number_Type :=
Get_Source_Unit (Loc);
begin
Write_Info_Char ('[');
if Curru /= Gen_U then
Write_Info_Nat (Dependency_Num (Gen_U));
Write_Info_Char ('|');
end if;
Write_Info_Nat
(Int (Get_Logical_Line_Number (Loc)));
Write_Info_Char (']');
end;
end if;
-- See if we have a type reference and if so output
Check_Type_Reference (XE.Key.Ent, False);
-- Additional information for types with progenitors,
-- including synchronized tagged types.
declare
Typ : constant Entity_Id := XE.Key.Ent;
Elmt : Elmt_Id;
begin
if Is_Record_Type (Typ)
and then Present (Interfaces (Typ))
then
Elmt := First_Elmt (Interfaces (Typ));
elsif Is_Concurrent_Type (Typ)
and then Present (Corresponding_Record_Type (Typ))
and then Present (
Interfaces (Corresponding_Record_Type (Typ)))
then
Elmt :=
First_Elmt (
Interfaces (Corresponding_Record_Type (Typ)));
else
Elmt := No_Elmt;
end if;
while Present (Elmt) loop
Check_Type_Reference (Node (Elmt), True);
Next_Elmt (Elmt);
end loop;
end;
-- For array types, list index types as well. (This is
-- not C, indexes have distinct types).
if Is_Array_Type (XE.Key.Ent) then
declare
A_Typ : constant Entity_Id := XE.Key.Ent;
Indx : Node_Id;
begin
-- If this is a derived array type, we have
-- output the parent type, so add the component
-- type now.
if Is_Derived_Type (A_Typ) then
Check_Type_Reference
(Component_Type (A_Typ), False, True);
end if;
-- Add references to index types.
Indx := First_Index (XE.Key.Ent);
while Present (Indx) loop
Check_Type_Reference
(First_Subtype (Etype (Indx)), True);
Next_Index (Indx);
end loop;
end;
end if;
-- If the entity is an overriding operation, write info
-- on operation that was overridden.
if Is_Subprogram (XE.Key.Ent)
and then Present (Overridden_Operation (XE.Key.Ent))
then
Output_Overridden_Op
(Overridden_Operation (XE.Key.Ent));
end if;
-- End of processing for entity output
Crloc := No_Location;
end if;
-- Output the reference if it is not as the same location
-- as the previous one, or it is a read-reference that
-- indicates that the entity is an in-out actual in a call.
if XE.Key.Loc /= No_Location
and then
(XE.Key.Loc /= Crloc
or else (Prevt = 'm' and then XE.Key.Typ = 'r'))
then
Crloc := XE.Key.Loc;
Prevt := XE.Key.Typ;
-- Start continuation if line full, else blank
if Write_Info_Col > 72 then
Write_Info_EOL;
Write_Info_Initiate ('.');
end if;
Write_Info_Char (' ');
-- Output file number if changed
if XE.Key.Lun /= Curru then
Curru := XE.Key.Lun;
Write_Info_Nat (Dependency_Num (Curru));
Write_Info_Char ('|');
end if;
Write_Info_Nat
(Int (Get_Logical_Line_Number (XE.Key.Loc)));
Write_Info_Char (XE.Key.Typ);
if Is_Overloadable (XE.Key.Ent) then
if (Is_Imported (XE.Key.Ent) and then XE.Key.Typ = 'b')
or else
(Is_Exported (XE.Key.Ent) and then XE.Key.Typ = 'i')
then
Output_Import_Export_Info (XE.Key.Ent);
end if;
end if;
Write_Info_Nat (Int (Get_Column_Number (XE.Key.Loc)));
Output_Instantiation_Refs (Sloc (XE.Key.Ent));
end if;
end if;
end Output_One_Ref;
<<Continue>>
null;
end loop;
Write_Info_EOL;
end Output_Refs;
end Output_References;
---------------------------------
-- Process_Deferred_References --
---------------------------------
procedure Process_Deferred_References is
begin
for J in Deferred_References.First .. Deferred_References.Last loop
declare
D : Deferred_Reference_Entry renames Deferred_References.Table (J);
begin
case Is_LHS (D.N) is
when Yes =>
Generate_Reference (D.E, D.N, 'm');
when No =>
Generate_Reference (D.E, D.N, 'r');
-- Not clear if Unknown can occur at this stage, but if it
-- does we will treat it as a normal reference.
when Unknown =>
Generate_Reference (D.E, D.N, 'r');
end case;
end;
end loop;
-- Clear processed entries from table
Deferred_References.Init;
end Process_Deferred_References;
-- Start of elaboration for Lib.Xref
begin
-- Reset is necessary because Elmt_Ptr does not default to Null_Ptr,
-- because it's not an access type.
Xref_Set.Reset;
end Lib.Xref;
| 35.769876 | 79 | 0.503043 |
39d055d292a634650b5d110eca5b5d8a8a05921e | 17,487 | adb | Ada | src/servlet-responses.adb | jquorning/ada-servlet | 97db5fcdd59e01441c717b95a9e081aa7d6a7bbe | [
"Apache-2.0"
] | 6 | 2018-01-04T07:19:46.000Z | 2020-12-27T14:49:44.000Z | src/servlet-responses.adb | jquorning/ada-servlet | 97db5fcdd59e01441c717b95a9e081aa7d6a7bbe | [
"Apache-2.0"
] | 9 | 2020-12-20T15:29:18.000Z | 2022-02-04T20:13:58.000Z | src/servlet-responses.adb | jquorning/ada-servlet | 97db5fcdd59e01441c717b95a9e081aa7d6a7bbe | [
"Apache-2.0"
] | 2 | 2021-01-06T08:32:38.000Z | 2022-01-24T23:46:36.000Z | -----------------------------------------------------------------------
-- servlet-responses -- Servlet Responses
-- Copyright (C) 2010, 2011, 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 Util.Strings;
with Util.Dates.RFC7231;
package body Servlet.Responses is
-- Returns the name of the character encoding (MIME charset) used for the body
-- sent in this response. The character encoding may have been specified explicitly
-- using the setCharacterEncoding(String) or setContentType(String) methods,
-- or implicitly using the setLocale(java.util.Locale) method. Explicit
-- specifications take precedence over implicit specifications. Calls made
-- to these methods after getWriter has been called or after the response has
-- been committed have no effect on the character encoding. If no character
-- encoding has been specified, ISO-8859-1 is returned.
function Get_Character_Encoding (Resp : in Response) return String is
pragma Unreferenced (Resp);
begin
return "";
end Get_Character_Encoding;
-- ------------------------------
-- Returns the content type used for the MIME body sent in this response.
-- The content type proper must have been specified using
-- setContentType(String) before the response is committed. If no content type
-- has been specified, this method returns null. If a content type has been
-- specified, and a character encoding has been explicitly or implicitly specified
-- as described in getCharacterEncoding() or getWriter() has been called,
-- the charset parameter is included in the string returned. If no character
-- encoding has been specified, the charset parameter is omitted.
-- ------------------------------
function Get_Content_Type (Resp : in Response) return String is
begin
return Ada.Strings.Unbounded.To_String (Resp.Content_Type);
end Get_Content_Type;
-- Sets the character encoding (MIME charset) of the response being sent to the
-- client, for example, to UTF-8. If the character encoding has already been
-- set by setContentType(java.lang.String) or setLocale(java.util.Locale),
-- this method overrides it. Calling setContentType(java.lang.String) with the
-- String of text/html and calling this method with the String of UTF-8 is
-- equivalent with calling setContentType with the String of text/html; charset=UTF-8.
--
-- This method can be called repeatedly to change the character encoding.
-- This method has no effect if it is called after getWriter has been called or
-- after the response has been committed.
--
-- Containers must communicate the character encoding used for the servlet
-- response's writer to the client if the protocol provides a way for doing so.
-- In the case of HTTP, the character encoding is communicated as part of the
-- Content-Type header for text media types. Note that the character encoding
-- cannot be communicated via HTTP headers if the servlet does not specify
-- a content type; however, it is still used to encode text written via the servlet
-- response's writer.
procedure Set_Character_Encoding (Resp : in out Response;
Encoding : in String) is
pragma Unreferenced (Encoding, Resp);
begin
null;
end Set_Character_Encoding;
-- ------------------------------
-- Sets the length of the content body in the response In HTTP servlets,
-- this method sets the HTTP Content-Length header.
-- ------------------------------
procedure Set_Content_Length (Resp : in out Response;
Length : in Integer) is
begin
Response'Class (Resp).Set_Header ("Content-Length", Util.Strings.Image (Length));
end Set_Content_Length;
-- ------------------------------
-- Sets the content type of the response being sent to the client, if the response
-- has not been committed yet. The given content type may include a character
-- encoding specification, for example, text/html;charset=UTF-8. The response's
-- character encoding is only set from the given content type if this method is
-- called before getWriter is called.
--
-- This method may be called repeatedly to change content type and character
-- encoding. This method has no effect if called after the response has been
-- committed. It does not set the response's character encoding if it is called
-- after getWriter has been called or after the response has been committed.
--
-- Containers must communicate the content type and the character encoding used
-- for the servlet response's writer to the client if the protocol provides a way
-- for doing so. In the case of HTTP, the Content-Type header is used.
-- ------------------------------
procedure Set_Content_Type (Resp : in out Response;
Content : in String) is
begin
Resp.Content_Type := Ada.Strings.Unbounded.To_Unbounded_String (Content);
end Set_Content_Type;
-- ------------------------------
-- Returns a boolean indicating if the response has been committed.
-- A committed response has already had its status code and headers written.
-- ------------------------------
function Is_Committed (Resp : in Response) return Boolean is
begin
return Resp.Committed or else Resp.Stream.Get_Size > 0;
end Is_Committed;
-- ------------------------------
-- Sets the locale of the response, if the response has not been committed yet.
-- It also sets the response's character encoding appropriately for the locale,
-- if the character encoding has not been explicitly set using
-- setContentType(java.lang.String) or setCharacterEncoding(java.lang.String),
-- getWriter hasn't been called yet, and the response hasn't been committed yet.
-- If the deployment descriptor contains a locale-encoding-mapping-list element,
-- and that element provides a mapping for the given locale, that mapping is used.
-- Otherwise, the mapping from locale to character encoding is container dependent.
--
-- This method may be called repeatedly to change locale and character encoding.
-- The method has no effect if called after the response has been committed.
-- It does not set the response's character encoding if it is called after
-- setContentType(java.lang.String) has been called with a charset specification,
-- after setCharacterEncoding(java.lang.String) has been called,
-- after getWriter has been called, or after the response has been committed.
--
-- Containers must communicate the locale and the character encoding used for
-- the servlet response's writer to the client if the protocol provides a way
-- for doing so. In the case of HTTP, the locale is communicated via the
-- Content-Language header, the character encoding as part of the Content-Type
-- header for text media types. Note that the character encoding cannot be
-- communicated via HTTP headers if the servlet does not specify a content type;
-- however, it is still used to encode text written via the servlet response's writer.
-- ------------------------------
procedure Set_Locale (Resp : in out Response;
Loc : in Util.Locales.Locale) is
begin
Resp.Locale := Loc;
end Set_Locale;
-- ------------------------------
-- Returns the locale specified for this response using the
-- setLocale(java.util.Locale) method. Calls made to setLocale after the
-- response is committed have no effect. If no locale has been specified,
-- the container's default locale is returned.
-- ------------------------------
function Get_Locale (Resp : in Response) return Util.Locales.Locale is
begin
return Resp.Locale;
end Get_Locale;
-- ------------------------------
-- Adds the specified cookie to the response. This method can be called multiple
-- times to set more than one cookie.
-- ------------------------------
procedure Add_Cookie (Resp : in out Response;
Cookie : in Servlet.Cookies.Cookie) is
begin
Response'Class (Resp).Add_Header (Name => "Set-Cookie",
Value => Servlet.Cookies.To_Http_Header (Cookie));
end Add_Cookie;
-- Encodes the specified URL by including the session ID in it, or, if encoding
-- is not needed, returns the URL unchanged. The implementation of this method
-- includes the logic to determine whether the session ID needs to be encoded
-- in the URL. For example, if the browser supports cookies, or session tracking
-- is turned off, URL encoding is unnecessary.
--
-- For robust session tracking, all URLs emitted by a servlet should be run through
-- this method. Otherwise, URL rewriting cannot be used with browsers which do not
-- support cookies.
function Encode_URL (Resp : in Response;
URL : in String) return String is
pragma Unreferenced (Resp);
begin
return URL;
end Encode_URL;
-- Encodes the specified URL for use in the sendRedirect method or, if encoding
-- is not needed, returns the URL unchanged. The implementation of this method
-- includes the logic to determine whether the session ID needs to be encoded
-- in the URL. Because the rules for making this determination can differ from
-- those used to decide whether to encode a normal link, this method is separated
-- from the encodeURL method.
--
-- All URLs sent to the HttpServletResponse.sendRedirect method should be run
-- through this method. Otherwise, URL rewriting cannot be used with browsers
-- which do not support cookies.
function Encode_Redirect_URL (Resp : in Response;
URL : in String) return String is
pragma Unreferenced (Resp);
begin
return URL;
end Encode_Redirect_URL;
-- ------------------------------
-- Sends an error response to the client using the specified status. The server
-- defaults to creating the response to look like an HTML-formatted server error
-- page containing the specified message, setting the content type to "text/html",
-- leaving cookies and other headers unmodified. If an error-page declaration
-- has been made for the web application corresponding to the status code passed
-- in, it will be served back in preference to the suggested msg parameter.
--
-- If the response has already been committed, this method throws an
-- IllegalStateException. After using this method, the response should be
-- considered to be committed and should not be written to.
-- ------------------------------
procedure Send_Error (Resp : in out Response;
Error : in Integer;
Message : in String) is
pragma Unreferenced (Message);
begin
Resp.Status := Error;
end Send_Error;
-- Sends an error response to the client using the specified status code
-- and clearing the buffer.
--
-- If the response has already been committed, this method throws an
-- IllegalStateException. After using this method, the response should be
-- considered to be committed and should not be written to.
procedure Send_Error (Resp : in out Response;
Error : in Integer) is
begin
Resp.Status := Error;
end Send_Error;
-- ------------------------------
-- Sends a temporary redirect response to the client using the specified redirect
-- location URL. This method can accept relative URLs; the servlet container must
-- convert the relative URL to an absolute URL before sending the response to the
-- client. If the location is relative without a leading '/' the container
-- interprets it as relative to the current request URI. If the location is relative
-- with a leading '/' the container interprets it as relative to the servlet
-- container root.
--
-- If the response has already been committed, this method throws an
-- IllegalStateException. After using this method, the response should be
-- considered to be committed and should not be written to.
-- ------------------------------
procedure Send_Redirect (Resp : in out Response;
Location : in String) is
begin
Response'Class (Resp).Set_Status (SC_FOUND);
Response'Class (Resp).Set_Header (Name => "Location",
Value => Location);
end Send_Redirect;
-- ------------------------------
-- Sets a response header with the given name and date-value.
-- The date is specified in terms of milliseconds since the epoch.
-- If the header had already been set, the new value overwrites the previous one.
-- The containsHeader method can be used to test for the presence of a header
-- before setting its value.
-- ------------------------------
procedure Set_Date_Header (Resp : in out Response;
Name : in String;
Date : in Ada.Calendar.Time) is
begin
Response'Class (Resp).Set_Header (Name, Util.Dates.RFC7231.Image (Date));
end Set_Date_Header;
-- ------------------------------
-- Adds a response header with the given name and date-value. The date is specified
-- in terms of milliseconds since the epoch. This method allows response headers
-- to have multiple values.
-- ------------------------------
procedure Add_Date_Header (Resp : in out Response;
Name : in String;
Date : in Ada.Calendar.Time) is
begin
Response'Class (Resp).Add_Header (Name, Util.Dates.RFC7231.Image (Date));
end Add_Date_Header;
-- ------------------------------
-- Sets a response header with the given name and integer value.
-- If the header had already been set, the new value overwrites the previous one.
-- The containsHeader method can be used to test for the presence of a header
-- before setting its value.
-- ------------------------------
procedure Set_Int_Header (Resp : in out Response;
Name : in String;
Value : in Integer) is
begin
Response'Class (Resp).Set_Header (Name => Name,
Value => Util.Strings.Image (Value));
end Set_Int_Header;
-- ------------------------------
-- Adds a response header with the given name and integer value. This method
-- allows response headers to have multiple values.
-- ------------------------------
procedure Add_Int_Header (Resp : in out Response;
Name : in String;
Value : in Integer) is
begin
Response'Class (Resp).Add_Header (Name => Name,
Value => Util.Strings.Image (Value));
end Add_Int_Header;
-- ------------------------------
-- Sets the status code for this response. This method is used to set the
-- return status code when there is no error (for example, for the status
-- codes SC_OK or SC_MOVED_TEMPORARILY). If there is an error, and the caller
-- wishes to invoke an error-page defined in the web application, the sendError
-- method should be used instead.
--
-- The container clears the buffer and sets the Location header,
-- preserving cookies and other headers.
-- ------------------------------
procedure Set_Status (Resp : in out Response;
Status : in Natural) is
begin
Resp.Status := Status;
end Set_Status;
-- ------------------------------
-- Get the status code that will be returned by this response.
-- ------------------------------
function Get_Status (Resp : in Response) return Natural is
begin
return Resp.Status;
end Get_Status;
-- ------------------------------
-- Get the output stream
-- ------------------------------
function Get_Output_Stream (Resp : in Response) return Servlet.Streams.Print_Stream is
begin
return Result : Servlet.Streams.Print_Stream do
Result.Initialize (Resp.Stream.all'Access);
end return;
end Get_Output_Stream;
-- ------------------------------
-- Mark the response as being committed.
-- ------------------------------
procedure Set_Committed (Resp : in out Response) is
begin
Resp.Committed := True;
end Set_Committed;
end Servlet.Responses;
| 49.398305 | 90 | 0.634185 |
1220d1ab36da9ff4db026b070bf7c0d82f0b7934 | 68,187 | ads | Ada | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-registers.ads | fabiojna02/OpenCellular | 45b6a202d6b2e2485c89955b9a6da920c4d56ddb | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1 | 2019-02-05T09:50:07.000Z | 2019-02-05T09:50:07.000Z | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-registers.ads | 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/libgfxinit/common/hw-gfx-gma-registers.ads | aimin-wang/OpenCellular | 5308146bf7edf43cc81c0e4d15305b711117070a | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | --
-- Copyright (C) 2015-2017 secunet Security Networks AG
--
-- 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 System;
with HW.GFX.GMA;
private package HW.GFX.GMA.Registers
with
Abstract_State =>
((Address_State with Part_Of => GMA.State),
(Register_State with External, Part_Of => GMA.Device_State),
(GTT_State with External, Part_Of => GMA.Device_State)),
Initializes => Address_State
is
type Registers_Invalid_Index is
(Invalid_Register, -- Allow a placeholder when access is not acceptable
RCS_RING_BUFFER_TAIL,
RCS_RING_BUFFER_HEAD,
RCS_RING_BUFFER_STRT,
RCS_RING_BUFFER_CTL,
QUIRK_02084,
QUIRK_02090,
HWSTAM,
MI_MODE,
INSTPM,
GT_MODE,
CACHE_MODE_0,
CTX_SIZE,
PP_DCLV_HIGH,
PP_DCLV_LOW,
GFX_MODE,
ARB_MODE,
HWS_PGA,
GAM_ECOCHK,
GMCH_GMBUS0,
GMCH_GMBUS1,
GMCH_GMBUS2,
GMCH_GMBUS3,
GMCH_GMBUS4,
GMCH_GMBUS5,
GMCH_DPLL_A,
GMCH_DPLL_B,
GMCH_FPA0,
GMCH_FPA1,
GMCH_FPB0,
GMCH_FPB1,
MBCTL,
UCGCTL1,
UCGCTL2,
GMCH_CLKCFG,
VCS_RING_BUFFER_TAIL,
VCS_RING_BUFFER_HEAD,
VCS_RING_BUFFER_STRT,
VCS_RING_BUFFER_CTL,
SLEEP_PSMI_CONTROL,
VCS_HWSTAM,
VCS_PP_DCLV_HIGH,
VCS_PP_DCLV_LOW,
GAC_ECO_BITS,
BCS_RING_BUFFER_TAIL,
BCS_RING_BUFFER_HEAD,
BCS_RING_BUFFER_STRT,
BCS_RING_BUFFER_CTL,
BCS_HWSTAM,
BCS_PP_DCLV_HIGH,
BCS_PP_DCLV_LOW,
GAB_CTL_REG,
CPU_VGACNTRL,
FUSE_STATUS,
ILK_DISPLAY_CHICKEN2,
DSPCLK_GATE_D,
FBA_CFB_BASE,
FBC_CTL,
IPS_CTL,
DEISR,
DEIMR,
DEIIR,
DEIER,
GTISR,
GTIMR,
GTIIR,
GTIER,
IIR,
HOTPLUG_CTL,
ARB_CTL,
DBUF_CTL,
WM_PIPE_A,
WM_PIPE_B,
WM1_LP_ILK,
WM2_LP_ILK,
WM3_LP_ILK,
WM_PIPE_C,
WM_LINETIME_A,
WM_LINETIME_B,
WM_LINETIME_C,
PWR_WELL_CTL_BIOS,
PWR_WELL_CTL_DRIVER,
PWR_WELL_CTL_KVMR,
PWR_WELL_CTL_DEBUG,
PWR_WELL_CTL5,
PWR_WELL_CTL6,
CDCLK_CTL,
LCPLL1_CTL,
LCPLL2_CTL,
SPLL_CTL,
WRPLL_CTL_1,
WRPLL_CTL_2,
BXT_DE_PLL_ENABLE,
BXT_PORT_PLL_ENABLE_A,
BXT_PORT_PLL_ENABLE_B,
BXT_PORT_PLL_ENABLE_C,
PORT_CLK_SEL_DDIA,
PORT_CLK_SEL_DDIB,
PORT_CLK_SEL_DDIC,
PORT_CLK_SEL_DDID,
PORT_CLK_SEL_DDIE,
TRANSA_CLK_SEL,
TRANSB_CLK_SEL,
TRANSC_CLK_SEL,
NDE_RSTWRN_OPT,
BLC_PWM_CPU_CTL2,
BLC_PWM_CPU_CTL,
HTOTAL_A,
HBLANK_A,
HSYNC_A,
VTOTAL_A,
VBLANK_A,
VSYNC_A,
PIPEASRC,
PIPE_VSYNCSHIFT_A,
PIPEA_DATA_M1,
PIPEA_DATA_N1,
PIPEA_LINK_M1,
PIPEA_LINK_N1,
FDI_TX_CTL_A,
PIPEA_DDI_FUNC_CTL,
PIPEA_MSA_MISC,
SRD_CTL_A,
SRD_STATUS_A,
HTOTAL_B,
HBLANK_B,
HSYNC_B,
VTOTAL_B,
VBLANK_B,
VSYNC_B,
PIPEBSRC,
PIPE_VSYNCSHIFT_B,
PIPEB_DATA_M1,
PIPEB_DATA_N1,
PIPEB_LINK_M1,
PIPEB_LINK_N1,
FDI_TX_CTL_B,
PORT_HOTPLUG_EN,
PORT_HOTPLUG_STAT,
GMCH_SDVOB,
GMCH_SDVOC,
GMCH_LVDS,
GMCH_PP_STATUS,
GMCH_PP_CONTROL,
GMCH_PP_ON_DELAYS,
GMCH_PP_OFF_DELAYS,
GMCH_PP_DIVISOR,
GMCH_PFIT_CONTROL,
PIPEB_DDI_FUNC_CTL,
PIPEB_MSA_MISC,
SRD_CTL_B,
SRD_STATUS_B,
HTOTAL_C,
HBLANK_C,
HSYNC_C,
VTOTAL_C,
VBLANK_C,
VSYNC_C,
PIPECSRC,
G4X_AUD_VID_DID,
PIPE_VSYNCSHIFT_C,
PIPEC_DATA_M1,
PIPEC_DATA_N1,
PIPEC_LINK_M1,
PIPEC_LINK_N1,
FDI_TX_CTL_C,
PIPEC_DDI_FUNC_CTL,
PIPEC_MSA_MISC,
SRD_CTL_C,
SRD_STATUS_C,
DDI_BUF_CTL_A,
DDI_AUX_CTL_A,
DDI_AUX_DATA_A_1,
DDI_AUX_DATA_A_2,
DDI_AUX_DATA_A_3,
DDI_AUX_DATA_A_4,
DDI_AUX_DATA_A_5,
DDI_AUX_MUTEX_A,
DP_TP_CTL_A,
DDI_BUF_CTL_B,
DDI_AUX_CTL_B,
DDI_AUX_DATA_B_1,
DDI_AUX_DATA_B_2,
DDI_AUX_DATA_B_3,
DDI_AUX_DATA_B_4,
DDI_AUX_DATA_B_5,
DDI_AUX_MUTEX_B,
DP_TP_CTL_B,
DP_TP_STATUS_B,
DDI_BUF_CTL_C,
DDI_AUX_CTL_C,
DDI_AUX_DATA_C_1,
DDI_AUX_DATA_C_2,
DDI_AUX_DATA_C_3,
DDI_AUX_DATA_C_4,
DDI_AUX_DATA_C_5,
DDI_AUX_MUTEX_C,
DP_TP_CTL_C,
DP_TP_STATUS_C,
DDI_BUF_CTL_D,
DDI_AUX_CTL_D,
DDI_AUX_DATA_D_1,
DDI_AUX_DATA_D_2,
DDI_AUX_DATA_D_3,
DDI_AUX_DATA_D_4,
DDI_AUX_DATA_D_5,
DDI_AUX_MUTEX_D,
DP_TP_CTL_D,
DP_TP_STATUS_D,
DDI_BUF_CTL_E,
DP_TP_CTL_E,
DP_TP_STATUS_E,
SRD_CTL,
SRD_STATUS,
BXT_PHY_CTL_A,
BXT_PHY_CTL_B,
BXT_PHY_CTL_C,
BXT_PHY_CTL_FAM_EDP,
BXT_PHY_CTL_FAM_DDI,
DDI_BUF_TRANS_A_S0T1,
DDI_BUF_TRANS_A_S0T2,
DDI_BUF_TRANS_A_S1T1,
DDI_BUF_TRANS_A_S1T2,
DDI_BUF_TRANS_A_S2T1,
DDI_BUF_TRANS_A_S2T2,
DDI_BUF_TRANS_A_S3T1,
DDI_BUF_TRANS_A_S3T2,
DDI_BUF_TRANS_A_S4T1,
DDI_BUF_TRANS_A_S4T2,
DDI_BUF_TRANS_A_S5T1,
DDI_BUF_TRANS_A_S5T2,
DDI_BUF_TRANS_A_S6T1,
DDI_BUF_TRANS_A_S6T2,
DDI_BUF_TRANS_A_S7T1,
DDI_BUF_TRANS_A_S7T2,
DDI_BUF_TRANS_A_S8T1,
DDI_BUF_TRANS_A_S8T2,
DDI_BUF_TRANS_A_S9T1,
DDI_BUF_TRANS_A_S9T2,
DDI_BUF_TRANS_B_S0T1,
DDI_BUF_TRANS_B_S0T2,
DDI_BUF_TRANS_B_S1T1,
DDI_BUF_TRANS_B_S1T2,
DDI_BUF_TRANS_B_S2T1,
DDI_BUF_TRANS_B_S2T2,
DDI_BUF_TRANS_B_S3T1,
DDI_BUF_TRANS_B_S3T2,
DDI_BUF_TRANS_B_S4T1,
DDI_BUF_TRANS_B_S4T2,
DDI_BUF_TRANS_B_S5T1,
DDI_BUF_TRANS_B_S5T2,
DDI_BUF_TRANS_B_S6T1,
DDI_BUF_TRANS_B_S6T2,
DDI_BUF_TRANS_B_S7T1,
DDI_BUF_TRANS_B_S7T2,
DDI_BUF_TRANS_B_S8T1,
DDI_BUF_TRANS_B_S8T2,
DDI_BUF_TRANS_B_S9T1,
DDI_BUF_TRANS_B_S9T2,
DDI_BUF_TRANS_C_S0T1,
DDI_BUF_TRANS_C_S0T2,
DDI_BUF_TRANS_C_S1T1,
DDI_BUF_TRANS_C_S1T2,
DDI_BUF_TRANS_C_S2T1,
DDI_BUF_TRANS_C_S2T2,
DDI_BUF_TRANS_C_S3T1,
DDI_BUF_TRANS_C_S3T2,
DDI_BUF_TRANS_C_S4T1,
DDI_BUF_TRANS_C_S4T2,
DDI_BUF_TRANS_C_S5T1,
DDI_BUF_TRANS_C_S5T2,
DDI_BUF_TRANS_C_S6T1,
DDI_BUF_TRANS_C_S6T2,
DDI_BUF_TRANS_C_S7T1,
DDI_BUF_TRANS_C_S7T2,
DDI_BUF_TRANS_C_S8T1,
DDI_BUF_TRANS_C_S8T2,
DDI_BUF_TRANS_C_S9T1,
DDI_BUF_TRANS_C_S9T2,
DDI_BUF_TRANS_D_S0T1,
DDI_BUF_TRANS_D_S0T2,
DDI_BUF_TRANS_D_S1T1,
DDI_BUF_TRANS_D_S1T2,
DDI_BUF_TRANS_D_S2T1,
DDI_BUF_TRANS_D_S2T2,
DDI_BUF_TRANS_D_S3T1,
DDI_BUF_TRANS_D_S3T2,
DDI_BUF_TRANS_D_S4T1,
DDI_BUF_TRANS_D_S4T2,
DDI_BUF_TRANS_D_S5T1,
DDI_BUF_TRANS_D_S5T2,
DDI_BUF_TRANS_D_S6T1,
DDI_BUF_TRANS_D_S6T2,
DDI_BUF_TRANS_D_S7T1,
DDI_BUF_TRANS_D_S7T2,
DDI_BUF_TRANS_D_S8T1,
DDI_BUF_TRANS_D_S8T2,
DDI_BUF_TRANS_D_S9T1,
DDI_BUF_TRANS_D_S9T2,
DDI_BUF_TRANS_E_S0T1,
DDI_BUF_TRANS_E_S0T2,
DDI_BUF_TRANS_E_S1T1,
DDI_BUF_TRANS_E_S1T2,
DDI_BUF_TRANS_E_S2T1,
DDI_BUF_TRANS_E_S2T2,
DDI_BUF_TRANS_E_S3T1,
DDI_BUF_TRANS_E_S3T2,
DDI_BUF_TRANS_E_S4T1,
DDI_BUF_TRANS_E_S4T2,
DDI_BUF_TRANS_E_S5T1,
DDI_BUF_TRANS_E_S5T2,
DDI_BUF_TRANS_E_S6T1,
DDI_BUF_TRANS_E_S6T2,
DDI_BUF_TRANS_E_S7T1,
DDI_BUF_TRANS_E_S7T2,
DDI_BUF_TRANS_E_S8T1,
DDI_BUF_TRANS_E_S8T2,
DDI_BUF_TRANS_E_S9T1,
DDI_BUF_TRANS_E_S9T2,
AUD_VID_DID,
PFA_WIN_POS,
PFA_WIN_SZ,
PFA_CTL_1,
PS_WIN_POS_1_A,
PS_WIN_SZ_1_A,
PS_CTRL_1_A,
PS_WIN_POS_2_A,
PS_WIN_SZ_2_A,
PS_CTRL_2_A,
PFB_WIN_POS,
PFB_WIN_SZ,
PFB_CTL_1,
PS_WIN_POS_1_B,
PS_WIN_SZ_1_B,
PS_CTRL_1_B,
PS_WIN_POS_2_B,
PS_WIN_SZ_2_B,
PS_CTRL_2_B,
PFC_WIN_POS,
PFC_WIN_SZ,
PFC_CTL_1,
PS_WIN_POS_1_C,
PS_WIN_SZ_1_C,
PS_CTRL_1_C,
BXT_PORT_CL1CM_DW0_BC,
DISPIO_CR_TX_BMU_CR0,
BXT_PORT_CL1CM_DW9_BC,
BXT_PORT_CL1CM_DW10_BC,
BXT_PORT_PLL_EBB_0_B,
BXT_PORT_PLL_EBB_4_B,
DPLL1_CFGR1,
DPLL1_CFGR2,
DPLL2_CFGR1,
DPLL2_CFGR2,
DPLL3_CFGR1,
DPLL3_CFGR2,
DPLL_CTRL1,
DPLL_CTRL2,
DPLL_STATUS,
BXT_PORT_CL1CM_DW28_BC,
BXT_PORT_CL1CM_DW30_BC,
BXT_PORT_PLL_0_B,
BXT_PORT_PLL_1_B,
BXT_PORT_PLL_2_B,
BXT_PORT_PLL_3_B,
BXT_PORT_PLL_6_B,
BXT_PORT_PLL_8_B,
BXT_PORT_PLL_9_B,
BXT_PORT_PLL_10_B,
BXT_PORT_REF_DW3_BC,
BXT_PORT_REF_DW6_BC,
BXT_PORT_REF_DW8_BC,
BXT_PORT_PLL_EBB_0_C,
BXT_PORT_PLL_EBB_4_C,
BXT_PORT_CL2CM_DW6_BC,
BXT_PORT_PLL_0_C,
BXT_PORT_PLL_1_C,
BXT_PORT_PLL_2_C,
BXT_PORT_PLL_3_C,
BXT_PORT_PLL_6_C,
BXT_PORT_PLL_8_C,
BXT_PORT_PLL_9_C,
BXT_PORT_PLL_10_C,
BXT_PORT_PCS_DW10_01_B,
BXT_PORT_PCS_DW12_01_B,
BXT_PORT_TX_DW2_LN0_B,
BXT_PORT_TX_DW3_LN0_B,
BXT_PORT_TX_DW4_LN0_B,
BXT_PORT_TX_DW14_LN0_B,
BXT_PORT_TX_DW14_LN1_B,
BXT_PORT_TX_DW14_LN2_B,
BXT_PORT_TX_DW14_LN3_B,
BXT_PORT_PCS_DW10_01_C,
BXT_PORT_PCS_DW12_01_C,
BXT_PORT_TX_DW2_LN0_C,
BXT_PORT_TX_DW3_LN0_C,
BXT_PORT_TX_DW4_LN0_C,
BXT_PORT_TX_DW14_LN0_C,
BXT_PORT_TX_DW14_LN1_C,
BXT_PORT_TX_DW14_LN2_C,
BXT_PORT_TX_DW14_LN3_C,
BXT_PORT_PCS_DW10_GRP_B,
BXT_PORT_PCS_DW12_GRP_B,
BXT_PORT_TX_DW2_GRP_B,
BXT_PORT_TX_DW3_GRP_B,
BXT_PORT_TX_DW4_GRP_B,
BXT_PORT_PCS_DW10_GRP_C,
BXT_PORT_PCS_DW12_GRP_C,
BXT_PORT_TX_DW2_GRP_C,
BXT_PORT_TX_DW3_GRP_C,
BXT_PORT_TX_DW4_GRP_C,
BXT_DE_PLL_CTL,
HTOTAL_EDP,
HBLANK_EDP,
HSYNC_EDP,
VTOTAL_EDP,
VBLANK_EDP,
VSYNC_EDP,
PIPE_EDP_DATA_M1,
PIPE_EDP_DATA_N1,
PIPE_EDP_LINK_M1,
PIPE_EDP_LINK_N1,
PIPE_EDP_DDI_FUNC_CTL,
PIPE_EDP_MSA_MISC,
SRD_CTL_EDP,
SRD_STATUS_EDP,
PIPE_SCANLINE_A,
PIPEACONF,
PIPEAMISC,
PIPE_FRMCNT_A,
PIPEA_GMCH_DATA_M,
PIPEA_GMCH_DATA_N,
PIPEA_GMCH_LINK_M,
PIPEA_GMCH_LINK_N,
CUR_CTL_A,
CUR_BASE_A,
CUR_POS_A,
CUR_FBC_CTL_A,
CUR_WM_A_0,
CUR_WM_A_1,
CUR_WM_A_2,
CUR_WM_A_3,
CUR_WM_A_4,
CUR_WM_A_5,
CUR_WM_A_6,
CUR_WM_A_7,
CUR_BUF_CFG_A,
DSPACNTR,
DSPALINOFF,
DSPASTRIDE,
PLANE_POS_1_A,
PLANE_SIZE_1_A,
DSPASURF,
DSPATILEOFF,
PLANE_WM_1_A_0,
PLANE_WM_1_A_1,
PLANE_WM_1_A_2,
PLANE_WM_1_A_3,
PLANE_WM_1_A_4,
PLANE_WM_1_A_5,
PLANE_WM_1_A_6,
PLANE_WM_1_A_7,
PLANE_BUF_CFG_1_A,
SPACNTR,
PIPE_SCANLINE_B,
PIPEBCONF,
PIPEBMISC,
PIPE_FRMCNT_B,
PIPEB_GMCH_DATA_M,
PIPEB_GMCH_DATA_N,
PIPEB_GMCH_LINK_M,
PIPEB_GMCH_LINK_N,
CUR_CTL_B,
CUR_BASE_B,
CUR_POS_B,
CUR_FBC_CTL_B,
CUR_WM_B_0,
CUR_WM_B_1,
CUR_WM_B_2,
CUR_WM_B_3,
CUR_WM_B_4,
CUR_WM_B_5,
CUR_WM_B_6,
CUR_WM_B_7,
CUR_BUF_CFG_B,
DSPBCNTR,
DSPBLINOFF,
DSPBSTRIDE,
PLANE_POS_1_B,
PLANE_SIZE_1_B,
DSPBSURF,
DSPBTILEOFF,
PLANE_WM_1_B_0,
PLANE_WM_1_B_1,
PLANE_WM_1_B_2,
PLANE_WM_1_B_3,
PLANE_WM_1_B_4,
PLANE_WM_1_B_5,
PLANE_WM_1_B_6,
PLANE_WM_1_B_7,
PLANE_BUF_CFG_1_B,
SPBCNTR,
GMCH_VGACNTRL,
PIPE_SCANLINE_C,
PIPECCONF,
PIPECMISC,
PIPE_FRMCNT_C,
CUR_CTL_C,
CUR_BASE_C,
CUR_POS_C,
CUR_FBC_CTL_C,
CUR_WM_C_0,
CUR_WM_C_1,
CUR_WM_C_2,
CUR_WM_C_3,
CUR_WM_C_4,
CUR_WM_C_5,
CUR_WM_C_6,
CUR_WM_C_7,
CUR_BUF_CFG_C,
DSPCCNTR,
DSPCLINOFF,
DSPCSTRIDE,
PLANE_POS_1_C,
PLANE_SIZE_1_C,
DSPCSURF,
DSPCTILEOFF,
PLANE_WM_1_C_0,
PLANE_WM_1_C_1,
PLANE_WM_1_C_2,
PLANE_WM_1_C_3,
PLANE_WM_1_C_4,
PLANE_WM_1_C_5,
PLANE_WM_1_C_6,
PLANE_WM_1_C_7,
PLANE_BUF_CFG_1_C,
SPCCNTR,
PIPE_EDP_CONF,
PCH_FDI_CHICKEN_B_C,
QUIRK_C2004,
SFUSE_STRAP,
PCH_DSPCLK_GATE_D,
SDEISR,
SDEIMR,
SDEIIR,
SDEIER,
SHOTPLUG_CTL,
PCH_GMBUS0,
PCH_GMBUS1,
PCH_GMBUS2,
PCH_GMBUS3,
PCH_GMBUS4,
PCH_GMBUS5,
SBI_ADDR,
SBI_DATA,
SBI_CTL_STAT,
PCH_DPLL_A,
PCH_DPLL_B,
PCH_PIXCLK_GATE,
PCH_FPA0,
PCH_FPA1,
PCH_FPB0,
PCH_FPB1,
PCH_DREF_CONTROL,
PCH_RAWCLK_FREQ,
PCH_DPLL_SEL,
PCH_PP_STATUS,
PCH_PP_CONTROL,
PCH_PP_ON_DELAYS,
PCH_PP_OFF_DELAYS,
PCH_PP_DIVISOR,
BLC_PWM_PCH_CTL1,
BLC_PWM_PCH_CTL2,
TRANS_HTOTAL_A,
TRANS_HBLANK_A,
TRANS_HSYNC_A,
TRANS_VTOTAL_A,
TRANS_VBLANK_A,
TRANS_VSYNC_A,
TRANS_VSYNCSHIFT_A,
TRANSA_DATA_M1,
TRANSA_DATA_N1,
TRANSA_DP_LINK_M1,
TRANSA_DP_LINK_N1,
TRANS_DP_CTL_A,
TRANS_HTOTAL_B,
TRANS_HBLANK_B,
TRANS_HSYNC_B,
TRANS_VTOTAL_B,
TRANS_VBLANK_B,
TRANS_VSYNC_B,
TRANS_VSYNCSHIFT_B,
TRANSB_DATA_M1,
TRANSB_DATA_N1,
TRANSB_DP_LINK_M1,
TRANSB_DP_LINK_N1,
PCH_ADPA,
PCH_HDMIB,
PCH_HDMIC,
PCH_HDMID,
PCH_LVDS,
TRANS_DP_CTL_B,
TRANS_HTOTAL_C,
TRANS_HBLANK_C,
TRANS_HSYNC_C,
TRANS_VTOTAL_C,
TRANS_VBLANK_C,
TRANS_VSYNC_C,
TRANS_VSYNCSHIFT_C,
TRANSC_DATA_M1,
TRANSC_DATA_N1,
TRANSC_DP_LINK_M1,
TRANSC_DP_LINK_N1,
TRANS_DP_CTL_C,
PCH_DP_B,
PCH_DP_AUX_CTL_B,
PCH_DP_AUX_DATA_B_1,
PCH_DP_AUX_DATA_B_2,
PCH_DP_AUX_DATA_B_3,
PCH_DP_AUX_DATA_B_4,
PCH_DP_AUX_DATA_B_5,
PCH_DP_C,
PCH_DP_AUX_CTL_C,
PCH_DP_AUX_DATA_C_1,
PCH_DP_AUX_DATA_C_2,
PCH_DP_AUX_DATA_C_3,
PCH_DP_AUX_DATA_C_4,
PCH_DP_AUX_DATA_C_5,
PCH_DP_D,
PCH_DP_AUX_CTL_D,
PCH_DP_AUX_DATA_D_1,
PCH_DP_AUX_DATA_D_2,
PCH_DP_AUX_DATA_D_3,
PCH_DP_AUX_DATA_D_4,
PCH_DP_AUX_DATA_D_5,
AUD_CONFIG_A,
PCH_AUD_VID_DID,
AUD_HDMIW_HDMIEDID_A,
AUD_CNTL_ST_A,
AUD_CNTRL_ST2,
AUD_CONFIG_B,
AUD_HDMIW_HDMIEDID_B,
AUD_CNTL_ST_B,
AUD_CONFIG_C,
AUD_HDMIW_HDMIEDID_C,
AUD_CNTL_ST_C,
TRANSACONF,
FDI_RXA_CTL,
FDI_RX_MISC_A,
FDI_RXA_IIR,
FDI_RXA_IMR,
FDI_RXA_TUSIZE1,
QUIRK_F0060,
TRANSA_CHICKEN2,
TRANSBCONF,
FDI_RXB_CTL,
FDI_RX_MISC_B,
FDI_RXB_IIR,
FDI_RXB_IMR,
FDI_RXB_TUSIZE1,
QUIRK_F1060,
TRANSB_CHICKEN2,
TRANSCCONF,
FDI_RXC_CTL,
FDI_RX_MISC_C,
FDI_RXC_IIR,
FDI_RXC_IMR,
FDI_RXC_TUSIZE1,
QUIRK_F2060,
TRANSC_CHICKEN2,
BXT_P_CR_GT_DISP_PWRON,
GT_MAILBOX,
GT_MAILBOX_DATA,
GT_MAILBOX_DATA_1,
BXT_PORT_CL1CM_DW0_A,
BXT_PORT_CL1CM_DW9_A,
BXT_PORT_CL1CM_DW10_A,
BXT_PORT_PLL_EBB_0_A,
BXT_PORT_PLL_EBB_4_A,
BXT_PORT_CL1CM_DW28_A,
BXT_PORT_CL1CM_DW30_A,
BXT_PORT_PLL_0_A,
BXT_PORT_PLL_1_A,
BXT_PORT_PLL_2_A,
BXT_PORT_PLL_3_A,
BXT_PORT_PLL_6_A,
BXT_PORT_PLL_8_A,
BXT_PORT_PLL_9_A,
BXT_PORT_PLL_10_A,
BXT_PORT_REF_DW3_A,
BXT_PORT_REF_DW6_A,
BXT_PORT_REF_DW8_A,
BXT_PORT_PCS_DW10_01_A,
BXT_PORT_PCS_DW12_01_A,
BXT_PORT_TX_DW2_LN0_A,
BXT_PORT_TX_DW3_LN0_A,
BXT_PORT_TX_DW4_LN0_A,
BXT_PORT_TX_DW14_LN0_A,
BXT_PORT_TX_DW14_LN1_A,
BXT_PORT_TX_DW14_LN2_A,
BXT_PORT_TX_DW14_LN3_A,
BXT_PORT_PCS_DW10_GRP_A,
BXT_PORT_PCS_DW12_GRP_A,
BXT_PORT_TX_DW2_GRP_A,
BXT_PORT_TX_DW3_GRP_A,
BXT_PORT_TX_DW4_GRP_A);
pragma Warnings
(GNATprove, Off, "pragma ""KEEP_NAMES"" ignored *(not yet supported)",
Reason => "TODO: Should it matter?");
pragma Keep_Names (Registers_Invalid_Index);
pragma Warnings
(GNATprove, On, "pragma ""KEEP_NAMES"" ignored *(not yet supported)");
Register_Width : constant := 4;
for Registers_Invalid_Index use
(Invalid_Register => 0,
---------------------------------------------------------------------------
-- Pipe A registers
---------------------------------------------------------------------------
-- pipe timing registers
HTOTAL_A => 16#06_0000# / Register_Width,
HBLANK_A => 16#06_0004# / Register_Width,
HSYNC_A => 16#06_0008# / Register_Width,
VTOTAL_A => 16#06_000c# / Register_Width,
VBLANK_A => 16#06_0010# / Register_Width,
VSYNC_A => 16#06_0014# / Register_Width,
PIPEASRC => 16#06_001c# / Register_Width,
PIPEACONF => 16#07_0008# / Register_Width,
PIPEAMISC => 16#07_0030# / Register_Width,
TRANS_HTOTAL_A => 16#0e_0000# / Register_Width,
TRANS_HBLANK_A => 16#0e_0004# / Register_Width,
TRANS_HSYNC_A => 16#0e_0008# / Register_Width,
TRANS_VTOTAL_A => 16#0e_000c# / Register_Width,
TRANS_VBLANK_A => 16#0e_0010# / Register_Width,
TRANS_VSYNC_A => 16#0e_0014# / Register_Width,
TRANSA_DATA_M1 => 16#0e_0030# / Register_Width,
TRANSA_DATA_N1 => 16#0e_0034# / Register_Width,
TRANSA_DP_LINK_M1 => 16#0e_0040# / Register_Width,
TRANSA_DP_LINK_N1 => 16#0e_0044# / Register_Width,
PIPEA_DATA_M1 => 16#06_0030# / Register_Width,
PIPEA_DATA_N1 => 16#06_0034# / Register_Width,
PIPEA_LINK_M1 => 16#06_0040# / Register_Width,
PIPEA_LINK_N1 => 16#06_0044# / Register_Width,
PIPEA_GMCH_DATA_M => 16#07_0050# / Register_Width,
PIPEA_GMCH_DATA_N => 16#07_0054# / Register_Width,
PIPEA_GMCH_LINK_M => 16#07_0060# / Register_Width,
PIPEA_GMCH_LINK_N => 16#07_0064# / Register_Width,
PIPEA_DDI_FUNC_CTL => 16#06_0400# / Register_Width,
PIPEA_MSA_MISC => 16#06_0410# / Register_Width,
-- PCH sideband interface registers
SBI_ADDR => 16#0c_6000# / Register_Width,
SBI_DATA => 16#0c_6004# / Register_Width,
SBI_CTL_STAT => 16#0c_6008# / Register_Width,
-- GMCH clock registers
GMCH_DPLL_A => 16#00_6014# / Register_Width,
GMCH_FPA0 => 16#00_6040# / Register_Width,
GMCH_FPA1 => 16#00_6044# / Register_Width,
-- PCH clock registers
PCH_DPLL_A => 16#0c_6014# / Register_Width,
PCH_PIXCLK_GATE => 16#0c_6020# / Register_Width,
PCH_FPA0 => 16#0c_6040# / Register_Width,
PCH_FPA1 => 16#0c_6044# / Register_Width,
-- panel fitter
PFA_CTL_1 => 16#06_8080# / Register_Width,
PFA_WIN_POS => 16#06_8070# / Register_Width,
PFA_WIN_SZ => 16#06_8074# / Register_Width,
PS_WIN_POS_1_A => 16#06_8170# / Register_Width,
PS_WIN_SZ_1_A => 16#06_8174# / Register_Width,
PS_CTRL_1_A => 16#06_8180# / Register_Width,
PS_WIN_POS_2_A => 16#06_8270# / Register_Width,
PS_WIN_SZ_2_A => 16#06_8274# / Register_Width,
PS_CTRL_2_A => 16#06_8280# / Register_Width,
-- cursor control
CUR_CTL_A => 16#07_0080# / Register_Width,
CUR_BASE_A => 16#07_0084# / Register_Width,
CUR_POS_A => 16#07_0088# / Register_Width,
CUR_FBC_CTL_A => 16#07_00a0# / Register_Width,
-- display control
DSPACNTR => 16#07_0180# / Register_Width,
DSPALINOFF => 16#07_0184# / Register_Width,
DSPASTRIDE => 16#07_0188# / Register_Width,
PLANE_POS_1_A => 16#07_018c# / Register_Width,
PLANE_SIZE_1_A => 16#07_0190# / Register_Width,
DSPASURF => 16#07_019c# / Register_Width,
DSPATILEOFF => 16#07_01a4# / Register_Width,
-- sprite control
SPACNTR => 16#07_0280# / Register_Width,
-- FDI and PCH transcoder control
FDI_TX_CTL_A => 16#06_0100# / Register_Width,
FDI_RXA_CTL => 16#0f_000c# / Register_Width,
FDI_RX_MISC_A => 16#0f_0010# / Register_Width,
FDI_RXA_IIR => 16#0f_0014# / Register_Width,
FDI_RXA_IMR => 16#0f_0018# / Register_Width,
FDI_RXA_TUSIZE1 => 16#0f_0030# / Register_Width,
TRANSACONF => 16#0f_0008# / Register_Width,
TRANSA_CHICKEN2 => 16#0f_0064# / Register_Width,
-- watermark registers
WM_LINETIME_A => 16#04_5270# / Register_Width,
PLANE_WM_1_A_0 => 16#07_0240# / Register_Width,
PLANE_WM_1_A_1 => 16#07_0244# / Register_Width,
PLANE_WM_1_A_2 => 16#07_0248# / Register_Width,
PLANE_WM_1_A_3 => 16#07_024c# / Register_Width,
PLANE_WM_1_A_4 => 16#07_0250# / Register_Width,
PLANE_WM_1_A_5 => 16#07_0254# / Register_Width,
PLANE_WM_1_A_6 => 16#07_0258# / Register_Width,
PLANE_WM_1_A_7 => 16#07_025c# / Register_Width,
PLANE_BUF_CFG_1_A => 16#07_027c# / Register_Width,
CUR_WM_A_0 => 16#07_0140# / Register_Width,
CUR_WM_A_1 => 16#07_0144# / Register_Width,
CUR_WM_A_2 => 16#07_0148# / Register_Width,
CUR_WM_A_3 => 16#07_014c# / Register_Width,
CUR_WM_A_4 => 16#07_0150# / Register_Width,
CUR_WM_A_5 => 16#07_0154# / Register_Width,
CUR_WM_A_6 => 16#07_0158# / Register_Width,
CUR_WM_A_7 => 16#07_015c# / Register_Width,
CUR_BUF_CFG_A => 16#07_017c# / Register_Width,
-- CPU transcoder clock select
TRANSA_CLK_SEL => 16#04_6140# / Register_Width,
---------------------------------------------------------------------------
-- Pipe B registers
---------------------------------------------------------------------------
-- pipe timing registers
HTOTAL_B => 16#06_1000# / Register_Width,
HBLANK_B => 16#06_1004# / Register_Width,
HSYNC_B => 16#06_1008# / Register_Width,
VTOTAL_B => 16#06_100c# / Register_Width,
VBLANK_B => 16#06_1010# / Register_Width,
VSYNC_B => 16#06_1014# / Register_Width,
PIPEBSRC => 16#06_101c# / Register_Width,
PIPEBCONF => 16#07_1008# / Register_Width,
PIPEBMISC => 16#07_1030# / Register_Width,
TRANS_HTOTAL_B => 16#0e_1000# / Register_Width,
TRANS_HBLANK_B => 16#0e_1004# / Register_Width,
TRANS_HSYNC_B => 16#0e_1008# / Register_Width,
TRANS_VTOTAL_B => 16#0e_100c# / Register_Width,
TRANS_VBLANK_B => 16#0e_1010# / Register_Width,
TRANS_VSYNC_B => 16#0e_1014# / Register_Width,
TRANSB_DATA_M1 => 16#0e_1030# / Register_Width,
TRANSB_DATA_N1 => 16#0e_1034# / Register_Width,
TRANSB_DP_LINK_M1 => 16#0e_1040# / Register_Width,
TRANSB_DP_LINK_N1 => 16#0e_1044# / Register_Width,
PIPEB_DATA_M1 => 16#06_1030# / Register_Width,
PIPEB_DATA_N1 => 16#06_1034# / Register_Width,
PIPEB_LINK_M1 => 16#06_1040# / Register_Width,
PIPEB_LINK_N1 => 16#06_1044# / Register_Width,
PIPEB_GMCH_DATA_M => 16#07_1050# / Register_Width,
PIPEB_GMCH_DATA_N => 16#07_1054# / Register_Width,
PIPEB_GMCH_LINK_M => 16#07_1060# / Register_Width,
PIPEB_GMCH_LINK_N => 16#07_1064# / Register_Width,
PIPEB_DDI_FUNC_CTL => 16#06_1400# / Register_Width,
PIPEB_MSA_MISC => 16#06_1410# / Register_Width,
-- GMCH clock registers
GMCH_DPLL_B => 16#00_6018# / Register_Width,
GMCH_FPB0 => 16#00_6048# / Register_Width,
GMCH_FPB1 => 16#00_604c# / Register_Width,
-- PCH clock registers
PCH_DPLL_B => 16#0c_6018# / Register_Width,
PCH_FPB0 => 16#0c_6048# / Register_Width,
PCH_FPB1 => 16#0c_604c# / Register_Width,
-- panel fitter
PFB_CTL_1 => 16#06_8880# / Register_Width,
PFB_WIN_POS => 16#06_8870# / Register_Width,
PFB_WIN_SZ => 16#06_8874# / Register_Width,
PS_WIN_POS_1_B => 16#06_8970# / Register_Width,
PS_WIN_SZ_1_B => 16#06_8974# / Register_Width,
PS_CTRL_1_B => 16#06_8980# / Register_Width,
PS_WIN_POS_2_B => 16#06_8a70# / Register_Width,
PS_WIN_SZ_2_B => 16#06_8a74# / Register_Width,
PS_CTRL_2_B => 16#06_8a80# / Register_Width,
-- cursor control
CUR_CTL_B => 16#07_1080# / Register_Width,
CUR_BASE_B => 16#07_1084# / Register_Width,
CUR_POS_B => 16#07_1088# / Register_Width,
CUR_FBC_CTL_B => 16#07_10a0# / Register_Width,
-- display control
DSPBCNTR => 16#07_1180# / Register_Width,
DSPBLINOFF => 16#07_1184# / Register_Width,
DSPBSTRIDE => 16#07_1188# / Register_Width,
PLANE_POS_1_B => 16#07_118c# / Register_Width,
PLANE_SIZE_1_B => 16#07_1190# / Register_Width,
DSPBSURF => 16#07_119c# / Register_Width,
DSPBTILEOFF => 16#07_11a4# / Register_Width,
-- sprite control
SPBCNTR => 16#07_1280# / Register_Width,
-- FDI and PCH transcoder control
FDI_TX_CTL_B => 16#06_1100# / Register_Width, -- aliased by GMCH_ADPA
FDI_RXB_CTL => 16#0f_100c# / Register_Width,
FDI_RX_MISC_B => 16#0f_1010# / Register_Width,
FDI_RXB_IIR => 16#0f_1014# / Register_Width,
FDI_RXB_IMR => 16#0f_1018# / Register_Width,
FDI_RXB_TUSIZE1 => 16#0f_1030# / Register_Width,
TRANSBCONF => 16#0f_1008# / Register_Width,
TRANSB_CHICKEN2 => 16#0f_1064# / Register_Width,
-- watermark registers
WM_LINETIME_B => 16#04_5274# / Register_Width,
PLANE_WM_1_B_0 => 16#07_1240# / Register_Width,
PLANE_WM_1_B_1 => 16#07_1244# / Register_Width,
PLANE_WM_1_B_2 => 16#07_1248# / Register_Width,
PLANE_WM_1_B_3 => 16#07_124c# / Register_Width,
PLANE_WM_1_B_4 => 16#07_1250# / Register_Width,
PLANE_WM_1_B_5 => 16#07_1254# / Register_Width,
PLANE_WM_1_B_6 => 16#07_1258# / Register_Width,
PLANE_WM_1_B_7 => 16#07_125c# / Register_Width,
PLANE_BUF_CFG_1_B => 16#07_127c# / Register_Width,
CUR_WM_B_0 => 16#07_1140# / Register_Width,
CUR_WM_B_1 => 16#07_1144# / Register_Width,
CUR_WM_B_2 => 16#07_1148# / Register_Width,
CUR_WM_B_3 => 16#07_114c# / Register_Width,
CUR_WM_B_4 => 16#07_1150# / Register_Width,
CUR_WM_B_5 => 16#07_1154# / Register_Width,
CUR_WM_B_6 => 16#07_1158# / Register_Width,
CUR_WM_B_7 => 16#07_115c# / Register_Width,
CUR_BUF_CFG_B => 16#07_117c# / Register_Width,
-- CPU transcoder clock select
TRANSB_CLK_SEL => 16#04_6144# / Register_Width,
---------------------------------------------------------------------------
-- Pipe C registers
---------------------------------------------------------------------------
-- pipe timing registers
HTOTAL_C => 16#06_2000# / Register_Width,
HBLANK_C => 16#06_2004# / Register_Width,
HSYNC_C => 16#06_2008# / Register_Width,
VTOTAL_C => 16#06_200c# / Register_Width,
VBLANK_C => 16#06_2010# / Register_Width,
VSYNC_C => 16#06_2014# / Register_Width,
PIPECSRC => 16#06_201c# / Register_Width,
PIPECCONF => 16#07_2008# / Register_Width,
PIPECMISC => 16#07_2030# / Register_Width,
TRANS_HTOTAL_C => 16#0e_2000# / Register_Width,
TRANS_HBLANK_C => 16#0e_2004# / Register_Width,
TRANS_HSYNC_C => 16#0e_2008# / Register_Width,
TRANS_VTOTAL_C => 16#0e_200c# / Register_Width,
TRANS_VBLANK_C => 16#0e_2010# / Register_Width,
TRANS_VSYNC_C => 16#0e_2014# / Register_Width,
TRANSC_DATA_M1 => 16#0e_2030# / Register_Width,
TRANSC_DATA_N1 => 16#0e_2034# / Register_Width,
TRANSC_DP_LINK_M1 => 16#0e_2040# / Register_Width,
TRANSC_DP_LINK_N1 => 16#0e_2044# / Register_Width,
PIPEC_DATA_M1 => 16#06_2030# / Register_Width,
PIPEC_DATA_N1 => 16#06_2034# / Register_Width,
PIPEC_LINK_M1 => 16#06_2040# / Register_Width,
PIPEC_LINK_N1 => 16#06_2044# / Register_Width,
PIPEC_DDI_FUNC_CTL => 16#06_2400# / Register_Width,
PIPEC_MSA_MISC => 16#06_2410# / Register_Width,
-- panel fitter
PFC_CTL_1 => 16#06_9080# / Register_Width,
PFC_WIN_POS => 16#06_9070# / Register_Width,
PFC_WIN_SZ => 16#06_9074# / Register_Width,
PS_WIN_POS_1_C => 16#06_9170# / Register_Width,
PS_WIN_SZ_1_C => 16#06_9174# / Register_Width,
PS_CTRL_1_C => 16#06_9180# / Register_Width,
-- cursor control
CUR_CTL_C => 16#07_2080# / Register_Width,
CUR_BASE_C => 16#07_2084# / Register_Width,
CUR_POS_C => 16#07_2088# / Register_Width,
CUR_FBC_CTL_C => 16#07_20a0# / Register_Width,
-- display control
DSPCCNTR => 16#07_2180# / Register_Width,
DSPCLINOFF => 16#07_2184# / Register_Width,
DSPCSTRIDE => 16#07_2188# / Register_Width,
PLANE_POS_1_C => 16#07_218c# / Register_Width,
PLANE_SIZE_1_C => 16#07_2190# / Register_Width,
DSPCSURF => 16#07_219c# / Register_Width,
DSPCTILEOFF => 16#07_21a4# / Register_Width,
-- sprite control
SPCCNTR => 16#07_2280# / Register_Width,
-- PCH transcoder control
FDI_TX_CTL_C => 16#06_2100# / Register_Width,
FDI_RXC_CTL => 16#0f_200c# / Register_Width,
FDI_RX_MISC_C => 16#0f_2010# / Register_Width,
FDI_RXC_IIR => 16#0f_2014# / Register_Width,
FDI_RXC_IMR => 16#0f_2018# / Register_Width,
FDI_RXC_TUSIZE1 => 16#0f_2030# / Register_Width,
TRANSCCONF => 16#0f_2008# / Register_Width,
TRANSC_CHICKEN2 => 16#0f_2064# / Register_Width,
-- watermark registers
WM_LINETIME_C => 16#04_5278# / Register_Width,
PLANE_WM_1_C_0 => 16#07_2240# / Register_Width,
PLANE_WM_1_C_1 => 16#07_2244# / Register_Width,
PLANE_WM_1_C_2 => 16#07_2248# / Register_Width,
PLANE_WM_1_C_3 => 16#07_224c# / Register_Width,
PLANE_WM_1_C_4 => 16#07_2250# / Register_Width,
PLANE_WM_1_C_5 => 16#07_2254# / Register_Width,
PLANE_WM_1_C_6 => 16#07_2258# / Register_Width,
PLANE_WM_1_C_7 => 16#07_225c# / Register_Width,
PLANE_BUF_CFG_1_C => 16#07_227c# / Register_Width,
CUR_WM_C_0 => 16#07_2140# / Register_Width,
CUR_WM_C_1 => 16#07_2144# / Register_Width,
CUR_WM_C_2 => 16#07_2148# / Register_Width,
CUR_WM_C_3 => 16#07_214c# / Register_Width,
CUR_WM_C_4 => 16#07_2150# / Register_Width,
CUR_WM_C_5 => 16#07_2154# / Register_Width,
CUR_WM_C_6 => 16#07_2158# / Register_Width,
CUR_WM_C_7 => 16#07_215c# / Register_Width,
CUR_BUF_CFG_C => 16#07_217c# / Register_Width,
-- CPU transcoder clock select
TRANSC_CLK_SEL => 16#04_6148# / Register_Width,
---------------------------------------------------------------------------
-- Pipe EDP registers
---------------------------------------------------------------------------
-- pipe timing registers
HTOTAL_EDP => 16#06_f000# / Register_Width,
HBLANK_EDP => 16#06_f004# / Register_Width,
HSYNC_EDP => 16#06_f008# / Register_Width,
VTOTAL_EDP => 16#06_f00c# / Register_Width,
VBLANK_EDP => 16#06_f010# / Register_Width,
VSYNC_EDP => 16#06_f014# / Register_Width,
PIPE_EDP_CONF => 16#07_f008# / Register_Width,
PIPE_EDP_DATA_M1 => 16#06_f030# / Register_Width,
PIPE_EDP_DATA_N1 => 16#06_f034# / Register_Width,
PIPE_EDP_LINK_M1 => 16#06_f040# / Register_Width,
PIPE_EDP_LINK_N1 => 16#06_f044# / Register_Width,
PIPE_EDP_DDI_FUNC_CTL => 16#06_f400# / Register_Width,
PIPE_EDP_MSA_MISC => 16#06_f410# / Register_Width,
-- PSR registers
SRD_CTL => 16#06_4800# / Register_Width,
SRD_CTL_A => 16#06_0800# / Register_Width,
SRD_CTL_B => 16#06_1800# / Register_Width,
SRD_CTL_C => 16#06_2800# / Register_Width,
SRD_CTL_EDP => 16#06_f800# / Register_Width,
SRD_STATUS => 16#06_4840# / Register_Width,
SRD_STATUS_A => 16#06_0840# / Register_Width,
SRD_STATUS_B => 16#06_1840# / Register_Width,
SRD_STATUS_C => 16#06_2840# / Register_Width,
SRD_STATUS_EDP => 16#06_f840# / Register_Width,
-- DDI registers
DDI_BUF_CTL_A => 16#06_4000# / Register_Width, -- aliased by DP_CTL_A
DDI_BUF_TRANS_A_S0T1 => 16#06_4e00# / Register_Width,
DDI_BUF_TRANS_A_S0T2 => 16#06_4e04# / Register_Width,
DDI_BUF_TRANS_A_S1T1 => 16#06_4e08# / Register_Width,
DDI_BUF_TRANS_A_S1T2 => 16#06_4e0c# / Register_Width,
DDI_BUF_TRANS_A_S2T1 => 16#06_4e10# / Register_Width,
DDI_BUF_TRANS_A_S2T2 => 16#06_4e14# / Register_Width,
DDI_BUF_TRANS_A_S3T1 => 16#06_4e18# / Register_Width,
DDI_BUF_TRANS_A_S3T2 => 16#06_4e1c# / Register_Width,
DDI_BUF_TRANS_A_S4T1 => 16#06_4e20# / Register_Width,
DDI_BUF_TRANS_A_S4T2 => 16#06_4e24# / Register_Width,
DDI_BUF_TRANS_A_S5T1 => 16#06_4e28# / Register_Width,
DDI_BUF_TRANS_A_S5T2 => 16#06_4e2c# / Register_Width,
DDI_BUF_TRANS_A_S6T1 => 16#06_4e30# / Register_Width,
DDI_BUF_TRANS_A_S6T2 => 16#06_4e34# / Register_Width,
DDI_BUF_TRANS_A_S7T1 => 16#06_4e38# / Register_Width,
DDI_BUF_TRANS_A_S7T2 => 16#06_4e3c# / Register_Width,
DDI_BUF_TRANS_A_S8T1 => 16#06_4e40# / Register_Width,
DDI_BUF_TRANS_A_S8T2 => 16#06_4e44# / Register_Width,
DDI_BUF_TRANS_A_S9T1 => 16#06_4e48# / Register_Width,
DDI_BUF_TRANS_A_S9T2 => 16#06_4e4c# / Register_Width,
DDI_AUX_CTL_A => 16#06_4010# / Register_Width, -- aliased by DP_AUX_CTL_A
DDI_AUX_DATA_A_1 => 16#06_4014# / Register_Width, -- aliased by DP_AUX_DATA_A_1
DDI_AUX_DATA_A_2 => 16#06_4018# / Register_Width, -- aliased by DP_AUX_DATA_A_2
DDI_AUX_DATA_A_3 => 16#06_401c# / Register_Width, -- aliased by DP_AUX_DATA_A_3
DDI_AUX_DATA_A_4 => 16#06_4020# / Register_Width, -- aliased by DP_AUX_DATA_A_4
DDI_AUX_DATA_A_5 => 16#06_4024# / Register_Width, -- aliased by DP_AUX_DATA_A_5
DDI_AUX_MUTEX_A => 16#06_402c# / Register_Width,
DDI_BUF_CTL_B => 16#06_4100# / Register_Width, -- aliased by GMCH_DP_B
DDI_BUF_TRANS_B_S0T1 => 16#06_4e60# / Register_Width,
DDI_BUF_TRANS_B_S0T2 => 16#06_4e64# / Register_Width,
DDI_BUF_TRANS_B_S1T1 => 16#06_4e68# / Register_Width,
DDI_BUF_TRANS_B_S1T2 => 16#06_4e6c# / Register_Width,
DDI_BUF_TRANS_B_S2T1 => 16#06_4e70# / Register_Width,
DDI_BUF_TRANS_B_S2T2 => 16#06_4e74# / Register_Width,
DDI_BUF_TRANS_B_S3T1 => 16#06_4e78# / Register_Width,
DDI_BUF_TRANS_B_S3T2 => 16#06_4e7c# / Register_Width,
DDI_BUF_TRANS_B_S4T1 => 16#06_4e80# / Register_Width,
DDI_BUF_TRANS_B_S4T2 => 16#06_4e84# / Register_Width,
DDI_BUF_TRANS_B_S5T1 => 16#06_4e88# / Register_Width,
DDI_BUF_TRANS_B_S5T2 => 16#06_4e8c# / Register_Width,
DDI_BUF_TRANS_B_S6T1 => 16#06_4e90# / Register_Width,
DDI_BUF_TRANS_B_S6T2 => 16#06_4e94# / Register_Width,
DDI_BUF_TRANS_B_S7T1 => 16#06_4e98# / Register_Width,
DDI_BUF_TRANS_B_S7T2 => 16#06_4e9c# / Register_Width,
DDI_BUF_TRANS_B_S8T1 => 16#06_4ea0# / Register_Width,
DDI_BUF_TRANS_B_S8T2 => 16#06_4ea4# / Register_Width,
DDI_BUF_TRANS_B_S9T1 => 16#06_4ea8# / Register_Width,
DDI_BUF_TRANS_B_S9T2 => 16#06_4eac# / Register_Width,
DDI_AUX_CTL_B => 16#06_4110# / Register_Width,
DDI_AUX_DATA_B_1 => 16#06_4114# / Register_Width,
DDI_AUX_DATA_B_2 => 16#06_4118# / Register_Width,
DDI_AUX_DATA_B_3 => 16#06_411c# / Register_Width,
DDI_AUX_DATA_B_4 => 16#06_4120# / Register_Width,
DDI_AUX_DATA_B_5 => 16#06_4124# / Register_Width,
DDI_AUX_MUTEX_B => 16#06_412c# / Register_Width,
DDI_BUF_CTL_C => 16#06_4200# / Register_Width, -- aliased by GMCH_DP_C
DDI_BUF_TRANS_C_S0T1 => 16#06_4ec0# / Register_Width,
DDI_BUF_TRANS_C_S0T2 => 16#06_4ec4# / Register_Width,
DDI_BUF_TRANS_C_S1T1 => 16#06_4ec8# / Register_Width,
DDI_BUF_TRANS_C_S1T2 => 16#06_4ecc# / Register_Width,
DDI_BUF_TRANS_C_S2T1 => 16#06_4ed0# / Register_Width,
DDI_BUF_TRANS_C_S2T2 => 16#06_4ed4# / Register_Width,
DDI_BUF_TRANS_C_S3T1 => 16#06_4ed8# / Register_Width,
DDI_BUF_TRANS_C_S3T2 => 16#06_4edc# / Register_Width,
DDI_BUF_TRANS_C_S4T1 => 16#06_4ee0# / Register_Width,
DDI_BUF_TRANS_C_S4T2 => 16#06_4ee4# / Register_Width,
DDI_BUF_TRANS_C_S5T1 => 16#06_4ee8# / Register_Width,
DDI_BUF_TRANS_C_S5T2 => 16#06_4eec# / Register_Width,
DDI_BUF_TRANS_C_S6T1 => 16#06_4ef0# / Register_Width,
DDI_BUF_TRANS_C_S6T2 => 16#06_4ef4# / Register_Width,
DDI_BUF_TRANS_C_S7T1 => 16#06_4ef8# / Register_Width,
DDI_BUF_TRANS_C_S7T2 => 16#06_4efc# / Register_Width,
DDI_BUF_TRANS_C_S8T1 => 16#06_4f00# / Register_Width,
DDI_BUF_TRANS_C_S8T2 => 16#06_4f04# / Register_Width,
DDI_BUF_TRANS_C_S9T1 => 16#06_4f08# / Register_Width,
DDI_BUF_TRANS_C_S9T2 => 16#06_4f0c# / Register_Width,
DDI_AUX_CTL_C => 16#06_4210# / Register_Width,
DDI_AUX_DATA_C_1 => 16#06_4214# / Register_Width,
DDI_AUX_DATA_C_2 => 16#06_4218# / Register_Width,
DDI_AUX_DATA_C_3 => 16#06_421c# / Register_Width,
DDI_AUX_DATA_C_4 => 16#06_4220# / Register_Width,
DDI_AUX_DATA_C_5 => 16#06_4224# / Register_Width,
DDI_AUX_MUTEX_C => 16#06_422c# / Register_Width,
DDI_BUF_CTL_D => 16#06_4300# / Register_Width, -- aliased by GMCH_DP_D
DDI_BUF_TRANS_D_S0T1 => 16#06_4f20# / Register_Width,
DDI_BUF_TRANS_D_S0T2 => 16#06_4f24# / Register_Width,
DDI_BUF_TRANS_D_S1T1 => 16#06_4f28# / Register_Width,
DDI_BUF_TRANS_D_S1T2 => 16#06_4f2c# / Register_Width,
DDI_BUF_TRANS_D_S2T1 => 16#06_4f30# / Register_Width,
DDI_BUF_TRANS_D_S2T2 => 16#06_4f34# / Register_Width,
DDI_BUF_TRANS_D_S3T1 => 16#06_4f38# / Register_Width,
DDI_BUF_TRANS_D_S3T2 => 16#06_4f3c# / Register_Width,
DDI_BUF_TRANS_D_S4T1 => 16#06_4f40# / Register_Width,
DDI_BUF_TRANS_D_S4T2 => 16#06_4f44# / Register_Width,
DDI_BUF_TRANS_D_S5T1 => 16#06_4f48# / Register_Width,
DDI_BUF_TRANS_D_S5T2 => 16#06_4f4c# / Register_Width,
DDI_BUF_TRANS_D_S6T1 => 16#06_4f50# / Register_Width,
DDI_BUF_TRANS_D_S6T2 => 16#06_4f54# / Register_Width,
DDI_BUF_TRANS_D_S7T1 => 16#06_4f58# / Register_Width,
DDI_BUF_TRANS_D_S7T2 => 16#06_4f5c# / Register_Width,
DDI_BUF_TRANS_D_S8T1 => 16#06_4f60# / Register_Width,
DDI_BUF_TRANS_D_S8T2 => 16#06_4f64# / Register_Width,
DDI_BUF_TRANS_D_S9T1 => 16#06_4f68# / Register_Width,
DDI_BUF_TRANS_D_S9T2 => 16#06_4f6c# / Register_Width,
DDI_AUX_CTL_D => 16#06_4310# / Register_Width,
DDI_AUX_DATA_D_1 => 16#06_4314# / Register_Width,
DDI_AUX_DATA_D_2 => 16#06_4318# / Register_Width,
DDI_AUX_DATA_D_3 => 16#06_431c# / Register_Width,
DDI_AUX_DATA_D_4 => 16#06_4320# / Register_Width,
DDI_AUX_DATA_D_5 => 16#06_4324# / Register_Width,
DDI_AUX_MUTEX_D => 16#06_432c# / Register_Width,
DDI_BUF_CTL_E => 16#06_4400# / Register_Width,
DDI_BUF_TRANS_E_S0T1 => 16#06_4f80# / Register_Width,
DDI_BUF_TRANS_E_S0T2 => 16#06_4f84# / Register_Width,
DDI_BUF_TRANS_E_S1T1 => 16#06_4f88# / Register_Width,
DDI_BUF_TRANS_E_S1T2 => 16#06_4f8c# / Register_Width,
DDI_BUF_TRANS_E_S2T1 => 16#06_4f90# / Register_Width,
DDI_BUF_TRANS_E_S2T2 => 16#06_4f94# / Register_Width,
DDI_BUF_TRANS_E_S3T1 => 16#06_4f98# / Register_Width,
DDI_BUF_TRANS_E_S3T2 => 16#06_4f9c# / Register_Width,
DDI_BUF_TRANS_E_S4T1 => 16#06_4fa0# / Register_Width,
DDI_BUF_TRANS_E_S4T2 => 16#06_4fa4# / Register_Width,
DDI_BUF_TRANS_E_S5T1 => 16#06_4fa8# / Register_Width,
DDI_BUF_TRANS_E_S5T2 => 16#06_4fac# / Register_Width,
DDI_BUF_TRANS_E_S6T1 => 16#06_4fb0# / Register_Width,
DDI_BUF_TRANS_E_S6T2 => 16#06_4fb4# / Register_Width,
DDI_BUF_TRANS_E_S7T1 => 16#06_4fb8# / Register_Width,
DDI_BUF_TRANS_E_S7T2 => 16#06_4fbc# / Register_Width,
DDI_BUF_TRANS_E_S8T1 => 16#06_4fc0# / Register_Width,
DDI_BUF_TRANS_E_S8T2 => 16#06_4fc4# / Register_Width,
DDI_BUF_TRANS_E_S9T1 => 16#06_4fc8# / Register_Width,
DDI_BUF_TRANS_E_S9T2 => 16#06_4fcc# / Register_Width,
DP_TP_CTL_A => 16#06_4040# / Register_Width,
DP_TP_CTL_B => 16#06_4140# / Register_Width,
DP_TP_CTL_C => 16#06_4240# / Register_Width,
DP_TP_CTL_D => 16#06_4340# / Register_Width,
DP_TP_CTL_E => 16#06_4440# / Register_Width,
DP_TP_STATUS_B => 16#06_4144# / Register_Width,
DP_TP_STATUS_C => 16#06_4244# / Register_Width,
DP_TP_STATUS_D => 16#06_4344# / Register_Width,
DP_TP_STATUS_E => 16#06_4444# / Register_Width,
PORT_CLK_SEL_DDIA => 16#04_6100# / Register_Width,
PORT_CLK_SEL_DDIB => 16#04_6104# / Register_Width,
PORT_CLK_SEL_DDIC => 16#04_6108# / Register_Width,
PORT_CLK_SEL_DDID => 16#04_610c# / Register_Width,
PORT_CLK_SEL_DDIE => 16#04_6110# / Register_Width,
-- Skylake I_boost configuration
DISPIO_CR_TX_BMU_CR0 => 16#06_c00c# / Register_Width,
-- Skylake DPLL registers
DPLL1_CFGR1 => 16#06_c040# / Register_Width,
DPLL1_CFGR2 => 16#06_c044# / Register_Width,
DPLL2_CFGR1 => 16#06_c048# / Register_Width,
DPLL2_CFGR2 => 16#06_c04c# / Register_Width,
DPLL3_CFGR1 => 16#06_c050# / Register_Width,
DPLL3_CFGR2 => 16#06_c054# / Register_Width,
DPLL_CTRL1 => 16#06_c058# / Register_Width,
DPLL_CTRL2 => 16#06_c05c# / Register_Width,
DPLL_STATUS => 16#06_c060# / Register_Width,
-- CD CLK register
CDCLK_CTL => 16#04_6000# / Register_Width,
-- Skylake LCPLL registers
LCPLL1_CTL => 16#04_6010# / Register_Width,
LCPLL2_CTL => 16#04_6014# / Register_Width,
-- SPLL register
SPLL_CTL => 16#04_6020# / Register_Width,
-- WRPLL registers
WRPLL_CTL_1 => 16#04_6040# / Register_Width,
WRPLL_CTL_2 => 16#04_6060# / Register_Width,
-- Broxton Display Engine PLL registers
BXT_DE_PLL_CTL => 16#06_d000# / Register_Width,
BXT_DE_PLL_ENABLE => 16#04_6070# / Register_Width,
-- Broxton DDI PHY PLL registers
BXT_PORT_PLL_ENABLE_A => 16#04_6074# / Register_Width,
BXT_PORT_PLL_ENABLE_B => 16#04_6078# / Register_Width,
BXT_PORT_PLL_ENABLE_C => 16#04_607c# / Register_Width,
BXT_PORT_PLL_EBB_0_A => 16#16_2034# / Register_Width,
BXT_PORT_PLL_EBB_4_A => 16#16_2038# / Register_Width,
BXT_PORT_PLL_0_A => 16#16_2100# / Register_Width,
BXT_PORT_PLL_1_A => 16#16_2104# / Register_Width,
BXT_PORT_PLL_2_A => 16#16_2108# / Register_Width,
BXT_PORT_PLL_3_A => 16#16_210c# / Register_Width,
BXT_PORT_PLL_6_A => 16#16_2118# / Register_Width,
BXT_PORT_PLL_8_A => 16#16_2120# / Register_Width,
BXT_PORT_PLL_9_A => 16#16_2124# / Register_Width,
BXT_PORT_PLL_10_A => 16#16_2128# / Register_Width,
BXT_PORT_PLL_EBB_0_B => 16#06_c034# / Register_Width,
BXT_PORT_PLL_EBB_4_B => 16#06_c038# / Register_Width,
BXT_PORT_PLL_0_B => 16#06_c100# / Register_Width,
BXT_PORT_PLL_1_B => 16#06_c104# / Register_Width,
BXT_PORT_PLL_2_B => 16#06_c108# / Register_Width,
BXT_PORT_PLL_3_B => 16#06_c10c# / Register_Width,
BXT_PORT_PLL_6_B => 16#06_c118# / Register_Width,
BXT_PORT_PLL_8_B => 16#06_c120# / Register_Width,
BXT_PORT_PLL_9_B => 16#06_c124# / Register_Width,
BXT_PORT_PLL_10_B => 16#06_c128# / Register_Width,
BXT_PORT_PLL_EBB_0_C => 16#06_c340# / Register_Width,
BXT_PORT_PLL_EBB_4_C => 16#06_c344# / Register_Width,
BXT_PORT_PLL_0_C => 16#06_c380# / Register_Width,
BXT_PORT_PLL_1_C => 16#06_c384# / Register_Width,
BXT_PORT_PLL_2_C => 16#06_c388# / Register_Width,
BXT_PORT_PLL_3_C => 16#06_c38c# / Register_Width,
BXT_PORT_PLL_6_C => 16#06_c398# / Register_Width,
BXT_PORT_PLL_8_C => 16#06_c3a0# / Register_Width,
BXT_PORT_PLL_9_C => 16#06_c3a4# / Register_Width,
BXT_PORT_PLL_10_C => 16#06_c3a8# / Register_Width,
-- Broxton DDI PHY PCS? registers
BXT_PORT_PCS_DW10_01_A => 16#16_2428# / Register_Width,
BXT_PORT_PCS_DW12_01_A => 16#16_2430# / Register_Width,
BXT_PORT_PCS_DW10_GRP_A => 16#16_2c28# / Register_Width,
BXT_PORT_PCS_DW12_GRP_A => 16#16_2c30# / Register_Width,
BXT_PORT_PCS_DW10_01_B => 16#06_c428# / Register_Width,
BXT_PORT_PCS_DW12_01_B => 16#06_c430# / Register_Width,
BXT_PORT_PCS_DW10_01_C => 16#06_c828# / Register_Width,
BXT_PORT_PCS_DW12_01_C => 16#06_c830# / Register_Width,
BXT_PORT_PCS_DW10_GRP_B => 16#06_cc28# / Register_Width,
BXT_PORT_PCS_DW12_GRP_B => 16#06_cc30# / Register_Width,
BXT_PORT_PCS_DW10_GRP_C => 16#06_ce28# / Register_Width,
BXT_PORT_PCS_DW12_GRP_C => 16#06_ce30# / Register_Width,
-- Broxton DDI PHY registers
BXT_P_CR_GT_DISP_PWRON => 16#13_8090# / Register_Width,
BXT_PHY_CTL_A => 16#06_4c00# / Register_Width,
BXT_PHY_CTL_B => 16#06_4c10# / Register_Width,
BXT_PHY_CTL_C => 16#06_4c20# / Register_Width,
BXT_PHY_CTL_FAM_EDP => 16#06_4c80# / Register_Width,
BXT_PHY_CTL_FAM_DDI => 16#06_4c90# / Register_Width,
-- Broxton DDI PHY common lane registers
BXT_PORT_CL1CM_DW0_A => 16#16_2000# / Register_Width,
BXT_PORT_CL1CM_DW0_BC => 16#06_c000# / Register_Width,
BXT_PORT_CL1CM_DW9_A => 16#16_2024# / Register_Width,
BXT_PORT_CL1CM_DW9_BC => 16#06_c024# / Register_Width,
BXT_PORT_CL1CM_DW10_A => 16#16_2028# / Register_Width,
BXT_PORT_CL1CM_DW10_BC => 16#06_c028# / Register_Width,
BXT_PORT_CL1CM_DW28_A => 16#16_2070# / Register_Width,
BXT_PORT_CL1CM_DW28_BC => 16#06_c070# / Register_Width,
BXT_PORT_CL1CM_DW30_A => 16#16_2078# / Register_Width,
BXT_PORT_CL1CM_DW30_BC => 16#06_c078# / Register_Width,
BXT_PORT_CL2CM_DW6_BC => 16#06_c358# / Register_Width,
-- Broxton DDI PHY TX lane registers
BXT_PORT_TX_DW2_LN0_A => 16#16_2508# / Register_Width,
BXT_PORT_TX_DW3_LN0_A => 16#16_250c# / Register_Width,
BXT_PORT_TX_DW4_LN0_A => 16#16_2510# / Register_Width,
BXT_PORT_TX_DW14_LN0_A => 16#16_2538# / Register_Width,
BXT_PORT_TX_DW14_LN1_A => 16#16_25b8# / Register_Width,
BXT_PORT_TX_DW14_LN2_A => 16#16_2738# / Register_Width,
BXT_PORT_TX_DW14_LN3_A => 16#16_27b8# / Register_Width,
BXT_PORT_TX_DW2_GRP_A => 16#16_2d08# / Register_Width,
BXT_PORT_TX_DW3_GRP_A => 16#16_2d0c# / Register_Width,
BXT_PORT_TX_DW4_GRP_A => 16#16_2d10# / Register_Width,
BXT_PORT_TX_DW2_LN0_B => 16#06_c508# / Register_Width,
BXT_PORT_TX_DW3_LN0_B => 16#06_c50c# / Register_Width,
BXT_PORT_TX_DW4_LN0_B => 16#06_c510# / Register_Width,
BXT_PORT_TX_DW14_LN0_B => 16#06_c538# / Register_Width,
BXT_PORT_TX_DW14_LN1_B => 16#06_c5b8# / Register_Width,
BXT_PORT_TX_DW14_LN2_B => 16#06_c738# / Register_Width,
BXT_PORT_TX_DW14_LN3_B => 16#06_c7b8# / Register_Width,
BXT_PORT_TX_DW2_GRP_B => 16#06_cd08# / Register_Width,
BXT_PORT_TX_DW3_GRP_B => 16#06_cd0c# / Register_Width,
BXT_PORT_TX_DW4_GRP_B => 16#06_cd10# / Register_Width,
BXT_PORT_TX_DW2_LN0_C => 16#06_c908# / Register_Width,
BXT_PORT_TX_DW3_LN0_C => 16#06_c90c# / Register_Width,
BXT_PORT_TX_DW4_LN0_C => 16#06_c910# / Register_Width,
BXT_PORT_TX_DW14_LN0_C => 16#06_c938# / Register_Width,
BXT_PORT_TX_DW14_LN1_C => 16#06_c9b8# / Register_Width,
BXT_PORT_TX_DW14_LN2_C => 16#06_cb38# / Register_Width,
BXT_PORT_TX_DW14_LN3_C => 16#06_cbb8# / Register_Width,
BXT_PORT_TX_DW2_GRP_C => 16#06_cf08# / Register_Width,
BXT_PORT_TX_DW3_GRP_C => 16#06_cf0c# / Register_Width,
BXT_PORT_TX_DW4_GRP_C => 16#06_cf10# / Register_Width,
-- Broxton DDI PHY ref registers
BXT_PORT_REF_DW3_A => 16#16_218c# / Register_Width,
BXT_PORT_REF_DW3_BC => 16#06_c18c# / Register_Width,
BXT_PORT_REF_DW6_A => 16#16_2198# / Register_Width,
BXT_PORT_REF_DW6_BC => 16#06_c198# / Register_Width,
BXT_PORT_REF_DW8_A => 16#16_21a0# / Register_Width,
BXT_PORT_REF_DW8_BC => 16#06_c1a0# / Register_Width,
-- Power Down Well registers
PWR_WELL_CTL_BIOS => 16#04_5400# / Register_Width,
PWR_WELL_CTL_DRIVER => 16#04_5404# / Register_Width,
PWR_WELL_CTL_KVMR => 16#04_5408# / Register_Width,
PWR_WELL_CTL_DEBUG => 16#04_540c# / Register_Width,
PWR_WELL_CTL5 => 16#04_5410# / Register_Width,
PWR_WELL_CTL6 => 16#04_5414# / Register_Width,
-- class Panel registers
GMCH_PP_STATUS => 16#06_1200# / Register_Width,
GMCH_PP_CONTROL => 16#06_1204# / Register_Width,
GMCH_PP_ON_DELAYS => 16#06_1208# / Register_Width,
GMCH_PP_OFF_DELAYS => 16#06_120c# / Register_Width,
GMCH_PP_DIVISOR => 16#06_1210# / Register_Width,
GMCH_PFIT_CONTROL => 16#06_1230# / Register_Width,
PCH_PP_STATUS => 16#0c_7200# / Register_Width,
PCH_PP_CONTROL => 16#0c_7204# / Register_Width,
PCH_PP_ON_DELAYS => 16#0c_7208# / Register_Width,
PCH_PP_OFF_DELAYS => 16#0c_720c# / Register_Width,
PCH_PP_DIVISOR => 16#0c_7210# / Register_Width,
BLC_PWM_CPU_CTL => 16#04_8254# / Register_Width,
BLC_PWM_PCH_CTL2 => 16#0c_8254# / Register_Width,
-- GMCH LVDS Connector Registers
GMCH_LVDS => 16#06_1180# / Register_Width,
-- PCH LVDS Connector Registers
PCH_LVDS => 16#0e_1180# / Register_Width,
-- PCH ADPA Connector Registers
PCH_ADPA => 16#0e_1100# / Register_Width,
-- GMCH DVOB Connector Registers
GMCH_SDVOB => 16#06_1140# / Register_Width,
-- PCH HDMIB Connector Registers
PCH_HDMIB => 16#0e_1140# / Register_Width,
-- GMCH DVOC Connector Registers
GMCH_SDVOC => 16#06_1160# / Register_Width,
-- PCH HDMIC Connector Registers
PCH_HDMIC => 16#0e_1150# / Register_Width,
-- PCH HDMID Connector Registers
PCH_HDMID => 16#0e_1160# / Register_Width,
-- Intel Registers
CPU_VGACNTRL => 16#04_1000# / Register_Width,
GMCH_VGACNTRL => 16#07_1400# / Register_Width,
FUSE_STATUS => 16#04_2000# / Register_Width,
FBA_CFB_BASE => 16#04_3200# / Register_Width,
IPS_CTL => 16#04_3408# / Register_Width,
ARB_CTL => 16#04_5000# / Register_Width,
DBUF_CTL => 16#04_5008# / Register_Width,
NDE_RSTWRN_OPT => 16#04_6408# / Register_Width,
PCH_DREF_CONTROL => 16#0c_6200# / Register_Width,
BLC_PWM_PCH_CTL1 => 16#0c_8250# / Register_Width,
BLC_PWM_CPU_CTL2 => 16#04_8250# / Register_Width,
PCH_DPLL_SEL => 16#0c_7000# / Register_Width,
GT_MAILBOX => 16#13_8124# / Register_Width,
GT_MAILBOX_DATA => 16#13_8128# / Register_Width,
GT_MAILBOX_DATA_1 => 16#13_812c# / Register_Width,
PCH_DP_B => 16#0e_4100# / Register_Width,
PCH_DP_AUX_CTL_B => 16#0e_4110# / Register_Width,
PCH_DP_AUX_DATA_B_1 => 16#0e_4114# / Register_Width,
PCH_DP_AUX_DATA_B_2 => 16#0e_4118# / Register_Width,
PCH_DP_AUX_DATA_B_3 => 16#0e_411c# / Register_Width,
PCH_DP_AUX_DATA_B_4 => 16#0e_4120# / Register_Width,
PCH_DP_AUX_DATA_B_5 => 16#0e_4124# / Register_Width,
PCH_DP_C => 16#0e_4200# / Register_Width,
PCH_DP_AUX_CTL_C => 16#0e_4210# / Register_Width,
PCH_DP_AUX_DATA_C_1 => 16#0e_4214# / Register_Width,
PCH_DP_AUX_DATA_C_2 => 16#0e_4218# / Register_Width,
PCH_DP_AUX_DATA_C_3 => 16#0e_421c# / Register_Width,
PCH_DP_AUX_DATA_C_4 => 16#0e_4220# / Register_Width,
PCH_DP_AUX_DATA_C_5 => 16#0e_4224# / Register_Width,
PCH_DP_D => 16#0e_4300# / Register_Width,
PCH_DP_AUX_CTL_D => 16#0e_4310# / Register_Width,
PCH_DP_AUX_DATA_D_1 => 16#0e_4314# / Register_Width,
PCH_DP_AUX_DATA_D_2 => 16#0e_4318# / Register_Width,
PCH_DP_AUX_DATA_D_3 => 16#0e_431c# / Register_Width,
PCH_DP_AUX_DATA_D_4 => 16#0e_4320# / Register_Width,
PCH_DP_AUX_DATA_D_5 => 16#0e_4324# / Register_Width,
-- watermark registers
WM1_LP_ILK => 16#04_5108# / Register_Width,
WM2_LP_ILK => 16#04_510c# / Register_Width,
WM3_LP_ILK => 16#04_5110# / Register_Width,
-- audio VID/DID
AUD_VID_DID => 16#06_5020# / Register_Width,
PCH_AUD_VID_DID => 16#0e_5020# / Register_Width,
G4X_AUD_VID_DID => 16#06_2020# / Register_Width,
-- interrupt registers
DEISR => 16#04_4000# / Register_Width,
DEIMR => 16#04_4004# / Register_Width,
DEIIR => 16#04_4008# / Register_Width,
DEIER => 16#04_400c# / Register_Width,
GTISR => 16#04_4010# / Register_Width,
GTIMR => 16#04_4014# / Register_Width,
GTIIR => 16#04_4018# / Register_Width,
GTIER => 16#04_401c# / Register_Width,
SDEISR => 16#0c_4000# / Register_Width,
SDEIMR => 16#0c_4004# / Register_Width,
SDEIIR => 16#0c_4008# / Register_Width,
SDEIER => 16#0c_400c# / Register_Width,
-- I2C stuff
GMCH_GMBUS0 => 16#00_5100# / Register_Width,
GMCH_GMBUS1 => 16#00_5104# / Register_Width,
GMCH_GMBUS2 => 16#00_5108# / Register_Width,
GMCH_GMBUS3 => 16#00_510c# / Register_Width,
GMCH_GMBUS4 => 16#00_5110# / Register_Width,
GMCH_GMBUS5 => 16#00_5120# / Register_Width,
PCH_GMBUS0 => 16#0c_5100# / Register_Width,
PCH_GMBUS1 => 16#0c_5104# / Register_Width,
PCH_GMBUS2 => 16#0c_5108# / Register_Width,
PCH_GMBUS3 => 16#0c_510c# / Register_Width,
PCH_GMBUS4 => 16#0c_5110# / Register_Width,
PCH_GMBUS5 => 16#0c_5120# / Register_Width,
-- clock gating -- maybe have to touch this
DSPCLK_GATE_D => 16#04_2020# / Register_Width,
PCH_FDI_CHICKEN_B_C => 16#0c_2000# / Register_Width,
PCH_DSPCLK_GATE_D => 16#0c_2020# / Register_Width,
-- hotplug and initial detection
HOTPLUG_CTL => 16#04_4030# / Register_Width,
PORT_HOTPLUG_EN => 16#06_1110# / Register_Width,
PORT_HOTPLUG_STAT => 16#06_1114# / Register_Width,
SHOTPLUG_CTL => 16#0c_4030# / Register_Width,
SFUSE_STRAP => 16#0c_2014# / Register_Width,
-- Render Engine Command Streamer
ARB_MODE => 16#00_4030# / Register_Width,
HWS_PGA => 16#00_4080# / Register_Width,
RCS_RING_BUFFER_TAIL => 16#00_2030# / Register_Width,
VCS_RING_BUFFER_TAIL => 16#01_2030# / Register_Width,
BCS_RING_BUFFER_TAIL => 16#02_2030# / Register_Width,
RCS_RING_BUFFER_HEAD => 16#00_2034# / Register_Width,
VCS_RING_BUFFER_HEAD => 16#01_2034# / Register_Width,
BCS_RING_BUFFER_HEAD => 16#02_2034# / Register_Width,
RCS_RING_BUFFER_STRT => 16#00_2038# / Register_Width,
VCS_RING_BUFFER_STRT => 16#01_2038# / Register_Width,
BCS_RING_BUFFER_STRT => 16#02_2038# / Register_Width,
RCS_RING_BUFFER_CTL => 16#00_203c# / Register_Width,
VCS_RING_BUFFER_CTL => 16#01_203c# / Register_Width,
BCS_RING_BUFFER_CTL => 16#02_203c# / Register_Width,
MI_MODE => 16#00_209c# / Register_Width,
INSTPM => 16#00_20c0# / Register_Width,
GAB_CTL_REG => 16#02_4000# / Register_Width,
PP_DCLV_HIGH => 16#00_2220# / Register_Width,
PP_DCLV_LOW => 16#00_2228# / Register_Width,
VCS_PP_DCLV_HIGH => 16#01_2220# / Register_Width,
VCS_PP_DCLV_LOW => 16#01_2228# / Register_Width,
BCS_PP_DCLV_HIGH => 16#02_2220# / Register_Width,
BCS_PP_DCLV_LOW => 16#02_2228# / Register_Width,
ILK_DISPLAY_CHICKEN2 => 16#04_2004# / Register_Width,
UCGCTL1 => 16#00_9400# / Register_Width,
UCGCTL2 => 16#00_9404# / Register_Width,
MBCTL => 16#00_907c# / Register_Width,
HWSTAM => 16#00_2098# / Register_Width,
VCS_HWSTAM => 16#01_2098# / Register_Width,
BCS_HWSTAM => 16#02_2098# / Register_Width,
IIR => 16#04_4028# / Register_Width,
PIPE_FRMCNT_A => 16#07_0040# / Register_Width,
PIPE_FRMCNT_B => 16#07_1040# / Register_Width,
PIPE_FRMCNT_C => 16#07_2040# / Register_Width,
FBC_CTL => 16#04_3208# / Register_Width,
PIPE_VSYNCSHIFT_A => 16#06_0028# / Register_Width,
PIPE_VSYNCSHIFT_B => 16#06_1028# / Register_Width,
PIPE_VSYNCSHIFT_C => 16#06_2028# / Register_Width,
WM_PIPE_A => 16#04_5100# / Register_Width,
WM_PIPE_B => 16#04_5104# / Register_Width,
WM_PIPE_C => 16#04_5200# / Register_Width,
PIPE_SCANLINE_A => 16#07_0000# / Register_Width,
PIPE_SCANLINE_B => 16#07_1000# / Register_Width,
PIPE_SCANLINE_C => 16#07_2000# / Register_Width,
GFX_MODE => 16#00_2520# / Register_Width,
CACHE_MODE_0 => 16#00_2120# / Register_Width,
SLEEP_PSMI_CONTROL => 16#01_2050# / Register_Width,
CTX_SIZE => 16#00_21a0# / Register_Width,
GAC_ECO_BITS => 16#01_4090# / Register_Width,
GAM_ECOCHK => 16#00_4090# / Register_Width,
QUIRK_02084 => 16#00_2084# / Register_Width,
QUIRK_02090 => 16#00_2090# / Register_Width,
GT_MODE => 16#00_20d0# / Register_Width,
QUIRK_F0060 => 16#0f_0060# / Register_Width,
QUIRK_F1060 => 16#0f_1060# / Register_Width,
QUIRK_F2060 => 16#0f_2060# / Register_Width,
AUD_CNTRL_ST2 => 16#0e_50c0# / Register_Width,
AUD_CNTL_ST_A => 16#0e_50b4# / Register_Width,
AUD_CNTL_ST_B => 16#0e_51b4# / Register_Width,
AUD_CNTL_ST_C => 16#0e_52b4# / Register_Width,
AUD_HDMIW_HDMIEDID_A => 16#0e_5050# / Register_Width,
AUD_HDMIW_HDMIEDID_B => 16#0e_5150# / Register_Width,
AUD_HDMIW_HDMIEDID_C => 16#0e_5250# / Register_Width,
AUD_CONFIG_A => 16#0e_5000# / Register_Width,
AUD_CONFIG_B => 16#0e_5100# / Register_Width,
AUD_CONFIG_C => 16#0e_5200# / Register_Width,
TRANS_DP_CTL_A => 16#0e_0300# / Register_Width,
TRANS_DP_CTL_B => 16#0e_1300# / Register_Width,
TRANS_DP_CTL_C => 16#0e_2300# / Register_Width,
TRANS_VSYNCSHIFT_A => 16#0e_0028# / Register_Width,
TRANS_VSYNCSHIFT_B => 16#0e_1028# / Register_Width,
TRANS_VSYNCSHIFT_C => 16#0e_2028# / Register_Width,
PCH_RAWCLK_FREQ => 16#0c_6204# / Register_Width,
QUIRK_C2004 => 16#0c_2004# / Register_Width,
-- MCHBAR Mirror
GMCH_CLKCFG => 16#01_0c00# / Register_Width);
subtype Registers_Index is Registers_Invalid_Index range
Registers_Invalid_Index'Succ (Invalid_Register) ..
Registers_Invalid_Index'Last;
-- aliased registers
DP_CTL_A : constant Registers_Index := DDI_BUF_CTL_A;
GMCH_DP_B : constant Registers_Index := DDI_BUF_CTL_B;
GMCH_DP_C : constant Registers_Index := DDI_BUF_CTL_C;
GMCH_DP_D : constant Registers_Index := DDI_BUF_CTL_D;
DP_AUX_CTL_A : constant Registers_Index := DDI_AUX_CTL_A;
DP_AUX_DATA_A_1 : constant Registers_Index := DDI_AUX_DATA_A_1;
DP_AUX_DATA_A_2 : constant Registers_Index := DDI_AUX_DATA_A_2;
DP_AUX_DATA_A_3 : constant Registers_Index := DDI_AUX_DATA_A_3;
DP_AUX_DATA_A_4 : constant Registers_Index := DDI_AUX_DATA_A_4;
DP_AUX_DATA_A_5 : constant Registers_Index := DDI_AUX_DATA_A_5;
ILK_DISPLAY_CHICKEN1 : constant Registers_Index := FUSE_STATUS;
GMCH_ADPA : constant Registers_Index := FDI_TX_CTL_B;
GMCH_HDMIB : constant Registers_Index := GMCH_SDVOB;
GMCH_HDMIC : constant Registers_Index := GMCH_SDVOC;
---------------------------------------------------------------------------
Default_Timeout_MS : constant := 10;
---------------------------------------------------------------------------
procedure Posting_Read
(Register : in Registers_Index)
with
Global => (In_Out => Register_State),
Depends => (Register_State =>+ (Register)),
Pre => True,
Post => True;
pragma Warnings (GNATprove, Off, "unused variable ""Verbose""",
Reason => "Only used on debugging path");
procedure Read
(Register : in Registers_Index;
Value : out Word32;
Verbose : in Boolean := True)
with
Global => (In_Out => Register_State),
Depends => ((Value, Register_State) => (Register, Register_State),
null => Verbose),
Pre => True,
Post => True;
pragma Warnings (GNATprove, On, "unused variable ""Verbose""");
procedure Write
(Register : Registers_Index;
Value : Word32)
with
Global => (In_Out => Register_State),
Depends => (Register_State => (Register, Register_State, Value)),
Pre => True,
Post => True;
procedure Is_Set_Mask
(Register : in Registers_Index;
Mask : in Word32;
Result : out Boolean);
pragma Warnings (GNATprove, Off, "unused initial value of ""Verbose""",
Reason => "Only used on debugging path");
procedure Wait
(Register : Registers_Index;
Mask : Word32;
Value : Word32;
TOut_MS : Natural := Default_Timeout_MS;
Verbose : Boolean := False);
procedure Wait_Set_Mask
(Register : Registers_Index;
Mask : Word32;
TOut_MS : Natural := Default_Timeout_MS;
Verbose : Boolean := False);
procedure Wait_Unset_Mask
(Register : Registers_Index;
Mask : Word32;
TOut_MS : Natural := Default_Timeout_MS;
Verbose : Boolean := False);
pragma Warnings (GNATprove, On, "unused initial value of ""Verbose""");
procedure Set_Mask
(Register : Registers_Index;
Mask : Word32);
procedure Unset_Mask
(Register : Registers_Index;
Mask : Word32);
procedure Unset_And_Set_Mask
(Register : Registers_Index;
Mask_Unset : Word32;
Mask_Set : Word32);
procedure Clear_Fences;
procedure Add_Fence
(First_Page : in GTT_Range;
Last_Page : in GTT_Range;
Tiling : in XY_Tiling;
Pitch : in Natural;
Success : out Boolean);
procedure Remove_Fence (First_Page, Last_Page : GTT_Range);
pragma Warnings (Off, "declaration of ""Write_GTT"" hides one at *");
procedure Write_GTT
(GTT_Page : GTT_Range;
Device_Address : GTT_Address_Type;
Valid : Boolean)
with
Global => (In_Out => GTT_State),
Depends => (GTT_State =>+ (GTT_Page, Device_Address, Valid)),
Pre => True,
Post => True;
pragma Warnings (On, "declaration of ""Write_GTT"" hides one at *");
procedure Set_Register_Base (Base : Word64; GTT_Base : Word64 := 0)
with
Global => (Output => Address_State),
Depends => (Address_State => (Base, GTT_Base)),
Pre => True,
Post => True;
end HW.GFX.GMA.Registers;
| 39.323529 | 90 | 0.615997 |
12887697e28fbe8d08d730d90302d3fd3bd607ca | 50,399 | adb | Ada | source/amf/ocl/amf-internals-ocl_void_types.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/ocl/amf-internals-ocl_void_types.adb | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/ocl/amf-internals-ocl_void_types.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.Elements;
with AMF.Internals.Element_Collections;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.OCL_Attributes;
with AMF.String_Collections;
with AMF.UML.Classifier_Template_Parameters;
with AMF.UML.Classifiers.Collections;
with AMF.UML.Collaboration_Uses.Collections;
with AMF.UML.Comments.Collections;
with AMF.UML.Constraints.Collections;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Element_Imports.Collections;
with AMF.UML.Elements.Collections;
with AMF.UML.Features.Collections;
with AMF.UML.Generalization_Sets.Collections;
with AMF.UML.Generalizations.Collections;
with AMF.UML.Named_Elements.Collections;
with AMF.UML.Namespaces.Collections;
with AMF.UML.Package_Imports.Collections;
with AMF.UML.Packageable_Elements.Collections;
with AMF.UML.Packages.Collections;
with AMF.UML.Parameterable_Elements.Collections;
with AMF.UML.Properties.Collections;
with AMF.UML.Redefinable_Elements.Collections;
with AMF.UML.Redefinable_Template_Signatures;
with AMF.UML.String_Expressions;
with AMF.UML.Substitutions.Collections;
with AMF.UML.Template_Bindings.Collections;
with AMF.UML.Template_Parameters;
with AMF.UML.Template_Signatures;
with AMF.UML.Types;
with AMF.UML.Use_Cases.Collections;
with AMF.Visitors.OCL_Iterators;
with AMF.Visitors.OCL_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.OCL_Void_Types is
-------------------
-- Get_Attribute --
-------------------
overriding function Get_Attribute
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Attribute
(Self.Element)));
end Get_Attribute;
---------------------------
-- Get_Collaboration_Use --
---------------------------
overriding function Get_Collaboration_Use
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Collaboration_Use
(Self.Element)));
end Get_Collaboration_Use;
-----------------
-- Get_Feature --
-----------------
overriding function Get_Feature
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Feature
(Self.Element)));
end Get_Feature;
-----------------
-- Get_General --
-----------------
overriding function Get_General
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_General
(Self.Element)));
end Get_General;
------------------------
-- Get_Generalization --
------------------------
overriding function Get_Generalization
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Generalization
(Self.Element)));
end Get_Generalization;
--------------------------
-- Get_Inherited_Member --
--------------------------
overriding function Get_Inherited_Member
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Inherited_Member
(Self.Element)));
end Get_Inherited_Member;
---------------------
-- Get_Is_Abstract --
---------------------
overriding function Get_Is_Abstract
(Self : not null access constant OCL_Void_Type_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.OCL_Attributes.Internal_Get_Is_Abstract
(Self.Element);
end Get_Is_Abstract;
---------------------
-- Set_Is_Abstract --
---------------------
overriding procedure Set_Is_Abstract
(Self : not null access OCL_Void_Type_Proxy;
To : Boolean) is
begin
AMF.Internals.Tables.OCL_Attributes.Internal_Set_Is_Abstract
(Self.Element, To);
end Set_Is_Abstract;
---------------------------------
-- Get_Is_Final_Specialization --
---------------------------------
overriding function Get_Is_Final_Specialization
(Self : not null access constant OCL_Void_Type_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.OCL_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 OCL_Void_Type_Proxy;
To : Boolean) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_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 OCL_Void_Type_Proxy;
To : AMF.UML.Redefinable_Template_Signatures.UML_Redefinable_Template_Signature_Access) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_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 OCL_Void_Type_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.OCL_Attributes.Internal_Get_Powertype_Extent
(Self.Element)));
end Get_Powertype_Extent;
------------------------------
-- Get_Redefined_Classifier --
------------------------------
overriding function Get_Redefined_Classifier
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Redefined_Classifier
(Self.Element)));
end Get_Redefined_Classifier;
------------------------
-- Get_Representation --
------------------------
overriding function Get_Representation
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Representation
(Self.Element)));
end Get_Representation;
------------------------
-- Set_Representation --
------------------------
overriding procedure Set_Representation
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.UML.Collaboration_Uses.UML_Collaboration_Use_Access) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_Attributes.Internal_Get_Substitution
(Self.Element)));
end Get_Substitution;
----------------------------
-- Get_Template_Parameter --
----------------------------
overriding function Get_Template_Parameter
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Template_Parameter
(Self.Element)));
end Get_Template_Parameter;
----------------------------
-- Set_Template_Parameter --
----------------------------
overriding procedure Set_Template_Parameter
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.UML.Classifier_Template_Parameters.UML_Classifier_Template_Parameter_Access) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_Attributes.Internal_Get_Use_Case
(Self.Element)));
end Get_Use_Case;
------------------------
-- Get_Element_Import --
------------------------
overriding function Get_Element_Import
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Element_Import
(Self.Element)));
end Get_Element_Import;
-------------------------
-- Get_Imported_Member --
-------------------------
overriding function Get_Imported_Member
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Imported_Member
(Self.Element)));
end Get_Imported_Member;
----------------
-- Get_Member --
----------------
overriding function Get_Member
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Member
(Self.Element)));
end Get_Member;
----------------------
-- Get_Owned_Member --
----------------------
overriding function Get_Owned_Member
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Owned_Member
(Self.Element)));
end Get_Owned_Member;
--------------------
-- Get_Owned_Rule --
--------------------
overriding function Get_Owned_Rule
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Owned_Rule
(Self.Element)));
end Get_Owned_Rule;
------------------------
-- Get_Package_Import --
------------------------
overriding function Get_Package_Import
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Package_Import
(Self.Element)));
end Get_Package_Import;
---------------------------
-- Get_Client_Dependency --
---------------------------
overriding function Get_Client_Dependency
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Client_Dependency
(Self.Element)));
end Get_Client_Dependency;
--------------
-- Get_Name --
--------------
overriding function Get_Name
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_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_Name;
--------------
-- Set_Name --
--------------
overriding procedure Set_Name
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.Optional_String) is
begin
if To.Is_Empty then
AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name
(Self.Element, null);
else
AMF.Internals.Tables.OCL_Attributes.Internal_Set_Name
(Self.Element,
League.Strings.Internals.Internal (To.Value));
end if;
end Set_Name;
-------------------------
-- Get_Name_Expression --
-------------------------
overriding function Get_Name_Expression
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Name_Expression
(Self.Element)));
end Get_Name_Expression;
-------------------------
-- Set_Name_Expression --
-------------------------
overriding procedure Set_Name_Expression
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_Attributes.Internal_Get_Namespace
(Self.Element)));
end Get_Namespace;
------------------------
-- Get_Qualified_Name --
------------------------
overriding function Get_Qualified_Name
(Self : not null access constant OCL_Void_Type_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.OCL_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_Visibility --
--------------------
overriding function Get_Visibility
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Optional_UML_Visibility_Kind is
begin
return
AMF.Internals.Tables.OCL_Attributes.Internal_Get_Visibility
(Self.Element);
end Get_Visibility;
--------------------
-- Set_Visibility --
--------------------
overriding procedure Set_Visibility
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.UML.Optional_UML_Visibility_Kind) is
begin
AMF.Internals.Tables.OCL_Attributes.Internal_Set_Visibility
(Self.Element, To);
end Set_Visibility;
-----------------------
-- Get_Owned_Comment --
-----------------------
overriding function Get_Owned_Comment
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Comments.Collections.Set_Of_UML_Comment is
begin
return
AMF.UML.Comments.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Comment
(Self.Element)));
end Get_Owned_Comment;
-----------------------
-- Get_Owned_Element --
-----------------------
overriding function Get_Owned_Element
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element is
begin
return
AMF.UML.Elements.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owned_Element
(Self.Element)));
end Get_Owned_Element;
---------------
-- Get_Owner --
---------------
overriding function Get_Owner
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Elements.UML_Element_Access is
begin
return
AMF.UML.Elements.UML_Element_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.OCL_Attributes.Internal_Get_Owner
(Self.Element)));
end Get_Owner;
-----------------
-- Get_Package --
-----------------
overriding function Get_Package
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Package
(Self.Element)));
end Get_Package;
-----------------
-- Set_Package --
-----------------
overriding procedure Set_Package
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.UML.Packages.UML_Package_Access) is
begin
AMF.Internals.Tables.OCL_Attributes.Internal_Set_Package
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Package;
--------------------
-- Get_Visibility --
--------------------
overriding function Get_Visibility
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.UML_Visibility_Kind is
begin
return
AMF.Internals.Tables.OCL_Attributes.Internal_Get_Visibility
(Self.Element).Value;
end Get_Visibility;
--------------------
-- Set_Visibility --
--------------------
overriding procedure Set_Visibility
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.UML.UML_Visibility_Kind) is
begin
AMF.Internals.Tables.OCL_Attributes.Internal_Set_Visibility
(Self.Element, (False, To));
end Set_Visibility;
-----------------------------------
-- Get_Owning_Template_Parameter --
-----------------------------------
overriding function Get_Owning_Template_Parameter
(Self : not null access constant OCL_Void_Type_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.OCL_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 OCL_Void_Type_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_Attributes.Internal_Get_Template_Parameter
(Self.Element)));
end Get_Template_Parameter;
----------------------------
-- Set_Template_Parameter --
----------------------------
overriding procedure Set_Template_Parameter
(Self : not null access OCL_Void_Type_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_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 OCL_Void_Type_Proxy;
To : AMF.UML.Template_Signatures.UML_Template_Signature_Access) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_Attributes.Internal_Get_Template_Binding
(Self.Element)));
end Get_Template_Binding;
-----------------
-- Get_Is_Leaf --
-----------------
overriding function Get_Is_Leaf
(Self : not null access constant OCL_Void_Type_Proxy)
return Boolean is
begin
return
AMF.Internals.Tables.OCL_Attributes.Internal_Get_Is_Leaf
(Self.Element);
end Get_Is_Leaf;
-----------------
-- Set_Is_Leaf --
-----------------
overriding procedure Set_Is_Leaf
(Self : not null access OCL_Void_Type_Proxy;
To : Boolean) is
begin
AMF.Internals.Tables.OCL_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 OCL_Void_Type_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.OCL_Attributes.Internal_Get_Redefined_Element
(Self.Element)));
end Get_Redefined_Element;
------------------------------
-- Get_Redefinition_Context --
------------------------------
overriding function Get_Redefinition_Context
(Self : not null access constant OCL_Void_Type_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.OCL_Attributes.Internal_Get_Redefinition_Context
(Self.Element)));
end Get_Redefinition_Context;
------------------
-- All_Features --
------------------
overriding function All_Features
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.All_Features";
return All_Features (Self);
end All_Features;
-----------------
-- All_Parents --
-----------------
overriding function All_Parents
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Parents unimplemented");
raise Program_Error with "Unimplemented procedure OCL_Void_Type_Proxy.All_Parents";
return All_Parents (Self);
end All_Parents;
-----------------
-- Conforms_To --
-----------------
overriding function Conforms_To
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Conforms_To";
return Conforms_To (Self, Other);
end Conforms_To;
-------------
-- General --
-------------
overriding function General
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.General";
return General (Self);
end General;
-----------------------
-- Has_Visibility_Of --
-----------------------
overriding function Has_Visibility_Of
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Has_Visibility_Of";
return Has_Visibility_Of (Self, N);
end Has_Visibility_Of;
-------------
-- Inherit --
-------------
overriding function Inherit
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Inherit";
return Inherit (Self, Inhs);
end Inherit;
-------------------------
-- Inheritable_Members --
-------------------------
overriding function Inheritable_Members
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Inheritable_Members";
return Inheritable_Members (Self, C);
end Inheritable_Members;
----------------------
-- Inherited_Member --
----------------------
overriding function Inherited_Member
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Inherited_Member";
return Inherited_Member (Self);
end Inherited_Member;
-----------------
-- Is_Template --
-----------------
overriding function Is_Template
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Is_Template";
return Is_Template (Self);
end Is_Template;
-------------------------
-- May_Specialize_Type --
-------------------------
overriding function May_Specialize_Type
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.May_Specialize_Type";
return May_Specialize_Type (Self, C);
end May_Specialize_Type;
-------------
-- Parents --
-------------
overriding function Parents
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Parents unimplemented");
raise Program_Error with "Unimplemented procedure OCL_Void_Type_Proxy.Parents";
return Parents (Self);
end Parents;
------------------------
-- Exclude_Collisions --
------------------------
overriding function Exclude_Collisions
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_Proxy.Import_Members";
return Import_Members (Self, Imps);
end Import_Members;
---------------------
-- Imported_Member --
---------------------
overriding function Imported_Member
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Imported_Member";
return Imported_Member (Self);
end Imported_Member;
---------------------------------
-- Members_Are_Distinguishable --
---------------------------------
overriding function Members_Are_Distinguishable
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Members_Are_Distinguishable";
return Members_Are_Distinguishable (Self);
end Members_Are_Distinguishable;
------------------
-- Owned_Member --
------------------
overriding function Owned_Member
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Owned_Member";
return Owned_Member (Self);
end Owned_Member;
--------------------
-- All_Namespaces --
--------------------
overriding function All_Namespaces
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Namespaces.Collections.Ordered_Set_Of_UML_Namespace is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Namespaces unimplemented");
raise Program_Error with "Unimplemented procedure OCL_Void_Type_Proxy.All_Namespaces";
return All_Namespaces (Self);
end All_Namespaces;
-------------------------
-- All_Owning_Packages --
-------------------------
overriding function All_Owning_Packages
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_Proxy.Is_Distinguishable_From";
return Is_Distinguishable_From (Self, N, Ns);
end Is_Distinguishable_From;
---------------
-- Namespace --
---------------
overriding function Namespace
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Namespace";
return Namespace (Self);
end Namespace;
--------------------
-- Qualified_Name --
--------------------
overriding function Qualified_Name
(Self : not null access constant OCL_Void_Type_Proxy)
return League.Strings.Universal_String is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Qualified_Name unimplemented");
raise Program_Error with "Unimplemented procedure OCL_Void_Type_Proxy.Qualified_Name";
return Qualified_Name (Self);
end Qualified_Name;
---------------
-- Separator --
---------------
overriding function Separator
(Self : not null access constant OCL_Void_Type_Proxy)
return League.Strings.Universal_String is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Separator unimplemented");
raise Program_Error with "Unimplemented procedure OCL_Void_Type_Proxy.Separator";
return Separator (Self);
end Separator;
------------------------
-- All_Owned_Elements --
------------------------
overriding function All_Owned_Elements
(Self : not null access constant OCL_Void_Type_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Owned_Elements unimplemented");
raise Program_Error with "Unimplemented procedure OCL_Void_Type_Proxy.All_Owned_Elements";
return All_Owned_Elements (Self);
end All_Owned_Elements;
-------------------
-- Must_Be_Owned --
-------------------
overriding function Must_Be_Owned
(Self : not null access constant OCL_Void_Type_Proxy)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Must_Be_Owned unimplemented");
raise Program_Error with "Unimplemented procedure OCL_Void_Type_Proxy.Must_Be_Owned";
return Must_Be_Owned (Self);
end Must_Be_Owned;
-----------------
-- Conforms_To --
-----------------
overriding function Conforms_To
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Conforms_To";
return Conforms_To (Self, Other);
end Conforms_To;
------------------------
-- Is_Compatible_With --
------------------------
overriding function Is_Compatible_With
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_Proxy.Is_Template_Parameter";
return Is_Template_Parameter (Self);
end Is_Template_Parameter;
----------------------------
-- Parameterable_Elements --
----------------------------
overriding function Parameterable_Elements
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_Proxy.Parameterable_Elements";
return Parameterable_Elements (Self);
end Parameterable_Elements;
------------------------
-- Is_Consistent_With --
------------------------
overriding function Is_Consistent_With
(Self : not null access constant OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_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 OCL_Void_Type_Proxy.Is_Redefinition_Context_Valid";
return Is_Redefinition_Context_Valid (Self, Redefined);
end Is_Redefinition_Context_Valid;
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant OCL_Void_Type_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.OCL_Visitors.OCL_Visitor'Class then
AMF.Visitors.OCL_Visitors.OCL_Visitor'Class
(Visitor).Enter_Void_Type
(AMF.OCL.Void_Types.OCL_Void_Type_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant OCL_Void_Type_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.OCL_Visitors.OCL_Visitor'Class then
AMF.Visitors.OCL_Visitors.OCL_Visitor'Class
(Visitor).Leave_Void_Type
(AMF.OCL.Void_Types.OCL_Void_Type_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant OCL_Void_Type_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.OCL_Iterators.OCL_Iterator'Class then
AMF.Visitors.OCL_Iterators.OCL_Iterator'Class
(Iterator).Visit_Void_Type
(Visitor,
AMF.OCL.Void_Types.OCL_Void_Type_Access (Self),
Control);
end if;
end Visit_Element;
end AMF.Internals.OCL_Void_Types;
| 36.362915 | 107 | 0.643346 |
c5b40dffef200c1bf9b1e214510e46ac3ee2a27a | 5,863 | ads | Ada | extern/gnat_sdl/gnat_sdl2/src/sdl_filesystem_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_filesystem_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_filesystem_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 Interfaces.C.Strings;
package SDL_filesystem_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_filesystem.h
-- *
-- * \brief Include file for filesystem SDL API functions
--
-- Set up for C function definitions, even when using C++
--*
-- * \brief Get the path where the application resides.
-- *
-- * Get the "base path". This is the directory where the application was run
-- * from, which is probably the installation directory, and may or may not
-- * be the process's current working directory.
-- *
-- * This returns an absolute path in UTF-8 encoding, and is guaranteed to
-- * end with a path separator ('\\' on Windows, '/' most other places).
-- *
-- * The pointer returned by this function is owned by you. Please call
-- * SDL_free() on the pointer when you are done with it, or it will be a
-- * memory leak. This is not necessarily a fast call, though, so you should
-- * call this once near startup and save the string if you need it.
-- *
-- * Some platforms can't determine the application's path, and on other
-- * platforms, this might be meaningless. In such cases, this function will
-- * return NULL.
-- *
-- * \return String of base dir in UTF-8 encoding, or NULL on error.
-- *
-- * \sa SDL_GetPrefPath
--
function SDL_GetBasePath return Interfaces.C.Strings.chars_ptr; -- ..\SDL2_tmp\SDL_filesystem.h:63
pragma Import (C, SDL_GetBasePath, "SDL_GetBasePath");
--*
-- * \brief Get the user-and-app-specific path where files can be written.
-- *
-- * Get the "pref dir". This is meant to be where users can write personal
-- * files (preferences and save games, etc) that are specific to your
-- * application. This directory is unique per user, per application.
-- *
-- * This function will decide the appropriate location in the native filesystem,
-- * create the directory if necessary, and return a string of the absolute
-- * path to the directory in UTF-8 encoding.
-- *
-- * On Windows, the string might look like:
-- * "C:\\Users\\bob\\AppData\\Roaming\\My Company\\My Program Name\\"
-- *
-- * On Linux, the string might look like:
-- * "/home/bob/.local/share/My Program Name/"
-- *
-- * On Mac OS X, the string might look like:
-- * "/Users/bob/Library/Application Support/My Program Name/"
-- *
-- * (etc.)
-- *
-- * You specify the name of your organization (if it's not a real organization,
-- * your name or an Internet domain you own might do) and the name of your
-- * application. These should be untranslated proper names.
-- *
-- * Both the org and app strings may become part of a directory name, so
-- * please follow these rules:
-- *
-- * - Try to use the same org string (including case-sensitivity) for
-- * all your applications that use this function.
-- * - Always use a unique app string for each one, and make sure it never
-- * changes for an app once you've decided on it.
-- * - Unicode characters are legal, as long as it's UTF-8 encoded, but...
-- * - ...only use letters, numbers, and spaces. Avoid punctuation like
-- * "Game Name 2: Bad Guy's Revenge!" ... "Game Name 2" is sufficient.
-- *
-- * This returns an absolute path in UTF-8 encoding, and is guaranteed to
-- * end with a path separator ('\\' on Windows, '/' most other places).
-- *
-- * The pointer returned by this function is owned by you. Please call
-- * SDL_free() on the pointer when you are done with it, or it will be a
-- * memory leak. This is not necessarily a fast call, though, so you should
-- * call this once near startup and save the string if you need it.
-- *
-- * You should assume the path returned by this function is the only safe
-- * place to write files (and that SDL_GetBasePath(), while it might be
-- * writable, or even the parent of the returned path, aren't where you
-- * should be writing things).
-- *
-- * Some platforms can't determine the pref path, and on other
-- * platforms, this might be meaningless. In such cases, this function will
-- * return NULL.
-- *
-- * \param org The name of your organization.
-- * \param app The name of your application.
-- * \return UTF-8 string of user dir in platform-dependent notation. NULL
-- * if there's a problem (creating directory failed, etc).
-- *
-- * \sa SDL_GetBasePath
--
function SDL_GetPrefPath (org : Interfaces.C.Strings.chars_ptr; app : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr; -- ..\SDL2_tmp\SDL_filesystem.h:126
pragma Import (C, SDL_GetPrefPath, "SDL_GetPrefPath");
-- Ends C function definitions when using C++
-- vi: set ts=4 sw=4 expandtab:
end SDL_filesystem_h;
| 45.804688 | 180 | 0.672181 |
12b276af83767ca84f33f6a14471601b2bbc2a99 | 1,692 | adb | Ada | src/ttf/sdl-ttfs-versions.adb | Fabien-Chouteau/sdlada | f08d72e3f5dcec228d68fb5b6681ea831f81ef47 | [
"Zlib"
] | 1 | 2021-10-30T14:41:56.000Z | 2021-10-30T14:41:56.000Z | src/ttf/sdl-ttfs-versions.adb | Fabien-Chouteau/sdlada | f08d72e3f5dcec228d68fb5b6681ea831f81ef47 | [
"Zlib"
] | null | null | null | src/ttf/sdl-ttfs-versions.adb | Fabien-Chouteau/sdlada | f08d72e3f5dcec228d68fb5b6681ea831f81ef47 | [
"Zlib"
] | null | null | null | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- 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.
--------------------------------------------------------------------------------------------------------------------
with Interfaces.C;
with Interfaces.C.Strings;
with System;
package body SDL.TTFs.Versions is
package C renames Interfaces.C;
procedure Linked_With (Info : in out SDL.Versions.Version) is
function TTF_Linked_Version return access SDL.Versions.Version with
Import => True,
Convention => C,
External_Name => "TTF_Linked_Version";
Data : access SDL.Versions.Version := TTF_Linked_Version;
begin
Info := Data.all;
end Linked_With;
end SDL.TTFs.Versions;
| 41.268293 | 116 | 0.612293 |
5033b6df10a03e463c09a1afa97f94b12f88c59e | 1,109 | ads | Ada | extern/gnat_sdl/gnat_sdl/src/sdl_sdl_error_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_sdl/src/sdl_sdl_error_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_sdl/src/sdl_sdl_error_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 Interfaces.C.Strings;
package SDL_SDL_error_h is
-- arg-macro: procedure SDL_OutOfMemory ()
-- SDL_Error(SDL_ENOMEM)
-- arg-macro: procedure SDL_Unsupported ()
-- SDL_Error(SDL_UNSUPPORTED)
procedure SDL_SetError (fmt : Interfaces.C.Strings.chars_ptr -- , ...
); -- ../include/SDL/SDL_error.h:43
pragma Import (C, SDL_SetError, "SDL_SetError");
function SDL_GetError return Interfaces.C.Strings.chars_ptr; -- ../include/SDL/SDL_error.h:44
pragma Import (C, SDL_GetError, "SDL_GetError");
procedure SDL_ClearError; -- ../include/SDL/SDL_error.h:45
pragma Import (C, SDL_ClearError, "SDL_ClearError");
type SDL_errorcode is
(SDL_ENOMEM,
SDL_EFREAD,
SDL_EFWRITE,
SDL_EFSEEK,
SDL_UNSUPPORTED,
SDL_LASTERROR);
pragma Convention (C, SDL_errorcode); -- ../include/SDL/SDL_error.h:62
procedure SDL_Error (code : SDL_errorcode); -- ../include/SDL/SDL_error.h:63
pragma Import (C, SDL_Error, "SDL_Error");
end SDL_SDL_error_h;
| 30.805556 | 97 | 0.695221 |
4d9e59be62895145c8bfa69f061423f19beede97 | 284 | ads | Ada | benchmark/benchmark_s_date.ads | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | 1 | 2019-02-09T22:04:10.000Z | 2019-02-09T22:04:10.000Z | benchmark/benchmark_s_date.ads | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | null | null | null | benchmark/benchmark_s_date.ads | skill-lang/skillAdaTestSuite | 279ea0c0cd489c2e39d7532a3b68c564497101e2 | [
"BSD-3-Clause"
] | null | null | null | with Date.Api;
package Benchmark_S_Date is
procedure Create (N : Integer; File_Name : String);
procedure Write (N : Integer; File_Name : String);
procedure Read (N : Integer; File_Name : String);
procedure Reset (N : Integer; File_Name : String);
end Benchmark_S_Date;
| 25.818182 | 54 | 0.714789 |
1cac42102505205f9a4b0945915af642138578ac | 2,608 | ads | Ada | src/generated/random_h.ads | csb6/libtcod-ada | 89c2a75eb357a8468ccb0a6476391a6b388f00b4 | [
"BSD-3-Clause"
] | null | null | null | src/generated/random_h.ads | csb6/libtcod-ada | 89c2a75eb357a8468ccb0a6476391a6b388f00b4 | [
"BSD-3-Clause"
] | null | null | null | src/generated/random_h.ads | csb6/libtcod-ada | 89c2a75eb357a8468ccb0a6476391a6b388f00b4 | [
"BSD-3-Clause"
] | null | null | null | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with utypes_uuint64_t_h;
package random_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * 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.
--
--*
-- Return the next random uint64_t from a SplitMix64 generator.
-- `state[1]` is a non-NULL pointer to the internal state of the generator.
-- There is no initializer function because the first value of `state[1]` is
-- itself the seed which can start at any value.
-- `state[1]` will be updated by this call.
-- This function is provisional and may change.
--
function TCOD_rng_splitmix64_next (state : access utypes_uuint64_t_h.uint64_t) return utypes_uuint64_t_h.uint64_t -- random.h:51
with Import => True,
Convention => C,
External_Name => "TCOD_rng_splitmix64_next";
-- Based on http://xoshiro.di.unimi.it/splitmix64.c
-- extern "C"
end random_h;
| 44.965517 | 132 | 0.708206 |
502eac7e255b906f0f91f85ebb68e876f25e7cb1 | 4,352 | ads | Ada | include/sys_select_h.ads | docandrew/troodon | 9240611708f92ffb5491fa677bffb6ecac58a51e | [
"MIT"
] | 5 | 2021-11-03T04:34:16.000Z | 2021-11-10T23:06:30.000Z | include/sys_select_h.ads | docandrew/troodon | 9240611708f92ffb5491fa677bffb6ecac58a51e | [
"MIT"
] | null | null | null | include/sys_select_h.ads | docandrew/troodon | 9240611708f92ffb5491fa677bffb6ecac58a51e | [
"MIT"
] | null | null | null | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
limited with bits_types_struct_timeval_h;
limited with bits_types_struct_timespec_h;
limited with bits_types_u_sigset_t_h;
package sys_select_h is
-- unsupported macro: FD_SETSIZE __FD_SETSIZE
-- unsupported macro: NFDBITS __NFDBITS
-- arg-macro: procedure FD_SET (fd, fdsetp)
-- __FD_SET (fd, fdsetp)
-- arg-macro: procedure FD_CLR (fd, fdsetp)
-- __FD_CLR (fd, fdsetp)
-- arg-macro: procedure FD_ISSET (fd, fdsetp)
-- __FD_ISSET (fd, fdsetp)
-- arg-macro: procedure FD_ZERO (fdsetp)
-- __FD_ZERO (fdsetp)
-- `fd_set' type and related macros, and `select'/`pselect' declarations.
-- Copyright (C) 1996-2021 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- The GNU C Library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
-- The GNU C 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. See the GNU
-- Lesser General Public License for more details.
-- You should have received a copy of the GNU Lesser General Public
-- License along with the GNU C Library; if not, see
-- <https://www.gnu.org/licenses/>.
-- POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
-- Get definition of needed basic types.
-- Get __FD_* definitions.
-- Get sigset_t.
-- Get definition of timer specification structures.
-- The fd_set member is required to be an array of longs.
subtype uu_fd_mask is long; -- /usr/include/sys/select.h:49
-- Some versions of <linux/posix_types.h> define this macros.
-- It's easier to assume 8-bit bytes than to get CHAR_BIT.
-- fd_set for select and pselect.
-- XPG4.2 requires this member name. Otherwise avoid the name
-- from the global namespace.
-- skipped anonymous struct anon_2
type fd_set_array947 is array (0 .. 15) of aliased uu_fd_mask;
type fd_set is record
fds_bits : aliased fd_set_array947; -- /usr/include/sys/select.h:64
end record
with Convention => C_Pass_By_Copy; -- /usr/include/sys/select.h:70
-- Maximum number of file descriptors in `fd_set'.
-- Sometimes the fd_set member is assumed to have this type.
subtype fd_mask is uu_fd_mask; -- /usr/include/sys/select.h:77
-- Number of bits per word of `fd_set' (some code assumes this is 32).
-- Access macros for `fd_set'.
-- Check the first NFDS descriptors each in READFDS (if not NULL) for read
-- readiness, in WRITEFDS (if not NULL) for write readiness, and in EXCEPTFDS
-- (if not NULL) for exceptional conditions. If TIMEOUT is not NULL, time out
-- after waiting the interval specified therein. Returns the number of ready
-- descriptors, or -1 for errors.
-- This function is a cancellation point and therefore not marked with
-- __THROW.
function c_select
(uu_nfds : int;
uu_readfds : access fd_set;
uu_writefds : access fd_set;
uu_exceptfds : access fd_set;
uu_timeout : access bits_types_struct_timeval_h.timeval) return int -- /usr/include/sys/select.h:101
with Import => True,
Convention => C,
External_Name => "select";
-- Same as above only that the TIMEOUT value is given with higher
-- resolution and a sigmask which is been set temporarily. This version
-- should be used.
-- This function is a cancellation point and therefore not marked with
-- __THROW.
function pselect
(uu_nfds : int;
uu_readfds : access fd_set;
uu_writefds : access fd_set;
uu_exceptfds : access fd_set;
uu_timeout : access constant bits_types_struct_timespec_h.timespec;
uu_sigmask : access constant bits_types_u_sigset_t_h.uu_sigset_t) return int -- /usr/include/sys/select.h:113
with Import => True,
Convention => C,
External_Name => "pselect";
-- Define some inlines helping to catch common problems.
end sys_select_h;
| 43.089109 | 116 | 0.692096 |
cb0dde07cce2895696a63d898cc5e932bac15e3e | 5,343 | adb | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtinio.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtinio.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-wtinio.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . W I D E _ T E X T _ I O . I N T E G E R _ I O --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-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/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Wide_Text_IO.Integer_Aux;
with System.WCh_Con; use System.WCh_Con;
with System.WCh_WtS; use System.WCh_WtS;
package body Ada.Wide_Text_IO.Integer_IO is
Need_LLI : constant Boolean := Num'Base'Size > Integer'Size;
-- Throughout this generic body, we distinguish between the case where type
-- Integer is acceptable, and where a Long_Long_Integer is needed. This
-- Boolean is used to test for these cases and since it is a constant, only
-- code for the relevant case will be included in the instance.
subtype TFT is Ada.Wide_Text_IO.File_Type;
-- File type required for calls to routines in Aux
package Aux renames Ada.Wide_Text_IO.Integer_Aux;
---------
-- Get --
---------
procedure Get
(File : File_Type;
Item : out Num;
Width : Field := 0)
is
begin
if Need_LLI then
Aux.Get_LLI (TFT (File), Long_Long_Integer (Item), Width);
else
Aux.Get_Int (TFT (File), Integer (Item), Width);
end if;
exception
when Constraint_Error => raise Data_Error;
end Get;
procedure Get
(Item : out Num;
Width : Field := 0)
is
begin
Get (Current_Input, Item, Width);
end Get;
procedure Get
(From : Wide_String;
Item : out Num;
Last : out Positive)
is
S : constant String := Wide_String_To_String (From, WCEM_Upper);
-- String on which we do the actual conversion. Note that the method
-- used for wide character encoding is irrelevant, since if there is
-- a character outside the Standard.Character range then the call to
-- Aux.Gets will raise Data_Error in any case.
begin
if Need_LLI then
Aux.Gets_LLI (S, Long_Long_Integer (Item), Last);
else
Aux.Gets_Int (S, Integer (Item), Last);
end if;
exception
when Constraint_Error => raise Data_Error;
end Get;
---------
-- Put --
---------
procedure Put
(File : File_Type;
Item : Num;
Width : Field := Default_Width;
Base : Number_Base := Default_Base)
is
begin
if Need_LLI then
Aux.Put_LLI (TFT (File), Long_Long_Integer (Item), Width, Base);
else
Aux.Put_Int (TFT (File), Integer (Item), Width, Base);
end if;
end Put;
procedure Put
(Item : Num;
Width : Field := Default_Width;
Base : Number_Base := Default_Base)
is
begin
Put (Current_Output, Item, Width, Base);
end Put;
procedure Put
(To : out Wide_String;
Item : Num;
Base : Number_Base := Default_Base)
is
S : String (To'First .. To'Last);
begin
if Need_LLI then
Aux.Puts_LLI (S, Long_Long_Integer (Item), Base);
else
Aux.Puts_Int (S, Integer (Item), Base);
end if;
for J in S'Range loop
To (J) := Wide_Character'Val (Character'Pos (S (J)));
end loop;
end Put;
end Ada.Wide_Text_IO.Integer_IO;
| 36.59589 | 79 | 0.505334 |
c57df205b9ffed61b7584fe5f28086017d3ef569 | 187,520 | adb | Ada | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d/conv2d_div39/hls_target/.autopilot/db/Loop_1_proc.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_real/conv2d/conv2d_div39/hls_target/.autopilot/db/Loop_1_proc.sched.adb | dillonhuff/Halide-HLS | e9f4c3ac7915e5a52f211ce65004ae17890515a0 | [
"MIT"
] | null | null | null | apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d/conv2d_div39/hls_target/.autopilot/db/Loop_1_proc.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>Loop_1_proc</name>
<ret_bitwidth>0</ret_bitwidth>
<ports class_id="2" tracking_level="0" version="0">
<count>3</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>p_hw_input_stencil_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>_hw_input_stencil_stream_to_hw_output.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>288</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>hw_output_V_value_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream&lt;AxiPackedStencil&lt;unsigned int, 1, 1, 1, 1&gt; &gt;.V.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</if_type>
<array_size>0</array_size>
<bit_vecs>
<count>0</count>
<item_version>0</item_version>
</bit_vecs>
</item>
<item class_id_reference="3" object_id="_3">
<Value>
<Obj>
<type>1</type>
<id>3</id>
<name>hw_output_V_last_V</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>stream&lt;AxiPackedStencil&lt;unsigned int, 1, 1, 1, 1&gt; &gt;.V.last.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<direction>1</direction>
<if_type>0</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>83</count>
<item_version>0</item_version>
<item class_id="9" tracking_level="1" version="0" object_id="_4">
<Value>
<Obj>
<type>0</type>
<id>6</id>
<name></name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>hls_target</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_real/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>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>97</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_5">
<Value>
<Obj>
<type>0</type>
<id>8</id>
<name>indvar_flatten</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>21</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>345</item>
<item>346</item>
<item>347</item>
<item>348</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_6">
<Value>
<Obj>
<type>0</type>
<id>9</id>
<name>p_hw_output_y_scan_1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>69</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>349</item>
<item>350</item>
<item>351</item>
<item>352</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_7">
<Value>
<Obj>
<type>0</type>
<id>10</id>
<name>p_hw_output_x_scan_2</name>
<fileName></fileName>
<fileDirectory></fileDirectory>
<lineNumber>0</lineNumber>
<contextFuncName></contextFuncName>
<inlineStackInfo>
<count>0</count>
<item_version>0</item_version>
</inlineStackInfo>
<originalName>_hw_output_x___scan_dim_0</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>353</item>
<item>354</item>
<item>355</item>
<item>356</item>
</oprand_edges>
<opcode>phi</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_8">
<Value>
<Obj>
<type>0</type>
<id>11</id>
<name>exitcond_flatten</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>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>357</item>
<item>359</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_9">
<Value>
<Obj>
<type>0</type>
<id>12</id>
<name>indvar_flatten_next</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>21</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>360</item>
<item>362</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_10">
<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>3</count>
<item_version>0</item_version>
<item>363</item>
<item>364</item>
<item>365</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_11">
<Value>
<Obj>
<type>0</type>
<id>16</id>
<name>exitcond</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>69</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>98</item>
<item>100</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_12">
<Value>
<Obj>
<type>0</type>
<id>17</id>
<name>p_hw_output_x_scan_s</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>69</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>101</item>
<item>103</item>
<item>104</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_13">
<Value>
<Obj>
<type>0</type>
<id>18</id>
<name>p_hw_output_y_scan_2</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>67</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>67</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>106</item>
<item>107</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_14">
<Value>
<Obj>
<type>0</type>
<id>19</id>
<name>tmp_mid1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>159</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>159</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>108</item>
<item>110</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_15">
<Value>
<Obj>
<type>0</type>
<id>20</id>
<name>tmp</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>159</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>159</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>111</item>
<item>112</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_16">
<Value>
<Obj>
<type>0</type>
<id>21</id>
<name>tmp_mid2</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>159</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>159</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>113</item>
<item>114</item>
<item>115</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_17">
<Value>
<Obj>
<type>0</type>
<id>22</id>
<name>p_hw_output_y_scan_s</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>69</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>116</item>
<item>117</item>
<item>118</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_18">
<Value>
<Obj>
<type>0</type>
<id>25</id>
<name>tmp_value_V</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>288</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>120</item>
<item>121</item>
</oprand_edges>
<opcode>read</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_19">
<Value>
<Obj>
<type>0</type>
<id>26</id>
<name>p_345</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_345</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>122</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_20">
<Value>
<Obj>
<type>0</type>
<id>27</id>
<name>p_351</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_351</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>124</item>
<item>125</item>
<item>127</item>
<item>129</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_21">
<Value>
<Obj>
<type>0</type>
<id>28</id>
<name>p_357</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_357</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>130</item>
<item>131</item>
<item>133</item>
<item>135</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_22">
<Value>
<Obj>
<type>0</type>
<id>29</id>
<name>p_363</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_363</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>136</item>
<item>137</item>
<item>139</item>
<item>141</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_23">
<Value>
<Obj>
<type>0</type>
<id>30</id>
<name>p_369</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_369</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>142</item>
<item>143</item>
<item>145</item>
<item>147</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_24">
<Value>
<Obj>
<type>0</type>
<id>31</id>
<name>p_375</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_375</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>148</item>
<item>149</item>
<item>151</item>
<item>153</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_25">
<Value>
<Obj>
<type>0</type>
<id>32</id>
<name>p_381</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_381</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>154</item>
<item>155</item>
<item>157</item>
<item>159</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_26">
<Value>
<Obj>
<type>0</type>
<id>33</id>
<name>p_387</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_387</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>160</item>
<item>161</item>
<item>163</item>
<item>165</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_27">
<Value>
<Obj>
<type>0</type>
<id>34</id>
<name>p_393</name>
<fileName>../../../lib_files/Stencil.h</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>122</lineNumber>
<contextFuncName>operator Stencil</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_real/conv2d</first>
<second>
<count>2</count>
<item_version>0</item_version>
<item>
<first>
<first>../../../lib_files/Stencil.h</first>
<second>operator Stencil</second>
</first>
<second>122</second>
</item>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_393</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>166</item>
<item>167</item>
<item>169</item>
<item>171</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_28">
<Value>
<Obj>
<type>0</type>
<id>35</id>
<name>tmp_17</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>172</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_29">
<Value>
<Obj>
<type>0</type>
<id>36</id>
<name>p_shl</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>85</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>85</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>174</item>
<item>175</item>
<item>177</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_30">
<Value>
<Obj>
<type>0</type>
<id>37</id>
<name>p_347</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>85</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>85</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_347</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>178</item>
<item>179</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_31">
<Value>
<Obj>
<type>0</type>
<id>38</id>
<name>tmp_5</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>181</item>
<item>182</item>
<item>183</item>
<item>185</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_32">
<Value>
<Obj>
<type>0</type>
<id>39</id>
<name>p_shl1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>92</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>92</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>186</item>
<item>187</item>
<item>188</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_33">
<Value>
<Obj>
<type>0</type>
<id>40</id>
<name>tmp_6</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>189</item>
<item>190</item>
<item>191</item>
<item>193</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_34">
<Value>
<Obj>
<type>0</type>
<id>41</id>
<name>p_shl2</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>99</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>99</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>194</item>
<item>195</item>
<item>196</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_35">
<Value>
<Obj>
<type>0</type>
<id>42</id>
<name>p_359</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>99</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>99</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_359</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>197</item>
<item>198</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_36">
<Value>
<Obj>
<type>0</type>
<id>43</id>
<name>tmp_7</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>199</item>
<item>200</item>
<item>201</item>
<item>203</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_37">
<Value>
<Obj>
<type>0</type>
<id>44</id>
<name>p_shl9</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>106</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>106</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>204</item>
<item>205</item>
<item>206</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_38">
<Value>
<Obj>
<type>0</type>
<id>45</id>
<name>tmp_8</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>29</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>208</item>
<item>209</item>
<item>210</item>
<item>212</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_39">
<Value>
<Obj>
<type>0</type>
<id>46</id>
<name>p_shl8</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>113</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>113</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>214</item>
<item>215</item>
<item>217</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_40">
<Value>
<Obj>
<type>0</type>
<id>47</id>
<name>p_371</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>113</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>113</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_371</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>218</item>
<item>219</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_41">
<Value>
<Obj>
<type>0</type>
<id>48</id>
<name>tmp_9</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>220</item>
<item>221</item>
<item>222</item>
<item>224</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_42">
<Value>
<Obj>
<type>0</type>
<id>49</id>
<name>p_shl7</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>120</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>120</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>225</item>
<item>226</item>
<item>227</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_43">
<Value>
<Obj>
<type>0</type>
<id>50</id>
<name>p_377</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>120</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>120</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_377</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>228</item>
<item>229</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_44">
<Value>
<Obj>
<type>0</type>
<id>51</id>
<name>tmp_3</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>230</item>
<item>231</item>
<item>232</item>
<item>234</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_45">
<Value>
<Obj>
<type>0</type>
<id>52</id>
<name>p_shl6</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>127</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>127</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>235</item>
<item>236</item>
<item>237</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_46">
<Value>
<Obj>
<type>0</type>
<id>53</id>
<name>p_383</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>127</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>127</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_383</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>238</item>
<item>239</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_47">
<Value>
<Obj>
<type>0</type>
<id>54</id>
<name>tmp_4</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>240</item>
<item>241</item>
<item>242</item>
<item>244</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_48">
<Value>
<Obj>
<type>0</type>
<id>55</id>
<name>p_shl5</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>134</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>134</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>245</item>
<item>246</item>
<item>247</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_49">
<Value>
<Obj>
<type>0</type>
<id>56</id>
<name>tmp_10</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>75</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>75</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>30</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>248</item>
<item>249</item>
<item>250</item>
<item>252</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_50">
<Value>
<Obj>
<type>0</type>
<id>57</id>
<name>p_shl4</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>141</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>141</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>253</item>
<item>254</item>
<item>255</item>
</oprand_edges>
<opcode>bitconcatenate</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_51">
<Value>
<Obj>
<type>0</type>
<id>58</id>
<name>p_395</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>141</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>141</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_395</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>256</item>
<item>257</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_52">
<Value>
<Obj>
<type>0</type>
<id>59</id>
<name>tmp1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>258</item>
<item>259</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_53">
<Value>
<Obj>
<type>0</type>
<id>60</id>
<name>tmp2</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>260</item>
<item>261</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_54">
<Value>
<Obj>
<type>0</type>
<id>61</id>
<name>tmp3</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>262</item>
<item>263</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_55">
<Value>
<Obj>
<type>0</type>
<id>62</id>
<name>tmp4</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>264</item>
<item>265</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_56">
<Value>
<Obj>
<type>0</type>
<id>63</id>
<name>tmp5</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>266</item>
<item>267</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_57">
<Value>
<Obj>
<type>0</type>
<id>64</id>
<name>tmp6</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>268</item>
<item>269</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_58">
<Value>
<Obj>
<type>0</type>
<id>65</id>
<name>tmp7</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>270</item>
<item>271</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_59">
<Value>
<Obj>
<type>0</type>
<id>66</id>
<name>tmp8</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>272</item>
<item>273</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_60">
<Value>
<Obj>
<type>0</type>
<id>67</id>
<name>tmp9</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>274</item>
<item>275</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_61">
<Value>
<Obj>
<type>0</type>
<id>68</id>
<name>tmp10</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>276</item>
<item>277</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_62">
<Value>
<Obj>
<type>0</type>
<id>69</id>
<name>p_397</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>143</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>143</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_397</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>278</item>
<item>279</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_63">
<Value>
<Obj>
<type>0</type>
<id>70</id>
<name>sext_cast</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>65</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>280</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_64">
<Value>
<Obj>
<type>0</type>
<id>71</id>
<name>mul</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>65</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>282</item>
<item>283</item>
</oprand_edges>
<opcode>mul</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_65">
<Value>
<Obj>
<type>0</type>
<id>72</id>
<name>neg_mul</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>65</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>285</item>
<item>286</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_66">
<Value>
<Obj>
<type>0</type>
<id>73</id>
<name>tmp_18</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>288</item>
<item>289</item>
<item>291</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_67">
<Value>
<Obj>
<type>0</type>
<id>74</id>
<name>tmp_19</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>27</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>293</item>
<item>294</item>
<item>296</item>
<item>297</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_68">
<Value>
<Obj>
<type>0</type>
<id>75</id>
<name>tmp_11</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>298</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_69">
<Value>
<Obj>
<type>0</type>
<id>76</id>
<name>tmp_20</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>27</bitwidth>
</Value>
<oprand_edges>
<count>4</count>
<item_version>0</item_version>
<item>299</item>
<item>300</item>
<item>301</item>
<item>302</item>
</oprand_edges>
<opcode>partselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_70">
<Value>
<Obj>
<type>0</type>
<id>77</id>
<name>tmp_12</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>303</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_71">
<Value>
<Obj>
<type>0</type>
<id>78</id>
<name>tmp_13</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>304</item>
<item>305</item>
<item>306</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_72">
<Value>
<Obj>
<type>0</type>
<id>79</id>
<name>neg_ti</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>308</item>
<item>309</item>
</oprand_edges>
<opcode>sub</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_73">
<Value>
<Obj>
<type>0</type>
<id>80</id>
<name>p_399</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_399</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>310</item>
<item>311</item>
<item>312</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_74">
<Value>
<Obj>
<type>0</type>
<id>81</id>
<name>tmp_21</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>146</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>146</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>27</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>313</item>
</oprand_edges>
<opcode>trunc</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_75">
<Value>
<Obj>
<type>0</type>
<id>82</id>
<name>tmp_s</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>148</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>148</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>315</item>
<item>316</item>
</oprand_edges>
<opcode>mul</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_76">
<Value>
<Obj>
<type>0</type>
<id>83</id>
<name>p_401</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>148</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>148</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_401</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>317</item>
<item>318</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_77">
<Value>
<Obj>
<type>0</type>
<id>84</id>
<name>tmp_22</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>149</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>149</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>319</item>
<item>320</item>
<item>321</item>
</oprand_edges>
<opcode>bitselect</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_78">
<Value>
<Obj>
<type>0</type>
<id>85</id>
<name>p_402_cast</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>149</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>149</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>27</bitwidth>
</Value>
<oprand_edges>
<count>3</count>
<item_version>0</item_version>
<item>322</item>
<item>324</item>
<item>326</item>
</oprand_edges>
<opcode>select</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_79">
<Value>
<Obj>
<type>0</type>
<id>86</id>
<name>p_408</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>155</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>155</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_408</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>27</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>327</item>
<item>328</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_80">
<Value>
<Obj>
<type>0</type>
<id>87</id>
<name>tmp_value_V_4</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>155</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>155</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.value.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>32</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>329</item>
</oprand_edges>
<opcode>sext</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_81">
<Value>
<Obj>
<type>0</type>
<id>88</id>
<name>tmp_1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>159</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>159</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>330</item>
<item>332</item>
</oprand_edges>
<opcode>icmp</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_82">
<Value>
<Obj>
<type>0</type>
<id>89</id>
<name>tmp_last_V</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>159</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>159</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>tmp.last.V</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>1</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>333</item>
<item>334</item>
</oprand_edges>
<opcode>and</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_83">
<Value>
<Obj>
<type>0</type>
<id>90</id>
<name></name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>164</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>164</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>5</count>
<item_version>0</item_version>
<item>336</item>
<item>337</item>
<item>338</item>
<item>339</item>
<item>340</item>
</oprand_edges>
<opcode>write</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_84">
<Value>
<Obj>
<type>0</type>
<id>92</id>
<name>p_hw_output_x_scan_1</name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>69</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName>_hw_output_x___scan_dim_0</originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>11</bitwidth>
</Value>
<oprand_edges>
<count>2</count>
<item_version>0</item_version>
<item>341</item>
<item>342</item>
</oprand_edges>
<opcode>add</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_85">
<Value>
<Obj>
<type>0</type>
<id>93</id>
<name></name>
<fileName>hls_target.cpp</fileName>
<fileDirectory>/home/dhuff/Halide-HLS/apps/hls_examples/camera_ready_synthesis/app_files/big_apps_32_real/conv2d</fileDirectory>
<lineNumber>69</lineNumber>
<contextFuncName>hls_target</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_real/conv2d</first>
<second>
<count>1</count>
<item_version>0</item_version>
<item>
<first>
<first>hls_target.cpp</first>
<second>hls_target</second>
</first>
<second>69</second>
</item>
</second>
</item>
</inlineStackInfo>
<originalName></originalName>
<rtlName></rtlName>
<coreName></coreName>
</Obj>
<bitwidth>0</bitwidth>
</Value>
<oprand_edges>
<count>1</count>
<item_version>0</item_version>
<item>343</item>
</oprand_edges>
<opcode>br</opcode>
<m_Display>0</m_Display>
</item>
<item class_id_reference="9" object_id="_86">
<Value>
<Obj>
<type>0</type>
<id>95</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>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>42</count>
<item_version>0</item_version>
<item class_id="16" tracking_level="1" version="0" object_id="_87">
<Value>
<Obj>
<type>2</type>
<id>99</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>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1918</content>
</item>
<item class_id_reference="16" object_id="_88">
<Value>
<Obj>
<type>2</type>
<id>102</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>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_89">
<Value>
<Obj>
<type>2</type>
<id>105</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>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
<item class_id_reference="16" object_id="_90">
<Value>
<Obj>
<type>2</type>
<id>109</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>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1077</content>
</item>
<item class_id_reference="16" object_id="_91">
<Value>
<Obj>
<type>2</type>
<id>126</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>32</content>
</item>
<item class_id_reference="16" object_id="_92">
<Value>
<Obj>
<type>2</type>
<id>128</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>63</content>
</item>
<item class_id_reference="16" object_id="_93">
<Value>
<Obj>
<type>2</type>
<id>132</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>64</content>
</item>
<item class_id_reference="16" object_id="_94">
<Value>
<Obj>
<type>2</type>
<id>134</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>95</content>
</item>
<item class_id_reference="16" object_id="_95">
<Value>
<Obj>
<type>2</type>
<id>138</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>96</content>
</item>
<item class_id_reference="16" object_id="_96">
<Value>
<Obj>
<type>2</type>
<id>140</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>127</content>
</item>
<item class_id_reference="16" object_id="_97">
<Value>
<Obj>
<type>2</type>
<id>144</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>128</content>
</item>
<item class_id_reference="16" object_id="_98">
<Value>
<Obj>
<type>2</type>
<id>146</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>159</content>
</item>
<item class_id_reference="16" object_id="_99">
<Value>
<Obj>
<type>2</type>
<id>150</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>160</content>
</item>
<item class_id_reference="16" object_id="_100">
<Value>
<Obj>
<type>2</type>
<id>152</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>191</content>
</item>
<item class_id_reference="16" object_id="_101">
<Value>
<Obj>
<type>2</type>
<id>156</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>192</content>
</item>
<item class_id_reference="16" object_id="_102">
<Value>
<Obj>
<type>2</type>
<id>158</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>223</content>
</item>
<item class_id_reference="16" object_id="_103">
<Value>
<Obj>
<type>2</type>
<id>162</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>224</content>
</item>
<item class_id_reference="16" object_id="_104">
<Value>
<Obj>
<type>2</type>
<id>164</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>255</content>
</item>
<item class_id_reference="16" object_id="_105">
<Value>
<Obj>
<type>2</type>
<id>168</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>256</content>
</item>
<item class_id_reference="16" object_id="_106">
<Value>
<Obj>
<type>2</type>
<id>170</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>287</content>
</item>
<item class_id_reference="16" object_id="_107">
<Value>
<Obj>
<type>2</type>
<id>176</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>2</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_108">
<Value>
<Obj>
<type>2</type>
<id>184</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>61</content>
</item>
<item class_id_reference="16" object_id="_109">
<Value>
<Obj>
<type>2</type>
<id>192</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>93</content>
</item>
<item class_id_reference="16" object_id="_110">
<Value>
<Obj>
<type>2</type>
<id>202</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>125</content>
</item>
<item class_id_reference="16" object_id="_111">
<Value>
<Obj>
<type>2</type>
<id>211</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>156</content>
</item>
<item class_id_reference="16" object_id="_112">
<Value>
<Obj>
<type>2</type>
<id>216</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>3</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_113">
<Value>
<Obj>
<type>2</type>
<id>223</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>189</content>
</item>
<item class_id_reference="16" object_id="_114">
<Value>
<Obj>
<type>2</type>
<id>233</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>221</content>
</item>
<item class_id_reference="16" object_id="_115">
<Value>
<Obj>
<type>2</type>
<id>243</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>253</content>
</item>
<item class_id_reference="16" object_id="_116">
<Value>
<Obj>
<type>2</type>
<id>251</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>285</content>
</item>
<item class_id_reference="16" object_id="_117">
<Value>
<Obj>
<type>2</type>
<id>281</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>65</bitwidth>
</Value>
<const_type>0</const_type>
<content>7048151461</content>
</item>
<item class_id_reference="16" object_id="_118">
<Value>
<Obj>
<type>2</type>
<id>284</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>65</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_119">
<Value>
<Obj>
<type>2</type>
<id>290</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>31</content>
</item>
<item class_id_reference="16" object_id="_120">
<Value>
<Obj>
<type>2</type>
<id>295</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>38</content>
</item>
<item class_id_reference="16" object_id="_121">
<Value>
<Obj>
<type>2</type>
<id>307</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_122">
<Value>
<Obj>
<type>2</type>
<id>314</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>32</bitwidth>
</Value>
<const_type>0</const_type>
<content>4294967257</content>
</item>
<item class_id_reference="16" object_id="_123">
<Value>
<Obj>
<type>2</type>
<id>323</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>27</bitwidth>
</Value>
<const_type>0</const_type>
<content>134217727</content>
</item>
<item class_id_reference="16" object_id="_124">
<Value>
<Obj>
<type>2</type>
<id>325</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>27</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_125">
<Value>
<Obj>
<type>2</type>
<id>331</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>11</bitwidth>
</Value>
<const_type>0</const_type>
<content>1917</content>
</item>
<item class_id_reference="16" object_id="_126">
<Value>
<Obj>
<type>2</type>
<id>344</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>21</bitwidth>
</Value>
<const_type>0</const_type>
<content>0</content>
</item>
<item class_id_reference="16" object_id="_127">
<Value>
<Obj>
<type>2</type>
<id>358</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>21</bitwidth>
</Value>
<const_type>0</const_type>
<content>2067604</content>
</item>
<item class_id_reference="16" object_id="_128">
<Value>
<Obj>
<type>2</type>
<id>361</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>21</bitwidth>
</Value>
<const_type>0</const_type>
<content>1</content>
</item>
</consts>
<blocks class_id="17" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="18" tracking_level="1" version="0" object_id="_129">
<Obj>
<type>3</type>
<id>7</id>
<name>newFuncRoot</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>1</count>
<item_version>0</item_version>
<item>6</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_130">
<Obj>
<type>3</type>
<id>14</id>
<name>.preheader</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>6</count>
<item_version>0</item_version>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_131">
<Obj>
<type>3</type>
<id>94</id>
<name>.preheader.preheader</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>75</count>
<item_version>0</item_version>
<item>16</item>
<item>17</item>
<item>18</item>
<item>19</item>
<item>20</item>
<item>21</item>
<item>22</item>
<item>25</item>
<item>26</item>
<item>27</item>
<item>28</item>
<item>29</item>
<item>30</item>
<item>31</item>
<item>32</item>
<item>33</item>
<item>34</item>
<item>35</item>
<item>36</item>
<item>37</item>
<item>38</item>
<item>39</item>
<item>40</item>
<item>41</item>
<item>42</item>
<item>43</item>
<item>44</item>
<item>45</item>
<item>46</item>
<item>47</item>
<item>48</item>
<item>49</item>
<item>50</item>
<item>51</item>
<item>52</item>
<item>53</item>
<item>54</item>
<item>55</item>
<item>56</item>
<item>57</item>
<item>58</item>
<item>59</item>
<item>60</item>
<item>61</item>
<item>62</item>
<item>63</item>
<item>64</item>
<item>65</item>
<item>66</item>
<item>67</item>
<item>68</item>
<item>69</item>
<item>70</item>
<item>71</item>
<item>72</item>
<item>73</item>
<item>74</item>
<item>75</item>
<item>76</item>
<item>77</item>
<item>78</item>
<item>79</item>
<item>80</item>
<item>81</item>
<item>82</item>
<item>83</item>
<item>84</item>
<item>85</item>
<item>86</item>
<item>87</item>
<item>88</item>
<item>89</item>
<item>90</item>
<item>92</item>
<item>93</item>
</node_objs>
</item>
<item class_id_reference="18" object_id="_132">
<Obj>
<type>3</type>
<id>96</id>
<name>.exitStub</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>1</count>
<item_version>0</item_version>
<item>95</item>
</node_objs>
</item>
</blocks>
<edges class_id="19" tracking_level="0" version="0">
<count>191</count>
<item_version>0</item_version>
<item class_id="20" tracking_level="1" version="0" object_id="_133">
<id>97</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>6</sink_obj>
</item>
<item class_id_reference="20" object_id="_134">
<id>98</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_135">
<id>100</id>
<edge_type>1</edge_type>
<source_obj>99</source_obj>
<sink_obj>16</sink_obj>
</item>
<item class_id_reference="20" object_id="_136">
<id>101</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_137">
<id>103</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_138">
<id>104</id>
<edge_type>1</edge_type>
<source_obj>10</source_obj>
<sink_obj>17</sink_obj>
</item>
<item class_id_reference="20" object_id="_139">
<id>106</id>
<edge_type>1</edge_type>
<source_obj>105</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_140">
<id>107</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>18</sink_obj>
</item>
<item class_id_reference="20" object_id="_141">
<id>108</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_142">
<id>110</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>19</sink_obj>
</item>
<item class_id_reference="20" object_id="_143">
<id>111</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_144">
<id>112</id>
<edge_type>1</edge_type>
<source_obj>109</source_obj>
<sink_obj>20</sink_obj>
</item>
<item class_id_reference="20" object_id="_145">
<id>113</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_146">
<id>114</id>
<edge_type>1</edge_type>
<source_obj>19</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_147">
<id>115</id>
<edge_type>1</edge_type>
<source_obj>20</source_obj>
<sink_obj>21</sink_obj>
</item>
<item class_id_reference="20" object_id="_148">
<id>116</id>
<edge_type>1</edge_type>
<source_obj>16</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_149">
<id>117</id>
<edge_type>1</edge_type>
<source_obj>18</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_150">
<id>118</id>
<edge_type>1</edge_type>
<source_obj>9</source_obj>
<sink_obj>22</sink_obj>
</item>
<item class_id_reference="20" object_id="_151">
<id>121</id>
<edge_type>1</edge_type>
<source_obj>1</source_obj>
<sink_obj>25</sink_obj>
</item>
<item class_id_reference="20" object_id="_152">
<id>122</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>26</sink_obj>
</item>
<item class_id_reference="20" object_id="_153">
<id>125</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_154">
<id>127</id>
<edge_type>1</edge_type>
<source_obj>126</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_155">
<id>129</id>
<edge_type>1</edge_type>
<source_obj>128</source_obj>
<sink_obj>27</sink_obj>
</item>
<item class_id_reference="20" object_id="_156">
<id>131</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_157">
<id>133</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_158">
<id>135</id>
<edge_type>1</edge_type>
<source_obj>134</source_obj>
<sink_obj>28</sink_obj>
</item>
<item class_id_reference="20" object_id="_159">
<id>137</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_160">
<id>139</id>
<edge_type>1</edge_type>
<source_obj>138</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_161">
<id>141</id>
<edge_type>1</edge_type>
<source_obj>140</source_obj>
<sink_obj>29</sink_obj>
</item>
<item class_id_reference="20" object_id="_162">
<id>143</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_163">
<id>145</id>
<edge_type>1</edge_type>
<source_obj>144</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_164">
<id>147</id>
<edge_type>1</edge_type>
<source_obj>146</source_obj>
<sink_obj>30</sink_obj>
</item>
<item class_id_reference="20" object_id="_165">
<id>149</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_166">
<id>151</id>
<edge_type>1</edge_type>
<source_obj>150</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_167">
<id>153</id>
<edge_type>1</edge_type>
<source_obj>152</source_obj>
<sink_obj>31</sink_obj>
</item>
<item class_id_reference="20" object_id="_168">
<id>155</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_169">
<id>157</id>
<edge_type>1</edge_type>
<source_obj>156</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_170">
<id>159</id>
<edge_type>1</edge_type>
<source_obj>158</source_obj>
<sink_obj>32</sink_obj>
</item>
<item class_id_reference="20" object_id="_171">
<id>161</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_172">
<id>163</id>
<edge_type>1</edge_type>
<source_obj>162</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_173">
<id>165</id>
<edge_type>1</edge_type>
<source_obj>164</source_obj>
<sink_obj>33</sink_obj>
</item>
<item class_id_reference="20" object_id="_174">
<id>167</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_175">
<id>169</id>
<edge_type>1</edge_type>
<source_obj>168</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_176">
<id>171</id>
<edge_type>1</edge_type>
<source_obj>170</source_obj>
<sink_obj>34</sink_obj>
</item>
<item class_id_reference="20" object_id="_177">
<id>172</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>35</sink_obj>
</item>
<item class_id_reference="20" object_id="_178">
<id>175</id>
<edge_type>1</edge_type>
<source_obj>35</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_179">
<id>177</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>36</sink_obj>
</item>
<item class_id_reference="20" object_id="_180">
<id>178</id>
<edge_type>1</edge_type>
<source_obj>36</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_181">
<id>179</id>
<edge_type>1</edge_type>
<source_obj>26</source_obj>
<sink_obj>37</sink_obj>
</item>
<item class_id_reference="20" object_id="_182">
<id>182</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_183">
<id>183</id>
<edge_type>1</edge_type>
<source_obj>126</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_184">
<id>185</id>
<edge_type>1</edge_type>
<source_obj>184</source_obj>
<sink_obj>38</sink_obj>
</item>
<item class_id_reference="20" object_id="_185">
<id>187</id>
<edge_type>1</edge_type>
<source_obj>38</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_186">
<id>188</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>39</sink_obj>
</item>
<item class_id_reference="20" object_id="_187">
<id>190</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_188">
<id>191</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_189">
<id>193</id>
<edge_type>1</edge_type>
<source_obj>192</source_obj>
<sink_obj>40</sink_obj>
</item>
<item class_id_reference="20" object_id="_190">
<id>195</id>
<edge_type>1</edge_type>
<source_obj>40</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_191">
<id>196</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>41</sink_obj>
</item>
<item class_id_reference="20" object_id="_192">
<id>197</id>
<edge_type>1</edge_type>
<source_obj>41</source_obj>
<sink_obj>42</sink_obj>
</item>
<item class_id_reference="20" object_id="_193">
<id>198</id>
<edge_type>1</edge_type>
<source_obj>28</source_obj>
<sink_obj>42</sink_obj>
</item>
<item class_id_reference="20" object_id="_194">
<id>200</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_195">
<id>201</id>
<edge_type>1</edge_type>
<source_obj>138</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_196">
<id>203</id>
<edge_type>1</edge_type>
<source_obj>202</source_obj>
<sink_obj>43</sink_obj>
</item>
<item class_id_reference="20" object_id="_197">
<id>205</id>
<edge_type>1</edge_type>
<source_obj>43</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_198">
<id>206</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>44</sink_obj>
</item>
<item class_id_reference="20" object_id="_199">
<id>209</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_200">
<id>210</id>
<edge_type>1</edge_type>
<source_obj>144</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_201">
<id>212</id>
<edge_type>1</edge_type>
<source_obj>211</source_obj>
<sink_obj>45</sink_obj>
</item>
<item class_id_reference="20" object_id="_202">
<id>215</id>
<edge_type>1</edge_type>
<source_obj>45</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_203">
<id>217</id>
<edge_type>1</edge_type>
<source_obj>216</source_obj>
<sink_obj>46</sink_obj>
</item>
<item class_id_reference="20" object_id="_204">
<id>218</id>
<edge_type>1</edge_type>
<source_obj>46</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_205">
<id>219</id>
<edge_type>1</edge_type>
<source_obj>30</source_obj>
<sink_obj>47</sink_obj>
</item>
<item class_id_reference="20" object_id="_206">
<id>221</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_207">
<id>222</id>
<edge_type>1</edge_type>
<source_obj>150</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_208">
<id>224</id>
<edge_type>1</edge_type>
<source_obj>223</source_obj>
<sink_obj>48</sink_obj>
</item>
<item class_id_reference="20" object_id="_209">
<id>226</id>
<edge_type>1</edge_type>
<source_obj>48</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_210">
<id>227</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>49</sink_obj>
</item>
<item class_id_reference="20" object_id="_211">
<id>228</id>
<edge_type>1</edge_type>
<source_obj>49</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_212">
<id>229</id>
<edge_type>1</edge_type>
<source_obj>31</source_obj>
<sink_obj>50</sink_obj>
</item>
<item class_id_reference="20" object_id="_213">
<id>231</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_214">
<id>232</id>
<edge_type>1</edge_type>
<source_obj>156</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_215">
<id>234</id>
<edge_type>1</edge_type>
<source_obj>233</source_obj>
<sink_obj>51</sink_obj>
</item>
<item class_id_reference="20" object_id="_216">
<id>236</id>
<edge_type>1</edge_type>
<source_obj>51</source_obj>
<sink_obj>52</sink_obj>
</item>
<item class_id_reference="20" object_id="_217">
<id>237</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>52</sink_obj>
</item>
<item class_id_reference="20" object_id="_218">
<id>238</id>
<edge_type>1</edge_type>
<source_obj>52</source_obj>
<sink_obj>53</sink_obj>
</item>
<item class_id_reference="20" object_id="_219">
<id>239</id>
<edge_type>1</edge_type>
<source_obj>32</source_obj>
<sink_obj>53</sink_obj>
</item>
<item class_id_reference="20" object_id="_220">
<id>241</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>54</sink_obj>
</item>
<item class_id_reference="20" object_id="_221">
<id>242</id>
<edge_type>1</edge_type>
<source_obj>162</source_obj>
<sink_obj>54</sink_obj>
</item>
<item class_id_reference="20" object_id="_222">
<id>244</id>
<edge_type>1</edge_type>
<source_obj>243</source_obj>
<sink_obj>54</sink_obj>
</item>
<item class_id_reference="20" object_id="_223">
<id>246</id>
<edge_type>1</edge_type>
<source_obj>54</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_224">
<id>247</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>55</sink_obj>
</item>
<item class_id_reference="20" object_id="_225">
<id>249</id>
<edge_type>1</edge_type>
<source_obj>25</source_obj>
<sink_obj>56</sink_obj>
</item>
<item class_id_reference="20" object_id="_226">
<id>250</id>
<edge_type>1</edge_type>
<source_obj>168</source_obj>
<sink_obj>56</sink_obj>
</item>
<item class_id_reference="20" object_id="_227">
<id>252</id>
<edge_type>1</edge_type>
<source_obj>251</source_obj>
<sink_obj>56</sink_obj>
</item>
<item class_id_reference="20" object_id="_228">
<id>254</id>
<edge_type>1</edge_type>
<source_obj>56</source_obj>
<sink_obj>57</sink_obj>
</item>
<item class_id_reference="20" object_id="_229">
<id>255</id>
<edge_type>1</edge_type>
<source_obj>176</source_obj>
<sink_obj>57</sink_obj>
</item>
<item class_id_reference="20" object_id="_230">
<id>256</id>
<edge_type>1</edge_type>
<source_obj>57</source_obj>
<sink_obj>58</sink_obj>
</item>
<item class_id_reference="20" object_id="_231">
<id>257</id>
<edge_type>1</edge_type>
<source_obj>34</source_obj>
<sink_obj>58</sink_obj>
</item>
<item class_id_reference="20" object_id="_232">
<id>258</id>
<edge_type>1</edge_type>
<source_obj>47</source_obj>
<sink_obj>59</sink_obj>
</item>
<item class_id_reference="20" object_id="_233">
<id>259</id>
<edge_type>1</edge_type>
<source_obj>53</source_obj>
<sink_obj>59</sink_obj>
</item>
<item class_id_reference="20" object_id="_234">
<id>260</id>
<edge_type>1</edge_type>
<source_obj>50</source_obj>
<sink_obj>60</sink_obj>
</item>
<item class_id_reference="20" object_id="_235">
<id>261</id>
<edge_type>1</edge_type>
<source_obj>59</source_obj>
<sink_obj>60</sink_obj>
</item>
<item class_id_reference="20" object_id="_236">
<id>262</id>
<edge_type>1</edge_type>
<source_obj>44</source_obj>
<sink_obj>61</sink_obj>
</item>
<item class_id_reference="20" object_id="_237">
<id>263</id>
<edge_type>1</edge_type>
<source_obj>29</source_obj>
<sink_obj>61</sink_obj>
</item>
<item class_id_reference="20" object_id="_238">
<id>264</id>
<edge_type>1</edge_type>
<source_obj>42</source_obj>
<sink_obj>62</sink_obj>
</item>
<item class_id_reference="20" object_id="_239">
<id>265</id>
<edge_type>1</edge_type>
<source_obj>61</source_obj>
<sink_obj>62</sink_obj>
</item>
<item class_id_reference="20" object_id="_240">
<id>266</id>
<edge_type>1</edge_type>
<source_obj>60</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_241">
<id>267</id>
<edge_type>1</edge_type>
<source_obj>62</source_obj>
<sink_obj>63</sink_obj>
</item>
<item class_id_reference="20" object_id="_242">
<id>268</id>
<edge_type>1</edge_type>
<source_obj>37</source_obj>
<sink_obj>64</sink_obj>
</item>
<item class_id_reference="20" object_id="_243">
<id>269</id>
<edge_type>1</edge_type>
<source_obj>33</source_obj>
<sink_obj>64</sink_obj>
</item>
<item class_id_reference="20" object_id="_244">
<id>270</id>
<edge_type>1</edge_type>
<source_obj>55</source_obj>
<sink_obj>65</sink_obj>
</item>
<item class_id_reference="20" object_id="_245">
<id>271</id>
<edge_type>1</edge_type>
<source_obj>64</source_obj>
<sink_obj>65</sink_obj>
</item>
<item class_id_reference="20" object_id="_246">
<id>272</id>
<edge_type>1</edge_type>
<source_obj>58</source_obj>
<sink_obj>66</sink_obj>
</item>
<item class_id_reference="20" object_id="_247">
<id>273</id>
<edge_type>1</edge_type>
<source_obj>39</source_obj>
<sink_obj>66</sink_obj>
</item>
<item class_id_reference="20" object_id="_248">
<id>274</id>
<edge_type>1</edge_type>
<source_obj>27</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_249">
<id>275</id>
<edge_type>1</edge_type>
<source_obj>66</source_obj>
<sink_obj>67</sink_obj>
</item>
<item class_id_reference="20" object_id="_250">
<id>276</id>
<edge_type>1</edge_type>
<source_obj>65</source_obj>
<sink_obj>68</sink_obj>
</item>
<item class_id_reference="20" object_id="_251">
<id>277</id>
<edge_type>1</edge_type>
<source_obj>67</source_obj>
<sink_obj>68</sink_obj>
</item>
<item class_id_reference="20" object_id="_252">
<id>278</id>
<edge_type>1</edge_type>
<source_obj>63</source_obj>
<sink_obj>69</sink_obj>
</item>
<item class_id_reference="20" object_id="_253">
<id>279</id>
<edge_type>1</edge_type>
<source_obj>68</source_obj>
<sink_obj>69</sink_obj>
</item>
<item class_id_reference="20" object_id="_254">
<id>280</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>70</sink_obj>
</item>
<item class_id_reference="20" object_id="_255">
<id>282</id>
<edge_type>1</edge_type>
<source_obj>281</source_obj>
<sink_obj>71</sink_obj>
</item>
<item class_id_reference="20" object_id="_256">
<id>283</id>
<edge_type>1</edge_type>
<source_obj>70</source_obj>
<sink_obj>71</sink_obj>
</item>
<item class_id_reference="20" object_id="_257">
<id>285</id>
<edge_type>1</edge_type>
<source_obj>284</source_obj>
<sink_obj>72</sink_obj>
</item>
<item class_id_reference="20" object_id="_258">
<id>286</id>
<edge_type>1</edge_type>
<source_obj>71</source_obj>
<sink_obj>72</sink_obj>
</item>
<item class_id_reference="20" object_id="_259">
<id>289</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>73</sink_obj>
</item>
<item class_id_reference="20" object_id="_260">
<id>291</id>
<edge_type>1</edge_type>
<source_obj>290</source_obj>
<sink_obj>73</sink_obj>
</item>
<item class_id_reference="20" object_id="_261">
<id>294</id>
<edge_type>1</edge_type>
<source_obj>72</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_262">
<id>296</id>
<edge_type>1</edge_type>
<source_obj>295</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_263">
<id>297</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>74</sink_obj>
</item>
<item class_id_reference="20" object_id="_264">
<id>298</id>
<edge_type>1</edge_type>
<source_obj>74</source_obj>
<sink_obj>75</sink_obj>
</item>
<item class_id_reference="20" object_id="_265">
<id>300</id>
<edge_type>1</edge_type>
<source_obj>71</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_266">
<id>301</id>
<edge_type>1</edge_type>
<source_obj>295</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_267">
<id>302</id>
<edge_type>1</edge_type>
<source_obj>132</source_obj>
<sink_obj>76</sink_obj>
</item>
<item class_id_reference="20" object_id="_268">
<id>303</id>
<edge_type>1</edge_type>
<source_obj>76</source_obj>
<sink_obj>77</sink_obj>
</item>
<item class_id_reference="20" object_id="_269">
<id>304</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>78</sink_obj>
</item>
<item class_id_reference="20" object_id="_270">
<id>305</id>
<edge_type>1</edge_type>
<source_obj>75</source_obj>
<sink_obj>78</sink_obj>
</item>
<item class_id_reference="20" object_id="_271">
<id>306</id>
<edge_type>1</edge_type>
<source_obj>77</source_obj>
<sink_obj>78</sink_obj>
</item>
<item class_id_reference="20" object_id="_272">
<id>308</id>
<edge_type>1</edge_type>
<source_obj>307</source_obj>
<sink_obj>79</sink_obj>
</item>
<item class_id_reference="20" object_id="_273">
<id>309</id>
<edge_type>1</edge_type>
<source_obj>78</source_obj>
<sink_obj>79</sink_obj>
</item>
<item class_id_reference="20" object_id="_274">
<id>310</id>
<edge_type>1</edge_type>
<source_obj>73</source_obj>
<sink_obj>80</sink_obj>
</item>
<item class_id_reference="20" object_id="_275">
<id>311</id>
<edge_type>1</edge_type>
<source_obj>79</source_obj>
<sink_obj>80</sink_obj>
</item>
<item class_id_reference="20" object_id="_276">
<id>312</id>
<edge_type>1</edge_type>
<source_obj>77</source_obj>
<sink_obj>80</sink_obj>
</item>
<item class_id_reference="20" object_id="_277">
<id>313</id>
<edge_type>1</edge_type>
<source_obj>80</source_obj>
<sink_obj>81</sink_obj>
</item>
<item class_id_reference="20" object_id="_278">
<id>315</id>
<edge_type>1</edge_type>
<source_obj>314</source_obj>
<sink_obj>82</sink_obj>
</item>
<item class_id_reference="20" object_id="_279">
<id>316</id>
<edge_type>1</edge_type>
<source_obj>80</source_obj>
<sink_obj>82</sink_obj>
</item>
<item class_id_reference="20" object_id="_280">
<id>317</id>
<edge_type>1</edge_type>
<source_obj>69</source_obj>
<sink_obj>83</sink_obj>
</item>
<item class_id_reference="20" object_id="_281">
<id>318</id>
<edge_type>1</edge_type>
<source_obj>82</source_obj>
<sink_obj>83</sink_obj>
</item>
<item class_id_reference="20" object_id="_282">
<id>320</id>
<edge_type>1</edge_type>
<source_obj>83</source_obj>
<sink_obj>84</sink_obj>
</item>
<item class_id_reference="20" object_id="_283">
<id>321</id>
<edge_type>1</edge_type>
<source_obj>290</source_obj>
<sink_obj>84</sink_obj>
</item>
<item class_id_reference="20" object_id="_284">
<id>322</id>
<edge_type>1</edge_type>
<source_obj>84</source_obj>
<sink_obj>85</sink_obj>
</item>
<item class_id_reference="20" object_id="_285">
<id>324</id>
<edge_type>1</edge_type>
<source_obj>323</source_obj>
<sink_obj>85</sink_obj>
</item>
<item class_id_reference="20" object_id="_286">
<id>326</id>
<edge_type>1</edge_type>
<source_obj>325</source_obj>
<sink_obj>85</sink_obj>
</item>
<item class_id_reference="20" object_id="_287">
<id>327</id>
<edge_type>1</edge_type>
<source_obj>85</source_obj>
<sink_obj>86</sink_obj>
</item>
<item class_id_reference="20" object_id="_288">
<id>328</id>
<edge_type>1</edge_type>
<source_obj>81</source_obj>
<sink_obj>86</sink_obj>
</item>
<item class_id_reference="20" object_id="_289">
<id>329</id>
<edge_type>1</edge_type>
<source_obj>86</source_obj>
<sink_obj>87</sink_obj>
</item>
<item class_id_reference="20" object_id="_290">
<id>330</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>88</sink_obj>
</item>
<item class_id_reference="20" object_id="_291">
<id>332</id>
<edge_type>1</edge_type>
<source_obj>331</source_obj>
<sink_obj>88</sink_obj>
</item>
<item class_id_reference="20" object_id="_292">
<id>333</id>
<edge_type>1</edge_type>
<source_obj>88</source_obj>
<sink_obj>89</sink_obj>
</item>
<item class_id_reference="20" object_id="_293">
<id>334</id>
<edge_type>1</edge_type>
<source_obj>21</source_obj>
<sink_obj>89</sink_obj>
</item>
<item class_id_reference="20" object_id="_294">
<id>337</id>
<edge_type>1</edge_type>
<source_obj>2</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_295">
<id>338</id>
<edge_type>1</edge_type>
<source_obj>3</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_296">
<id>339</id>
<edge_type>1</edge_type>
<source_obj>87</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_297">
<id>340</id>
<edge_type>1</edge_type>
<source_obj>89</source_obj>
<sink_obj>90</sink_obj>
</item>
<item class_id_reference="20" object_id="_298">
<id>341</id>
<edge_type>1</edge_type>
<source_obj>105</source_obj>
<sink_obj>92</sink_obj>
</item>
<item class_id_reference="20" object_id="_299">
<id>342</id>
<edge_type>1</edge_type>
<source_obj>17</source_obj>
<sink_obj>92</sink_obj>
</item>
<item class_id_reference="20" object_id="_300">
<id>343</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>93</sink_obj>
</item>
<item class_id_reference="20" object_id="_301">
<id>345</id>
<edge_type>1</edge_type>
<source_obj>344</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_302">
<id>346</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_303">
<id>347</id>
<edge_type>1</edge_type>
<source_obj>12</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_304">
<id>348</id>
<edge_type>2</edge_type>
<source_obj>94</source_obj>
<sink_obj>8</sink_obj>
</item>
<item class_id_reference="20" object_id="_305">
<id>349</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_306">
<id>350</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_307">
<id>351</id>
<edge_type>1</edge_type>
<source_obj>22</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_308">
<id>352</id>
<edge_type>2</edge_type>
<source_obj>94</source_obj>
<sink_obj>9</sink_obj>
</item>
<item class_id_reference="20" object_id="_309">
<id>353</id>
<edge_type>1</edge_type>
<source_obj>102</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_310">
<id>354</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_311">
<id>355</id>
<edge_type>1</edge_type>
<source_obj>92</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_312">
<id>356</id>
<edge_type>2</edge_type>
<source_obj>94</source_obj>
<sink_obj>10</sink_obj>
</item>
<item class_id_reference="20" object_id="_313">
<id>357</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_314">
<id>359</id>
<edge_type>1</edge_type>
<source_obj>358</source_obj>
<sink_obj>11</sink_obj>
</item>
<item class_id_reference="20" object_id="_315">
<id>360</id>
<edge_type>1</edge_type>
<source_obj>8</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_316">
<id>362</id>
<edge_type>1</edge_type>
<source_obj>361</source_obj>
<sink_obj>12</sink_obj>
</item>
<item class_id_reference="20" object_id="_317">
<id>363</id>
<edge_type>1</edge_type>
<source_obj>11</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_318">
<id>364</id>
<edge_type>2</edge_type>
<source_obj>94</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_319">
<id>365</id>
<edge_type>2</edge_type>
<source_obj>96</source_obj>
<sink_obj>13</sink_obj>
</item>
<item class_id_reference="20" object_id="_320">
<id>424</id>
<edge_type>2</edge_type>
<source_obj>7</source_obj>
<sink_obj>14</sink_obj>
</item>
<item class_id_reference="20" object_id="_321">
<id>425</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>96</sink_obj>
</item>
<item class_id_reference="20" object_id="_322">
<id>426</id>
<edge_type>2</edge_type>
<source_obj>14</source_obj>
<sink_obj>94</sink_obj>
</item>
<item class_id_reference="20" object_id="_323">
<id>427</id>
<edge_type>2</edge_type>
<source_obj>94</source_obj>
<sink_obj>14</sink_obj>
</item>
</edges>
</cdfg>
<cdfg_regions class_id="21" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="22" tracking_level="1" version="0" object_id="_324">
<mId>1</mId>
<mTag>Loop_1_proc</mTag>
<mType>0</mType>
<sub_regions>
<count>3</count>
<item_version>0</item_version>
<item>2</item>
<item>3</item>
<item>4</item>
</sub_regions>
<basic_blocks>
<count>0</count>
<item_version>0</item_version>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>2067624</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_325">
<mId>2</mId>
<mTag>Entry</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>7</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_326">
<mId>3</mId>
<mTag>Loop 1</mTag>
<mType>1</mType>
<sub_regions>
<count>0</count>
<item_version>0</item_version>
</sub_regions>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>14</item>
<item>94</item>
</basic_blocks>
<mII>1</mII>
<mDepth>20</mDepth>
<mMinTripCount>2067604</mMinTripCount>
<mMaxTripCount>2067604</mMaxTripCount>
<mMinLatency>2067622</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
<item class_id_reference="22" object_id="_327">
<mId>4</mId>
<mTag>Return</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>96</item>
</basic_blocks>
<mII>-1</mII>
<mDepth>-1</mDepth>
<mMinTripCount>-1</mMinTripCount>
<mMaxTripCount>-1</mMaxTripCount>
<mMinLatency>0</mMinLatency>
<mMaxLatency>-1</mMaxLatency>
<mIsDfPipe>0</mIsDfPipe>
<mDfPipe class_id="-1"></mDfPipe>
</item>
</cdfg_regions>
<fsm class_id="-1"></fsm>
<res class_id="-1"></res>
<node_label_latency class_id="26" tracking_level="0" version="0">
<count>83</count>
<item_version>0</item_version>
<item class_id="27" tracking_level="0" version="0">
<first>6</first>
<second class_id="28" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>8</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>9</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>10</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>11</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>12</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>13</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>16</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>17</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>18</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>19</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>20</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>21</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>22</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>25</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>26</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>27</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>28</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>29</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>30</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>31</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>32</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>33</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>34</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>35</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>36</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>37</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>38</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>39</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>40</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>41</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>42</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>43</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>44</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>45</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>46</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>47</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>48</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>49</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>50</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>51</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>52</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>53</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>54</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>55</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>56</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>57</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>58</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>59</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>60</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>61</first>
<second>
<first>3</first>
<second>0</second>
</second>
</item>
<item>
<first>62</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
<item>
<first>63</first>
<second>
<first>5</first>
<second>0</second>
</second>
</item>
<item>
<first>64</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>65</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>66</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>67</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>68</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>69</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>70</first>
<second>
<first>7</first>
<second>0</second>
</second>
</item>
<item>
<first>71</first>
<second>
<first>7</first>
<second>4</second>
</second>
</item>
<item>
<first>72</first>
<second>
<first>12</first>
<second>0</second>
</second>
</item>
<item>
<first>73</first>
<second>
<first>6</first>
<second>0</second>
</second>
</item>
<item>
<first>74</first>
<second>
<first>13</first>
<second>0</second>
</second>
</item>
<item>
<first>75</first>
<second>
<first>13</first>
<second>0</second>
</second>
</item>
<item>
<first>76</first>
<second>
<first>11</first>
<second>0</second>
</second>
</item>
<item>
<first>77</first>
<second>
<first>13</first>
<second>0</second>
</second>
</item>
<item>
<first>78</first>
<second>
<first>13</first>
<second>0</second>
</second>
</item>
<item>
<first>79</first>
<second>
<first>13</first>
<second>0</second>
</second>
</item>
<item>
<first>80</first>
<second>
<first>13</first>
<second>0</second>
</second>
</item>
<item>
<first>81</first>
<second>
<first>20</first>
<second>0</second>
</second>
</item>
<item>
<first>82</first>
<second>
<first>14</first>
<second>4</second>
</second>
</item>
<item>
<first>83</first>
<second>
<first>19</first>
<second>0</second>
</second>
</item>
<item>
<first>84</first>
<second>
<first>20</first>
<second>0</second>
</second>
</item>
<item>
<first>85</first>
<second>
<first>20</first>
<second>0</second>
</second>
</item>
<item>
<first>86</first>
<second>
<first>20</first>
<second>0</second>
</second>
</item>
<item>
<first>87</first>
<second>
<first>20</first>
<second>0</second>
</second>
</item>
<item>
<first>88</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
<item>
<first>89</first>
<second>
<first>4</first>
<second>0</second>
</second>
</item>
<item>
<first>90</first>
<second>
<first>20</first>
<second>0</second>
</second>
</item>
<item>
<first>92</first>
<second>
<first>1</first>
<second>0</second>
</second>
</item>
<item>
<first>93</first>
<second>
<first>20</first>
<second>0</second>
</second>
</item>
<item>
<first>95</first>
<second>
<first>2</first>
<second>0</second>
</second>
</item>
</node_label_latency>
<bblk_ent_exit class_id="29" tracking_level="0" version="0">
<count>4</count>
<item_version>0</item_version>
<item class_id="30" tracking_level="0" version="0">
<first>7</first>
<second class_id="31" tracking_level="0" version="0">
<first>0</first>
<second>0</second>
</second>
</item>
<item>
<first>14</first>
<second>
<first>1</first>
<second>1</second>
</second>
</item>
<item>
<first>94</first>
<second>
<first>1</first>
<second>20</second>
</second>
</item>
<item>
<first>96</first>
<second>
<first>2</first>
<second>2</second>
</second>
</item>
</bblk_ent_exit>
<regions class_id="32" tracking_level="0" version="0">
<count>1</count>
<item_version>0</item_version>
<item class_id="33" tracking_level="1" version="0" object_id="_328">
<region_name>Loop 1</region_name>
<basic_blocks>
<count>2</count>
<item_version>0</item_version>
<item>14</item>
<item>94</item>
</basic_blocks>
<nodes>
<count>0</count>
<item_version>0</item_version>
</nodes>
<anchor_node>-1</anchor_node>
<region_type>8</region_type>
<interval>1</interval>
<pipe_depth>20</pipe_depth>
</item>
</regions>
<dp_fu_nodes class_id="34" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_fu_nodes>
<dp_fu_nodes_expression class_id="35" 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="36" 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="37" tracking_level="0" version="0">
<count>0</count>
<item_version>0</item_version>
</dp_port_io_nodes>
<port2core class_id="38" 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>
| 27.625221 | 134 | 0.599296 |
100b6d0bedf7ca149af068dee769bbebadad4118 | 36,492 | ads | Ada | src/bitmap_fonts/giza-bitmap_fonts-freeserif18pt7b.ads | Fabien-Chouteau/Giza | 9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd | [
"BSD-3-Clause"
] | 7 | 2017-10-18T02:40:24.000Z | 2020-12-19T22:41:19.000Z | src/bitmap_fonts/giza-bitmap_fonts-freeserif18pt7b.ads | Fabien-Chouteau/Giza | 9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd | [
"BSD-3-Clause"
] | null | null | null | src/bitmap_fonts/giza-bitmap_fonts-freeserif18pt7b.ads | Fabien-Chouteau/Giza | 9f6c167666dbba8f0e5f0ba3e33825c0b3f399bd | [
"BSD-3-Clause"
] | 2 | 2019-05-06T08:30:26.000Z | 2020-11-22T11:27:27.000Z | package Giza.Bitmap_Fonts.FreeSerif18pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeSerif18pt7bBitmaps : aliased constant Font_Bitmap := (
16#6F#, 16#FF#, 16#FF#, 16#FE#, 16#66#, 16#66#, 16#66#, 16#64#, 16#40#,
16#00#, 16#6F#, 16#F6#, 16#E7#, 16#E7#, 16#E7#, 16#E7#, 16#E7#, 16#46#,
16#42#, 16#42#, 16#42#, 16#03#, 16#06#, 16#01#, 16#83#, 16#00#, 16#C1#,
16#80#, 16#60#, 16#80#, 16#30#, 16#C0#, 16#38#, 16#60#, 16#18#, 16#30#,
16#FF#, 16#FF#, 16#7F#, 16#FF#, 16#83#, 16#06#, 16#01#, 16#86#, 16#00#,
16#C3#, 16#00#, 16#C1#, 16#87#, 16#FF#, 16#FF#, 16#FF#, 16#FE#, 16#18#,
16#30#, 16#0C#, 16#18#, 16#06#, 16#18#, 16#06#, 16#0C#, 16#03#, 16#06#,
16#01#, 16#83#, 16#00#, 16#C1#, 16#80#, 16#60#, 16#C0#, 16#02#, 16#00#,
16#10#, 16#03#, 16#E0#, 16#64#, 16#E6#, 16#23#, 16#61#, 16#1B#, 16#08#,
16#58#, 16#42#, 16#E2#, 16#03#, 16#90#, 16#1F#, 16#80#, 16#7E#, 16#00#,
16#FC#, 16#01#, 16#F0#, 16#0F#, 16#C0#, 16#4E#, 16#02#, 16#38#, 16#10#,
16#E0#, 16#87#, 16#04#, 16#3C#, 16#21#, 16#E1#, 16#1B#, 16#C9#, 16#CF#,
16#FC#, 16#1F#, 16#80#, 16#10#, 16#00#, 16#80#, 16#07#, 16#80#, 16#20#,
16#0F#, 16#F0#, 16#70#, 16#0F#, 16#07#, 16#D0#, 16#0F#, 16#02#, 16#18#,
16#07#, 16#01#, 16#08#, 16#07#, 16#00#, 16#8C#, 16#03#, 16#80#, 16#44#,
16#01#, 16#80#, 16#44#, 16#00#, 16#C0#, 16#26#, 16#00#, 16#60#, 16#22#,
16#0F#, 16#30#, 16#33#, 16#1F#, 16#CC#, 16#71#, 16#1E#, 16#37#, 16#F1#,
16#0E#, 16#19#, 16#E1#, 16#8E#, 16#04#, 16#00#, 16#86#, 16#02#, 16#00#,
16#C7#, 16#01#, 16#00#, 16#43#, 16#80#, 16#80#, 16#41#, 16#80#, 16#80#,
16#60#, 16#C0#, 16#40#, 16#20#, 16#60#, 16#40#, 16#30#, 16#38#, 16#E0#,
16#30#, 16#0F#, 16#E0#, 16#18#, 16#03#, 16#C0#, 16#00#, 16#78#, 16#00#,
16#00#, 16#7E#, 16#00#, 16#00#, 16#61#, 16#80#, 16#00#, 16#60#, 16#60#,
16#00#, 16#30#, 16#30#, 16#00#, 16#18#, 16#18#, 16#00#, 16#0C#, 16#0C#,
16#00#, 16#06#, 16#0C#, 16#00#, 16#03#, 16#8E#, 16#00#, 16#01#, 16#CE#,
16#00#, 16#00#, 16#7C#, 16#3F#, 16#C0#, 16#38#, 16#07#, 16#80#, 16#3E#,
16#03#, 16#80#, 16#77#, 16#01#, 16#80#, 16#73#, 16#C0#, 16#80#, 16#F0#,
16#F0#, 16#C0#, 16#70#, 16#7C#, 16#C0#, 16#78#, 16#1E#, 16#40#, 16#3C#,
16#07#, 16#C0#, 16#1E#, 16#01#, 16#E0#, 16#0F#, 16#00#, 16#78#, 16#0F#,
16#C0#, 16#FF#, 16#0D#, 16#F0#, 16#C7#, 16#FC#, 16#7F#, 16#C1#, 16#FC#,
16#1F#, 16#80#, 16#3C#, 16#00#, 16#FF#, 16#FE#, 16#92#, 16#40#, 16#00#,
16#80#, 16#80#, 16#80#, 16#80#, 16#80#, 16#C0#, 16#C0#, 16#60#, 16#70#,
16#30#, 16#18#, 16#1C#, 16#0E#, 16#07#, 16#03#, 16#81#, 16#C0#, 16#E0#,
16#70#, 16#38#, 16#0C#, 16#06#, 16#03#, 16#80#, 16#C0#, 16#60#, 16#18#,
16#0C#, 16#03#, 16#00#, 16#C0#, 16#30#, 16#0C#, 16#80#, 16#30#, 16#0C#,
16#03#, 16#00#, 16#C0#, 16#60#, 16#18#, 16#0C#, 16#07#, 16#01#, 16#80#,
16#C0#, 16#70#, 16#38#, 16#1C#, 16#0E#, 16#07#, 16#03#, 16#81#, 16#C0#,
16#E0#, 16#60#, 16#30#, 16#38#, 16#18#, 16#0C#, 16#0C#, 16#04#, 16#04#,
16#04#, 16#04#, 16#04#, 16#00#, 16#0C#, 16#00#, 16#C0#, 16#0C#, 16#0C#,
16#46#, 16#E4#, 16#F7#, 16#5E#, 16#1F#, 16#00#, 16#C0#, 16#17#, 16#8E#,
16#4E#, 16#E4#, 16#FC#, 16#C6#, 16#0C#, 16#00#, 16#C0#, 16#01#, 16#80#,
16#01#, 16#80#, 16#01#, 16#80#, 16#01#, 16#80#, 16#01#, 16#80#, 16#01#,
16#80#, 16#01#, 16#80#, 16#01#, 16#80#, 16#FF#, 16#FF#, 16#FF#, 16#FF#,
16#01#, 16#80#, 16#01#, 16#80#, 16#01#, 16#80#, 16#01#, 16#80#, 16#01#,
16#80#, 16#01#, 16#80#, 16#01#, 16#80#, 16#01#, 16#80#, 16#6F#, 16#FF#,
16#11#, 16#24#, 16#80#, 16#FF#, 16#FF#, 16#6F#, 16#F6#, 16#00#, 16#C0#,
16#20#, 16#18#, 16#06#, 16#01#, 16#80#, 16#C0#, 16#30#, 16#0C#, 16#06#,
16#01#, 16#80#, 16#60#, 16#30#, 16#0C#, 16#03#, 16#01#, 16#80#, 16#60#,
16#38#, 16#0C#, 16#03#, 16#01#, 16#C0#, 16#60#, 16#18#, 16#0E#, 16#03#,
16#00#, 16#03#, 16#E0#, 16#0E#, 16#70#, 16#1C#, 16#38#, 16#38#, 16#1C#,
16#38#, 16#1C#, 16#78#, 16#1E#, 16#70#, 16#0E#, 16#F0#, 16#0F#, 16#F0#,
16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#,
16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#70#, 16#0E#, 16#70#,
16#0E#, 16#78#, 16#1E#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#1C#, 16#38#,
16#0C#, 16#30#, 16#03#, 16#C0#, 16#06#, 16#03#, 16#83#, 16#E3#, 16#38#,
16#0E#, 16#03#, 16#80#, 16#E0#, 16#38#, 16#0E#, 16#03#, 16#80#, 16#E0#,
16#38#, 16#0E#, 16#03#, 16#80#, 16#E0#, 16#38#, 16#0E#, 16#03#, 16#80#,
16#E0#, 16#38#, 16#0E#, 16#03#, 16#81#, 16#E1#, 16#FF#, 16#07#, 16#C0#,
16#1F#, 16#F0#, 16#3F#, 16#F8#, 16#70#, 16#F8#, 16#60#, 16#3C#, 16#C0#,
16#3C#, 16#80#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#18#,
16#00#, 16#18#, 16#00#, 16#30#, 16#00#, 16#30#, 16#00#, 16#60#, 16#00#,
16#C0#, 16#00#, 16#80#, 16#01#, 16#00#, 16#02#, 16#00#, 16#04#, 16#00#,
16#08#, 16#01#, 16#10#, 16#02#, 16#3F#, 16#FE#, 16#7F#, 16#FC#, 16#FF#,
16#FC#, 16#0F#, 16#C0#, 16#FF#, 16#0C#, 16#3C#, 16#80#, 16#E4#, 16#03#,
16#00#, 16#18#, 16#00#, 16#C0#, 16#04#, 16#00#, 16#40#, 16#04#, 16#00#,
16#F8#, 16#1F#, 16#E0#, 16#0F#, 16#00#, 16#1C#, 16#00#, 16#E0#, 16#03#,
16#00#, 16#18#, 16#00#, 16#C0#, 16#06#, 16#00#, 16#60#, 16#03#, 16#78#,
16#73#, 16#FF#, 16#0F#, 16#C0#, 16#00#, 16#30#, 16#00#, 16#30#, 16#00#,
16#70#, 16#00#, 16#F0#, 16#00#, 16#B0#, 16#01#, 16#30#, 16#03#, 16#30#,
16#06#, 16#30#, 16#04#, 16#30#, 16#08#, 16#30#, 16#18#, 16#30#, 16#10#,
16#30#, 16#20#, 16#30#, 16#60#, 16#30#, 16#C0#, 16#30#, 16#FF#, 16#FF#,
16#FF#, 16#FF#, 16#00#, 16#30#, 16#00#, 16#30#, 16#00#, 16#30#, 16#00#,
16#30#, 16#00#, 16#30#, 16#00#, 16#30#, 16#00#, 16#00#, 16#3F#, 16#C3#,
16#FE#, 16#1F#, 16#E1#, 16#80#, 16#08#, 16#00#, 16#C0#, 16#07#, 16#C0#,
16#7F#, 16#81#, 16#FF#, 16#00#, 16#FC#, 16#01#, 16#E0#, 16#07#, 16#80#,
16#1C#, 16#00#, 16#60#, 16#03#, 16#00#, 16#18#, 16#00#, 16#C0#, 16#06#,
16#00#, 16#60#, 16#07#, 16#78#, 16#73#, 16#FF#, 16#0F#, 16#C0#, 16#00#,
16#0E#, 16#00#, 16#F8#, 16#03#, 16#C0#, 16#07#, 16#80#, 16#0F#, 16#00#,
16#1E#, 16#00#, 16#3C#, 16#00#, 16#7C#, 16#00#, 16#79#, 16#F0#, 16#7F#,
16#FC#, 16#F8#, 16#3C#, 16#F0#, 16#1E#, 16#F0#, 16#1F#, 16#F0#, 16#0F#,
16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#70#, 16#0F#, 16#78#,
16#0F#, 16#78#, 16#0E#, 16#3C#, 16#1E#, 16#1E#, 16#3C#, 16#0F#, 16#F8#,
16#07#, 16#E0#, 16#3F#, 16#FD#, 16#FF#, 16#F7#, 16#FF#, 16#F0#, 16#06#,
16#80#, 16#18#, 16#00#, 16#60#, 16#03#, 16#00#, 16#0C#, 16#00#, 16#30#,
16#01#, 16#80#, 16#06#, 16#00#, 16#18#, 16#00#, 16#E0#, 16#03#, 16#00#,
16#0C#, 16#00#, 16#70#, 16#01#, 16#80#, 16#06#, 16#00#, 16#38#, 16#00#,
16#C0#, 16#03#, 16#00#, 16#1C#, 16#00#, 16#60#, 16#00#, 16#0F#, 16#83#,
16#FC#, 16#70#, 16#E6#, 16#07#, 16#C0#, 16#3C#, 16#03#, 16#C0#, 16#3E#,
16#03#, 16#70#, 16#67#, 16#8C#, 16#3D#, 16#81#, 16#F0#, 16#0F#, 16#81#,
16#7C#, 16#21#, 16#E6#, 16#0E#, 16#C0#, 16#7C#, 16#03#, 16#C0#, 16#3C#,
16#03#, 16#C0#, 16#36#, 16#06#, 16#70#, 16#E3#, 16#FC#, 16#0F#, 16#80#,
16#07#, 16#C0#, 16#1F#, 16#F0#, 16#3C#, 16#78#, 16#38#, 16#3C#, 16#78#,
16#1E#, 16#70#, 16#1E#, 16#F0#, 16#0E#, 16#F0#, 16#0F#, 16#F0#, 16#0F#,
16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F8#, 16#0F#, 16#78#,
16#0F#, 16#3C#, 16#3F#, 16#1F#, 16#EE#, 16#0F#, 16#9E#, 16#00#, 16#1E#,
16#00#, 16#3C#, 16#00#, 16#38#, 16#00#, 16#78#, 16#00#, 16#F0#, 16#01#,
16#E0#, 16#07#, 16#80#, 16#1E#, 16#00#, 16#70#, 16#00#, 16#6F#, 16#F6#,
16#00#, 16#00#, 16#00#, 16#00#, 16#06#, 16#FF#, 16#60#, 16#67#, 16#BC#,
16#C0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#19#, 16#EF#, 16#78#,
16#42#, 16#22#, 16#20#, 16#00#, 16#00#, 16#C0#, 16#00#, 16#F0#, 16#01#,
16#F8#, 16#01#, 16#F8#, 16#01#, 16#F0#, 16#01#, 16#F0#, 16#03#, 16#F0#,
16#03#, 16#F0#, 16#00#, 16#F0#, 16#00#, 16#3E#, 16#00#, 16#07#, 16#E0#,
16#00#, 16#7E#, 16#00#, 16#03#, 16#E0#, 16#00#, 16#3E#, 16#00#, 16#03#,
16#F0#, 16#00#, 16#3F#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#10#, 16#FF#,
16#FF#, 16#FF#, 16#FF#, 16#F0#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#03#, 16#FF#, 16#FF#, 16#FF#,
16#FF#, 16#C0#, 16#80#, 16#00#, 16#3C#, 16#00#, 16#0F#, 16#C0#, 16#00#,
16#FC#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#7C#, 16#00#, 16#07#, 16#E0#,
16#00#, 16#7E#, 16#00#, 16#07#, 16#C0#, 16#00#, 16#F0#, 16#00#, 16#FC#,
16#00#, 16#FC#, 16#00#, 16#F8#, 16#00#, 16#F8#, 16#01#, 16#F8#, 16#01#,
16#F8#, 16#00#, 16#F0#, 16#00#, 16#30#, 16#00#, 16#00#, 16#1F#, 16#81#,
16#FF#, 16#18#, 16#7D#, 16#81#, 16#EC#, 16#07#, 16#F0#, 16#3F#, 16#81#,
16#E0#, 16#0F#, 16#00#, 16#70#, 16#03#, 16#80#, 16#38#, 16#01#, 16#80#,
16#08#, 16#00#, 16#C0#, 16#04#, 16#00#, 16#20#, 16#02#, 16#00#, 16#10#,
16#00#, 16#80#, 16#00#, 16#00#, 16#00#, 16#03#, 16#00#, 16#3C#, 16#01#,
16#E0#, 16#07#, 16#00#, 16#00#, 16#7F#, 16#00#, 16#01#, 16#FF#, 16#C0#,
16#07#, 16#80#, 16#F0#, 16#0F#, 16#00#, 16#38#, 16#1C#, 16#00#, 16#1C#,
16#38#, 16#00#, 16#0C#, 16#38#, 16#00#, 16#06#, 16#70#, 16#1E#, 16#02#,
16#70#, 16#3F#, 16#E3#, 16#F0#, 16#71#, 16#E1#, 16#E0#, 16#E0#, 16#C1#,
16#E0#, 16#C0#, 16#C1#, 16#E0#, 16#C1#, 16#C1#, 16#E1#, 16#81#, 16#C1#,
16#E1#, 16#81#, 16#83#, 16#E1#, 16#83#, 16#82#, 16#E1#, 16#83#, 16#86#,
16#71#, 16#C7#, 16#8C#, 16#70#, 16#F9#, 16#F8#, 16#38#, 16#F0#, 16#F0#,
16#3C#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#07#, 16#80#, 16#70#,
16#03#, 16#FF#, 16#E0#, 16#00#, 16#7F#, 16#00#, 16#00#, 16#10#, 16#00#,
16#00#, 16#38#, 16#00#, 16#00#, 16#38#, 16#00#, 16#00#, 16#38#, 16#00#,
16#00#, 16#7C#, 16#00#, 16#00#, 16#5C#, 16#00#, 16#00#, 16#DE#, 16#00#,
16#00#, 16#8E#, 16#00#, 16#01#, 16#8F#, 16#00#, 16#01#, 16#07#, 16#00#,
16#03#, 16#07#, 16#80#, 16#03#, 16#03#, 16#80#, 16#02#, 16#03#, 16#C0#,
16#06#, 16#03#, 16#C0#, 16#07#, 16#FF#, 16#C0#, 16#0F#, 16#FF#, 16#E0#,
16#0C#, 16#01#, 16#E0#, 16#18#, 16#00#, 16#F0#, 16#18#, 16#00#, 16#F0#,
16#30#, 16#00#, 16#78#, 16#30#, 16#00#, 16#78#, 16#70#, 16#00#, 16#7C#,
16#FC#, 16#01#, 16#FF#, 16#FF#, 16#FC#, 16#03#, 16#FF#, 16#F8#, 16#1E#,
16#0F#, 16#C1#, 16#E0#, 16#3C#, 16#1E#, 16#01#, 16#E1#, 16#E0#, 16#1E#,
16#1E#, 16#01#, 16#E1#, 16#E0#, 16#1E#, 16#1E#, 16#03#, 16#C1#, 16#E0#,
16#78#, 16#1F#, 16#FE#, 16#01#, 16#FF#, 16#F0#, 16#1E#, 16#07#, 16#C1#,
16#E0#, 16#1E#, 16#1E#, 16#00#, 16#F1#, 16#E0#, 16#0F#, 16#1E#, 16#00#,
16#F1#, 16#E0#, 16#0F#, 16#1E#, 16#00#, 16#F1#, 16#E0#, 16#1E#, 16#1E#,
16#07#, 16#E3#, 16#FF#, 16#F8#, 16#FF#, 16#FE#, 16#00#, 16#00#, 16#FE#,
16#08#, 16#0F#, 16#FF#, 16#60#, 16#FC#, 16#1F#, 16#87#, 16#C0#, 16#1E#,
16#3C#, 16#00#, 16#38#, 16#F0#, 16#00#, 16#67#, 16#80#, 16#01#, 16#9E#,
16#00#, 16#02#, 16#F0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#0F#, 16#00#,
16#00#, 16#3C#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#03#, 16#C0#, 16#00#,
16#0F#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#78#, 16#00#, 16#01#,
16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#0F#, 16#00#, 16#02#, 16#1F#,
16#00#, 16#38#, 16#3F#, 16#03#, 16#80#, 16#7F#, 16#FC#, 16#00#, 16#3F#,
16#80#, 16#FF#, 16#FC#, 16#00#, 16#7F#, 16#FF#, 16#00#, 16#78#, 16#3F#,
16#80#, 16#F0#, 16#0F#, 16#81#, 16#E0#, 16#0F#, 16#83#, 16#C0#, 16#0F#,
16#07#, 16#80#, 16#0F#, 16#0F#, 16#00#, 16#1E#, 16#1E#, 16#00#, 16#1E#,
16#3C#, 16#00#, 16#3C#, 16#78#, 16#00#, 16#78#, 16#F0#, 16#00#, 16#F1#,
16#E0#, 16#01#, 16#E3#, 16#C0#, 16#03#, 16#C7#, 16#80#, 16#07#, 16#8F#,
16#00#, 16#1E#, 16#1E#, 16#00#, 16#3C#, 16#3C#, 16#00#, 16#F0#, 16#78#,
16#01#, 16#E0#, 16#F0#, 16#0F#, 16#81#, 16#E0#, 16#7E#, 16#07#, 16#FF#,
16#F0#, 16#3F#, 16#FF#, 16#00#, 16#00#, 16#FF#, 16#FF#, 16#87#, 16#FF#,
16#F8#, 16#3C#, 16#01#, 16#83#, 16#C0#, 16#08#, 16#3C#, 16#00#, 16#83#,
16#C0#, 16#00#, 16#3C#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#3C#, 16#02#,
16#03#, 16#C0#, 16#60#, 16#3F#, 16#FE#, 16#03#, 16#FF#, 16#E0#, 16#3C#,
16#06#, 16#03#, 16#C0#, 16#20#, 16#3C#, 16#00#, 16#03#, 16#C0#, 16#00#,
16#3C#, 16#00#, 16#03#, 16#C0#, 16#01#, 16#3C#, 16#00#, 16#23#, 16#C0#,
16#06#, 16#3C#, 16#01#, 16#E7#, 16#FF#, 16#FE#, 16#FF#, 16#FF#, 16#C0#,
16#FF#, 16#FF#, 16#BF#, 16#FF#, 16#CF#, 16#00#, 16#67#, 16#80#, 16#13#,
16#C0#, 16#09#, 16#E0#, 16#00#, 16#F0#, 16#00#, 16#78#, 16#00#, 16#3C#,
16#02#, 16#1E#, 16#03#, 16#0F#, 16#FF#, 16#87#, 16#FF#, 16#C3#, 16#C0#,
16#61#, 16#E0#, 16#10#, 16#F0#, 16#00#, 16#78#, 16#00#, 16#3C#, 16#00#,
16#1E#, 16#00#, 16#0F#, 16#00#, 16#07#, 16#80#, 16#03#, 16#C0#, 16#03#,
16#F0#, 16#03#, 16#FC#, 16#00#, 16#00#, 16#FE#, 16#04#, 16#07#, 16#FF#,
16#B8#, 16#1F#, 16#03#, 16#F0#, 16#F8#, 16#01#, 16#E3#, 16#E0#, 16#01#,
16#C7#, 16#80#, 16#01#, 16#9E#, 16#00#, 16#01#, 16#3C#, 16#00#, 16#00#,
16#F0#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#07#,
16#80#, 16#07#, 16#FF#, 16#00#, 16#07#, 16#DE#, 16#00#, 16#07#, 16#BC#,
16#00#, 16#0F#, 16#78#, 16#00#, 16#1E#, 16#78#, 16#00#, 16#3C#, 16#F0#,
16#00#, 16#78#, 16#F0#, 16#00#, 16#F1#, 16#F0#, 16#01#, 16#E1#, 16#F0#,
16#03#, 16#C1#, 16#F8#, 16#1F#, 16#00#, 16#FF#, 16#FC#, 16#00#, 16#3F#,
16#80#, 16#FF#, 16#03#, 16#FD#, 16#F8#, 16#07#, 16#E3#, 16#C0#, 16#0F#,
16#0F#, 16#00#, 16#3C#, 16#3C#, 16#00#, 16#F0#, 16#F0#, 16#03#, 16#C3#,
16#C0#, 16#0F#, 16#0F#, 16#00#, 16#3C#, 16#3C#, 16#00#, 16#F0#, 16#F0#,
16#03#, 16#C3#, 16#FF#, 16#FF#, 16#0F#, 16#FF#, 16#FC#, 16#3C#, 16#00#,
16#F0#, 16#F0#, 16#03#, 16#C3#, 16#C0#, 16#0F#, 16#0F#, 16#00#, 16#3C#,
16#3C#, 16#00#, 16#F0#, 16#F0#, 16#03#, 16#C3#, 16#C0#, 16#0F#, 16#0F#,
16#00#, 16#3C#, 16#3C#, 16#00#, 16#F1#, 16#F8#, 16#07#, 16#EF#, 16#F0#,
16#3F#, 16#C0#, 16#FF#, 16#BF#, 16#0F#, 16#07#, 16#83#, 16#C1#, 16#E0#,
16#F0#, 16#78#, 16#3C#, 16#1E#, 16#0F#, 16#07#, 16#83#, 16#C1#, 16#E0#,
16#F0#, 16#78#, 16#3C#, 16#1E#, 16#0F#, 16#07#, 16#83#, 16#C3#, 16#F3#,
16#FE#, 16#0F#, 16#F0#, 16#7E#, 16#03#, 16#C0#, 16#3C#, 16#03#, 16#C0#,
16#3C#, 16#03#, 16#C0#, 16#3C#, 16#03#, 16#C0#, 16#3C#, 16#03#, 16#C0#,
16#3C#, 16#03#, 16#C0#, 16#3C#, 16#03#, 16#C0#, 16#3C#, 16#03#, 16#C0#,
16#3C#, 16#03#, 16#C6#, 16#38#, 16#F3#, 16#8F#, 16#F0#, 16#7C#, 16#00#,
16#FF#, 16#07#, 16#FC#, 16#FC#, 16#03#, 16#C0#, 16#F0#, 16#07#, 16#01#,
16#E0#, 16#1C#, 16#03#, 16#C0#, 16#60#, 16#07#, 16#81#, 16#80#, 16#0F#,
16#06#, 16#00#, 16#1E#, 16#18#, 16#00#, 16#3C#, 16#60#, 16#00#, 16#79#,
16#80#, 16#00#, 16#FF#, 16#00#, 16#01#, 16#FF#, 16#00#, 16#03#, 16#DF#,
16#00#, 16#07#, 16#8F#, 16#00#, 16#0F#, 16#0F#, 16#00#, 16#1E#, 16#0F#,
16#00#, 16#3C#, 16#0F#, 16#00#, 16#78#, 16#0F#, 16#00#, 16#F0#, 16#1F#,
16#01#, 16#E0#, 16#1F#, 16#03#, 16#C0#, 16#1F#, 16#0F#, 16#C0#, 16#3F#,
16#3F#, 16#C1#, 16#FF#, 16#80#, 16#FF#, 16#00#, 16#0F#, 16#C0#, 16#00#,
16#F0#, 16#00#, 16#1E#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#78#, 16#00#,
16#0F#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#3C#, 16#00#, 16#07#, 16#80#,
16#00#, 16#F0#, 16#00#, 16#1E#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#78#,
16#00#, 16#0F#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#3C#, 16#00#, 16#07#,
16#80#, 16#04#, 16#F0#, 16#01#, 16#1E#, 16#00#, 16#63#, 16#C0#, 16#3C#,
16#FF#, 16#FF#, 16#BF#, 16#FF#, 16#E0#, 16#FC#, 16#00#, 16#01#, 16#F9#,
16#F0#, 16#00#, 16#1F#, 16#87#, 16#80#, 16#00#, 16#F8#, 16#3E#, 16#00#,
16#0F#, 16#C1#, 16#F0#, 16#00#, 16#5E#, 16#0B#, 16#C0#, 16#06#, 16#F0#,
16#5E#, 16#00#, 16#37#, 16#82#, 16#78#, 16#03#, 16#3C#, 16#13#, 16#C0#,
16#19#, 16#E0#, 16#8F#, 16#01#, 16#8F#, 16#04#, 16#78#, 16#0C#, 16#78#,
16#21#, 16#E0#, 16#C3#, 16#C1#, 16#0F#, 16#06#, 16#1E#, 16#08#, 16#3C#,
16#60#, 16#F0#, 16#41#, 16#E3#, 16#07#, 16#82#, 16#07#, 16#B0#, 16#3C#,
16#10#, 16#3D#, 16#81#, 16#E0#, 16#81#, 16#F8#, 16#0F#, 16#04#, 16#07#,
16#C0#, 16#78#, 16#20#, 16#3C#, 16#03#, 16#C1#, 16#00#, 16#E0#, 16#1E#,
16#1C#, 16#06#, 16#01#, 16#FB#, 16#F8#, 16#10#, 16#1F#, 16#E0#, 16#FC#,
16#00#, 16#FE#, 16#78#, 16#00#, 16#70#, 16#78#, 16#00#, 16#40#, 16#F8#,
16#00#, 16#81#, 16#F8#, 16#01#, 16#02#, 16#F8#, 16#02#, 16#04#, 16#F8#,
16#04#, 16#08#, 16#F0#, 16#08#, 16#11#, 16#F0#, 16#10#, 16#21#, 16#F0#,
16#20#, 16#41#, 16#F0#, 16#40#, 16#81#, 16#F0#, 16#81#, 16#01#, 16#F1#,
16#02#, 16#01#, 16#E2#, 16#04#, 16#03#, 16#E4#, 16#08#, 16#03#, 16#E8#,
16#10#, 16#03#, 16#F0#, 16#20#, 16#03#, 16#E0#, 16#40#, 16#03#, 16#C0#,
16#80#, 16#03#, 16#81#, 16#00#, 16#07#, 16#07#, 16#00#, 16#06#, 16#3F#,
16#80#, 16#04#, 16#00#, 16#00#, 16#FE#, 16#00#, 16#07#, 16#FF#, 16#00#,
16#3E#, 16#0F#, 16#80#, 16#F0#, 16#07#, 16#83#, 16#C0#, 16#07#, 16#87#,
16#80#, 16#07#, 16#1E#, 16#00#, 16#0F#, 16#3C#, 16#00#, 16#1E#, 16#F0#,
16#00#, 16#1F#, 16#E0#, 16#00#, 16#3F#, 16#C0#, 16#00#, 16#7F#, 16#80#,
16#00#, 16#FF#, 16#00#, 16#01#, 16#FE#, 16#00#, 16#03#, 16#FC#, 16#00#,
16#07#, 16#F8#, 16#00#, 16#0F#, 16#78#, 16#00#, 16#3C#, 16#F0#, 16#00#,
16#78#, 16#E0#, 16#01#, 16#E1#, 16#E0#, 16#03#, 16#C1#, 16#E0#, 16#0F#,
16#01#, 16#F0#, 16#7C#, 16#00#, 16#FF#, 16#E0#, 16#00#, 16#7F#, 16#00#,
16#FF#, 16#F8#, 16#1F#, 16#FF#, 16#83#, 16#C1#, 16#F0#, 16#F0#, 16#1E#,
16#3C#, 16#07#, 16#CF#, 16#00#, 16#F3#, 16#C0#, 16#3C#, 16#F0#, 16#0F#,
16#3C#, 16#03#, 16#CF#, 16#01#, 16#F3#, 16#C0#, 16#78#, 16#F0#, 16#7C#,
16#3F#, 16#FE#, 16#0F#, 16#FE#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#,
16#3C#, 16#00#, 16#0F#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#F0#, 16#00#,
16#3C#, 16#00#, 16#1F#, 16#00#, 16#0F#, 16#F0#, 16#00#, 16#00#, 16#FE#,
16#00#, 16#07#, 16#FF#, 16#00#, 16#3E#, 16#0F#, 16#80#, 16#F0#, 16#07#,
16#83#, 16#C0#, 16#07#, 16#87#, 16#80#, 16#0F#, 16#1E#, 16#00#, 16#0F#,
16#3C#, 16#00#, 16#1E#, 16#F0#, 16#00#, 16#1D#, 16#E0#, 16#00#, 16#3F#,
16#C0#, 16#00#, 16#7F#, 16#80#, 16#00#, 16#FF#, 16#00#, 16#01#, 16#FE#,
16#00#, 16#03#, 16#FC#, 16#00#, 16#07#, 16#F8#, 16#00#, 16#0F#, 16#70#,
16#00#, 16#1C#, 16#F0#, 16#00#, 16#79#, 16#E0#, 16#00#, 16#F1#, 16#E0#,
16#03#, 16#C1#, 16#C0#, 16#07#, 16#01#, 16#C0#, 16#1C#, 16#01#, 16#E0#,
16#F0#, 16#00#, 16#7F#, 16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#7C#,
16#00#, 16#00#, 16#7C#, 16#00#, 16#00#, 16#7E#, 16#00#, 16#00#, 16#1F#,
16#00#, 16#00#, 16#0F#, 16#C0#, 16#FF#, 16#F0#, 16#03#, 16#FF#, 16#F0#,
16#0F#, 16#07#, 16#C0#, 16#78#, 16#1E#, 16#03#, 16#C0#, 16#78#, 16#1E#,
16#03#, 16#C0#, 16#F0#, 16#1E#, 16#07#, 16#80#, 16#F0#, 16#3C#, 16#07#,
16#81#, 16#E0#, 16#78#, 16#0F#, 16#0F#, 16#80#, 16#7F#, 16#F8#, 16#03#,
16#FE#, 16#00#, 16#1E#, 16#78#, 16#00#, 16#F1#, 16#E0#, 16#07#, 16#87#,
16#80#, 16#3C#, 16#3C#, 16#01#, 16#E0#, 16#F0#, 16#0F#, 16#03#, 16#C0#,
16#78#, 16#0F#, 16#03#, 16#C0#, 16#7C#, 16#3F#, 16#01#, 16#F3#, 16#FC#,
16#07#, 16#E0#, 16#07#, 16#84#, 16#1F#, 16#FC#, 16#3C#, 16#3E#, 16#30#,
16#0E#, 16#70#, 16#06#, 16#70#, 16#06#, 16#70#, 16#02#, 16#78#, 16#00#,
16#7C#, 16#00#, 16#3F#, 16#00#, 16#1F#, 16#C0#, 16#0F#, 16#E0#, 16#03#,
16#F8#, 16#00#, 16#FC#, 16#00#, 16#3E#, 16#00#, 16#1F#, 16#80#, 16#0F#,
16#80#, 16#0F#, 16#C0#, 16#0F#, 16#E0#, 16#0F#, 16#70#, 16#1E#, 16#78#,
16#3C#, 16#4F#, 16#F8#, 16#43#, 16#F0#, 16#FF#, 16#FF#, 16#FF#, 16#FF#,
16#FF#, 16#E0#, 16#F0#, 16#7C#, 16#0F#, 16#03#, 16#80#, 16#F0#, 16#10#,
16#0F#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#F0#,
16#00#, 16#0F#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#0F#, 16#00#, 16#00#,
16#F0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#0F#, 16#00#,
16#00#, 16#F0#, 16#00#, 16#0F#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#0F#,
16#00#, 16#00#, 16#F0#, 16#00#, 16#1F#, 16#80#, 16#03#, 16#FC#, 16#00#,
16#FF#, 16#01#, 16#FD#, 16#F8#, 16#01#, 16#C3#, 16#C0#, 16#02#, 16#0F#,
16#00#, 16#08#, 16#3C#, 16#00#, 16#20#, 16#F0#, 16#00#, 16#83#, 16#C0#,
16#02#, 16#0F#, 16#00#, 16#08#, 16#3C#, 16#00#, 16#20#, 16#F0#, 16#00#,
16#83#, 16#C0#, 16#02#, 16#0F#, 16#00#, 16#08#, 16#3C#, 16#00#, 16#20#,
16#F0#, 16#00#, 16#83#, 16#C0#, 16#02#, 16#0F#, 16#00#, 16#08#, 16#3C#,
16#00#, 16#20#, 16#F0#, 16#00#, 16#81#, 16#E0#, 16#04#, 16#07#, 16#80#,
16#30#, 16#0F#, 16#81#, 16#80#, 16#1F#, 16#FC#, 16#00#, 16#1F#, 16#C0#,
16#00#, 16#FF#, 16#C0#, 16#7F#, 16#3E#, 16#00#, 16#1E#, 16#1E#, 16#00#,
16#0C#, 16#0E#, 16#00#, 16#18#, 16#0F#, 16#00#, 16#18#, 16#0F#, 16#00#,
16#10#, 16#07#, 16#80#, 16#30#, 16#07#, 16#80#, 16#30#, 16#03#, 16#C0#,
16#60#, 16#03#, 16#C0#, 16#60#, 16#01#, 16#E0#, 16#40#, 16#01#, 16#E0#,
16#C0#, 16#00#, 16#F0#, 16#C0#, 16#00#, 16#F1#, 16#80#, 16#00#, 16#79#,
16#80#, 16#00#, 16#7B#, 16#00#, 16#00#, 16#3F#, 16#00#, 16#00#, 16#3E#,
16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#1E#, 16#00#, 16#00#, 16#1C#,
16#00#, 16#00#, 16#0C#, 16#00#, 16#00#, 16#08#, 16#00#, 16#FF#, 16#9F#,
16#F0#, 16#3F#, 16#9F#, 16#03#, 16#E0#, 16#07#, 16#07#, 16#80#, 16#F0#,
16#03#, 16#03#, 16#C0#, 16#78#, 16#01#, 16#80#, 16#E0#, 16#1E#, 16#00#,
16#80#, 16#78#, 16#0F#, 16#00#, 16#40#, 16#3C#, 16#03#, 16#80#, 16#60#,
16#0F#, 16#01#, 16#E0#, 16#20#, 16#07#, 16#81#, 16#F0#, 16#30#, 16#03#,
16#C0#, 16#BC#, 16#18#, 16#00#, 16#F0#, 16#DE#, 16#08#, 16#00#, 16#78#,
16#67#, 16#0C#, 16#00#, 16#1E#, 16#23#, 16#C4#, 16#00#, 16#0F#, 16#31#,
16#E6#, 16#00#, 16#07#, 16#D0#, 16#7B#, 16#00#, 16#01#, 16#F8#, 16#3D#,
16#00#, 16#00#, 16#FC#, 16#0F#, 16#80#, 16#00#, 16#3C#, 16#07#, 16#C0#,
16#00#, 16#1E#, 16#03#, 16#C0#, 16#00#, 16#0F#, 16#00#, 16#E0#, 16#00#,
16#03#, 16#00#, 16#70#, 16#00#, 16#01#, 16#80#, 16#10#, 16#00#, 16#00#,
16#80#, 16#08#, 16#00#, 16#7F#, 16#E0#, 16#FF#, 16#0F#, 16#C0#, 16#1E#,
16#03#, 16#E0#, 16#0E#, 16#00#, 16#F0#, 16#06#, 16#00#, 16#3C#, 16#06#,
16#00#, 16#0F#, 16#06#, 16#00#, 16#07#, 16#86#, 16#00#, 16#01#, 16#E6#,
16#00#, 16#00#, 16#7B#, 16#00#, 16#00#, 16#3F#, 16#00#, 16#00#, 16#0F#,
16#00#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#03#, 16#F0#, 16#00#, 16#03#,
16#78#, 16#00#, 16#01#, 16#9E#, 16#00#, 16#01#, 16#87#, 16#80#, 16#01#,
16#83#, 16#E0#, 16#01#, 16#80#, 16#F0#, 16#01#, 16#80#, 16#3C#, 16#01#,
16#80#, 16#1F#, 16#01#, 16#C0#, 16#07#, 16#C1#, 16#E0#, 16#03#, 16#F3#,
16#FE#, 16#0F#, 16#FE#, 16#FF#, 16#C0#, 16#FF#, 16#7E#, 16#00#, 16#1C#,
16#1E#, 16#00#, 16#18#, 16#1F#, 16#00#, 16#30#, 16#0F#, 16#00#, 16#20#,
16#07#, 16#80#, 16#60#, 16#03#, 16#C0#, 16#C0#, 16#03#, 16#E0#, 16#80#,
16#01#, 16#E1#, 16#80#, 16#00#, 16#F3#, 16#00#, 16#00#, 16#FE#, 16#00#,
16#00#, 16#7E#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#3C#, 16#00#,
16#00#, 16#3C#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#3C#, 16#00#,
16#00#, 16#3C#, 16#00#, 16#00#, 16#3C#, 16#00#, 16#00#, 16#3C#, 16#00#,
16#00#, 16#3C#, 16#00#, 16#00#, 16#7E#, 16#00#, 16#01#, 16#FF#, 16#80#,
16#3F#, 16#FF#, 16#F1#, 16#FF#, 16#FF#, 16#9C#, 16#00#, 16#78#, 16#C0#,
16#07#, 16#84#, 16#00#, 16#38#, 16#00#, 16#03#, 16#C0#, 16#00#, 16#3C#,
16#00#, 16#03#, 16#C0#, 16#00#, 16#1C#, 16#00#, 16#01#, 16#E0#, 16#00#,
16#1E#, 16#00#, 16#01#, 16#E0#, 16#00#, 16#0E#, 16#00#, 16#00#, 16#E0#,
16#00#, 16#0F#, 16#00#, 16#00#, 16#F0#, 16#00#, 16#07#, 16#00#, 16#00#,
16#70#, 16#00#, 16#47#, 16#80#, 16#06#, 16#78#, 16#00#, 16#33#, 16#80#,
16#07#, 16#3F#, 16#FF#, 16#FB#, 16#FF#, 16#FF#, 16#C0#, 16#FF#, 16#83#,
16#06#, 16#0C#, 16#18#, 16#30#, 16#60#, 16#C1#, 16#83#, 16#06#, 16#0C#,
16#18#, 16#30#, 16#60#, 16#C1#, 16#83#, 16#06#, 16#0C#, 16#18#, 16#30#,
16#60#, 16#C1#, 16#83#, 16#07#, 16#F0#, 16#C0#, 16#18#, 16#06#, 16#01#,
16#80#, 16#70#, 16#0C#, 16#03#, 16#00#, 16#E0#, 16#18#, 16#06#, 16#01#,
16#C0#, 16#30#, 16#0E#, 16#03#, 16#80#, 16#60#, 16#1C#, 16#07#, 16#00#,
16#C0#, 16#38#, 16#0E#, 16#01#, 16#80#, 16#70#, 16#1C#, 16#03#, 16#FE#,
16#0C#, 16#18#, 16#30#, 16#60#, 16#C1#, 16#83#, 16#06#, 16#0C#, 16#18#,
16#30#, 16#60#, 16#C1#, 16#83#, 16#06#, 16#0C#, 16#18#, 16#30#, 16#60#,
16#C1#, 16#83#, 16#06#, 16#0C#, 16#1F#, 16#F0#, 16#03#, 16#80#, 16#07#,
16#00#, 16#1F#, 16#00#, 16#3E#, 16#00#, 16#CE#, 16#01#, 16#8C#, 16#06#,
16#1C#, 16#0C#, 16#18#, 16#30#, 16#38#, 16#60#, 16#31#, 16#80#, 16#77#,
16#00#, 16#6C#, 16#00#, 16#E0#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#F0#,
16#C0#, 16#E0#, 16#70#, 16#38#, 16#0C#, 16#02#, 16#1F#, 16#03#, 16#8C#,
16#38#, 16#31#, 16#C1#, 16#8E#, 16#0C#, 16#00#, 16#60#, 16#0F#, 16#01#,
16#98#, 16#30#, 16#C3#, 16#86#, 16#38#, 16#31#, 16#C1#, 16#8E#, 16#0C#,
16#78#, 16#E5#, 16#FB#, 16#CF#, 16#0C#, 16#00#, 16#00#, 16#38#, 16#00#,
16#F8#, 16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#38#,
16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#39#, 16#F0#, 16#3B#, 16#FC#,
16#3C#, 16#3E#, 16#38#, 16#0E#, 16#38#, 16#0F#, 16#38#, 16#07#, 16#38#,
16#07#, 16#38#, 16#07#, 16#38#, 16#07#, 16#38#, 16#07#, 16#38#, 16#06#,
16#38#, 16#0E#, 16#38#, 16#0C#, 16#3C#, 16#1C#, 16#1F#, 16#F0#, 16#07#,
16#E0#, 16#07#, 16#E0#, 16#7F#, 16#E3#, 16#87#, 16#D8#, 16#0F#, 16#60#,
16#1B#, 16#00#, 16#0C#, 16#00#, 16#30#, 16#00#, 16#C0#, 16#03#, 16#00#,
16#0E#, 16#00#, 16#3C#, 16#01#, 16#78#, 16#19#, 16#FF#, 16#C3#, 16#FE#,
16#03#, 16#E0#, 16#00#, 16#00#, 16#00#, 16#1C#, 16#00#, 16#7C#, 16#00#,
16#1C#, 16#00#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#1C#,
16#00#, 16#1C#, 16#07#, 16#9C#, 16#1F#, 16#DC#, 16#38#, 16#7C#, 16#70#,
16#3C#, 16#70#, 16#1C#, 16#60#, 16#1C#, 16#E0#, 16#1C#, 16#E0#, 16#1C#,
16#E0#, 16#1C#, 16#E0#, 16#1C#, 16#E0#, 16#1C#, 16#F0#, 16#1C#, 16#70#,
16#1C#, 16#7C#, 16#3E#, 16#3F#, 16#DF#, 16#0F#, 16#90#, 16#0F#, 16#81#,
16#FF#, 16#08#, 16#3C#, 16#80#, 16#E7#, 16#FF#, 16#7F#, 16#FF#, 16#00#,
16#18#, 16#00#, 16#C0#, 16#07#, 16#00#, 16#38#, 16#03#, 16#E0#, 16#37#,
16#83#, 16#3F#, 16#F0#, 16#FF#, 16#03#, 16#F0#, 16#01#, 16#F0#, 16#3F#,
16#C3#, 16#8E#, 16#18#, 16#00#, 16#C0#, 16#0E#, 16#00#, 16#70#, 16#03#,
16#80#, 16#1C#, 16#03#, 16#FE#, 16#1F#, 16#F0#, 16#38#, 16#01#, 16#C0#,
16#0E#, 16#00#, 16#70#, 16#03#, 16#80#, 16#1C#, 16#00#, 16#E0#, 16#07#,
16#00#, 16#38#, 16#01#, 16#C0#, 16#0E#, 16#00#, 16#70#, 16#07#, 16#C0#,
16#FF#, 16#80#, 16#0F#, 16#C0#, 16#1F#, 16#FF#, 16#38#, 16#FF#, 16#70#,
16#70#, 16#70#, 16#70#, 16#70#, 16#30#, 16#70#, 16#30#, 16#70#, 16#30#,
16#38#, 16#20#, 16#1C#, 16#60#, 16#0F#, 16#80#, 16#10#, 16#00#, 16#20#,
16#00#, 16#60#, 16#00#, 16#7F#, 16#E0#, 16#3F#, 16#FC#, 16#1F#, 16#FE#,
16#20#, 16#06#, 16#40#, 16#02#, 16#C0#, 16#02#, 16#C0#, 16#04#, 16#F0#,
16#18#, 16#7F#, 16#F0#, 16#1F#, 16#80#, 16#00#, 16#00#, 16#38#, 16#00#,
16#F8#, 16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#38#,
16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#38#, 16#F0#, 16#3B#, 16#F8#,
16#3E#, 16#3C#, 16#3C#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#,
16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#,
16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#7C#, 16#3E#, 16#FE#,
16#7F#, 16#18#, 16#3C#, 16#3C#, 16#18#, 16#00#, 16#00#, 16#00#, 16#00#,
16#04#, 16#3C#, 16#7C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#,
16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#3C#, 16#FF#, 16#03#, 16#03#,
16#C1#, 16#E0#, 16#60#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#83#,
16#C3#, 16#E0#, 16#70#, 16#38#, 16#1C#, 16#0E#, 16#07#, 16#03#, 16#81#,
16#C0#, 16#E0#, 16#70#, 16#38#, 16#1C#, 16#0E#, 16#07#, 16#03#, 16#81#,
16#C0#, 16#E0#, 16#70#, 16#37#, 16#3B#, 16#F8#, 16#F8#, 16#00#, 16#00#,
16#1C#, 16#00#, 16#3E#, 16#00#, 16#07#, 16#00#, 16#03#, 16#80#, 16#01#,
16#C0#, 16#00#, 16#E0#, 16#00#, 16#70#, 16#00#, 16#38#, 16#00#, 16#1C#,
16#3F#, 16#8E#, 16#0F#, 16#07#, 16#06#, 16#03#, 16#86#, 16#01#, 16#C4#,
16#00#, 16#E4#, 16#00#, 16#7E#, 16#00#, 16#3F#, 16#80#, 16#1D#, 16#C0#,
16#0E#, 16#70#, 16#07#, 16#1C#, 16#03#, 16#8F#, 16#01#, 16#C3#, 16#C0#,
16#E0#, 16#F0#, 16#F8#, 16#3C#, 16#FE#, 16#7F#, 16#80#, 16#00#, 16#1C#,
16#7C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#,
16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#, 16#1C#,
16#1C#, 16#1C#, 16#1C#, 16#3C#, 16#FF#, 16#38#, 16#F0#, 16#7C#, 16#3E#,
16#FE#, 16#7F#, 16#83#, 16#E3#, 16#F0#, 16#E0#, 16#E0#, 16#70#, 16#1C#,
16#38#, 16#1C#, 16#07#, 16#0E#, 16#07#, 16#01#, 16#C3#, 16#81#, 16#C0#,
16#70#, 16#E0#, 16#70#, 16#1C#, 16#38#, 16#1C#, 16#07#, 16#0E#, 16#07#,
16#01#, 16#C3#, 16#81#, 16#C0#, 16#70#, 16#E0#, 16#70#, 16#1C#, 16#38#,
16#1C#, 16#07#, 16#0E#, 16#07#, 16#01#, 16#C3#, 16#81#, 16#E0#, 16#73#,
16#F9#, 16#FC#, 16#7F#, 16#38#, 16#F0#, 16#FB#, 16#F8#, 16#3E#, 16#3C#,
16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#,
16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#,
16#38#, 16#1C#, 16#38#, 16#1C#, 16#78#, 16#3C#, 16#FE#, 16#7F#, 16#07#,
16#E0#, 16#1F#, 16#F8#, 16#3C#, 16#7C#, 16#78#, 16#3E#, 16#70#, 16#1E#,
16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#, 16#0F#, 16#F0#,
16#0F#, 16#F8#, 16#0F#, 16#78#, 16#0E#, 16#7C#, 16#1C#, 16#3E#, 16#3C#,
16#0F#, 16#F0#, 16#07#, 16#C0#, 16#18#, 16#F0#, 16#FB#, 16#FC#, 16#3E#,
16#1E#, 16#38#, 16#0E#, 16#38#, 16#0F#, 16#38#, 16#07#, 16#38#, 16#07#,
16#38#, 16#07#, 16#38#, 16#07#, 16#38#, 16#07#, 16#38#, 16#06#, 16#38#,
16#0E#, 16#38#, 16#0C#, 16#3E#, 16#1C#, 16#3B#, 16#F8#, 16#39#, 16#E0#,
16#38#, 16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#38#, 16#00#, 16#38#,
16#00#, 16#38#, 16#00#, 16#7C#, 16#00#, 16#FF#, 16#00#, 16#07#, 16#C4#,
16#1F#, 16#EC#, 16#3C#, 16#3C#, 16#70#, 16#1C#, 16#70#, 16#1C#, 16#60#,
16#1C#, 16#E0#, 16#1C#, 16#E0#, 16#1C#, 16#E0#, 16#1C#, 16#E0#, 16#1C#,
16#E0#, 16#1C#, 16#F0#, 16#1C#, 16#70#, 16#1C#, 16#78#, 16#3C#, 16#3F#,
16#DC#, 16#1F#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#1C#,
16#00#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#1C#, 16#00#, 16#3E#, 16#00#,
16#FF#, 16#19#, 16#FF#, 16#7C#, 16#F3#, 16#9C#, 16#03#, 16#80#, 16#70#,
16#0E#, 16#01#, 16#C0#, 16#38#, 16#07#, 16#00#, 16#E0#, 16#1C#, 16#03#,
16#80#, 16#70#, 16#1F#, 16#07#, 16#F0#, 16#3E#, 16#58#, 16#7C#, 16#0F#,
16#03#, 16#C0#, 16#7C#, 16#07#, 16#80#, 16#F8#, 16#1F#, 16#81#, 16#F8#,
16#1E#, 16#03#, 16#C0#, 16#F0#, 16#3E#, 16#1A#, 16#7C#, 16#10#, 16#30#,
16#70#, 16#FE#, 16#FE#, 16#70#, 16#70#, 16#70#, 16#70#, 16#70#, 16#70#,
16#70#, 16#70#, 16#70#, 16#70#, 16#70#, 16#79#, 16#7E#, 16#3C#, 16#F8#,
16#7C#, 16#38#, 16#3C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#,
16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#,
16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#38#, 16#1C#, 16#3C#, 16#7C#,
16#1F#, 16#DF#, 16#0F#, 16#18#, 16#FE#, 16#1F#, 16#7C#, 16#06#, 16#38#,
16#04#, 16#1C#, 16#04#, 16#1C#, 16#0C#, 16#0E#, 16#08#, 16#0E#, 16#18#,
16#07#, 16#10#, 16#07#, 16#10#, 16#07#, 16#20#, 16#03#, 16#A0#, 16#03#,
16#E0#, 16#01#, 16#C0#, 16#01#, 16#C0#, 16#00#, 16#80#, 16#00#, 16#80#,
16#FC#, 16#7F#, 16#1F#, 16#78#, 16#3C#, 16#06#, 16#38#, 16#1C#, 16#04#,
16#38#, 16#1C#, 16#04#, 16#1C#, 16#1C#, 16#0C#, 16#1C#, 16#0E#, 16#08#,
16#1C#, 16#1E#, 16#18#, 16#0E#, 16#17#, 16#10#, 16#0E#, 16#37#, 16#10#,
16#07#, 16#23#, 16#20#, 16#07#, 16#63#, 16#A0#, 16#07#, 16#43#, 16#E0#,
16#03#, 16#C1#, 16#C0#, 16#03#, 16#81#, 16#C0#, 16#01#, 16#80#, 16#80#,
16#01#, 16#00#, 16#80#, 16#7F#, 16#7E#, 16#1E#, 16#0C#, 16#07#, 16#8C#,
16#01#, 16#C4#, 16#00#, 16#76#, 16#00#, 16#3E#, 16#00#, 16#0E#, 16#00#,
16#03#, 16#80#, 16#03#, 16#E0#, 16#01#, 16#70#, 16#01#, 16#1C#, 16#01#,
16#8F#, 16#01#, 16#83#, 16#80#, 16#80#, 16#E0#, 16#C0#, 16#79#, 16#F0#,
16#FF#, 16#FE#, 16#0F#, 16#7C#, 16#06#, 16#38#, 16#06#, 16#3C#, 16#04#,
16#1C#, 16#0C#, 16#1E#, 16#0C#, 16#0E#, 16#08#, 16#0F#, 16#18#, 16#07#,
16#10#, 16#07#, 16#90#, 16#03#, 16#B0#, 16#03#, 16#A0#, 16#01#, 16#E0#,
16#01#, 16#E0#, 16#00#, 16#C0#, 16#00#, 16#C0#, 16#00#, 16#80#, 16#00#,
16#80#, 16#01#, 16#80#, 16#01#, 16#00#, 16#03#, 16#00#, 16#7E#, 16#00#,
16#7C#, 16#00#, 16#78#, 16#00#, 16#7F#, 16#F9#, 16#FF#, 16#E6#, 16#07#,
16#10#, 16#18#, 16#00#, 16#E0#, 16#07#, 16#00#, 16#38#, 16#00#, 16#E0#,
16#07#, 16#00#, 16#38#, 16#01#, 16#C0#, 16#07#, 16#01#, 16#38#, 16#0D#,
16#C0#, 16#3F#, 16#FF#, 16#BF#, 16#FE#, 16#07#, 16#0E#, 16#1C#, 16#18#,
16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#,
16#30#, 16#60#, 16#60#, 16#10#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#,
16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#1C#, 16#0E#, 16#07#, 16#FF#,
16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#FF#, 16#E0#, 16#70#, 16#38#, 16#18#,
16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#,
16#08#, 16#06#, 16#06#, 16#08#, 16#18#, 16#18#, 16#18#, 16#18#, 16#18#,
16#18#, 16#18#, 16#18#, 16#18#, 16#18#, 16#38#, 16#70#, 16#E0#, 16#3E#,
16#00#, 16#7F#, 16#87#, 16#E3#, 16#FE#, 16#00#, 16#7C#);
FreeSerif18pt7bGlyphs : aliased constant Glyph_Array := (
(0, 0, 0, 9, 0, 1), -- 0x20 ' '
(0, 4, 24, 12, 5, -23), -- 0x21 '!'
(12, 8, 9, 14, 3, -23), -- 0x22 '"'
(21, 17, 23, 17, 0, -22), -- 0x23 '#'
(70, 13, 27, 17, 2, -24), -- 0x24 '$'
(114, 25, 23, 29, 2, -22), -- 0x25 '%'
(186, 25, 25, 27, 1, -24), -- 0x26 '&'
(265, 3, 9, 7, 2, -23), -- 0x27 '''
(269, 9, 30, 12, 2, -23), -- 0x28 '('
(303, 9, 30, 12, 1, -22), -- 0x29 ')'
(337, 12, 14, 18, 3, -23), -- 0x2A '*'
(358, 16, 18, 20, 2, -17), -- 0x2B '+'
(394, 4, 9, 9, 2, -3), -- 0x2C ','
(399, 8, 2, 12, 1, -8), -- 0x2D '-'
(401, 4, 4, 9, 2, -3), -- 0x2E '.'
(403, 10, 24, 10, 0, -23), -- 0x2F '/'
(433, 16, 24, 18, 1, -23), -- 0x30 '0'
(481, 10, 24, 18, 3, -23), -- 0x31 '1'
(511, 16, 24, 17, 1, -23), -- 0x32 '2'
(559, 13, 24, 17, 2, -23), -- 0x33 '3'
(598, 16, 23, 18, 0, -22), -- 0x34 '4'
(644, 13, 24, 17, 2, -23), -- 0x35 '5'
(683, 16, 24, 18, 1, -23), -- 0x36 '6'
(731, 14, 23, 18, 1, -22), -- 0x37 '7'
(772, 12, 25, 18, 2, -24), -- 0x38 '8'
(810, 16, 26, 17, 1, -24), -- 0x39 '9'
(862, 4, 17, 9, 2, -16), -- 0x3A ':'
(871, 5, 22, 9, 2, -16), -- 0x3B ';'
(885, 18, 18, 20, 1, -17), -- 0x3C '<'
(926, 18, 9, 20, 1, -12), -- 0x3D '='
(947, 18, 18, 20, 1, -17), -- 0x3E '>'
(988, 13, 25, 16, 2, -24), -- 0x3F '?'
(1029, 24, 25, 30, 3, -24), -- 0x40 '@'
(1104, 24, 23, 25, 1, -22), -- 0x41 'A'
(1173, 20, 23, 22, 1, -22), -- 0x42 'B'
(1231, 22, 24, 23, 1, -23), -- 0x43 'C'
(1297, 23, 23, 25, 1, -22), -- 0x44 'D'
(1364, 20, 23, 21, 2, -22), -- 0x45 'E'
(1422, 17, 23, 20, 2, -22), -- 0x46 'F'
(1471, 23, 24, 25, 1, -23), -- 0x47 'G'
(1540, 22, 23, 25, 2, -22), -- 0x48 'H'
(1604, 9, 23, 11, 2, -22), -- 0x49 'I'
(1630, 12, 23, 13, 0, -22), -- 0x4A 'J'
(1665, 23, 23, 25, 2, -22), -- 0x4B 'K'
(1732, 19, 23, 21, 2, -22), -- 0x4C 'L'
(1787, 29, 23, 31, 1, -22), -- 0x4D 'M'
(1871, 23, 23, 25, 1, -22), -- 0x4E 'N'
(1938, 23, 24, 25, 1, -23), -- 0x4F 'O'
(2007, 18, 23, 20, 1, -22), -- 0x50 'P'
(2059, 23, 30, 25, 1, -23), -- 0x51 'Q'
(2146, 21, 23, 23, 2, -22), -- 0x52 'R'
(2207, 16, 24, 19, 1, -23), -- 0x53 'S'
(2255, 20, 23, 21, 1, -22), -- 0x54 'T'
(2313, 22, 23, 25, 2, -22), -- 0x55 'U'
(2377, 24, 23, 25, 0, -22), -- 0x56 'V'
(2446, 33, 23, 33, 0, -22), -- 0x57 'W'
(2541, 25, 23, 25, 0, -22), -- 0x58 'X'
(2613, 24, 23, 25, 1, -22), -- 0x59 'Y'
(2682, 21, 23, 21, 0, -22), -- 0x5A 'Z'
(2743, 7, 28, 12, 3, -22), -- 0x5B '['
(2768, 10, 24, 10, 0, -23), -- 0x5C '\'
(2798, 7, 28, 12, 2, -22), -- 0x5D ']'
(2823, 15, 13, 16, 1, -22), -- 0x5E '^'
(2848, 18, 2, 17, 0, 3), -- 0x5F '_'
(2853, 8, 6, 9, 1, -23), -- 0x60 '`'
(2859, 13, 16, 15, 2, -15), -- 0x61 'a'
(2885, 16, 25, 17, 1, -24), -- 0x62 'b'
(2935, 14, 16, 16, 1, -15), -- 0x63 'c'
(2963, 16, 25, 17, 1, -24), -- 0x64 'd'
(3013, 13, 16, 16, 1, -15), -- 0x65 'e'
(3039, 13, 25, 13, 0, -24), -- 0x66 'f'
(3080, 16, 24, 16, 1, -15), -- 0x67 'g'
(3128, 16, 25, 17, 1, -24), -- 0x68 'h'
(3178, 8, 24, 10, 0, -23), -- 0x69 'i'
(3202, 9, 32, 12, 0, -23), -- 0x6A 'j'
(3238, 17, 25, 18, 1, -24), -- 0x6B 'k'
(3292, 8, 25, 9, 0, -24), -- 0x6C 'l'
(3317, 26, 16, 27, 1, -15), -- 0x6D 'm'
(3369, 16, 16, 17, 1, -15), -- 0x6E 'n'
(3401, 16, 16, 17, 1, -15), -- 0x6F 'o'
(3433, 16, 24, 17, 1, -15), -- 0x70 'p'
(3481, 16, 24, 17, 1, -15), -- 0x71 'q'
(3529, 11, 16, 12, 1, -15), -- 0x72 'r'
(3551, 10, 16, 13, 1, -15), -- 0x73 's'
(3571, 8, 19, 10, 2, -18), -- 0x74 't'
(3590, 16, 16, 17, 1, -15), -- 0x75 'u'
(3622, 16, 16, 16, 0, -15), -- 0x76 'v'
(3654, 24, 16, 24, 0, -15), -- 0x77 'w'
(3702, 17, 16, 17, 0, -15), -- 0x78 'x'
(3736, 16, 24, 16, 0, -15), -- 0x79 'y'
(3784, 14, 16, 15, 0, -15), -- 0x7A 'z'
(3812, 8, 30, 17, 3, -23), -- 0x7B '{'
(3842, 2, 24, 7, 2, -23), -- 0x7C '|'
(3848, 8, 30, 17, 6, -22), -- 0x7D '}'
(3878, 16, 4, 17, 1, -10)); -- 0x7E '~'
Font_D : aliased constant Bitmap_Font :=
(FreeSerif18pt7bBitmaps'Access,
FreeSerif18pt7bGlyphs'Access,
42);
Font : constant Giza.Font.Ref_Const := Font_D'Access;
end Giza.Bitmap_Fonts.FreeSerif18pt7b;
| 67.20442 | 73 | 0.47879 |
10f8ac37b3dd788502d3890f35afff99e154697c | 4,449 | ads | Ada | source/league/ucd/matreshka-internals-unicode-ucd-core_01b0.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/league/ucd/matreshka-internals-unicode-ucd-core_01b0.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/league/ucd/matreshka-internals-unicode-ucd-core_01b0.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 4 | 2017-07-18T07:11:05.000Z | 2020-06-21T03:02:25.000Z | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2015, 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$
------------------------------------------------------------------------------
pragma Restrictions (No_Elaboration_Code);
-- GNAT: enforce generation of preinitialized data section instead of
-- generation of elaboration code.
package Matreshka.Internals.Unicode.Ucd.Core_01B0 is
pragma Preelaborate;
Group_01B0 : aliased constant Core_Second_Stage
:= (16#00# => -- 01B000
(Other_Letter, Wide,
Other, Katakana, O_Letter, Ideographic,
(Alphabetic
| Grapheme_Base
| ID_Continue
| ID_Start
| XID_Continue
| XID_Start => True,
others => False)),
16#01# => -- 01B001
(Other_Letter, Wide,
Other, Other, O_Letter, Ideographic,
(Alphabetic
| Grapheme_Base
| ID_Continue
| ID_Start
| XID_Continue
| XID_Start => True,
others => False)),
others =>
(Unassigned, Neutral,
Other, Other, Other, Unknown,
(others => False)));
end Matreshka.Internals.Unicode.Ucd.Core_01B0;
| 55.6125 | 78 | 0.432007 |
4d213b767ea5fabec5ab1497e1a6ee9b2f74d6d8 | 4,370 | ads | Ada | source/amf/uml/amf-umldi-uml_compartments.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 24 | 2016-11-29T06:59:41.000Z | 2021-08-30T11:55:16.000Z | source/amf/uml/amf-umldi-uml_compartments.ads | svn2github/matreshka | 9d222b3ad9da508855fb1f5adbe5e8a4fad4c530 | [
"BSD-3-Clause"
] | 2 | 2019-01-16T05:15:20.000Z | 2019-02-03T10:03:32.000Z | source/amf/uml/amf-umldi-uml_compartments.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 separated portion of a UMLCompartmentableShape.
------------------------------------------------------------------------------
with AMF.UMLDI.UML_Diagram_Elements;
limited with AMF.UMLDI.UML_Diagram_Elements.Collections;
package AMF.UMLDI.UML_Compartments is
pragma Preelaborate;
type UMLDI_UML_Compartment is limited interface
and AMF.UMLDI.UML_Diagram_Elements.UMLDI_UML_Diagram_Element;
type UMLDI_UML_Compartment_Access is
access all UMLDI_UML_Compartment'Class;
for UMLDI_UML_Compartment_Access'Storage_Size use 0;
not overriding function Get_Element_In_Compartment
(Self : not null access constant UMLDI_UML_Compartment)
return AMF.UMLDI.UML_Diagram_Elements.Collections.Ordered_Set_Of_UMLDI_UML_Diagram_Element is abstract;
-- Getter of UMLCompartment::elementInCompartment.
--
-- Contents of the compartment.
end AMF.UMLDI.UML_Compartments;
| 62.428571 | 110 | 0.457666 |
dc4a8ec604b950e928c5f6d2a49a3f6e6fac8554 | 3,471 | adb | Ada | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-boubuf.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-boubuf.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-boubuf.adb | orb-zhuchen/Orb | 6da2404b949ac28bde786e08bf4debe4a27cd3a0 | [
"CNRI-Python-GPL-Compatible",
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- G N A T . B O U N D E D _ B U F F E R S --
-- --
-- B o d y --
-- --
-- Copyright (C) 2003-2019, 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 is maintained by Ada Core Technologies Inc (http://www.gnat.com). --
-- --
------------------------------------------------------------------------------
package body GNAT.Bounded_Buffers is
--------------------
-- Bounded_Buffer --
--------------------
protected body Bounded_Buffer is
------------
-- Insert --
------------
entry Insert (Item : Element) when Count /= Capacity is
begin
Values (Next_In) := Item;
Next_In := (Next_In mod Capacity) + 1;
Count := Count + 1;
end Insert;
------------
-- Remove --
------------
entry Remove (Item : out Element) when Count > 0 is
begin
Item := Values (Next_Out);
Next_Out := (Next_Out mod Capacity) + 1;
Count := Count - 1;
end Remove;
-----------
-- Empty --
-----------
function Empty return Boolean is
begin
return Count = 0;
end Empty;
----------
-- Full --
----------
function Full return Boolean is
begin
return Count = Capacity;
end Full;
------------
-- Extent --
------------
function Extent return Natural is
begin
return Count;
end Extent;
end Bounded_Buffer;
end GNAT.Bounded_Buffers;
| 38.142857 | 78 | 0.378565 |
dc9fcaebf0cad74f1c504144616dc1b12d57cbc2 | 25,668 | ads | Ada | tools-src/gnu/gcc/gcc/ada/errout.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/gcc/gcc/ada/errout.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/gcc/gcc/ada/errout.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E R R O U T --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2001 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. --
-- --
------------------------------------------------------------------------------
-- This package contains the routines to output error messages. They
-- are basically system independent, however in some environments, e.g.
-- when the parser is embedded into an editor, it may be appropriate
-- to replace the implementation of this package.
with Table;
with Types; use Types;
with Uintp; use Uintp;
package Errout is
Errors_Detected : Nat;
-- Number of errors detected so far
Warnings_Detected : Nat;
-- Number of warnings detected
type Compiler_State_Type is (Parsing, Analyzing);
Compiler_State : Compiler_State_Type;
-- Indicates current state of compilation. This is put in the Errout
-- spec because it affects the action of the error message handling.
-- In particular, an attempt is made by Errout to suppress cascaded
-- error messages in Parsing mode, but not in the other modes.
Current_Error_Source_File : Source_File_Index;
-- Id of current messages. Used to post file name when unit changes. This
-- is initialized to Main_Source_File at the start of a compilation, which
-- means that no file names will be output unless there are errors in units
-- other than the main unit. However, if the main unit has a pragma
-- Source_Reference line, then this is initialized to No_Source_File,
-- to force an initial reference to the real source file name.
Raise_Exception_On_Error : Nat := 0;
-- If this value is non-zero, then any attempt to generate an error
-- message raises the exception Error_Msg_Exception, and the error
-- message is not output. This is used for defending against junk
-- resulting from illegalities, and also for substitution of more
-- appropriate error messages from higher semantic levels. It is
-- a counter so that the increment/decrement protocol nests neatly.
Error_Msg_Exception : exception;
-- Exception raised if Raise_Exception_On_Error is true
-----------------------------------
-- Suppression of Error Messages --
-----------------------------------
-- In an effort to reduce the impact of redundant error messages, the
-- error output routines in this package normally suppress certain
-- classes of messages as follows:
-- 1. Identical messages placed at the same point in the text. Such
-- duplicate error message result for example from rescanning
-- sections of the text that contain lexical errors. Only one of
-- such a set of duplicate messages is output, and the rest are
-- suppressed.
-- 2. If more than one parser message is generated for a single source
-- line, then only the first message is output, the remaining
-- messages on the same line are suppressed.
-- 3. If a message is posted on a node for which a message has been
-- previously posted, then only the first message is retained. The
-- Error_Posted flag is used to detect such multiple postings. Note
-- that this only applies to semantic messages, since otherwise
-- for parser messages, this would be a special case of case 2.
-- 4. If a message is posted on a node whose Etype or Entity
-- fields reference entities on which an error message has
-- already been placed, as indicated by the Error_Posted flag
-- being set on these entities, then the message is suppressed.
-- 5. If a message attempts to insert an Error node, or a direct
-- reference to the Any_Type node, then the message is suppressed.
-- This normal suppression action may be overridden in cases 2-5 (but not
-- in case 1) by setting All_Errors mode, or by setting the special
-- unconditional message insertion character (!) at the end of the message
-- text as described below.
---------------------------------------------------------
-- Error Message Text and Message Insertion Characters --
---------------------------------------------------------
-- Error message text strings are composed of lower case letters, digits
-- and the special characters space, comma, period, colon and semicolon,
-- apostrophe and parentheses. Special insertion characters can also
-- appear which cause the error message circuit to modify the given
-- string as follows:
-- Insertion character % (Percent: insert name from Names table)
-- The character % is replaced by the text for the name specified by
-- the Name_Id value stored in Error_Msg_Name_1. A blank precedes
-- the name if it is preceded by a non-blank character other than a
-- left parenthesis. The name is enclosed in quotes unless manual
-- quotation mode is set. If the Name_Id is set to No_Name, then
-- no insertion occurs; if the Name_Id is set to Error_Name, then
-- the string <error> is inserted. A second and third % may appear
-- in a single message, similarly replaced by the names which are
-- specified by the Name_Id values stored in Error_Msg_Name_2 and
-- Error_Msg_Name_3. The names are decoded and cased according to
-- the current identifier casing mode.
-- Insertion character $ (Dollar: insert unit name from Names table)
-- The character $ is treated similarly to %, except that the name
-- is obtained from the Unit_Name_Type value in Error_Msg_Unit_1
-- and Error_Msg_Unit_2, as provided by Get_Unit_Name_String in
-- package Uname. Note that this name includes the postfix (spec)
-- or (body) strings. If this postfix is not required, use the
-- normal % insertion for the unit name.
-- Insertion character { (Left brace: insert literally from names table)
-- The character { is treated similarly to %, except that the
-- name is output literally as stored in the names table without
-- adjusting the casing. This can be used for file names and in
-- other situations where the name string is to be output unchanged.
-- Insertion character * (Asterisk, insert reserved word name)
-- The insertion character * is treated exactly like % except that
-- the resulting name is cased according to the default conventions
-- for reserved words (see package Scans).
-- Insertion character & (Ampersand: insert name from node)
-- The insertion character & is treated similarly to %, except that
-- the name is taken from the Chars field of the given node, and may
-- refer to a child unit name, or a selected component. The casing
-- is, if possible, taken from the original source reference, which
-- is obtained from the Sloc field of the given node or nodes. If no
-- Sloc is available (happens e.g. for nodes in package Standard),
-- then the default case (see Scans spec) is used. The nodes to be
-- used are stored in Error_Msg_Node_1, Error_Msg_Node_2. No insertion
-- occurs for the Empty node, and the Error node results in the
-- insertion of the characters <error>. In addition, if the special
-- global variable Error_Msg_Qual_Level is non-zero, then the
-- reference will include up to the given number of levels of
-- qualification, using the scope chain.
-- Insertion character # (Pound: insert line number reference)
-- The character # is replaced by the string indicating the source
-- position stored in Error_Msg_Sloc. There are three cases:
--
-- for package Standard: in package Standard
-- for locations in current file: at line nnn:ccc
-- for locations in other files: at filename:nnn:ccc
--
-- By convention, the # insertion character is only used at the end
-- of an error message, so the above strings only appear as the last
-- characters of an error message.
-- Insertion character } (Right brace: insert type reference)
-- The character } is replaced by a string describing the type
-- referenced by the entity whose Id is stored in Error_Msg_Node_1.
-- the string gives the name or description of the type, and also
-- where appropriate the location of its declaration. Special
-- cases like "some integer type" are handled appropriately. Only
-- one } is allowed in a message, since there is not enough room
-- for two (the insertion can be quite long, including a file name)
-- In addition, if the special global variable Error_Msg_Qual_Level
-- is non-zero, then the reference will include up to the given
-- number of levels of qualification, using the scope chain.
-- Insertion character @ (At: insert column number reference)
-- The character @ is replaced by null if the RM_Column_Check mode is
-- off (False). If the switch is on (True), then @ is replaced by the
-- text string " in column nnn" where nnn is the decimal representation
-- of the column number stored in Error_Msg_Col plus one (the plus one
-- is because the number is stored 0-origin and displayed 1-origin).
-- Insertion character ^ (Carret: insert integer value)
-- The character ^ is replaced by the decimal conversion of the Uint
-- value stored in Error_Msg_Uint_1, with a possible leading minus.
-- A second ^ may occur in the message, in which case it is replaced
-- by the decimal conversion of the Uint value in Error_Msg_Uint_2.
-- Insertion character ! (Exclamation: unconditional message)
-- The character ! appearing as the last character of a message makes
-- the message unconditional which means that it is output even if it
-- would normally be suppressed. See section above for a description
-- of the cases in which messages are normally suppressed.
-- Insertion character ? (Question: warning message)
-- The character ? appearing anywhere in a message makes the message
-- a warning instead of a normal error message, and the text of the
-- message will be preceded by "Warning:" instead of "Error:" The
-- handling of warnings if further controlled by the Warning_Mode
-- option (-w switch), see package Opt for further details, and
-- also by the current setting from pragma Warnings. This pragma
-- applies only to warnings issued from the semantic phase (not
-- the parser), but currently all relevant warnings are posted
-- by the semantic phase anyway. Messages starting with (style)
-- are also treated as warning messages.
-- Insertion character A-Z (Upper case letter: Ada reserved word)
-- If two or more upper case letters appear in the message, they are
-- taken as an Ada reserved word, and are converted to the default
-- case for reserved words (see Scans package spec). Surrounding
-- quotes are added unless manual quotation mode is currently set.
-- Insertion character ` (Backquote: set manual quotation mode)
-- The backquote character always appears in pairs. Each backquote
-- of the pair is replaced by a double quote character. In addition,
-- Any reserved keywords, or name insertions between these backquotes
-- are not surrounded by the usual automatic double quotes. See the
-- section below on manual quotation mode for further details.
-- Insertion character ' (Quote: literal character)
-- Precedes a character which is placed literally into the message.
-- Used to insert characters into messages that are one of the
-- insertion characters defined here.
-- Insertion character \ (Backslash: continuation message)
-- Indicates that the message is a continuation of a message
-- previously posted. This is used to ensure that such groups
-- of messages are treated as a unit. The \ character must be
-- the first character of the message text.
-----------------------------------------------------
-- Global Values Used for Error Message Insertions --
-----------------------------------------------------
-- The following global variables are essentially additional parameters
-- passed to the error message routine for insertion sequences described
-- above. The reason these are passed globally is that the insertion
-- mechanism is essentially an untyped one in which the appropriate
-- variables are set dependingon the specific insertion characters used.
Error_Msg_Col : Column_Number;
-- Column for @ insertion character in message
Error_Msg_Uint_1 : Uint;
Error_Msg_Uint_2 : Uint;
-- Uint values for ^ insertion characters in message
Error_Msg_Sloc : Source_Ptr;
-- Source location for # insertion character in message
Error_Msg_Name_1 : Name_Id;
Error_Msg_Name_2 : Name_Id;
Error_Msg_Name_3 : Name_Id;
-- Name_Id values for % insertion characters in message
Error_Msg_Unit_1 : Name_Id;
Error_Msg_Unit_2 : Name_Id;
-- Name_Id values for $ insertion characters in message
Error_Msg_Node_1 : Node_Id;
Error_Msg_Node_2 : Node_Id;
-- Node_Id values for & insertion characters in message
Error_Msg_Qual_Level : Int := 0;
-- Number of levels of qualification required for type name (see the
-- description of the } insertion character. Note that this value does
-- note get reset by any Error_Msg call, so the caller is responsible
-- for resetting it.
Warn_On_Instance : Boolean := False;
-- Normally if a warning is generated in a generic template from the
-- analysis of the template, then the warning really belongs in the
-- template, and the default value of False for this Boolean achieves
-- that effect. If Warn_On_Instance is set True, then the warnings are
-- generated on the instantiation (referring to the template) rather
-- than on the template itself.
-----------------------------------------------------
-- Format of Messages and Manual Quotation Control --
-----------------------------------------------------
-- Messages are generally all in lower case, except for inserted names
-- and appear in one of the following three forms:
-- error: text
-- warning: text
-- The prefixes error and warning are supplied automatically (depending
-- on the use of the ? insertion character), and the call to the error
-- message routine supplies the text. The "error: " prefix is omitted
-- in brief error message formats.
-- Reserved Ada keywords in the message are in the default keyword case
-- (determined from the given source program), surrounded by quotation
-- marks. This is achieved by spelling the reserved word in upper case
-- letters, which is recognized as a request for insertion of quotation
-- marks by the error text processor. Thus for example:
-- Error_Msg_AP ("IS expected");
-- would result in the output of one of the following:
-- error: "is" expected
-- error: "IS" expected
-- error: "Is" expected
-- the choice between these being made by looking at the casing convention
-- used for keywords (actually the first compilation unit keyword) in the
-- source file.
-- In the case of names, the default mode for the error text processor
-- is to surround the name by quotation marks automatically. The case
-- used for the identifier names is taken from the source program where
-- possible, and otherwise is the default casing convention taken from
-- the source file usage.
-- In some cases, better control over the placement of quote marks is
-- required. This is achieved using manual quotation mode. In this mode,
-- one or more insertion sequences is surrounded by backquote characters.
-- The backquote characters are output as double quote marks, and normal
-- automatic insertion of quotes is suppressed between the double quotes.
-- For example:
-- Error_Msg_AP ("`END &;` expected");
-- generates a message like
-- error: "end Open_Scope;" expected
-- where the node specifying the name Open_Scope has been stored in
-- Error_Msg_Node_1 prior to the call. The great majority of error
-- messages operates in normal quotation mode.
-- Note: the normal automatic insertion of spaces before insertion
-- sequences (such as those that come from & and %) is suppressed in
-- manual quotation mode, so blanks, if needed as in the above example,
-- must be explicitly present.
----------------------------
-- Message ID Definitions --
----------------------------
type Error_Msg_Id is new Int;
-- A type used to represent specific error messages. Used by the clients
-- of this package only in the context of the Get_Error_Id and
-- Change_Error_Text subprograms.
No_Error_Msg : constant Error_Msg_Id := 0;
-- A constant which is different from any value returned by Get_Error_Id.
-- Typically used by a client to indicate absense of a saved Id value.
function Get_Msg_Id return Error_Msg_Id;
-- Returns the Id of the message most recently posted using one of the
-- Error_Msg routines.
function Get_Location (E : Error_Msg_Id) return Source_Ptr;
-- Returns the flag location of the error message with the given id E.
------------------------
-- List Pragmas Table --
------------------------
-- When a pragma Page or pragma List is encountered by the parser, an
-- entry is made in the following table. This table is then used to
-- control the full listing if one is being generated. Note that the
-- reason we do the processing in the parser is so that we get proper
-- listing control even in syntax check only mode.
type List_Pragma_Type is (List_On, List_Off, Page);
type List_Pragma_Record is record
Ptyp : List_Pragma_Type;
Ploc : Source_Ptr;
end record;
-- Note: Ploc points to the terminating semicolon in the List_Off and
-- Page cases, and to the pragma keyword for List_On. In the case of
-- a pragma List_Off, a List_On entry is also made in the table,
-- pointing to the pragma keyword. This ensures that, as required,
-- a List (Off) pragma is listed even in list off mode.
package List_Pragmas is new Table.Table (
Table_Component_Type => List_Pragma_Record,
Table_Index_Type => Int,
Table_Low_Bound => 1,
Table_Initial => 50,
Table_Increment => 200,
Table_Name => "List_Pragmas");
---------------------------
-- Ignore_Errors Feature --
---------------------------
-- In certain cases, notably for optional subunits, the compiler operates
-- in a mode where errors are to be ignored, and the whole unit is to be
-- considered as not present. To implement this we provide the following
-- flag to enable special handling, where error messages are suppressed,
-- but the Fatal_Error flag will still be set in the normal manner.
Ignore_Errors_Enable : Nat := 0;
-- Triggering switch. If non-zero, then ignore errors mode is activated.
-- This is a counter to allow convenient nesting of enable/disable.
------------------------------
-- Error Output Subprograms --
------------------------------
procedure Initialize;
-- Initializes for output of error messages. Must be called for each
-- source file before using any of the other routines in the package.
procedure Finalize;
-- Finalize processing of error messages for one file and output message
-- indicating the number of detected errors.
procedure Error_Msg (Msg : String; Flag_Location : Source_Ptr);
-- Output a message at specified location. Can be called from the parser
-- or the semantic analyzer.
procedure Error_Msg_S (Msg : String);
-- Output a message at current scan pointer location. This routine can be
-- called only from the parser, since it references Scan_Ptr.
procedure Error_Msg_AP (Msg : String);
-- Output a message just after the previous token. This routine can be
-- called only from the parser, since it references Prev_Token_Ptr.
procedure Error_Msg_BC (Msg : String);
-- Output a message just before the current token. Note that the important
-- difference between this and the previous routine is that the BC case
-- posts a flag on the current line, whereas AP can post a flag at the
-- end of the preceding line. This routine can be called only from the
-- parser, since it references Token_Ptr.
procedure Error_Msg_SC (Msg : String);
-- Output a message at the start of the current token, unless we are at
-- the end of file, in which case we always output the message after the
-- last real token in the file. This routine can be called only from the
-- parser, since it references Token_Ptr.
procedure Error_Msg_SP (Msg : String);
-- Output a message at the start of the previous token. This routine can
-- be called only from the parser, since it references Prev_Token_Ptr.
procedure Error_Msg_N (Msg : String; N : Node_Or_Entity_Id);
-- Output a message at the Sloc of the given node. This routine can be
-- called from the parser or the semantic analyzer, although the call
-- from the latter is much more common (and is the most usual way of
-- generating error messages from the analyzer). The message text may
-- contain a single & insertion, which will reference the given node.
procedure Error_Msg_NE
(Msg : String;
N : Node_Or_Entity_Id;
E : Node_Or_Entity_Id);
-- Output a message at the Sloc of the given node, with an insertion of
-- the name from the given entity node. This is used by the semantic
-- routines, where this is a common error message situation. The Msg
-- text will contain a & or } as usual to mark the insertion point.
-- This routine can be called from the parser or the analyzer.
procedure Change_Error_Text (Error_Id : Error_Msg_Id; New_Msg : String);
-- The error message text of the message identified by Id is replaced by
-- the given text. This text may contain insertion characters in the
-- usual manner, and need not be the same length as the original text.
procedure Purge_Messages (From : Source_Ptr; To : Source_Ptr);
-- All error messages whose location is in the range From .. To (not
-- including the end points) will be deleted from the error listing.
procedure Remove_Warning_Messages (N : Node_Id);
-- Remove any warning messages corresponding to the Sloc of N or any
-- of its descendent nodes. No effect if no such warnings.
procedure Set_Warnings_Mode_Off (Loc : Source_Ptr);
-- Called in response to a pragma Warnings (Off) to record the source
-- location from which warnings are to be turned off.
procedure Set_Warnings_Mode_On (Loc : Source_Ptr);
-- Called in response to a pragma Warnings (On) to record the source
-- location from which warnings are to be turned back on.
function Compilation_Errors return Boolean;
-- Returns true if errors have been detected, or warnings in -gnatwe
-- (treat warnings as errors) mode.
procedure dmsg (Id : Error_Msg_Id);
-- Debugging routine to dump an error message
end Errout;
| 50.827723 | 79 | 0.653109 |
4df7c50e5bf7bc3c5a1da3c40c7e5b9f28c73692 | 6,665 | ads | Ada | source/amf/uml/amf-uml-extensions.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-extensions.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-extensions.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.
------------------------------------------------------------------------------
-- An extension is used to indicate that the properties of a metaclass are
-- extended through a stereotype, and gives the ability to flexibly add (and
-- later remove) stereotypes to classes.
------------------------------------------------------------------------------
with AMF.UML.Associations;
limited with AMF.UML.Classes;
limited with AMF.UML.Extension_Ends;
limited with AMF.UML.Properties;
package AMF.UML.Extensions is
pragma Preelaborate;
type UML_Extension is limited interface
and AMF.UML.Associations.UML_Association;
type UML_Extension_Access is
access all UML_Extension'Class;
for UML_Extension_Access'Storage_Size use 0;
not overriding function Get_Is_Required
(Self : not null access constant UML_Extension)
return Boolean is abstract;
-- Getter of Extension::isRequired.
--
-- Indicates whether an instance of the extending stereotype must be
-- created when an instance of the extended class is created. The
-- attribute value is derived from the value of the lower property of the
-- ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1
-- means that isRequired is true, but otherwise it is false. Since the
-- default value of ExtensionEnd::lower is 0, the default value of
-- isRequired is false.
not overriding function Get_Metaclass
(Self : not null access constant UML_Extension)
return AMF.UML.Classes.UML_Class_Access is abstract;
-- Getter of Extension::metaclass.
--
-- References the Class that is extended through an Extension. The
-- property is derived from the type of the memberEnd that is not the
-- ownedEnd.
not overriding function Get_Owned_End
(Self : not null access constant UML_Extension)
return AMF.UML.Extension_Ends.UML_Extension_End_Access is abstract;
-- Getter of Extension::ownedEnd.
--
-- References the end of the extension that is typed by a Stereotype.
not overriding procedure Set_Owned_End
(Self : not null access UML_Extension;
To : AMF.UML.Extension_Ends.UML_Extension_End_Access) is abstract;
-- Setter of Extension::ownedEnd.
--
-- References the end of the extension that is typed by a Stereotype.
not overriding function Is_Required
(Self : not null access constant UML_Extension)
return Boolean is abstract;
-- Operation Extension::isRequired.
--
-- The query isRequired() is true if the owned end has a multiplicity with
-- the lower bound of 1.
not overriding function Metaclass
(Self : not null access constant UML_Extension)
return AMF.UML.Classes.UML_Class_Access is abstract;
-- Operation Extension::metaclass.
--
-- The query metaclass() returns the metaclass that is being extended (as
-- opposed to the extending stereotype).
not overriding function Metaclass_End
(Self : not null access constant UML_Extension)
return AMF.UML.Properties.UML_Property_Access is abstract;
-- Operation Extension::metaclassEnd.
--
-- The query metaclassEnd() returns the Property that is typed by a
-- metaclass (as opposed to a stereotype).
end AMF.UML.Extensions;
| 52.480315 | 79 | 0.540135 |
124ce39fc3b7579a9dac5d72707ad7a370985e04 | 13,461 | adb | Ada | llvm-gcc-4.2-2.9/gcc/ada/osint-c.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/osint-c.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/gcc/ada/osint-c.adb | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- O S I N T - C --
-- --
-- B o d y --
-- --
-- Copyright (C) 2001-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. --
-- --
------------------------------------------------------------------------------
with Hostparm;
with Namet; use Namet;
with Opt; use Opt;
with Tree_IO; use Tree_IO;
package body Osint.C is
Output_Object_File_Name : String_Ptr;
-- Argument of -o compiler option, if given. This is needed to verify
-- consistency with the ALI file name.
procedure Adjust_OS_Resource_Limits;
pragma Import (C, Adjust_OS_Resource_Limits,
"__gnat_adjust_os_resource_limits");
-- Procedure to make system specific adjustments to make GNAT run better
function Create_Auxiliary_File
(Src : File_Name_Type;
Suffix : String) return File_Name_Type;
-- Common processing for Creat_Repinfo_File and Create_Debug_File.
-- Src is the file name used to create the required output file and
-- Suffix is the desired suffic (dg/rep for debug/repinfo file).
procedure Set_Library_Info_Name;
-- Sets a default ali file name from the main compiler source name.
-- This is used by Create_Output_Library_Info, and by the version of
-- Read_Library_Info that takes a default file name. The name is in
-- Name_Buffer (with length in Name_Len) on return from the call
----------------------
-- Close_Debug_File --
----------------------
procedure Close_Debug_File is
Status : Boolean;
begin
Close (Output_FD, Status);
if not Status then
Fail
("error while closing expanded source file ",
Get_Name_String (Output_File_Name));
end if;
end Close_Debug_File;
-------------------------------
-- Close_Output_Library_Info --
-------------------------------
procedure Close_Output_Library_Info is
Status : Boolean;
begin
Close (Output_FD, Status);
if not Status then
Fail
("error while closing ALI file ",
Get_Name_String (Output_File_Name));
end if;
end Close_Output_Library_Info;
------------------------
-- Close_Repinfo_File --
------------------------
procedure Close_Repinfo_File is
Status : Boolean;
begin
Close (Output_FD, Status);
if not Status then
Fail
("error while closing representation info file ",
Get_Name_String (Output_File_Name));
end if;
end Close_Repinfo_File;
---------------------------
-- Create_Auxiliary_File --
---------------------------
function Create_Auxiliary_File
(Src : File_Name_Type;
Suffix : String) return File_Name_Type
is
Result : File_Name_Type;
begin
Get_Name_String (Src);
if Hostparm.OpenVMS then
Name_Buffer (Name_Len + 1) := '_';
else
Name_Buffer (Name_Len + 1) := '.';
end if;
Name_Len := Name_Len + 1;
Name_Buffer (Name_Len + 1 .. Name_Len + Suffix'Length) := Suffix;
Name_Len := Name_Len + Suffix'Length;
if Output_Object_File_Name /= null then
for Index in reverse Output_Object_File_Name'Range loop
if Output_Object_File_Name (Index) = Directory_Separator then
declare
File_Name : constant String := Name_Buffer (1 .. Name_Len);
begin
Name_Len := Index - Output_Object_File_Name'First + 1;
Name_Buffer (1 .. Name_Len) :=
Output_Object_File_Name
(Output_Object_File_Name'First .. Index);
Name_Buffer (Name_Len + 1 .. Name_Len + File_Name'Length) :=
File_Name;
Name_Len := Name_Len + File_Name'Length;
end;
exit;
end if;
end loop;
end if;
Result := Name_Find;
Name_Buffer (Name_Len + 1) := ASCII.NUL;
Create_File_And_Check (Output_FD, Text);
return Result;
end Create_Auxiliary_File;
-----------------------
-- Create_Debug_File --
-----------------------
function Create_Debug_File (Src : File_Name_Type) return File_Name_Type is
begin
return Create_Auxiliary_File (Src, "dg");
end Create_Debug_File;
--------------------------------
-- Create_Output_Library_Info --
--------------------------------
procedure Create_Output_Library_Info is
begin
Set_Library_Info_Name;
Create_File_And_Check (Output_FD, Text);
end Create_Output_Library_Info;
--------------------------
-- Creat_Repinfo_File --
--------------------------
procedure Creat_Repinfo_File (Src : File_Name_Type) is
S : constant File_Name_Type := Create_Auxiliary_File (Src, "rep");
pragma Warnings (Off, S);
begin
return;
end Creat_Repinfo_File;
---------------------------
-- Debug_File_Eol_Length --
---------------------------
function Debug_File_Eol_Length return Nat is
begin
-- There has to be a cleaner way to do this! ???
if Directory_Separator = '/' then
return 1;
else
return 2;
end if;
end Debug_File_Eol_Length;
-----------------------
-- More_Source_Files --
-----------------------
function More_Source_Files return Boolean renames More_Files;
----------------------
-- Next_Main_Source --
----------------------
function Next_Main_Source return File_Name_Type renames Next_Main_File;
-----------------------
-- Read_Library_Info --
-----------------------
-- Version with default file name
procedure Read_Library_Info
(Name : out File_Name_Type;
Text : out Text_Buffer_Ptr)
is
begin
Set_Library_Info_Name;
Name := Name_Find;
Text := Read_Library_Info (Name, Fatal_Err => False);
end Read_Library_Info;
---------------------------
-- Set_Library_Info_Name --
---------------------------
procedure Set_Library_Info_Name is
Dot_Index : Natural;
begin
Get_Name_String (Current_Main);
-- Find last dot since we replace the existing extension by .ali. The
-- initialization to Name_Len + 1 provides for simply adding the .ali
-- extension if the source file name has no extension.
Dot_Index := Name_Len + 1;
for J in reverse 1 .. Name_Len loop
if Name_Buffer (J) = '.' then
Dot_Index := J;
exit;
end if;
end loop;
-- Make sure that the output file name matches the source file name.
-- To compare them, remove file name directories and extensions.
if Output_Object_File_Name /= null then
-- Make sure there is a dot at Dot_Index. This may not be the case
-- if the source file name has no extension.
Name_Buffer (Dot_Index) := '.';
-- If we are in multiple unit per file mode, then add ~nnn
-- extension to the name before doing the comparison.
if Multiple_Unit_Index /= 0 then
declare
Exten : constant String := Name_Buffer (Dot_Index .. Name_Len);
begin
Name_Len := Dot_Index - 1;
Add_Char_To_Name_Buffer (Multi_Unit_Index_Character);
Add_Nat_To_Name_Buffer (Multiple_Unit_Index);
Dot_Index := Name_Len + 1;
Add_Str_To_Name_Buffer (Exten);
end;
end if;
-- Remove extension preparing to replace it
declare
Name : constant String := Name_Buffer (1 .. Dot_Index);
Len : constant Natural := Dot_Index;
begin
Name_Buffer (1 .. Output_Object_File_Name'Length) :=
Output_Object_File_Name.all;
Dot_Index := 0;
for J in reverse Output_Object_File_Name'Range loop
if Name_Buffer (J) = '.' then
Dot_Index := J;
exit;
end if;
end loop;
-- Dot_Index should be zero now (we check for extension elsewhere)
pragma Assert (Dot_Index /= 0);
-- Check name of object file is what we expect
if Name /= Name_Buffer (Dot_Index - Len + 1 .. Dot_Index) then
Fail ("incorrect object file name");
end if;
end;
end if;
Name_Buffer (Dot_Index) := '.';
Name_Buffer (Dot_Index + 1 .. Dot_Index + 3) := ALI_Suffix.all;
Name_Buffer (Dot_Index + 4) := ASCII.NUL;
Name_Len := Dot_Index + 3;
end Set_Library_Info_Name;
---------------------------------
-- Set_Output_Object_File_Name --
---------------------------------
procedure Set_Output_Object_File_Name (Name : String) is
Ext : constant String := Target_Object_Suffix;
NL : constant Natural := Name'Length;
EL : constant Natural := Ext'Length;
begin
-- Make sure that the object file has the expected extension
if NL <= EL
or else
(Name (NL - EL + Name'First .. Name'Last) /= Ext
and then Name (NL - 2 + Name'First .. Name'Last) /= ".o")
then
Fail ("incorrect object file extension");
end if;
Output_Object_File_Name := new String'(Name);
end Set_Output_Object_File_Name;
----------------
-- Tree_Close --
----------------
procedure Tree_Close is
Status : Boolean;
begin
Tree_Write_Terminate;
Close (Output_FD, Status);
if not Status then
Fail
("error while closing tree file ",
Get_Name_String (Output_File_Name));
end if;
end Tree_Close;
-----------------
-- Tree_Create --
-----------------
procedure Tree_Create is
Dot_Index : Natural;
begin
Get_Name_String (Current_Main);
-- If an object file has been specified, then the ALI file
-- will be in the same directory as the object file;
-- so, we put the tree file in this same directory,
-- even though no object file needs to be generated.
if Output_Object_File_Name /= null then
Name_Len := Output_Object_File_Name'Length;
Name_Buffer (1 .. Name_Len) := Output_Object_File_Name.all;
end if;
Dot_Index := Name_Len + 1;
for J in reverse 1 .. Name_Len loop
if Name_Buffer (J) = '.' then
Dot_Index := J;
exit;
end if;
end loop;
-- Should be impossible to not have an extension
pragma Assert (Dot_Index /= 0);
-- Change exctension to adt
Name_Buffer (Dot_Index) := '.';
Name_Buffer (Dot_Index + 1) := 'a';
Name_Buffer (Dot_Index + 2) := 'd';
Name_Buffer (Dot_Index + 3) := 't';
Name_Buffer (Dot_Index + 4) := ASCII.NUL;
Name_Len := Dot_Index + 3;
Create_File_And_Check (Output_FD, Binary);
Tree_Write_Initialize (Output_FD);
end Tree_Create;
-----------------------
-- Write_Debug_Info --
-----------------------
procedure Write_Debug_Info (Info : String) renames Write_Info;
------------------------
-- Write_Library_Info --
------------------------
procedure Write_Library_Info (Info : String) renames Write_Info;
------------------------
-- Write_Repinfo_Line --
------------------------
procedure Write_Repinfo_Line (Info : String) renames Write_Info;
begin
Adjust_OS_Resource_Limits;
Opt.Creat_Repinfo_File_Access := Creat_Repinfo_File'Access;
Opt.Write_Repinfo_Line_Access := Write_Repinfo_Line'Access;
Opt.Close_Repinfo_File_Access := Close_Repinfo_File'Access;
Set_Program (Compiler);
end Osint.C;
| 31.232019 | 79 | 0.537033 |
50d3b33802f5c49a78556830e78cc5bd9b22327d | 5,205 | adb | Ada | transmitter/src/transmitter.adb | damaki/dw1000-rssi-tester | fef559e58e9a4d1df908e9d4827e96ccce4c6136 | [
"MIT"
] | 2 | 2019-05-15T02:23:01.000Z | 2021-03-05T08:10:26.000Z | transmitter/src/transmitter.adb | damaki/dw1000-rssi-tester | fef559e58e9a4d1df908e9d4827e96ccce4c6136 | [
"MIT"
] | null | null | null | transmitter/src/transmitter.adb | damaki/dw1000-rssi-tester | fef559e58e9a4d1df908e9d4827e96ccce4c6136 | [
"MIT"
] | 1 | 2020-02-11T15:59:51.000Z | 2020-02-11T15:59:51.000Z | -------------------------------------------------------------------------------
-- Copyright (c) 2017 Daniel King
--
-- 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 Ada.Real_Time; use Ada.Real_Time;
with Configurations;
with DecaDriver.Core; use DecaDriver.Core;
with DecaDriver.Tx;
with DW1000.Driver; use DW1000.Driver;
with DW1000.Types; use DW1000.Types;
with EVB1000_Tx_Power;
with EVB1000.LCD;
procedure Transmitter
is
Inter_Frame_Period : constant
array (DW1000.Driver.Data_Rates)
of Ada.Real_Time.Time_Span :=
(Data_Rate_110k => Microseconds (15_625), -- 64 pkt/s
Data_Rate_850k => Microseconds (5_000), -- 200 pkt/s
Data_Rate_6M8 => Microseconds (4_000)); -- 250 pkt/s
Tx_Packet : DW1000.Types.Byte_Array (1 .. 125);
Current_Config : DecaDriver.Core.Configuration_Type;
New_Config : DecaDriver.Core.Configuration_Type;
Next_Tx_Time : Ada.Real_Time.Time;
procedure Update_LCD
is
Channel_Number_Str : constant array (Positive range 1 .. 7) of Character :=
(1 => '1',
2 => '2',
3 => '3',
4 => '4',
5 => '5',
6 => '6',
7 => '7');
PRF_Str : constant array (PRF_Type) of String (1 .. 5) :=
(PRF_16MHz => "16MHz",
PRF_64MHz => "64MHz");
Data_Rate_Str : constant array (Data_Rates) of String (1 .. 4) :=
(Data_Rate_110k => "110K",
Data_Rate_850k => "850K",
Data_Rate_6M8 => "6.8M");
begin
EVB1000.LCD.Driver.Put
(Text_1 => ("Ch" & Channel_Number_Str (Positive (Current_Config.Channel))
& ' ' & PRF_Str (Current_Config.PRF)
& ' ' & Data_Rate_Str (Current_Config.Data_Rate)),
Text_2 => "");
end Update_LCD;
procedure Build_Packet
is
begin
Tx_Packet (1) := Bits_8 (Data_Rates'Pos (Current_Config.Data_Rate));
Tx_Packet (2) := Bits_8 (PRF_Type'Pos (Current_Config.PRF));
Tx_Packet (3) := Bits_8 (Current_Config.Channel);
Tx_Packet (4 .. 5) := (others => 0);
for I in 1 .. (Tx_Packet'Length / 5) loop
Tx_Packet (I * 5 .. I * 5 + 4) := Tx_Packet (1 .. 5);
end loop;
end Build_Packet;
begin
Configurations.Get_Switches_Config (Current_Config);
DecaDriver.Core.Driver.Initialize
(Load_Antenna_Delay => False,
Load_XTAL_Trim => True,
Load_UCode_From_ROM => True);
DecaDriver.Core.Driver.Configure (Current_Config);
DecaDriver.Tx.Transmitter.Configure_Tx_Power
(EVB1000_Tx_Power.Manual_Tx_Power_Table
(Positive (Current_Config.Channel), Current_Config.PRF));
DecaDriver.Core.Driver.Configure_LEDs
(Tx_LED_Enable => True,
Rx_LED_Enable => False,
Rx_OK_LED_Enable => False,
SFD_LED_Enable => False,
Test_Flash => True);
Update_LCD;
Next_Tx_Time := Ada.Real_Time.Clock;
loop
-- Check if the configuration has changed.
Configurations.Get_Switches_Config (New_Config);
if New_Config /= Current_Config then
-- Configuration has changed. Use new configuration.
Current_Config := New_Config;
DecaDriver.Core.Driver.Configure (New_Config);
DecaDriver.Tx.Transmitter.Configure_Tx_Power
(EVB1000_Tx_Power.Manual_Tx_Power_Table
(Positive (Current_Config.Channel), Current_Config.PRF));
Build_Packet;
DecaDriver.Tx.Transmitter.Set_Tx_Data
(Data => Tx_Packet,
Offset => 0);
Update_LCD;
end if;
delay until Next_Tx_Time;
Next_Tx_Time := Next_Tx_Time + Inter_Frame_Period (Current_Config.Data_Rate);
DecaDriver.Tx.Transmitter.Set_Tx_Frame_Length
(Length => Tx_Packet'Length + 2, -- 2 extra bytes for FCS
Offset => 0);
DecaDriver.Tx.Transmitter.Start_Tx_Immediate (Rx_After_Tx => False,
Auto_Append_FCS => True);
DecaDriver.Tx.Transmitter.Wait_For_Tx_Complete;
end loop;
end Transmitter;
| 32.735849 | 83 | 0.630548 |
12c80255cede1cdf07fd6067f0831f11ffd8d290 | 9,049 | ads | Ada | tools-src/gnu/gcc/gcc/ada/i-os2syn.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/gcc/gcc/ada/i-os2syn.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/gcc/gcc/ada/i-os2syn.ads | modern-tomato/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- I N T E R F A C E S . O S 2 L I B . S Y N C H R O N I Z A T I O N --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1993-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. --
-- --
-- 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. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Interfaces.OS2Lib.Threads;
package Interfaces.OS2Lib.Synchronization is
pragma Preelaborate (Synchronization);
package IC renames Interfaces.C;
package IOT renames Interfaces.OS2Lib.Threads;
package S renames System;
-- Semaphore Attributes
DC_SEM_SHARED : constant := 16#01#;
-- DosCreateMutex, DosCreateEvent, and DosCreateMuxWait use it to indicate
-- whether the semaphore is shared or private when the PSZ is null
SEM_INDEFINITE_WAIT : constant ULONG := -1;
SEM_IMMEDIATE_RETURN : constant ULONG := 0;
type HSEM is new LHANDLE;
type PHSEM is access all HSEM;
type SEMRECORD is record
hsemCur : HSEM;
ulUser : ULONG;
end record;
type PSEMRECORD is access all SEMRECORD;
-- Quad word structure
-- Originally QWORD is defined as a record containing two ULONGS,
-- the first containing low word and the second for the high word,
-- but it is cleaner to define it as follows:
type QWORD is delta 1.0 range -2.0**63 .. 2.0**63 - 1.0;
type PQWORD is access all QWORD;
type HEV is new HSEM;
type PHEV is access all HEV;
type HMTX is new HSEM;
type PHMTX is access all HMTX;
type HMUX is new HSEM;
type PHMUX is access all HMUX;
type HTIMER is new LHANDLE;
type PHTIMER is access all HTIMER;
-----------------------
-- Critical sections --
-----------------------
function DosEnterCritSec return APIRET;
pragma Import (C, DosEnterCritSec, "DosEnterCritSec");
function DosExitCritSec return APIRET;
pragma Import (C, DosExitCritSec, "DosExitCritSec");
--------------
-- EventSem --
--------------
function DosCreateEventSem
(pszName : PSZ;
f_phev : PHEV;
flAttr : ULONG;
fState : BOOL32)
return APIRET;
pragma Import (C, DosCreateEventSem, "DosCreateEventSem");
function DosOpenEventSem
(pszName : PSZ;
F_phev : PHEV)
return APIRET;
pragma Import (C, DosOpenEventSem, "DosOpenEventSem");
function DosCloseEventSem
(F_hev : HEV)
return APIRET;
pragma Import (C, DosCloseEventSem, "DosCloseEventSem");
function DosResetEventSem
(F_hev : HEV;
pulPostCt : PULONG)
return APIRET;
pragma Import (C, DosResetEventSem, "DosResetEventSem");
function DosPostEventSem
(F_hev : HEV)
return APIRET;
pragma Import (C, DosPostEventSem, "DosPostEventSem");
function DosWaitEventSem
(F_hev : HEV;
ulTimeout : ULONG)
return APIRET;
pragma Import (C, DosWaitEventSem, "DosWaitEventSem");
function DosQueryEventSem
(F_hev : HEV;
pulPostCt : PULONG)
return APIRET;
pragma Import (C, DosQueryEventSem, "DosQueryEventSem");
--------------
-- MutexSem --
--------------
function DosCreateMutexSem
(pszName : PSZ;
F_phmtx : PHMTX;
flAttr : ULONG;
fState : BOOL32)
return APIRET;
pragma Import (C, DosCreateMutexSem, "DosCreateMutexSem");
function DosOpenMutexSem
(pszName : PSZ;
F_phmtx : PHMTX)
return APIRET;
pragma Import (C, DosOpenMutexSem, "DosOpenMutexSem");
function DosCloseMutexSem
(F_hmtx : HMTX)
return APIRET;
pragma Import (C, DosCloseMutexSem, "DosCloseMutexSem");
function DosRequestMutexSem
(F_hmtx : HMTX;
ulTimeout : ULONG)
return APIRET;
pragma Import (C, DosRequestMutexSem, "DosRequestMutexSem");
function DosReleaseMutexSem
(F_hmtx : HMTX)
return APIRET;
pragma Import (C, DosReleaseMutexSem, "DosReleaseMutexSem");
function DosQueryMutexSem
(F_hmtx : HMTX;
F_ppid : IOT.PPID;
F_ptid : IOT.PTID;
pulCount : PULONG)
return APIRET;
pragma Import (C, DosQueryMutexSem, "DosQueryMutexSem");
----------------
-- MuxWaitSem --
----------------
function DosCreateMuxWaitSem
(pszName : PSZ;
F_phmux : PHMUX;
cSemRec : ULONG;
pSemRec : PSEMRECORD;
flAttr : ULONG)
return APIRET;
pragma Import (C, DosCreateMuxWaitSem, "DosCreateMuxWaitSem");
DCMW_WAIT_ANY : constant := 16#02#; -- wait on any event/mutex to occur
DCMW_WAIT_ALL : constant := 16#04#; -- wait on all events/mutexes to occur
-- Values for "flAttr" parameter in DosCreateMuxWaitSem call
function DosOpenMuxWaitSem
(pszName : PSZ;
F_phmux : PHMUX)
return APIRET;
pragma Import (C, DosOpenMuxWaitSem, "DosOpenMuxWaitSem");
function DosCloseMuxWaitSem
(F_hmux : HMUX)
return APIRET;
pragma Import (C, DosCloseMuxWaitSem, "DosCloseMuxWaitSem");
function DosWaitMuxWaitSem
(F_hmux : HMUX;
ulTimeout : ULONG;
pulUser : PULONG)
return APIRET;
pragma Import (C, DosWaitMuxWaitSem, "DosWaitMuxWaitSem");
function DosAddMuxWaitSem
(F_hmux : HMUX;
pSemRec : PSEMRECORD)
return APIRET;
pragma Import (C, DosAddMuxWaitSem, "DosAddMuxWaitSem");
function DosDeleteMuxWaitSem
(F_hmux : HMUX;
F_hsem : HSEM)
return APIRET;
pragma Import (C, DosDeleteMuxWaitSem, "DosDeleteMuxWaitSem");
function DosQueryMuxWaitSem
(F_hmux : HMUX;
pcSemRec : PULONG;
pSemRec : PSEMRECORD;
pflAttr : PULONG)
return APIRET;
pragma Import (C, DosQueryMuxWaitSem, "DosQueryMuxWaitSem");
-----------
-- Timer --
-----------
function DosAsyncTimer
(msec : ULONG;
F_hsem : HSEM;
F_phtimer : PHTIMER)
return APIRET;
pragma Import (C, DosAsyncTimer, "DosAsyncTimer");
function DosStartTimer
(msec : ULONG;
F_hsem : HSEM;
F_phtimer : PHTIMER)
return APIRET;
pragma Import (C, DosStartTimer, "DosStartTimer");
function DosStopTimer
(F_htimer : HTIMER)
return APIRET;
pragma Import (C, DosStopTimer, "DosStopTimer");
-- DosTmrQueryTime provides a snapshot of the time
-- from the IRQ0 high resolution timer (Intel 8254)
function DosTmrQueryTime
(pqwTmrTime : access QWORD) -- Time in 8254 ticks (1_192_755.2 Hz)
return APIRET;
pragma Import (C, DosTmrQueryTime, "DosTmrQueryTime");
end Interfaces.OS2Lib.Synchronization;
| 33.514815 | 78 | 0.560393 |
12c09430017928c6d37dac605a3f061347163f81 | 245 | ads | Ada | 3-mid/physics/interface/source/private/box2d/box2d_physics.ads | charlie5/lace | e9b7dc751d500ff3f559617a6fc3089ace9dc134 | [
"0BSD"
] | 20 | 2015-11-04T09:23:59.000Z | 2022-01-14T10:21:42.000Z | 3-mid/physics/interface/source/private/box2d/box2d_physics.ads | charlie5/lace-alire | 9ace9682cf4daac7adb9f980c2868d6225b8111c | [
"0BSD"
] | 2 | 2015-11-04T17:05:56.000Z | 2015-12-08T03:16:13.000Z | 3-mid/physics/interface/source/private/box2d/box2d_physics.ads | charlie5/lace-alire | 9ace9682cf4daac7adb9f980c2868d6225b8111c | [
"0BSD"
] | 1 | 2015-12-07T12:53:52.000Z | 2015-12-07T12:53:52.000Z | with
float_Math;
package box2d_Physics
--
-- Provides an implementation of the physics interface using a binding to the Box2D C library.
--
is
pragma Pure;
package Math renames float_Math;
Error : exception;
end box2d_Physics;
| 15.3125 | 94 | 0.734694 |
4ddff427211bcb42a6e68446d037e33ee81ff9d1 | 6,778 | ads | Ada | arch/ARM/STM32/svd/stm32l4x2/stm32_svd-nvic.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/stm32l4x2/stm32_svd-nvic.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | arch/ARM/STM32/svd/stm32l4x2/stm32_svd-nvic.ads | morbos/Ada_Drivers_Library | a4ab26799be60997c38735f4056160c4af597ef7 | [
"BSD-3-Clause"
] | null | null | null | -- This spec has been automatically generated from STM32L4x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.NVIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ICTR_INTLINESNUM_Field is HAL.UInt4;
-- Interrupt Controller Type Register
type ICTR_Register is record
-- Read-only. Total number of interrupt lines in groups
INTLINESNUM : ICTR_INTLINESNUM_Field;
-- unspecified
Reserved_4_31 : HAL.UInt28;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ICTR_Register use record
INTLINESNUM at 0 range 0 .. 3;
Reserved_4_31 at 0 range 4 .. 31;
end record;
-- IPR_IPR_N array element
subtype IPR_IPR_N_Element is HAL.UInt8;
-- IPR_IPR_N array
type IPR_IPR_N_Field_Array is array (0 .. 3) of IPR_IPR_N_Element
with Component_Size => 8, Size => 32;
-- Interrupt Priority Register
type IPR_Register
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- IPR_N as a value
Val : HAL.UInt32;
when True =>
-- IPR_N as an array
Arr : IPR_IPR_N_Field_Array;
end case;
end record
with Unchecked_Union, Size => 32, Volatile_Full_Access,
Bit_Order => System.Low_Order_First;
for IPR_Register use record
Val at 0 range 0 .. 31;
Arr at 0 range 0 .. 31;
end record;
subtype STIR_INTID_Field is HAL.UInt9;
-- Software Triggered Interrupt Register
type STIR_Register is record
-- Write-only. interrupt to be triggered
INTID : STIR_INTID_Field := 16#0#;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for STIR_Register use record
INTID at 0 range 0 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- Nested Vectored Interrupt Controller
type NVIC_Peripheral is record
-- Interrupt Controller Type Register
ICTR : aliased ICTR_Register;
-- Interrupt Set-Enable Register
ISER0 : aliased HAL.UInt32;
-- Interrupt Set-Enable Register
ISER1 : aliased HAL.UInt32;
-- Interrupt Set-Enable Register
ISER2 : aliased HAL.UInt32;
-- Interrupt Clear-Enable Register
ICER0 : aliased HAL.UInt32;
-- Interrupt Clear-Enable Register
ICER1 : aliased HAL.UInt32;
-- Interrupt Clear-Enable Register
ICER2 : aliased HAL.UInt32;
-- Interrupt Set-Pending Register
ISPR0 : aliased HAL.UInt32;
-- Interrupt Set-Pending Register
ISPR1 : aliased HAL.UInt32;
-- Interrupt Set-Pending Register
ISPR2 : aliased HAL.UInt32;
-- Interrupt Clear-Pending Register
ICPR0 : aliased HAL.UInt32;
-- Interrupt Clear-Pending Register
ICPR1 : aliased HAL.UInt32;
-- Interrupt Clear-Pending Register
ICPR2 : aliased HAL.UInt32;
-- Interrupt Active Bit Register
IABR0 : aliased HAL.UInt32;
-- Interrupt Active Bit Register
IABR1 : aliased HAL.UInt32;
-- Interrupt Active Bit Register
IABR2 : aliased HAL.UInt32;
-- Interrupt Priority Register
IPR0 : aliased IPR_Register;
-- Interrupt Priority Register
IPR1 : aliased IPR_Register;
-- Interrupt Priority Register
IPR2 : aliased IPR_Register;
-- Interrupt Priority Register
IPR3 : aliased IPR_Register;
-- Interrupt Priority Register
IPR4 : aliased IPR_Register;
-- Interrupt Priority Register
IPR5 : aliased IPR_Register;
-- Interrupt Priority Register
IPR6 : aliased IPR_Register;
-- Interrupt Priority Register
IPR7 : aliased IPR_Register;
-- Interrupt Priority Register
IPR8 : aliased IPR_Register;
-- Interrupt Priority Register
IPR9 : aliased IPR_Register;
-- Interrupt Priority Register
IPR10 : aliased IPR_Register;
-- Interrupt Priority Register
IPR11 : aliased IPR_Register;
-- Interrupt Priority Register
IPR12 : aliased IPR_Register;
-- Interrupt Priority Register
IPR13 : aliased IPR_Register;
-- Interrupt Priority Register
IPR14 : aliased IPR_Register;
-- Interrupt Priority Register
IPR15 : aliased IPR_Register;
-- Interrupt Priority Register
IPR16 : aliased IPR_Register;
-- Interrupt Priority Register
IPR17 : aliased IPR_Register;
-- Interrupt Priority Register
IPR18 : aliased IPR_Register;
-- Interrupt Priority Register
IPR19 : aliased IPR_Register;
-- Interrupt Priority Register
IPR20 : aliased IPR_Register;
-- Software Triggered Interrupt Register
STIR : aliased STIR_Register;
end record
with Volatile;
for NVIC_Peripheral use record
ICTR at 16#4# range 0 .. 31;
ISER0 at 16#100# range 0 .. 31;
ISER1 at 16#104# range 0 .. 31;
ISER2 at 16#108# range 0 .. 31;
ICER0 at 16#180# range 0 .. 31;
ICER1 at 16#184# range 0 .. 31;
ICER2 at 16#188# range 0 .. 31;
ISPR0 at 16#200# range 0 .. 31;
ISPR1 at 16#204# range 0 .. 31;
ISPR2 at 16#208# range 0 .. 31;
ICPR0 at 16#280# range 0 .. 31;
ICPR1 at 16#284# range 0 .. 31;
ICPR2 at 16#288# range 0 .. 31;
IABR0 at 16#300# range 0 .. 31;
IABR1 at 16#304# range 0 .. 31;
IABR2 at 16#308# range 0 .. 31;
IPR0 at 16#400# range 0 .. 31;
IPR1 at 16#404# range 0 .. 31;
IPR2 at 16#408# range 0 .. 31;
IPR3 at 16#40C# range 0 .. 31;
IPR4 at 16#410# range 0 .. 31;
IPR5 at 16#414# range 0 .. 31;
IPR6 at 16#418# range 0 .. 31;
IPR7 at 16#41C# range 0 .. 31;
IPR8 at 16#420# range 0 .. 31;
IPR9 at 16#424# range 0 .. 31;
IPR10 at 16#428# range 0 .. 31;
IPR11 at 16#42C# range 0 .. 31;
IPR12 at 16#430# range 0 .. 31;
IPR13 at 16#434# range 0 .. 31;
IPR14 at 16#438# range 0 .. 31;
IPR15 at 16#43C# range 0 .. 31;
IPR16 at 16#440# range 0 .. 31;
IPR17 at 16#444# range 0 .. 31;
IPR18 at 16#448# range 0 .. 31;
IPR19 at 16#44C# range 0 .. 31;
IPR20 at 16#450# range 0 .. 31;
STIR at 16#F00# range 0 .. 31;
end record;
-- Nested Vectored Interrupt Controller
NVIC_Periph : aliased NVIC_Peripheral
with Import, Address => System'To_Address (16#E000E000#);
end STM32_SVD.NVIC;
| 32.27619 | 68 | 0.617291 |
4dade603ee6707a7b0d9fa7ac7d38d04ab977cf3 | 2,799 | adb | Ada | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-einuoc.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-einuoc.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-einuoc.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . E X C E P T I O N S . I S _ N U L L _ O C C U R R E N C E --
-- --
-- B o d y --
-- --
-- Copyright (C) 2000-2021, 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. --
-- --
-- --
-- --
-- --
-- --
-- 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. --
-- --
------------------------------------------------------------------------------
---------------------------------------
-- Ada.Exceptions.Is_Null_Occurrence --
---------------------------------------
function Ada.Exceptions.Is_Null_Occurrence
(X : Exception_Occurrence) return Boolean
is
begin
-- The null exception is uniquely identified by the fact that the Id value
-- is null. No other exception occurrence can have a null Id.
return X.Id = Null_Id;
end Ada.Exceptions.Is_Null_Occurrence;
| 62.2 | 78 | 0.35084 |
1c13c55cd5082be4837e1dd12cbfad5d6c7b6e44 | 344 | adb | Ada | ejercicios1/factorial.adb | iyan22/AprendeAda | 18bd2a224e5bda30c43d9ceabe0c05278e069ebf | [
"MIT"
] | null | null | null | ejercicios1/factorial.adb | iyan22/AprendeAda | 18bd2a224e5bda30c43d9ceabe0c05278e069ebf | [
"MIT"
] | null | null | null | ejercicios1/factorial.adb | iyan22/AprendeAda | 18bd2a224e5bda30c43d9ceabe0c05278e069ebf | [
"MIT"
] | null | null | null | with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
function factorial (n1: in Integer) return Integer is
resultado : Integer := 1;
n1c := Integer;
begin
n1c := n1;
if n1c > 0 then
loop exit when n1c = 0;
resultado:=resultado*n1c;
n1c := n1c-1;
end loop;
end if;
return resultado;
end factorial;
| 18.105263 | 53 | 0.686047 |
4d79abfeb938987d596fcdd8c27097ca5ab21b59 | 345 | ads | Ada | resources/scripts/scrape/duckduckgo.ads | MoisesTapia/Amass | 30f786aae86e44751f3ebbe2cebb9b25638c1934 | [
"Apache-2.0"
] | 2 | 2022-02-12T20:24:32.000Z | 2022-02-27T16:14:56.000Z | resources/scripts/scrape/duckduckgo.ads | Dheerajmadhukar/Amass | 30f786aae86e44751f3ebbe2cebb9b25638c1934 | [
"Apache-2.0"
] | 1 | 2021-02-15T09:01:23.000Z | 2021-02-15T09:01:23.000Z | resources/scripts/scrape/duckduckgo.ads | Dheerajmadhukar/Amass | 30f786aae86e44751f3ebbe2cebb9b25638c1934 | [
"Apache-2.0"
] | null | null | null | -- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "DuckDuckGo"
type = "scrape"
function start()
setratelimit(1)
end
function vertical(ctx, domain)
scrape(ctx, {['url']="https://html.duckduckgo.com/html/?q=site:" .. domain})
end
| 24.642857 | 97 | 0.707246 |
fb52fccf637f5f9f6dd260367539d78a77a6ece6 | 418 | adb | Ada | examples/streamcat.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 33 | 2015-04-04T09:19:36.000Z | 2021-11-10T05:33:34.000Z | examples/streamcat.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 8 | 2017-11-14T13:05:07.000Z | 2018-08-09T15:28:49.000Z | examples/streamcat.adb | ytomino/drake | 4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2 | [
"MIT"
] | 9 | 2015-02-03T17:09:53.000Z | 2021-11-12T01:16:05.000Z | with Ada.Streams; use Ada.Streams;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Ada.Streams.Stream_IO.Standard_Files; use Ada.Streams.Stream_IO.Standard_Files;
procedure streamcat is
E : Stream_Element_Array (1 .. 1);
Last : Stream_Element_Offset;
begin
while not End_Of_File (Standard_Input.all) loop
Read (Standard_Input.all, E, Last);
Write (Standard_Output.all, E);
end loop;
end streamcat;
| 32.153846 | 84 | 0.782297 |
3955bfa4927025af9d31d9c58ad3dd733f232531 | 2,830 | adb | Ada | bb-runtimes/runtimes/zfp-stm32f3x4/gnat/a-assert.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/zfp-stm32f3x4/gnat/a-assert.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | bb-runtimes/runtimes/zfp-stm32f3x4/gnat/a-assert.adb | JCGobbi/Nucleo-STM32F334R8 | 2a0b1b4b2664c92773703ac5e95dcb71979d051c | [
"BSD-3-Clause"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . A S S E R T --
-- --
-- B o d y --
-- --
-- Copyright (C) 2007-2021, 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. --
-- --
-- --
-- --
-- --
-- --
-- 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 Ada.Assertions with
SPARK_Mode
is
------------
-- Assert --
------------
procedure Assert (Check : Boolean) is
begin
if Check = False then
raise Ada.Assertions.Assertion_Error;
end if;
end Assert;
procedure Assert (Check : Boolean; Message : String) is
begin
if Check = False then
raise Ada.Assertions.Assertion_Error with Message;
end if;
end Assert;
end Ada.Assertions;
| 52.407407 | 78 | 0.34417 |
fbed553f3cd4e178ba00dca027ca2b684624d5a6 | 3,713 | adb | Ada | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-tpinop.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-tpinop.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-tpinop.adb | djamal2727/Main-Bearing-Analytical-Model | 2f00c2219c71be0175c6f4f8f1d4cca231d97096 | [
"Apache-2.0"
] | null | null | null | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- SYSTEM.TASK_PRIMITIVES.INTERRUPT_OPERATIONS --
-- --
-- B o d y --
-- --
-- Copyright (C) 1998-2020, Free Software Foundation, Inc. --
-- --
-- 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. 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/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
package body System.Task_Primitives.Interrupt_Operations is
-- ??? The VxWorks version of System.Interrupt_Management needs to access
-- this array, but due to elaboration problems, it can't with this
-- package directly, so we export this variable for now.
Interrupt_ID_Map : array (IM.Interrupt_ID) of ST.Task_Id;
pragma Export (Ada, Interrupt_ID_Map,
"system__task_primitives__interrupt_operations__interrupt_id_map");
----------------------
-- Get_Interrupt_ID --
----------------------
function Get_Interrupt_ID (T : ST.Task_Id) return IM.Interrupt_ID is
use type ST.Task_Id;
begin
for Interrupt in IM.Interrupt_ID loop
if Interrupt_ID_Map (Interrupt) = T then
return Interrupt;
end if;
end loop;
raise Program_Error;
end Get_Interrupt_ID;
-----------------
-- Get_Task_Id --
-----------------
function Get_Task_Id (Interrupt : IM.Interrupt_ID) return ST.Task_Id is
begin
return Interrupt_ID_Map (Interrupt);
end Get_Task_Id;
----------------------
-- Set_Interrupt_ID --
----------------------
procedure Set_Interrupt_ID (Interrupt : IM.Interrupt_ID; T : ST.Task_Id) is
begin
Interrupt_ID_Map (Interrupt) := T;
end Set_Interrupt_ID;
end System.Task_Primitives.Interrupt_Operations;
| 47.602564 | 78 | 0.473472 |
fb9f28d56db6b095095fabd741619d874c02d17e | 113 | ads | Ada | tests/src/suits.ads | persan/AUnit-addons | f94a3da6f4a82e826365b95dd0ade8e142c69772 | [
"MIT"
] | null | null | null | tests/src/suits.ads | persan/AUnit-addons | f94a3da6f4a82e826365b95dd0ade8e142c69772 | [
"MIT"
] | null | null | null | tests/src/suits.ads | persan/AUnit-addons | f94a3da6f4a82e826365b95dd0ade8e142c69772 | [
"MIT"
] | null | null | null | with AUnit.Test_Suites;
package Suits is
function Suit return AUnit.Test_Suites.Access_Test_Suite;
end suits;
| 22.6 | 60 | 0.823009 |
0b6ed726149722db74ea94d0239a13c48d0736d0 | 286 | ads | Ada | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/equal1.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/testsuite/gnat.dg/equal1.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/equal1.ads | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | package equal1 is
type Basic_Connection_Status_T is (Connected, Temporary_Disconnected,
Disconnected);
for Basic_Connection_Status_T'Size use 8;
type Application_Connection_Status_T is (Connected, Disconnected);
for Application_Connection_Status_T'Size use 8;
end equal1;
| 31.777778 | 71 | 0.818182 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.